@page {
    size: letter portrait;
    margin: .5in .55in;
}

:root {
    --sheet-ink: #193128;
    --sheet-muted: #54685d;
    --sheet-green: #087b42;
    --sheet-line: #dce5de;
    --sheet-tint: #f2f7f3;
    font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    color: var(--sheet-ink);
    line-height: 1.45;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #edf3ee;
}

.sheet-preview {
    max-width: 964px;
    margin: 0 auto;
    padding: 24px 20px 44px;
}

.sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sheet-back, .sheet-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--sheet-line);
    border-radius: 5px;
    background: #fff;
    color: var(--sheet-green);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.sheet-back { padding-left: 11px; }
.sheet-back:hover { border-color: var(--sheet-green); }

.sheet-print {
    border-color: var(--sheet-green);
    background: var(--sheet-green);
    color: #fff;
    cursor: pointer;
}

.sheet-print:hover {
    background: #086135;
    border-color: #086135;
}

.sheet-toolbar :focus-visible {
    outline: 2px solid var(--sheet-green);
    outline-offset: 3px;
}

.sheet-toolbar svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-sheet {
    padding: 30px 34px 34px;
    border: 1px solid var(--sheet-line);
    border-top: 4px solid var(--sheet-green);
    background: #fff;
    box-shadow: 0 8px 28px #1931280b;
}

.sheet-brand, .sheet-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sheet-brand {
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sheet-line);
    font-size: 13px;
}

.sheet-logo {
    width: 56px;
    height: auto;
    flex: none;
}

.sheet-company {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
}

.sheet-brand address {
    color: var(--sheet-muted);
    font-style: normal;
}

.sheet-contact {
    flex: none;
    text-align: right;
}

.sheet-contact a {
    display: block;
    color: var(--sheet-green);
    text-decoration: none;
}

.sheet-contact a:hover { text-decoration: underline; }

.sheet-summary {
    display: grid;
    align-items: center;
    gap: 24px;
    margin: 24px 0 23px;
}

.sheet-with-photo { grid-template-columns: minmax(0, 1fr) 228px; }

.sheet-kicker {
    margin: 0 0 5px;
    color: var(--sheet-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sheet-details h1 {
    margin: 0;
    color: #163c27;
    font-size: clamp(25px, 3.6vw, 37px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.sheet-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 15px 0 0;
}

.sheet-facts dt {
    color: var(--sheet-muted);
    font-size: 12px;
    font-weight: 600;
}

.sheet-facts dd {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.sheet-photo {
    display: block;
    width: 100%;
    height: 156px;
    padding: 6px;
    border: 1px solid var(--sheet-line);
    background: #fff;
    object-fit: contain;
}

.sheet-table-wrap { overflow-x: auto; }

.sheet-inventory {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.sheet-inventory caption {
    padding: 0 0 9px;
    color: #163c27;
    font-size: 19px;
    font-weight: 700;
    text-align: left;
}

.sheet-inventory th, .sheet-inventory td {
    padding: 8px 9px;
    border-bottom: 1px solid var(--sheet-line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.sheet-inventory thead th {
    border-top: 2px solid var(--sheet-green);
    background: var(--sheet-tint);
    color: #163c27;
    font-size: 12px;
}

.sheet-inventory tbody th { font-weight: 650; }

@media screen and (max-width: 640px) {
    .sheet-preview { padding: 14px 12px 28px; }
    .product-sheet { padding: 18px 16px 22px; }
    .sheet-brand { flex-wrap: wrap; gap: 12px; }
    .sheet-logo { width: 47px; }
    .sheet-contact { text-align: left; }
    .sheet-summary { gap: 15px; margin: 19px 0; }
    .sheet-with-photo { grid-template-columns: minmax(0, 1fr); }
    .sheet-photo { width: min(100%, 228px); height: 133px; }
    .sheet-inventory { min-width: 465px; font-size: 12px; }
    .sheet-inventory th, .sheet-inventory td { padding: 7px 5px; }
    .sheet-inventory thead th { padding-right: 1px; font-size: 11px; }
}

@media print {
    :root {
        color: #141414;
        font-family: Arial, "Microsoft YaHei", sans-serif;
        font-size: 10pt;
        line-height: 1.3;
    }

    body, .product-sheet { background: #fff; }

    .sheet-toolbar { display: none; }

    .sheet-preview, .product-sheet {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .sheet-brand, .sheet-summary {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .sheet-brand {
        gap: 14pt;
        padding-bottom: 9pt;
        border-bottom: 1pt solid #6d7a71;
        font-size: 9pt;
    }

    .sheet-identity { gap: 9pt; }
    .sheet-logo { width: .55in; }
    .sheet-company { font-size: 10pt; }
    .sheet-brand address, .sheet-contact a { color: #303030; }

    .sheet-summary {
        gap: 14pt;
        margin: 12pt 0 13pt;
    }

    .sheet-with-photo { grid-template-columns: minmax(0, 1fr) 1.85in; }
    .sheet-kicker { margin-bottom: 3pt; font-size: 8.5pt; }
    .sheet-details h1 { color: #141414; font-size: 21pt; line-height: 1.12; }
    .sheet-facts { gap: 6pt 14pt; margin-top: 7pt; }
    .sheet-facts dt { color: #383838; font-size: 8.5pt; }
    .sheet-facts dd { margin-top: 1pt; font-size: 10pt; }
    .sheet-photo { height: 1.25in; padding: 3pt; border: .5pt solid #c6cbc8; }

    .sheet-table-wrap { overflow: visible; }

    .sheet-inventory {
        min-width: 0;
        color: #141414;
        font-size: 9.25pt;
        line-height: 1.3;
    }

    .sheet-inventory caption {
        padding-bottom: 5pt;
        color: #141414;
        font-size: 12pt;
        break-after: avoid;
        page-break-after: avoid;
    }

    .sheet-inventory thead { display: table-header-group; }
    .sheet-inventory tr { break-inside: avoid; page-break-inside: avoid; }

    .sheet-inventory th, .sheet-inventory td {
        padding: 2.75pt 5pt;
        border-bottom: .5pt solid #acb6ae;
    }

    .sheet-inventory thead th {
        border-top: .9pt solid #56645b;
        border-bottom: .9pt solid #56645b;
        background: #fff;
        color: #141414;
        font-size: 9pt;
    }
}
