/**
 * 강제집행 비용 계산기 (압류·추심·경매)
 * @package Zipper
 */

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

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

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

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

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

.fecc-tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f5f3ef;
    border-radius: 10px;
    padding: 6px;
}

.fecc-tab {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6a645c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fecc-tab:hover,
.fecc-tab:focus-visible {
    color: #4f4637;
}

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

.fecc-tab-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fecc-section-title,
.fecc-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;
}

.fecc-section-title i,
.fecc-block-title i {
    color: #c99a20;
}

.fecc-input-group {
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

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

.fecc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fecc-input-row-triple {
    grid-template-columns: repeat(3, 1fr);
}

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

.fecc-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    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;
}

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

.fecc-input:focus {
    outline: none;
    border-color: #c99a20;
    box-shadow: 0 0 0 3px rgba(201, 154, 32, 0.12);
    background: #fff;
}

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

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

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

.fecc-amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fbfaf8;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fecc-amount-row:hover {
    border-color: #d4c67a;
}

.fecc-amount-row:focus-within {
    border-color: #c99a20;
    box-shadow: 0 0 0 3px rgba(201, 154, 32, 0.12);
    background: #fff;
}

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

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

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

.fecc-amount-input {
    min-width: 0;
}

.fecc-meta-table td:first-child {
    width: 150px;
    color: #5c544c;
    font-weight: 700;
}

.fecc-korean-amount {
    margin: 6px 0 0;
    min-height: 16px;
    color: #8a6f27;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

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

.fecc-hint-tight {
    margin: -2px 0 12px;
}

.fecc-reference-section {
    background: linear-gradient(180deg, #fffdf7 0%, #faf7ee 100%);
}

.fecc-reference-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #5f5a56;
    font-size: 12px;
    line-height: 1.5;
}

.fecc-btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

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

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

.fecc-btn-primary:hover,
.fecc-btn-primary:focus-visible {
    transform: translateY(-1px);
}

.fecc-btn-ghost {
    min-width: 92px;
    background: #f5f3ef;
    color: #5a544c;
}

.fecc-btn-ghost:hover,
.fecc-btn-ghost:focus-visible {
    background: #ede8de;
}

.fecc-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #5f5a56;
}

.fecc-waiting i {
    font-size: 24px;
    color: #c99a20;
}

.fecc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5f0e1;
    color: #8a6f27;
    font-size: 11px;
    font-weight: 700;
}

.fecc-summary-title {
    margin: 10px 0 6px;
    color: #2d2a26;
    font-size: 22px;
    line-height: 1.35;
}

.fecc-main-value {
    color: #2d2a26;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.fecc-summary-note {
    margin: 10px 0 0;
    color: #6d665d;
    font-size: 13px;
    line-height: 1.6;
}

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

.fecc-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #efe7d7;
    border-radius: 10px;
    padding: 14px;
    background: #fffcf6;
}

.fecc-summary-item.is-kpi {
    background: linear-gradient(180deg, #fff8e2 0%, #fdf2cd 100%);
    border-color: #efd690;
}

.fecc-summary-label {
    color: #7a7064;
    font-size: 12px;
    line-height: 1.4;
}

.fecc-summary-value {
    color: #2d2a26;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

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

.fecc-block-sub {
    margin: 0 0 12px;
    color: #6d665d;
    font-size: 12px;
    line-height: 1.5;
}

.fecc-download-btn {
    flex-shrink: 0;
}

.fecc-chart-wrap {
    position: relative;
    min-height: 280px;
}

.fecc-chart-wrap canvas {
    width: 100% !important;
    max-width: 100%;
    height: 280px !important;
}

.fecc-chart-fallback {
    margin: 0 0 10px;
    color: #8a6f27;
    font-size: 12px;
    line-height: 1.5;
}

.fecc-fallback-table-wrap,
.fecc-table-wrap {
    overflow-x: auto;
}

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

.fecc-fallback-table th,
.fecc-fallback-table td,
.fecc-table th,
.fecc-table td {
    border-bottom: 1px solid #ece6da;
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
    color: #433d37;
    font-size: 12px;
    line-height: 1.55;
}

.fecc-fallback-table th,
.fecc-table th {
    background: #faf7f1;
    color: #5c544c;
    font-weight: 700;
}

.fecc-empty-row td {
    text-align: center;
    color: #8f887d;
}

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

.fecc-notice-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #eee7d9;
    border-radius: 10px;
    padding: 12px;
    background: #fffcf6;
}

.fecc-notice-label {
    color: #7a7064;
    font-size: 11px;
    line-height: 1.4;
}

.fecc-notice-value {
    color: #2d2a26;
    font-size: 13px;
    line-height: 1.5;
}

.fecc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f6f3ee;
    color: #5f5a56;
    font-size: 12px;
    line-height: 1.6;
}

.fecc-disclaimer i {
    margin-top: 1px;
    color: #c99a20;
}

.fecc-date-notice {
    margin-bottom: 18px;
    color: #776d61;
    font-size: 13px;
    line-height: 1.6;
}

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

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

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

@media (max-width: 720px) {
    .fecc-section,
    .fecc-result-summary,
    .fecc-chart-section,
    .fecc-table-section {
        padding: 16px;
    }

    .fecc-input-row,
    .fecc-input-row-triple,
    .fecc-summary-grid,
    .fecc-notice-grid,
    .fecc-btn-group {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .fecc-btn-ghost {
        width: 100%;
    }

    .fecc-main-value {
        font-size: 28px;
    }

    .fecc-summary-title {
        font-size: 20px;
    }

    .fecc-chart-wrap {
        min-height: 240px;
    }

    .fecc-chart-wrap canvas {
        height: 240px !important;
    }

    .fecc-fallback-table,
    .fecc-table {
        min-width: 100%;
    }

    .fecc-table thead,
    .fecc-fallback-table thead {
        display: none;
    }

    .fecc-table tbody,
    .fecc-fallback-table tbody,
    .fecc-table tr,
    .fecc-fallback-table tr,
    .fecc-table td,
    .fecc-fallback-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .fecc-table tr,
    .fecc-fallback-table tr {
        border-bottom: 1px solid #ece6da;
        padding: 8px 0;
    }

    .fecc-table td,
    .fecc-fallback-table td {
        border: 0;
        padding: 4px 0;
    }
}

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

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