/**
 * Parent Benefit Calculator Styles
 * 부모급여 계산기
 *
 * @package Zipper
 */

.pbc-hidden {
    display: none !important;
}

.pbc-main-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
}

.pbc-input-col {
    position: sticky;
    top: 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pbc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbc-section,
.pbc-result-summary,
.pbc-card-section,
.pbc-chart-section,
.pbc-table-section,
.pbc-apply-section {
    border: 1px solid #e7e3df;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(46, 43, 39, 0.06);
}

.pbc-section-title,
.pbc-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2f2b28;
}

.pbc-section-title i,
.pbc-block-title i {
    color: #df8f6e;
}

.pbc-input-group {
    margin-bottom: 12px;
}

.pbc-input-group:last-child {
    margin-bottom: 0;
}

.pbc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #615c57;
}

.pbc-select,
.pbc-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd7cf;
    border-radius: 8px;
    background: #fcfbf9;
    color: #2f2b28;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pbc-select {
    padding: 10px 32px 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236f6758' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.pbc-input {
    padding: 10px 12px;
}

.pbc-amount-input {
    padding-right: 12px;
    text-align: right;
    font-weight: 600;
}

input[type="number"].pbc-input {
    text-align: right;
    padding-right: 12px;
    font-weight: 600;
}

.pbc-input::placeholder {
    color: #c5c0ba;
    font-weight: 400;
}

.pbc-select:hover,
.pbc-input:hover {
    border-color: #dba68f;
}

.pbc-select:focus,
.pbc-input:focus {
    outline: none;
    background: #fff;
    border-color: #d98866;
    box-shadow: 0 0 0 3px rgba(217, 136, 102, 0.12);
}

.pbc-amount-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.pbc-unit {
    position: static;
    font-size: 12px;
    color: #9a928b;
    pointer-events: none;
    white-space: nowrap;
}

.pbc-korean-amount {
    margin-top: 4px;
    min-height: 16px;
    text-align: right;
    font-size: 11px;
    color: #c06a4c;
}

.pbc-hint {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #8c837b;
}


.pbc-input-group.pbc-disabled {
    opacity: 0.55;
}

.pbc-input-group.pbc-disabled .pbc-hint {
    display: none;
}

.pbc-checklist {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #615c57;
}

.pbc-btn-group {
    display: flex;
    gap: 8px;
}

.pbc-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pbc-btn-primary {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #e89271 0%, #d76f49 100%);
    box-shadow: 0 2px 8px rgba(216, 117, 80, 0.28);
}

.pbc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(216, 117, 80, 0.34);
}

.pbc-btn-ghost {
    color: #615c57;
    border: 1px solid #dfd8ce;
    background: #f6f3ef;
}

.pbc-btn-ghost:hover {
    background: #fff;
    border-color: #d7ab97;
}

.pbc-waiting {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    color: #8c6758;
    font-size: 13px;
    line-height: 1.5;
}

.pbc-waiting i {
    color: #d98866;
    font-size: 18px;
    flex-shrink: 0;
}

.pbc-waiting p {
    margin: 0;
}

.pbc-result-summary {
    background: linear-gradient(135deg, #fff8f5 0%, #fff2ec 100%);
}

.pbc-summary-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(217, 136, 102, 0.18);
    color: #92543b;
    font-size: 12px;
    font-weight: 700;
}

.pbc-summary-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: #2f2b28;
}

.pbc-main-value {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #c65f3a;
}

.pbc-summary-note {
    margin: 0;
    color: #706861;
    font-size: 12px;
    line-height: 1.5;
}

.pbc-summary-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pbc-summary-item {
    border: 1px solid #efdfd8;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.pbc-summary-label {
    display: block;
    font-size: 11px;
    color: #847972;
}

.pbc-summary-value {
    margin-top: 4px;
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2f2b28;
}

.pbc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pbc-card {
    border: 1px solid #efe2db;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.pbc-card h3 {
    margin: 0;
    font-size: 12px;
    color: #847972;
}

.pbc-card p {
    margin: 6px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2f2b28;
    line-height: 1.35;
}

.pbc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #f4f0ea;
    color: #746c64;
}

.pbc-pill-pass {
    background: #e7f5eb;
    color: #2b7a43;
}

.pbc-pill-warn {
    background: #fff2d8;
    color: #8f6920;
}

.pbc-pill-fail {
    background: #ffe6e0;
    color: #b44a2f;
}

.pbc-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.pbc-block-sub {
    font-size: 11px;
    color: #8b827a;
    line-height: 1.45;
}

.pbc-chart-wrap {
    width: 100%;
    height: 280px;
    max-height: 300px;
}

.pbc-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.pbc-chart-fallback {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed #e0d4ca;
    background: #fdf8f4;
    font-size: 12px;
    color: #7c716a;
}

.pbc-download-btn {
    border: 1px solid #d8d0c5;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    color: #635d56;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pbc-download-btn:hover {
    border-color: #d98866;
    color: #a25535;
    background: #fff8f5;
}

.pbc-download-btn.tool-btn.tool-btn-excel {
    color: #fff;
    background: linear-gradient(135deg, #59ab79 0%, #4f9f70 100%);
    border: 1px solid #4f9f70;
    box-shadow: 0 2px 6px rgba(63, 153, 98, 0.28);
}

.pbc-download-btn.tool-btn.tool-btn-excel:hover {
    color: #fff;
    background: linear-gradient(135deg, #4f9f70 0%, #458b63 100%);
    border-color: #458b63;
    box-shadow: 0 4px 12px rgba(54, 137, 86, 0.34);
}

.pbc-table-wrap {
    overflow-x: auto;
}

.pbc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
    font-size: 12px;
}

.pbc-table th,
.pbc-table td {
    border-bottom: 1px solid #f0ebe6;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.pbc-table th {
    background: #faf7f3;
    color: #615c57;
    font-weight: 700;
}

.pbc-table td {
    color: #38332f;
}


.pbc-table th:first-child,
.pbc-table td:first-child {
    width: 44%;
    min-width: 190px;
}

.pbc-empty-row td {
    text-align: center;
    color: #8a8279;
}

.pbc-apply-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pbc-apply-list a {
    color: #a45535;
    text-decoration: none;
    font-size: 12px;
}

.pbc-apply-list a:hover {
    text-decoration: underline;
}

.pbc-apply-note {
    margin: 10px 0 0;
    font-size: 11px;
    color: #8c837b;
    line-height: 1.5;
}

.pbc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #eadfce;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff9f0;
    color: #7e6a3f;
    font-size: 12px;
    line-height: 1.55;
}

.pbc-disclaimer i {
    font-size: 15px;
    margin-top: 1px;
}

@media (max-width: 1100px) {
    .pbc-main-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 900px) {
    .pbc-main-layout {
        grid-template-columns: 1fr;
    }

    .pbc-input-col {
        position: static;
    }

    .pbc-select,
    .pbc-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}


@media (max-width: 768px) {
    .pbc-summary-grid,
    .pbc-card-grid {
        grid-template-columns: 1fr;
    }

    .pbc-main-value {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .pbc-section,
    .pbc-result-summary,
    .pbc-card-section,
    .pbc-chart-section,
    .pbc-table-section,
    .pbc-apply-section {
        padding: 14px;
    }

    .pbc-summary-grid,
    .pbc-card-grid,
    .pbc-btn-group {
        grid-template-columns: 1fr;
    }

    .pbc-btn-group {
        display: grid;
    }

    .pbc-main-value {
        font-size: 30px;
    }

    .pbc-chart-wrap {
        height: 250px;
        max-height: 280px;
    }
}


@media (max-width: 480px) {
    .pbc-table th:first-child,
    .pbc-table td:first-child {
        width: 46%;
        min-width: 170px;
    }

    .pbc-main-layout {
        overflow-x: hidden;
    }

    .pbc-table {
        min-width: 360px;
    }
}
