/**
 * 개인회생 신청비용·월 변제금 계산기
 * @package Zipper
 */

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

.prcrc-main-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.prcrc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.prcrc-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.prcrc-section,
.prcrc-result-summary,
.prcrc-chart-section,
.prcrc-table-section {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.prcrc-section-title,
.prcrc-block-title {
    margin: 0 0 12px;
    color: #2d2a26;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.prcrc-section-title i,
.prcrc-block-title i {
    color: #d4af37;
}

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

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

.prcrc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prcrc-label {
    display: block;
    margin-bottom: 6px;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.prcrc-input {
    width: 100%;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fbfaf8;
    color: #2d2a26;
    font-size: 13px;
    padding: 10px 12px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.prcrc-input:hover {
    border-color: #d4c67a;
}

.prcrc-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.prcrc-input::placeholder {
    color: #b7b1a8;
}

.prcrc-input[type="number"] {
    -moz-appearance: textfield;
}

.prcrc-input[type="number"]::-webkit-outer-spin-button,
.prcrc-input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

.prcrc-amount-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    overflow: hidden;
    background: #fbfaf8;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.prcrc-amount-wrap:hover {
    border-color: #d4c67a;
}

.prcrc-amount-wrap:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.prcrc-amount-wrap .prcrc-input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
    font-weight: 600;
}

.prcrc-amount-wrap .prcrc-input:hover,
.prcrc-amount-wrap .prcrc-input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.prcrc-unit {
    min-width: 62px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b7467;
    font-size: 12px;
    border-left: 1px solid #e4ddd0;
    background: linear-gradient(180deg, #fcfbf8 0%, #f3efe8 100%);
    box-sizing: border-box;
    user-select: none;
}

.prcrc-amount-wrap-small .prcrc-unit {
    min-width: 48px;
}

.prcrc-hint {
    margin: 6px 0 0;
    color: #8f887d;
    font-size: 11px;
    line-height: 1.45;
}

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

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

.prcrc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.prcrc-btn-primary {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #c59a23 100%);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.prcrc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.prcrc-btn-ghost {
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
}

.prcrc-btn-ghost:hover {
    transform: translateY(-1px);
}

.prcrc-waiting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a704f;
    background: #fcfaf4;
}

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

.prcrc-waiting p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.prcrc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.prcrc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3ead3;
    color: #7a6120;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.prcrc-summary-title {
    margin: 0;
    color: #2d2a26;
    font-size: 20px;
    line-height: 1.35;
}

.prcrc-summary-note {
    margin: 10px 0 0;
    color: #6e685f;
    font-size: 13px;
    line-height: 1.5;
}

.prcrc-main-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.prcrc-main-kpi {
    border: 1px solid #ede4d1;
    border-radius: 10px;
    background: #fffdfa;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prcrc-main-kpi-label {
    color: #7a7469;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.prcrc-main-kpi-value {
    color: #8c6a16;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.prcrc-summary-item {
    border: 1px solid #e8e2d7;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prcrc-summary-label {
    color: #7a7469;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.prcrc-summary-value {
    color: #2d2a26;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    word-break: keep-all;
}

.prcrc-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.prcrc-download-btn {
    white-space: nowrap;
}

/* Excel button guard */
.tool-btn-excel {
    color: #fff;
    background: linear-gradient(135deg, #59ab79 0%, #4b9a69 100%);
    border: 1px solid #448e62;
}

.tool-btn-excel:hover,
.tool-btn-excel:focus-visible {
    background: linear-gradient(135deg, #4f9f70 0%, #438f62 100%);
    border-color: #3f875d;
}

.prcrc-block-sub {
    margin: 0 0 10px;
    color: #6f685f;
    font-size: 12px;
    line-height: 1.45;
}

.prcrc-chart-wrap {
    position: relative;
    height: 300px;
    width: 100%;
}

.prcrc-chart-fallback {
    margin: 12px 0 0;
    color: #8d5b52;
    font-size: 12px;
    font-weight: 600;
}

.prcrc-fallback-table-wrap {
    margin-top: 10px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: auto;
    max-width: 100%;
    background: #fff;
}

.prcrc-fallback-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 460px;
}

.prcrc-fallback-table th,
.prcrc-fallback-table td {
    border-bottom: 1px solid #eee8dd;
    padding: 8px 10px;
    text-align: right;
    white-space: nowrap;
}

.prcrc-fallback-table th:first-child,
.prcrc-fallback-table td:first-child {
    text-align: left;
}

.prcrc-fallback-table th {
    background: #faf7f1;
    color: #5d574f;
    font-weight: 700;
}

.prcrc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ebe6dc;
    border-radius: 10px;
}

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

.prcrc-table th,
.prcrc-table td {
    border-bottom: 1px solid #efe9de;
    padding: 9px 10px;
    text-align: right;
    vertical-align: middle;
    line-height: 1.45;
    white-space: nowrap;
}

.prcrc-table th {
    background: #faf7f1;
    color: #5d574f;
    font-weight: 700;
}

.prcrc-table th:first-child,
.prcrc-table td:first-child {
    text-align: left;
}

.prcrc-empty-row td {
    text-align: center !important;
    color: #8e8679;
    white-space: normal;
}

.prcrc-feasible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.prcrc-feasible.is-yes {
    color: #2d7a3e;
    background: rgba(45, 122, 62, 0.12);
}

.prcrc-feasible.is-no {
    color: #a23d2d;
    background: rgba(162, 61, 45, 0.12);
}

.prcrc-warning-list {
    margin: 0;
    padding: 0 0 0 18px;
    color: #574f45;
    font-size: 12px;
    line-height: 1.6;
}

.prcrc-warning-list li + li {
    margin-top: 6px;
}

.prcrc-warning-list .is-warning {
    color: #9a4f12;
    font-weight: 600;
}

.prcrc-warning-list .is-danger {
    color: #a4342f;
    font-weight: 700;
}

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

.prcrc-notice-item {
    border: 1px solid #ece6d8;
    border-radius: 10px;
    padding: 10px;
    background: #fffdf8;
}

.prcrc-notice-label {
    display: block;
    color: #7a7469;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.prcrc-notice-value {
    color: #3c372f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.prcrc-disclaimer {
    border: 1px solid #efe8d8;
    border-radius: 10px;
    background: #fffdf8;
    padding: 12px 14px;
    color: #5b544a;
    font-size: 12px;
    line-height: 1.55;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.prcrc-disclaimer i {
    color: #d4af37;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.prcrc-date-notice {
    margin: 0 0 16px;
    font-size: 13px;
    color: #746d63;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .prcrc-main-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

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

    .prcrc-chart-wrap {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .prcrc-section,
    .prcrc-result-summary,
    .prcrc-chart-section,
    .prcrc-table-section {
        padding: 14px;
        border-radius: 10px;
    }

    .prcrc-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prcrc-main-kpi-grid {
        grid-template-columns: 1fr;
    }

    .prcrc-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prcrc-notice-grid {
        grid-template-columns: 1fr;
    }

    .prcrc-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .prcrc-download-btn {
        width: 100%;
        justify-content: center;
    }

    .prcrc-chart-wrap {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .prcrc-summary-title {
        font-size: 18px;
    }

    .prcrc-summary-grid {
        grid-template-columns: 1fr;
    }

    .prcrc-main-kpi-value {
        font-size: 21px;
    }

    .prcrc-btn-group {
        flex-direction: column;
    }

    .prcrc-btn {
        width: 100%;
    }

    .prcrc-unit {
        min-width: 54px;
        font-size: 11px;
    }

    .prcrc-table,
    .prcrc-fallback-table {
        font-size: 11px;
    }

    .prcrc-date-notice {
        font-size: 12px;
    }
}
