/* 포인트 페이지 스타일 */

.point-wrapper {
    background: #faf8f8;
    min-height: 100vh;
    padding: 60px 0 100px;
}

.point-wrapper .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #323232;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #917e79;
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.summary-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #e5d4cf; 
}

.card-label {
    font-size: 14px;
    font-weight: 600;
    color: #9b847f;
    margin-bottom: 10px;
}

.card-value {
    font-size: 30px;
    font-weight: 800;
    color: #323232;
}

.card-value.positive {
    color: #16a34a;
}

.card-value.negative {
    color: #dc2626;
}

.card-desc {
    margin-top: 10px;
    font-size: 13px;
    color: #9ca3af;
}

/* Tabs */
.point-tabs {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #e5d4cf;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

.tab-buttons {
    display: inline-flex;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 6px;
    background: #f4f6ff;
    margin-bottom: 28px;
    gap: 6px;
}

.tab-button {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    color: #917e79;
    cursor: pointer;
    transition: all 0.25s ease;
}

#tab-earned:checked ~ .tab-buttons label[for="tab-earned"],
#tab-used:checked ~ .tab-buttons label[for="tab-used"] {
    background: #c76b52;
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

.tab-contents {
    margin-top: 10px;
}

.tab-content {
    display: none;
}

#tab-earned:checked ~ .tab-contents #earned-content,
#tab-used:checked ~ .tab-contents #used-content {
    display: block;
}

/* Filter */
.point-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.date-filter {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.date-filter label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    color: #9b847f;
}

.date-filter input[type="date"] {
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #e5d4cf;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    background: #fff;
}

.btn-search-date {
    border: none;
    background: #323232;
    color: #fff;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-search-date:hover {
    background: #1f2a44;
}

.filter-label {
    font-size: 15px;
    font-weight: 700;
    color: #323232;
}

.filter-desc {
    font-size: 13px;
    color: #917e79;
    margin-top: 4px;
}

.btn-download {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download:hover {
    border-color: #c76b52;
    color: #c76b52;
}

/* Table */
.point-table {
    border: 1px solid #e5d4cf;
    border-radius: 20px;
    overflow: hidden;
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1fr;
    align-items: center;
    padding: 16px 20px;
    font-size: 14px;
}

.table-head {
    background: #f9fafc;
    font-weight: 700;
    color: #4b5563;
}

.table-body .table-row:nth-child(every) {
    background: #fff;
}

.table-row {
    border-top: 1px solid #f1f5f9;
    color: #374151;
}

.point {
    font-weight: 700;
}

.point.positive {
    color: #16a34a;
}

.point.negative {
    color: #dc2626;
}

.status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
}

.status.success {
    background: #ecfdf5;
    color: #047857;
}

.status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.guide-box {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #efd4ce;
    color: #9b847f;
    font-size: 13px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .point-wrapper .container {
        padding: 0 24px;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .point-wrapper {
        padding: 40px 0 70px;
    }

    .point-wrapper .container {
        padding: 0 18px;
    }

    .tab-buttons {
        width: 100%;
        flex-direction: column;
        border-radius: 16px;
    }

    .point-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-filter {
        width: 100%;
    }

    .date-filter label,
    .date-filter input,
    .btn-search-date {
        width: 100%;
    }

    .btn-search-date {
        text-align: center;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .table-head span:last-child,
    .table-row span:last-child {
        display: none;
    }


    .page-title {
        font-size: 30px;
    }

}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .point-tabs {
        padding: 20px;
        border-radius: 20px;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1fr 1fr;
    }

    .table-head span:nth-child(3),
    .table-row span:nth-child(3),
    .table-head span:nth-child(4),
    .table-row span:nth-child(4) {
        display: none;
    }
}

/* ===== 현금전환 섹션 ===== */

.point-cash-section {
    margin-bottom: 36px;
}

.point-cash-section .section-header {
    margin-bottom: 20px;
}

.point-cash-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #323232;
    margin-bottom: 6px;
}

.point-cash-section .section-desc {
    font-size: 14px;
    color: #917e79;
}

/* 설정 정보 행 */
.cash-conversion-info {
    display: flex;
    gap: 20px;
    background: #fcf7f4;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-label {
    color: #917e79;
    font-weight: 500;
}

.info-value {
    color: #323232;
    font-weight: 700;
}

/* 현금전환 폼 */
.cash-form {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e5d4cf;
    padding: 35px;
    margin-bottom: 28px;
}

.cash-form .form-group {
    margin-bottom: 18px;
}

.cash-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cash-form .form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #323232;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cash-form .form-input:focus {
    outline: none;
    border-color: #c76b52;
}

/* 포인트 입력 + 전액 버튼 */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-input {
    flex: 1;
}

.btn-use-all-cash {
    padding: 11px 18px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-use-all-cash:hover {
    background: #e5d4cf;
}

/* 세금 계산 결과 박스 */
.cash-calc {
    background: #faf8f8;
    border: 1px solid #e5d4cf;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #917e79;
    padding: 5px 0;
}

.calc-row strong {
    font-weight: 600;
    color: #374151;
}

.calc-row.total {
    border-top: 1px solid #e5d4cf;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #323232;
}

.calc-row.total span,
.calc-row.total strong {
    font-weight: 700;
    color: #323232;
}

/* 신청 버튼 */
.btn-request-cash {
    width: 100%;
    padding: 14px;
    background: #bb877a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-request-cash:hover {
    background: #a27b6f;
}

/* 신청 내역 */
.cash-history {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e5d4cf;
    padding: 35px;
}

.cash-history .sub-title {
    font-size: 16px;
    font-weight: 700;
    color: #323232;
    margin-bottom: 18px;
}

.cash-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-text {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 30px 0;
}

.cash-history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: #faf8f8;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    gap: 16px;
}

.cash-history-main {
    flex: 1;
    min-width: 0;
}

.cash-history-point {
    font-size: 15px;
    font-weight: 600;
    color: #323232;
    margin-bottom: 4px;
}

.cash-history-detail {
    font-size: 13px;
    color: #917e79;
    margin-bottom: 3px;
}

.cash-history-account {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 3px;
}

.cash-history-date {
    font-size: 12px;
    color: #b0bac6;
}

.cash-history-reject {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* 상태 배지 */
.cash-history-status {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cash-history-status.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.cash-history-status.status-approved {
    background: #eff6ff;
    color: #a86d5c;
}

.cash-history-status.status-done {
    background: #ecfdf5;
    color: #047857;
}

.cash-history-status.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.point-list {border-radius: 15px;overflow: hidden;
border:1px solid #e5d4cf;}

.point-list .point-item:first-child {border-top:0 !important;}



/* 현금전환 반응형 */
@media (max-width: 768px) {
    .cash-conversion-info {
        flex-direction: column;
        gap: 0px;
    }

    .cash-form {
        padding: 20px;
    }

    .cash-history {
        padding: 20px;
    }

    .cash-history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-value {font-size:24px;}

    .card-label {margin-bottom:5px;}

    .point-info-wrap {flex-direction: column;gap:2px !important;align-items: flex-start !important;;}

    .point-info-t {font-size:0.85rem !important;}



}

@media (max-width: 480px) {

    .page-subtitle {font-size:14px;}

    .input-with-btn {
        flex-direction: column;
    }

    .btn-use-all-cash {
        width: 100%;
        text-align: center;
    }
}
