.inventory-nav summary {
    cursor: pointer;
    list-style-position: inside;
    border-radius: 999px;
    padding: .65rem .95rem;
    margin-top: .3rem;
    font-weight: 700;
}
.inventory-nav summary .nav-icon { margin-right: .35rem; }
.inventory-nav > a { padding-block: .53rem; margin: .15rem 0; font-size: .91rem; }
.inventory-help { color: #45625f; max-width: 68ch; }
.inventory-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.inventory-filters > div { min-width: min(12rem, 100%); }
.inventory-filters .action-link { align-self: center; }
.inventory-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1rem; }
.inventory-summary dd { margin: 0; overflow-wrap: anywhere; }
.inventory-note { white-space: pre-wrap; }
.inventory-total { max-width: 27rem; }
.matrix-scroll:focus-visible { outline-offset: 2px; }
.matrix-table { min-width: 51.75rem; }
.matrix-table th { min-width: 5.45rem; vertical-align: middle; }
.matrix-table th:first-child { min-width: 7.15rem; }
.matrix-table tbody th, .matrix-table thead th:first-child, .matrix-table tfoot th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: #f1f8f7;
}
.matrix-table thead th { background: #f1f8f7; }
.matrix-table tfoot { font-weight: 800; --bs-table-bg: #f7edd0; }
.matrix-table tfoot th:first-child { background: #f7edd0; }
.matrix-input { min-width: 4.2rem; text-align: end; }
.receipt-sku { min-width: 16rem; }
.quantity-input { min-width: 6rem; }
.request-preview { display: block; width: 100%; height: auto; border: 1px solid #bacfcd; border-radius: .75rem; }
.proof-page { background: #f4f4f4; color: #000; text-align: center; padding: 1rem; }
.thermal-proof { margin: 0 auto 1rem; background: #fff; padding: 3mm; text-align: left; font: 10pt/1.25 ui-monospace, monospace; overflow-wrap: anywhere; }
.thermal-58 { width: 58mm; }
.thermal-80 { width: 80mm; }
.thermal-proof header { text-align: center; border-bottom: 1px dashed; margin-bottom: 2mm; }
.thermal-proof h1 { font: bold 12pt/1.25 ui-monospace, monospace; margin: 0; }
.thermal-proof p { margin: 0 0 2mm; }
.thermal-proof ul { list-style: none; padding: 0; margin: 0 0 2mm; }
.thermal-proof li { border-top: 1px dashed; padding: 2mm 0; break-inside: avoid; }

@media (max-width: 575.98px) {
    .inventory-filters > div { flex: 1 1 100%; }
    .inventory-summary { grid-template-columns: 1fr; gap: .1rem; }
    .inventory-summary dd + dt { margin-top: .4rem; }
}
@media print {
    @page { margin: 0; }
    .proof-page { background: #fff; padding: 0; }
    .thermal-proof { margin: 0; }
    .proof-print { display: none; }
}


.receipt-mobile-label { display: none; }
@media (max-width: 575.98px) {
    .receipt-edit-table, .receipt-edit-table tbody, .receipt-edit-table tr, .receipt-edit-table td { display: block; }
    .receipt-edit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .receipt-edit-table tr { margin: .6rem 0; padding: .4rem; border: 1px solid #dbe9e7; border-radius: .8rem; }
    .receipt-edit-table td { padding: .35rem; border: 0; }
    .receipt-edit-table td:empty { display: none; }
    .receipt-edit-table .receipt-sku, .receipt-edit-table .quantity-input { min-width: 0; }
    .receipt-mobile-label { display: block; margin-bottom: .25rem; font-weight: 650; }
}

.matrix-mobile-total { display: none; }
@media (max-width: 575.98px) {
    .matrix-mobile-total { display: block; margin: .8rem 0 0; font-weight: 750; }
}

.thermal-58 { padding-inline: 2.5mm; font-size: 9pt; }
.thermal-80 { padding-inline: 3.5mm; font-size: 10pt; }
.thermal-proof .area-activity-detail h2 { font-size: 1em; }
