/* Stampa: lista da riordinare e giacenze. Solo inchiostro nero, niente cornice dell'app. */

@page { margin: 14mm 12mm; }

:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --muted: #333; --line: #999; --line-strong: #555;
  --link: #000; --soft: #fff; --tint: #fff; --below: #000; --in: #000; --out: #000; --warn: #000; --shadow: none;
  color-scheme: light;
}
body { background: #fff; color: #000; font-size: 11pt; }
.side, .tabbar, .toasts, .skip-link, .filters, .page-actions, .card-actions, .td-actions, .th-actions,
.btn, .icon-btn, .info-btn, .step-q, .td-step, .th-step, .mag-panel, .no-print, .more-btn, .count-line, dialog, .mobile-top, .art-actions, .art-foot { display: none !important; }
.shell { display: block !important; }
.main { padding: 0 !important; }
a { color: #000; text-decoration: none; }
.print-only { display: block !important; }
.print-brand { display: flex !important; align-items: center; gap: 12pt; margin-bottom: 10pt; font: 600 9pt var(--font-d); letter-spacing: .2em; text-transform: uppercase; }
.print-brand .brand-logo { height: 34pt; }
.table-wrap, .panel-sec, .card, .fig { box-shadow: none !important; }
.page-title { font-size: 20pt; }
.page-sub { color: #333; }

/* Giacenze: se esiste l'area di stampa, stampa solo quella */
.mag-list:has(.print-area:not(:empty)) > :not(.print-area) { display: none !important; }
.print-area h1 { font: 700 18pt var(--font-c); margin-bottom: 4pt; }
.print-area p { margin-bottom: 8pt; }
.print-table, .grid { width: 100%; border-collapse: collapse; font-size: 10pt; }
.print-table th, .print-table td, .grid th, .grid td { border: 0.5pt solid #777; padding: 3pt 5pt; text-align: left; }
.print-table .num, .grid .num { text-align: right; }
.print-table thead, .grid thead { display: table-header-group; }
.grid thead th { position: static; background: #eee !important; color: #000; }
.print-table tr, .grid tr { break-inside: avoid; }
.print-table td:last-child { width: 18mm; }
.table-wrap { border: 0; overflow: visible; }

/* Riordino */
.reorder-group { break-inside: avoid-page; margin-bottom: 10pt; }
.reorder-group .sec-title { font-size: 14pt; margin-bottom: 4pt; }
.reorder-group .grid tr.is-below td:first-child { box-shadow: none; }
.sub { color: #333; }
.empty { text-align: left; padding: 0; }
