/**
 * 소송구조(법원 비용면제) 가능성 체크
 * @package Zipper
 */

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

.laec-main-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.laec-input-col {
    position: sticky;
    top: 20px;
}

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

.laec-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

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

.laec-input-group { margin-bottom: 12px; }
.laec-input-group:last-child { margin-bottom: 0; }

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

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

.laec-input {
    width: 100%;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fbfaf8;
    color: #2d2a26;
    font-size: 13px;
    padding: 10px 12px;
    box-sizing: border-box;
}

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

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

.laec-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.laec-check {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    padding: 8px 10px;
    color: #57524d;
    font-size: 12px;
}

.laec-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d4af37;
    margin: 0;
}

.laec-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.laec-btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.laec-btn-primary {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #c59a23 100%);
}

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

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

.laec-waiting i { color: #d4af37; }
.laec-waiting p { margin: 0; font-size: 12px; }

.laec-summary-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.laec-summary-head h3 {
    margin: 0;
    font-size: 17px;
    color: #2d2a26;
}

.laec-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ece9e2;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 700;
}

.laec-badge.is-high { background: #e8f5ee; color: #17643d; }
.laec-badge.is-mid { background: #fff5db; color: #7a5b09; }
.laec-badge.is-low { background: #fdeaea; color: #8e2e2e; }

.laec-summary-note {
    margin: 0 0 14px;
    color: #6e675e;
    font-size: 12px;
    line-height: 1.55;
}

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

.laec-card {
    border: 1px solid #eadfca;
    border-radius: 10px;
    background: linear-gradient(180deg, #fefdf9 0%, #faf6ec 100%);
    padding: 12px;
}

.laec-card-label {
    display: block;
    color: #7f7668;
    font-size: 11px;
    margin-bottom: 4px;
}

.laec-card-value {
    display: block;
    color: #2d2a26;
    font-size: 16px;
    margin-bottom: 4px;
}

.laec-card-sub {
    margin: 0;
    color: #6d665d;
    font-size: 11px;
    line-height: 1.5;
}

.laec-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.laec-block-sub {
    margin: 0 0 12px;
    color: #766f65;
    font-size: 12px;
}

.laec-download-btn {
    min-height: 36px;
}

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

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

.laec-chart-wrap {
    min-height: 250px;
}

.laec-chart-fallback {
    margin-top: 10px;
    color: #9a6b00;
    font-size: 12px;
}

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

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

.laec-table th,
.laec-table td {
    border-bottom: 1px solid #eee7da;
    text-align: left;
    padding: 10px 8px;
    vertical-align: top;
}

.laec-table th {
    background: #faf7f2;
    color: #5f5a56;
    font-weight: 700;
}

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

.laec-notice-item {
    border: 1px solid #ebe6dd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fcfbf8;
    font-size: 12px;
}

.laec-notice-item span { color: #6f675e; }
.laec-notice-item strong { color: #2d2a26; }

.laec-disclaimer {
    border: 1px solid #efe2c5;
    background: #fff9ec;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 8px;
    color: #6d5b33;
    font-size: 12px;
    line-height: 1.5;
}

.laec-disclaimer i { margin-top: 1px; }

.laec-date-notice {
    margin: 18px 0;
    font-size: 13px;
    color: #6b6358;
    background: #faf7f1;
    border: 1px solid #ece3d3;
    border-radius: 10px;
    padding: 12px;
    line-height: 1.55;
}

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

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

@media (max-width: 768px) {
    .laec-card-grid,
    .laec-notice-grid,
    .laec-input-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .laec-section {
        padding: 14px;
    }

    .laec-summary-head h3 {
        font-size: 15px;
    }

    .laec-card-value {
        font-size: 15px;
    }

    .laec-table {
        font-size: 11px;
    }
}
