@charset "utf-8";

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --excel-navy: #123d78;
    --excel-gold: #d5a51f;
    --excel-yellow: #fff12f;
    --excel-line: #9ca3ad;
    --excel-soft-line: #dfe3e8;
    --excel-bg: #f4f6f9;
    --excel-text: #20252c;
    --excel-red: #df4a4a;
    --excel-blue: #1672cc;
}

.excel-consult-page,
.excel-consult-page * {
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

.excel-consult-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 80px;
    background: var(--excel-bg);
    color: var(--excel-text);
}

.excel-consult-head,
.excel-sheet {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.excel-consult-head {
    margin-bottom: 24px;
}

.excel-consult-head > span {
    color: var(--excel-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .11em;
}

.excel-consult-head h1 {
    margin: 8px 0 0;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.04em;
}

.excel-consult-head p {
    margin: 11px 0 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.6;
}

.excel-sheet {
    padding: 24px;
    border: 1px solid #d9dee5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(18, 43, 71, .07);
}

.excel-guide {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid #a99b00;
    background: var(--excel-yellow);
    font-size: 15px;
    font-weight: 600;
}

.excel-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 18px;
}

.excel-panel {
    overflow: hidden;
    border: 1px solid var(--excel-line);
    background: #fff;
}

.excel-cost-panel {
    grid-column: 1 / -1;
}

.excel-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, .9fr);
    min-height: 48px;
    border-bottom: 1px solid var(--excel-line);
}

.excel-row:last-child {
    border-bottom: 0;
}

.excel-row label,
.excel-row output {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 9px 12px;
    font-size: 15px;
}

.excel-row label {
    border-right: 1px solid var(--excel-line);
    font-weight: 500;
}

.excel-row label small {
    margin-left: 3px;
    color: #69717b;
    font-size: 12px;
}

.excel-row output {
    justify-content: flex-end;
    font-weight: 500;
    text-align: right;
}

.excel-row input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: var(--excel-yellow);
    color: #111;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.excel-row input:focus,
.yellow-input:focus {
    box-shadow: inset 0 0 0 2px var(--excel-navy);
}

.excel-gap {
    height: 18px;
    border-bottom: 1px solid var(--excel-line);
    background: #f7f7f7;
}

.excel-negative output {
    color: var(--excel-red);
}

.excel-inline-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--excel-line);
}

.excel-inline-inputs label {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 105px;
    align-items: center;
    min-height: 52px;
}

.excel-inline-inputs label + label {
    border-left: 1px solid var(--excel-line);
}

.excel-inline-inputs span {
    padding: 0 11px;
    font-size: 14px;
    font-weight: 500;
}

.excel-inline-inputs input {
    height: 100%;
    padding: 0 24px;
    border: 0;
    border-left: 1px solid var(--excel-line);
    background: var(--excel-yellow);
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.excel-inline-inputs em {
    position: absolute;
    right: 7px;
    color: #555;
    font-size: 12px;
    font-style: normal;
}

.excel-insurance-grid {
    margin-top: 18px;
    border-top: 1px solid var(--excel-line);
}

.excel-insurance-row {
    display: grid;
    grid-template-columns: 1.3fr .65fr 1fr;
    min-height: 46px;
    border-bottom: 1px solid var(--excel-line);
}

.excel-insurance-row span,
.excel-insurance-row em,
.excel-insurance-row output {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
}

.excel-insurance-row span,
.excel-insurance-row em {
    border-right: 1px solid var(--excel-line);
}

.excel-insurance-row em {
    justify-content: center;
    font-style: normal;
}

.excel-insurance-row output {
    justify-content: flex-end;
}

.excel-total-row {
    background: #f0f0f0;
    font-weight: 600;
}

.excel-cost-head,
.excel-cost-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 100px;
}

.excel-cost-head {
    min-height: 45px;
    background: #f2f2f2;
    border-bottom: 1px solid var(--excel-line);
}

.excel-cost-head strong {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
}

.excel-cost-head strong:first-child {
    grid-column: 1 / 3;
    border-right: 1px solid var(--excel-line);
}

.excel-cost-row {
    min-height: 48px;
    border-bottom: 1px solid var(--excel-line);
}

.excel-cost-row label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-right: 1px solid var(--excel-line);
    font-size: 15px;
}

.excel-cost-row input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid var(--excel-line);
    background: var(--excel-yellow);
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.excel-cost-row input:last-child {
    border-right: 0;
}

.excel-cost-row.simple {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.excel-note,
.excel-bottom-note {
    margin: 0;
    padding: 9px 12px;
    color: #6a717a;
    font-size: 12px;
    line-height: 1.5;
}

.excel-cost-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 52px;
    background: #f0f0f0;
}

.excel-cost-total strong,
.excel-cost-total output {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    font-size: 16px;
    font-weight: 600;
}

.excel-cost-total strong {
    justify-content: center;
    border-right: 1px solid var(--excel-line);
}

.excel-cost-total output {
    justify-content: flex-end;
}

.excel-summary {
    margin-top: 22px;
    border: 1px solid var(--excel-line);
}

.excel-summary h2 {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--excel-line);
    background: #f2f2f2;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.excel-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
    padding: 18px;
}

.excel-summary-list {
    border: 1px solid var(--excel-line);
}

.excel-summary-list > div {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    min-height: 43px;
    border-bottom: 1px solid var(--excel-line);
}

.excel-summary-list > div:last-child {
    border-bottom: 0;
}

.excel-summary-list span,
.excel-summary-list output {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
}

.excel-summary-list span {
    border-right: 1px solid var(--excel-line);
}

.excel-summary-list output {
    justify-content: flex-end;
}

.yellow-summary-row input {
    width: 100%;
    border: 0;
    background: var(--excel-yellow);
    padding: 0 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.summary-total {
    background: #efefef;
    font-weight: 600;
}

.summary-profit {
    background: #ddecff;
    color: var(--excel-blue);
    font-weight: 600;
}

.excel-tax-table {
    border: 1px solid var(--excel-line);
}

.tax-table-title {
    padding: 10px;
    background: #eef2f6;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.excel-tax-table > div:not(.tax-table-title) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 65px 65px;
    min-height: 40px;
    border-top: 1px solid var(--excel-line);
}

.excel-tax-table span,
.excel-tax-table strong,
.excel-tax-table em {
    display: flex;
    align-items: center;
    padding: 7px 9px;
    border-right: 1px solid var(--excel-line);
    font-size: 13px;
}

.excel-tax-table strong,
.excel-tax-table em {
    justify-content: center;
}

.excel-tax-table em {
    border-right: 0;
    font-style: normal;
}

.tax-table-head {
    background: #e5f4ff;
    font-weight: 600;
}

.excel-bottom-note {
    border-top: 1px solid var(--excel-line);
}

.excel-actions {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    margin-top: 20px;
}

.excel-actions button,
.excel-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.excel-actions button {
    border: 1px solid #d2d7de;
    background: #fff;
    color: #555e68;
}

.excel-actions a {
    background: var(--excel-navy);
    color: #fff;
}

@media (max-width: 700px) {
    .excel-consult-page {
        padding: 30px 14px 70px;
    }

    .excel-sheet {
        padding: 16px;
        border-radius: 18px;
    }

    .excel-consult-head h1 {
        font-size: 33px;
    }

    .excel-layout,
    .excel-summary-grid {
        grid-template-columns: 1fr;
    }

    .excel-cost-panel {
        grid-column: auto;
    }

    .excel-row label,
    .excel-row output {
        font-size: 15px;
    }

    .excel-cost-head,
    .excel-cost-row {
        grid-template-columns: minmax(0, 1fr) 140px 72px;
    }

    .excel-cost-row.simple,
    .excel-cost-total {
        grid-template-columns: minmax(0, 1fr) 212px;
    }
}

@media (max-width: 430px) {
    .excel-sheet {
        padding: 12px;
    }

    .excel-row {
        grid-template-columns: minmax(0, 1.25fr) minmax(105px, .85fr);
    }

    .excel-row label,
    .excel-row output,
    .excel-cost-row label {
        padding: 8px;
        font-size: 14px;
    }

    .excel-cost-head,
    .excel-cost-row {
        grid-template-columns: minmax(0, 1fr) 108px 58px;
    }

    .excel-cost-row.simple,
    .excel-cost-total {
        grid-template-columns: minmax(0, 1fr) 166px;
    }

    .excel-inline-inputs {
        grid-template-columns: 1fr;
    }

    .excel-inline-inputs label + label {
        border-top: 1px solid var(--excel-line);
        border-left: 0;
    }

    .excel-actions {
        grid-template-columns: 1fr;
    }
}
