/**
 * 개인회생 vs 채무조정 선택 시뮬레이터
 * @package Zipper
 */

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

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

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

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

.prvdas-section,
.prvdas-result-summary,
.prvdas-chart-section,
.prvdas-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%;
    min-width: 0;
    box-sizing: border-box;
}

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

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

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

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

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

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

.prvdas-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;
}

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

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

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

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

.prvdas-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;
}

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

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

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

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

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

.prvdas-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%);
}

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

.prvdas-range-wrap input[type="range"] {
    width: 100%;
    min-width: 0;
}

.prvdas-range-value {
    font-size: 12px;
    color: #4d473f;
    font-weight: 700;
    min-width: 48px;
    text-align: right;
}

.prvdas-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4d473f;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
}

.prvdas-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

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

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

.prvdas-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;
}

.prvdas-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);
}

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

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

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

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

.prvdas-waiting i {
    color: #d4af37;
    font-size: 18px;
}

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

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

.prvdas-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;
}

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

.prvdas-summary-note {
    margin: 8px 0 0;
    color: #6f675d;
    font-size: 13px;
    line-height: 1.5;
}

.prvdas-main-kpi-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.prvdas-main-kpi {
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee5d4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.prvdas-main-kpi-label {
    display: block;
    color: #6f675d;
    font-size: 11px;
    margin-bottom: 6px;
}

.prvdas-main-kpi-value {
    color: #2d2a26;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

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

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

.prvdas-summary-label {
    display: block;
    color: #7b7467;
    font-size: 11px;
    margin-bottom: 6px;
}

.prvdas-summary-value {
    color: #2d2a26;
    font-size: 14px;
    font-weight: 700;
}

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

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

.prvdas-download-btn.tool-btn-excel {
    background: #59ab79;
    border-color: #59ab79;
    color: #fff;
}

.prvdas-download-btn.tool-btn-excel:hover,
.prvdas-download-btn.tool-btn-excel:focus {
    background: #4f9f70;
    border-color: #4f9f70;
    color: #fff;
}

.prvdas-block-sub {
    margin: 0 0 12px;
    color: #7b7467;
    font-size: 12px;
    line-height: 1.5;
}

.prvdas-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e8e1d5;
    border-radius: 10px;
    background: #faf7f1;
    padding: 4px;
    box-sizing: border-box;
}

.prvdas-view-tab {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #6a6257;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 12px;
    cursor: pointer;
}

.prvdas-view-tab:hover {
    color: #2d2a26;
}

.prvdas-view-tab.is-active {
    background: #fff;
    color: #2d2a26;
    box-shadow: 0 1px 3px rgba(45, 42, 38, 0.12);
}

.prvdas-chart-wrap {
    min-height: 300px;
}

.prvdas-chart-wrap canvas {
    width: 100% !important;
    height: 300px !important;
}

.prvdas-chart-fallback {
    margin: 10px 0 0;
    color: #9c4a35;
    font-size: 12px;
    font-weight: 600;
}

.prvdas-table-wrap,
.prvdas-fallback-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.prvdas-table,
.prvdas-fallback-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.prvdas-table th,
.prvdas-table td,
.prvdas-fallback-table th,
.prvdas-fallback-table td {
    border: 1px solid #eee7db;
    padding: 9px 10px;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.prvdas-table th,
.prvdas-fallback-table th {
    background: #faf7f1;
    color: #4d473f;
    font-weight: 700;
}

.prvdas-empty-row td {
    text-align: center;
    color: #9d9588;
}

.prvdas-eligible {
    color: #2b7a4b;
    font-weight: 700;
}

.prvdas-ineligible {
    color: #a73f3f;
    font-weight: 700;
}

.prvdas-warning-list {
    margin: 0;
    padding-left: 18px;
    color: #4d473f;
    font-size: 12px;
    line-height: 1.55;
    display: grid;
    gap: 6px;
}

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

.prvdas-notice-item {
    border: 1px solid #ece5d8;
    background: #fdfcf9;
    border-radius: 10px;
    padding: 10px;
    min-width: 0;
}

.prvdas-notice-label {
    display: block;
    color: #857d6f;
    font-size: 11px;
    margin-bottom: 6px;
}

.prvdas-notice-value {
    color: #2d2a26;
    font-size: 12px;
    line-height: 1.45;
    word-break: keep-all;
}

@media (max-width: 1200px) {
    .prvdas-main-kpi-grid,
    .prvdas-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prvdas-notice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

    .prvdas-input-row {
        grid-template-columns: 1fr;
    }

    .prvdas-notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .prvdas-main-kpi-grid,
    .prvdas-summary-grid,
    .prvdas-notice-grid {
        grid-template-columns: 1fr;
    }

    .prvdas-summary-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .prvdas-view-switch {
        width: 100%;
    }

    .prvdas-view-tab {
        flex: 1;
        justify-content: center;
    }

    .prvdas-table,
    .prvdas-fallback-table {
        min-width: 680px;
    }
}
