.EstimateRequestSheet {
    width: min(100%, 1050px);
    margin: 0 auto;
    padding: 36px 40px 40px;
    box-shadow: 0 18px 48px rgba(15, 35, 65, 0.12);
    border: 1px solid #d8dde4;
    background-color: #fff;
}

.EstimateRequestSheetHeader {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2e2e2e;
}

.EstimateRequestSheetTitle {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.28em;
}

.EstimateRequestSheetDate {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

.EstimateRequestSheetDate .Label {
    color: var(--SubText1);
    font-size: 0.88em;
}

.EstimateRequestSheetDate .Value {
    padding-bottom: 6px;
    border-bottom: 1px solid #2e2e2e;
    font-weight: 600;
    text-align: right;
}

.EstimateRequestSheetIssuerNote {
    margin-top: 16px;
    color: var(--MainText2);
    font-size: 0.98rem;
    font-weight: 500;
    text-align: left;
}

.EstimateRequestSheetInfoGrid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-top: 28px;
}

.EstimateRequestInfoPanel {
    display: grid;
    gap: 14px;
}

.EstimateRequestInfoPanel .PanelTitle {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--LineColor);
    font-size: 1.1rem;
}

.EstimateRequestInfoPanel .InfoList {
    display: grid;
    gap: 12px;
    margin: 0;
}

.EstimateRequestInfoPanel .InfoRow {
    display: grid;
    gap: 6px;
    grid-template-columns: 140px 1fr;
    align-items: start;
}

.EstimateRequestInfoPanel dt {
    color: var(--SubText1);
}

.EstimateRequestInfoPanel dd {
    margin: 0;
    color: var(--MainText1);
    font-weight: 500;
    line-height: 1.7;
}

.EstimateRequestDetailSection {
    margin-top: 32px;
}

.EstimateRequestSheetSummary {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e2e2e;
}

.EstimateRequestSheetSummary .SummaryLabel {
    color: var(--MainText1);
    font-weight: 600;
}

.EstimateRequestSheetSummary .SummaryValue {
    margin-left: auto;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
}

.EstimateRequestSheetTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.EstimateRequestSheetTable th,
.EstimateRequestSheetTable td {
    padding: 10px 12px;
    border: 1px solid #666;
    vertical-align: top;
}

.EstimateRequestSheetTable thead th {
    font-size: 0.9em;
    color: #fff;
    background-color: #8f8f8f;
}

.EstimateRequestSheetTable .ColCode {
    width: 18%;
}

.EstimateRequestSheetTable .ColName {
    width: 38%;
}

.EstimateRequestSheetTable .ColQuantity {
    width: 10%;
}

.EstimateRequestSheetTable .ColUnitPrice,
.EstimateRequestSheetTable .ColLineTotal {
    width: 17%;
}

.EstimateRequestSheetTable .AlignRight {
    text-align: right;
}

.EstimateRequestSheetTable .EstimateRequestTaxRow td {
    font-weight: 600;
    background-color: #fafafa;
}

@media screen and (max-width: 960px) {
    .EstimateRequestSheet {
        padding: 24px 16px 28px;
    }

    .EstimateRequestSheetHeader {
        flex-direction: column;
        align-items: start;
    }

    .EstimateRequestSheetInfoGrid {
        grid-template-columns: 1fr;
    }

    .EstimateRequestInfoPanel .InfoRow {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .EstimateRequestDetailSection {
        overflow-x: auto;
    }

    .EstimateRequestSheetSummary {
        align-items: start;
        flex-direction: column;
    }

    .EstimateRequestSheetSummary .SummaryValue {
        margin-left: 0;
    }

    .EstimateRequestSheetTable {
        min-width: 760px;
    }
}

@media print {
    .EstimateRequestSheet {
        width: auto;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: #fff !important;
        background-image: none !important;
        font-size: 12px;
    }

    .EstimateRequestSheetHeader,
    .EstimateRequestInfoPanel,
    .EstimateRequestSheetSummary,
    .EstimateRequestSheetTable {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .EstimateRequestSheetHeader {
        gap: 18px;
        padding-bottom: 14px;
    }

    .EstimateRequestSheetTitle {
        font-size: 28px;
        letter-spacing: 0.18em;
    }

    .EstimateRequestSheetDate {
        gap: 4px;
        min-width: 200px;
    }

    .EstimateRequestSheetDate .Label {
        font-size: 11px;
    }

    .EstimateRequestSheetDate .Value {
        padding-bottom: 4px;
        font-size: 12px;
    }

    .EstimateRequestSheetIssuerNote {
        margin-top: 10px;
        font-size: 12px;
    }

    .EstimateRequestSheetInfoGrid {
        gap: 18px;
        max-width: none;
        margin-top: 20px;
    }

    .EstimateRequestInfoPanel {
        gap: 10px;
    }

    .EstimateRequestInfoPanel .PanelTitle {
        padding-bottom: 6px;
        font-size: 14px;
    }

    .EstimateRequestInfoPanel .InfoList {
        gap: 8px;
    }

    .EstimateRequestInfoPanel .InfoRow {
        gap: 4px;
    }

    .EstimateRequestInfoPanel dt,
    .EstimateRequestInfoPanel dd {
        font-size: 12px;
        line-height: 1.45;
    }

    .EstimateRequestDetailSection {
        margin-top: 24px;
        overflow: visible;
    }

    .EstimateRequestSheetSummary {
        gap: 12px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .EstimateRequestSheetSummary .SummaryLabel {
        font-size: 12px;
    }

    .EstimateRequestSheetSummary .SummaryValue {
        font-size: 26px;
    }

    .EstimateRequestSheetTable th,
    .EstimateRequestSheetTable td {
        padding: 7px 8px;
    }

    .EstimateRequestSheetTable thead {
        display: table-header-group;
    }

    .EstimateRequestSheetTable thead th {
        color: #000 !important;
        font-size: 11px;
        line-height: 1.35;
    }

    .EstimateRequestSheetTable td {
        font-size: 12px;
        line-height: 1.45;
    }

    .EstimateRequestSheetTable tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
