#inventory-print-panel { margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inventory-heading,.inventory-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inventory-heading h3 { margin: 0; }
#inventory-print-panel p { margin: 12px 0; }
.inventory-actions { justify-content: flex-start; flex-wrap: wrap; }
.inventory-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.inventory-options label { display: grid; gap: 6px; }
.inventory-options select { width: 100%; min-width: 0; }
#inventory-preview { overflow-x: auto; max-height: 480px; margin-top: 20px; }
#inventory-preview table,#inventory-print-root table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#inventory-preview th,#inventory-preview td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
#inventory-preview th { position: sticky; top: 0; background: var(--surface); }
#inventory-preview svg,#inventory-print-root svg { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
#inventory-preview td:first-child,#inventory-print-root td:first-child { font-variant-numeric: tabular-nums; }
#inventory-preview td strong,#inventory-preview td strong + span,#inventory-print-root td strong,#inventory-print-root td strong + span { display: block; }
#inventory-print-root { display: none; }
@media(max-width:600px) { .inventory-options { grid-template-columns: 1fr; } #inventory-print-panel { padding: 14px; } #inventory-preview table { min-width: 480px; } }
@page inventory-a4 { size: A4 portrait; margin: 12mm; }
@media print {
 body.printing-inventory { background: #fff !important; color: #000 !important; }
 body.printing-inventory > :not(#inventory-print-root) { display: none !important; }
 body.printing-inventory #inventory-print-root { display: block !important; page: inventory-a4; color: #000; background: #fff; font: 10pt/1.35 Arial,sans-serif; }
 #inventory-print-root h1 { font-size: 17pt; margin: 0 0 3mm; }
 #inventory-print-root h1,#inventory-print-root p,#inventory-print-root th,#inventory-print-root td { color: #000; }
 #inventory-print-root p { font-size: 9pt; margin: 0 0 5mm; }
 #inventory-print-root thead { display: table-header-group; }
 #inventory-print-root tr { break-inside: avoid; page-break-inside: avoid; }
 #inventory-print-root th,#inventory-print-root td { border-bottom: .2mm solid #aaa; padding: 2.5mm 2mm; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
 #inventory-print-root th:first-child { width: 25mm; }
 #inventory-print-root svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
