:root {
  font-family: "Inter", "DM Sans", "Segoe UI", sans-serif;
  color: #1e302b;
  background: #f5f7f4;
  font-synthesis: none;
  --green: #14704e;
  --dark: #12392e;
  --muted: #576e64;
  --border: #dce7df;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #33906c; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -.047em; line-height: 1.1; }
h2 { font-size: 1.05rem; letter-spacing: -.018em; }
h3 { font-size: 1.05rem; }
p, small { color: var(--muted); }
small { display: block; font-size: .78rem; margin-top: .18rem; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0,1fr); }
.sidebar { background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 24px 15px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: grid; justify-items: start; gap: 5px; padding: 0 8px 22px; }
.brand small, .account small { color: #b7d1c3; font-weight: 450; letter-spacing: 0; }
.wordmark { display: block; width: min(190px, 100%); height: auto; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px; font-size: .9rem; color: #deebe4; }
nav a span { width: 19px; font-size: 1.18rem; text-align: center; line-height: 1; color: #b5d8c4; }
nav a:hover, nav a[aria-current] { color: #fff; background: #285544; }
nav a[aria-current] { box-shadow: inset 3px 0 #b9eab1; }
.account { margin-top: auto; display: flex; align-items: center; gap: 8px; border-top: 1px solid #426355; padding: 14px 0 0; font-size: .78rem; }
.account div:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.account button { color: #def0e3; margin-left: auto; padding-inline: 5px; }
.account button:hover { background: #285544; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #497661; flex: 0 0 30px; }
.topbar { padding: 15px clamp(16px,3vw,42px); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: white; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .82rem; min-height: 58px; }
.topbar b { margin: 0 6px; color: #9ab0a3; }
main { max-width: 1550px; margin: 0 auto; padding: 32px clamp(14px,3vw,42px) 44px; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.heading p { margin-top: 9px; line-height: 1.45; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary,.secondary,.subtle { display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; padding: 8px 12px; min-height: 36px; font-size: .82rem; font-weight: 650; border: 1px solid transparent; }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: #105b40; }
.secondary { color: #254f3d; border-color: #d1e0d5; background: #fff; }
.secondary:hover, .subtle:hover { background: #eef6ef; }
.subtle { color: var(--green); background: transparent; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 17px; display: grid; gap: 5px; font-size: .87rem; }
.metric-icon,.product-icon { display: grid; place-items: center; color: #22684a; background: #e7f3e9; width: 35px; height: 35px; border-radius: 9px; font-size: 1.09rem; margin-bottom: 4px; }
.metric strong { font-size: clamp(1.22rem,2.2vw,1.88rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 17px; min-width: 0; }
.panel-head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .86rem; }
th { color: #446153; background: #f2f7f2; font-size: .77rem; white-space: nowrap; }
th, td { padding: 11px 15px; border-bottom: 1px solid #eaf0eb; }
td { overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
td .secondary { margin: 2px 0; }
.product { min-width: 125px; display: flex; align-items: center; gap: 9px; }
.product img, .product-icon { width: 35px; height: 35px; flex: 0 0 35px; object-fit: cover; border-radius: 7px; margin: 0; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; color: #365747; background: #eaf1ec; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.badge.warn { color: #825414; background: #fff0cf; }
.badge.good { color: #21623f; background: #dff2e2; }
.empty { padding: 23px 18px; border-top: 1px solid #edf1ee; font-size: .89rem; }
.filters { padding: 8px 18px 16px; display: flex; gap: 9px; align-items: end; }
.report-filters { padding: 15px; flex-wrap: wrap; }
.filters > input { flex: 1; }
label { display: grid; gap: 6px; color: #324a3f; font-size: .85rem; font-weight: 600; min-width: 0; }
input,select,textarea { color: #1e302b; background: #fff; min-height: 37px; max-width: 100%; min-width: 0; border: 1px solid #cbdacf; border-radius: 8px; padding: 7px 9px; }
input::placeholder { color: #60746a; }
.check { display: inline-flex; align-items: center; margin-right: 10px; }
.check input { min-height: auto; }
.directory-contact { padding-block: 3px; }
#contact-editors { display: grid; gap: 10px; }
.contact-options,.recipient-header { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.contact-options button,.recipient-header small { margin-left: auto; }
.selection-list { max-height: 180px; overflow: auto; margin-top: 7px; border-top: 1px solid var(--border); }
.recipient-group { padding: 8px 5px; border-bottom: 1px solid var(--border); }
.recipient-group > strong { font-size: .85rem; }
.selection-row { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 4px; overflow-wrap: anywhere; }
.selection-row input { min-height: auto; flex: 0 0 auto; }
.article-photo-heading { font-size: .85rem; margin-top: 8px; }
.message-article { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.message-article label { flex: 1 1 150px; }
.message-text { white-space: pre-wrap; }
.group-branch { display:flex; align-items:center; min-height:32px; white-space:nowrap; }
.group-root .group-node { font-weight:750; color:var(--dark); }
.branch-guide { display:block; flex:0 0 24px; width:24px; align-self:stretch; position:relative; }
.branch-through::before,.branch-junction::before { content:""; position:absolute; left:10px; top:-13px; bottom:-13px; border-left:1px solid #9db5a7; }
.branch-junction::after { content:""; position:absolute; left:10px; right:3px; top:50%; border-top:1px solid #9db5a7; }
.branch-last::before { bottom:50%; }
.group-node { padding:5px 8px; border-radius:6px; background:#f0f6f1; }
.invoice-previews { display:flex; gap:8px; flex-wrap:wrap; }
.invoice-preview { display:flex; flex-direction:column; width:110px; overflow-wrap:anywhere; }
.invoice-preview img { width:90px; height:75px; object-fit:contain; }
.invoice-full { width:100%; height:auto; }
.cash-voucher { min-height:440px; }
.voucher-signature { margin-top:25px; text-align:right; }
.signature-space { height:65px; }
@page cashVoucher { size:A4 portrait; margin:8mm; }
@media print {
 body:has(.cash-voucher-dialog[open]) { page:cashVoucher; }
 dialog.cash-voucher-dialog[open] { page:cashVoucher; width:194mm; margin:0; padding:0; max-height:none; overflow:visible; }
 .cash-voucher { padding:3mm; height:139mm; min-height:0; display:flex; flex-direction:column; gap:2mm; break-inside:avoid; }
 .voucher-copies { display:block; }
 .voucher-copies .cash-voucher:first-child { border-bottom:1px dashed #999; }
 .cash-voucher h2,.cash-voucher h3 { font-size:12pt; }
 .cash-voucher th,.cash-voucher td { padding:2mm; font-size:10pt; }
 .cash-voucher .signature-space { height:12mm; }
 .voucher-signature { margin-top:auto; }
}
.article-photo-editor { display:grid; gap:10px; }
.code-scanner { display:block; width:100%; max-height:320px; object-fit:contain; background:#17251f; }
.label-dialog { width:min(900px,96vw); }
.label-sheet { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; }
.stock-label { border:1px dashed #b5bdb8; padding:6px; min-width:0; text-align:center; break-inside:avoid; }
.stock-label strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.stock-label-codes { display:flex; align-items:center; justify-content:center; gap:3px; }
.stock-label-codes .label-barcode { width:65%; height:75px; object-fit:contain; }
.stock-label-codes .label-qr { width:30%; height:75px; object-fit:contain; }
@page labelSheet { size:A4 portrait; margin:10mm; }
@page labelSheetA5 { size:A5 portrait; margin:8mm; }
@media print {
 body:has(dialog.label-dialog[open]) > :not(dialog) { display:none !important; }
 dialog.label-dialog[open] > :not(#label-sheets) { display:none !important; }
 dialog.label-dialog[open] #label-sheets { display:block !important; margin:0 !important; padding:0 !important; }
 dialog.label-dialog[open]::backdrop { display:none !important; }
 html:has(.label-dialog[open]),body:has(.label-dialog[open]) { margin:0 !important; padding:0 !important; height:auto !important; overflow:visible !important; }
 dialog.label-dialog[open] { page:labelSheet; width:190mm; max-width:none; max-height:none !important; height:auto; overflow:visible !important; margin:0 !important; padding:0 !important; position:static; }
 dialog.label-dialog.labels-a5[open] { page:labelSheetA5; width:132mm; }
 .label-controls { display:none !important; }
 .label-sheet { width:190mm; height:277mm; padding:0; gap:0; grid-template-columns:repeat(2,95mm); grid-template-rows:repeat(6,46mm); break-after:page; }
 .label-sheet:last-child { break-after:auto; }
 .labels-a5 .label-sheet { width:132mm; height:194mm; grid-template-columns:repeat(2,66mm); grid-template-rows:repeat(3,64mm); }
 .stock-label { padding:2mm; overflow:visible; min-width:0; box-sizing:border-box; }
 .stock-label strong { font-size:10pt; max-height:10mm; overflow:hidden; }
 .stock-label small { font-size:8pt; }
 .stock-label-codes { width:100%; gap:1mm; }
 .stock-label-codes .label-barcode { width:65%; max-width:59mm; height:25mm; flex-shrink:1; min-width:0; object-fit:contain; }
 .stock-label-codes .label-qr { width:30%; max-width:25mm; height:25mm; flex-shrink:1; min-width:0; object-fit:contain; }
}
.article-photo-preview { width:120px; height:120px; object-fit:contain; border:1px solid var(--border); border-radius:8px; }
#article-camera-video { display:block; width:100%; max-height:300px; object-fit:contain; background:#17251f; margin-bottom:8px; }
fieldset { margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
legend { color: var(--muted); font-size: .82rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: start; }
.result,.cart-line,.total { padding: 10px 14px; display: flex; align-items: center; gap: 9px; border-top: 1px solid #eaf0eb; font-size: .83rem; }
.result .product,.cart-line > div { flex: 1; }
.result-price { text-align: right; }
.cart-line input { width: 64px; }
.cart-line button { padding: 4px; }
.total { justify-content: space-between; background: #eef7ee; font-size: 1rem; padding: 14px; }
.panel-form { display: grid; gap: 10px; padding: 15px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; padding: 0 15px 15px; }
.channel-grid > div { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
dialog { border: 1px solid var(--border); border-radius: 14px; width: min(560px, 94vw); max-height: 90vh; padding: 0; color: inherit; box-shadow: 0 16px 65px #102c2140; }
dialog::backdrop { background: #122a2160; }
.dialog-head,.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; }
.dialog-head { border-bottom: 1px solid var(--border); }
.dialog-actions { justify-content: end; border-top: 1px solid var(--border); }
.dialog-form,.print-body { padding: 14px 16px; display: grid; gap: 11px; }
.dialog-form .dialog-actions { margin: 0 -16px -14px; }
.stock-hint { padding: 10px; background: #eef7ee; border-radius: 8px; }
.receipt-alert { padding: 10px 16px; color: #825414; background: #fff0cf; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.labels img { max-width: 100%; max-height: 152px; object-fit: contain; }
.labels > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.relay-qr { text-align: center; }
.relay-qr img { width: min(290px, 100%); height: auto; image-rendering: pixelated; }
.relay-qr p { font-size: .85rem; }
.form-error { color: #a42b29; font-size: .85rem; }
.form-error:empty { display: none; }
#notice { display: none; position: fixed; bottom: 20px; right: 20px; max-width: min(420px, 88vw); border-radius: 9px; padding: 12px 16px; background: var(--dark); color: white; z-index: 3; }
#notice.visible { display: block; }
#notice.error { background: #8f2926; }
.auth { min-height: 100vh; padding: clamp(20px,5vw,72px); color: #f3faf3; background: radial-gradient(ellipse at 10% 100%,#276951,transparent 63%),#12392e; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 750; }
.auth-brand .wordmark { width: min(240px, 100%); }
.auth-layout { margin: min(13vh,115px) auto 0; display: grid; grid-template-columns: 1fr minmax(260px,390px); gap: clamp(25px,8vw,130px); align-items: center; max-width: 1120px; }
.auth-intro h1 { font-size: clamp(2.2rem,6vw,5.2rem); margin: 12px 0 18px; }
.auth-intro p { color: #d9eee1; line-height: 1.6; max-width: 420px; }
.eyebrow { color: #c0ecad; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
.auth-features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.auth-features span { border: 1px solid #94bba6; padding: 6px 10px; border-radius: 99px; font-size: .8rem; }
.auth-form { color: #1e302b; margin: 0; padding: clamp(16px,3vw,30px); }
.auth-form h2 { font-size: 1.35rem; }
.auth-form p { margin: 8px 0 15px; }
.auth-form form { display: grid; gap: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1050px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 208px minmax(0,1fr); }
}
@media (max-width: 720px) {
  .layout,.auth-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 12px; }
  .brand { padding: 0 0 10px; }
  .brand .wordmark { width: 130px; }
  nav { display: flex; flex-wrap: wrap; gap: 3px; }
  nav a { padding: 8px; font-size: .76rem; }
  .account { margin-top: 10px; padding-top: 7px; }
  .heading { align-items: start; flex-direction: column; }
  main { padding-top: 22px; }
  .auth-form { margin-top: 20px; }
  .auth-layout { margin-top: 36px; }
}
@media print {
  body { background: white; color: black; }
  .layout { display: block; }
  .sidebar,.topbar,.actions,.report-filters,#notice,button { display: none !important; }
  main { padding: 0; }
  .panel,.metric { border: 1px solid #aaa; break-inside: avoid; }
  body:has(dialog[open]) #app { display: none; }
  dialog[open] { position: static; width: 100%; max-width: none; max-height: none; border: 0; box-shadow: none; }
  dialog::backdrop,.dialog-head,.dialog-actions,.receipt-alert { display: none; }
  thead { display: table-header-group; }
}
.receipt-logo { display:block; max-width:150px; max-height:70px; object-fit:contain; margin:auto; }
@page receipt80 { size:80mm 297mm; margin:3mm; }
@page receipt58 { size:58mm 297mm; margin:2mm; }
@page receiptA5 { size:A5; margin:10mm; }
@page receiptA4 { size:A4; margin:15mm; }
@media print {
  dialog.receipt-ticket80 { page:receipt80; width:74mm; }
  dialog.receipt-ticket58 { page:receipt58; width:54mm; }
  dialog.receipt-a5 { page:receiptA5; }
  dialog.receipt-a4 { page:receiptA4; }
  dialog[class*="receipt-ticket"] .receipt-body { padding:0; gap:5px; }
  dialog[class*="receipt-ticket"] table { font-size:9px; table-layout:fixed; }
  dialog[class*="receipt-ticket"] th, dialog[class*="receipt-ticket"] td { padding:4px 2px; white-space:normal; }
  dialog[class*="receipt-ticket"] h3, dialog[class*="receipt-ticket"] p,
  dialog[class*="receipt-ticket"] .total { font-size:11px; }
  dialog[class*="receipt-ticket"] .total { padding:6px 2px; }
  dialog[class*="receipt-ticket"] .table-wrap { overflow:visible; }
}

.registration { max-width:620px; margin:24px auto; }


.report-document .panel-head { background:#edf4ee; border-bottom:1px solid var(--border); }
.report-document td:last-child,.report-document th:last-child { text-align:right; }
.report-meta { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; color:#405c50; font-size:.85rem; }
.report-signatures { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:25px; margin-top:30px; }
.report-signature { min-width:220px; text-align:center; padding:12px; break-inside:avoid; }
.report-signature p { margin-bottom:8px; }
@media print {
 .report-signatures { margin-top:10mm; }
 .report-signature { min-width:65mm; border-top:1px solid #9aaa9f; }
}
.report-meta .receipt-logo { max-width:110px; max-height:50px; margin:0; }
.report-document tfoot td { font-weight:750; background:#dcece2; border-top:2px solid #285544; }
.report-document tbody tr:nth-child(even) { background:#f4f8f5; }
.report-filters { align-items:end; }
.report-filters label { flex:1 1 170px; }
@page reportPage { size:A4 landscape; margin:12mm; }
@media print {
 body:has(.report-document) { page:reportPage; font-size:10pt; }
 body:has(.report-document) .heading { display:block; margin-bottom:7mm; }
 body:has(.report-document) h1 { font-size:18pt; }
 .report-document .panel { break-inside:auto; border:0; margin-bottom:6mm; }
 .report-document .panel-head { padding:3mm 0; break-after:avoid; }
 .report-document .table-wrap { overflow:visible; }
 .report-document .table-wrap { max-height:none !important; height:auto !important; }
 .report-document { overflow:visible !important; }
 body:has(.report-document),body:has(.report-document) .work,body:has(.report-document) main { height:auto !important; max-height:none !important; overflow:visible !important; }
 .report-document .panel { overflow:visible !important; border-radius:0; }
 .report-document thead { display:table-header-group; }
 .report-document tfoot { display:table-row-group; }
 .report-document th { white-space:normal !important; background:#dcece2; font-weight:750; color:#163c2c; }
 .report-document table { width:100%; border-collapse:collapse; table-layout:auto; }
 .report-document td { overflow-wrap:anywhere; }
 .report-meta { border-top:2px solid #285544; border-bottom:1px solid #a3b7ab; margin-bottom:5mm; padding:3mm 0; }
 .report-document table { font-size:9pt; }
 .report-document th,.report-document td { padding:2mm; border:1px solid #aaa; }
 .report-document tr { break-inside:avoid; }
}
/* Financial reports: shared screen and print presentation. */
.report-letterhead { display:flex; align-items:center; gap:22px; padding:22px 0; margin-bottom:22px; border-top:4px solid #17664e; border-bottom:1px solid #a5b9af; }
.report-letterhead img { width:90px; max-height:75px; object-fit:contain; }
.report-letterhead h2 { font-size:1.65rem; margin:5px 0 9px; color:#173d30; }
.report-letterhead p { margin:3px 0; font-size:.88rem; }
.report-store { font-size:.9rem !important; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.report-issued { margin-left:auto; text-align:right; color:#52665e; font-size:.8rem; line-height:1.7; }
.report-overview { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.report-document table { border-collapse:collapse; width:100%; }
.report-document th,.report-document td { border:1px solid #bbc9c1; padding:10px 12px; vertical-align:top; line-height:1.45; }
.report-document th { background:#e8f0ec; color:#193f30; font-weight:700; }
.report-document .report-number { text-align:right !important; font-variant-numeric:tabular-nums; white-space:nowrap; }
.report-document td:last-child,.report-document th:last-child { text-align:left; }
.report-document tfoot td { border-top:2px solid #17664e; font-weight:750; background:#e1eee7; }
.report-document .panel { border:0; border-radius:0; overflow:visible; }
.report-document .panel-head { padding:12px 0; background:none; border:0; }
.report-document .panel-head h2 { font-size:1rem; color:#173d30; }
.report-calculation,.report-row-count { color:#52665e; font-size:.8rem; line-height:1.6; }
.report-voucher-actions { padding:12px 0; flex-wrap:wrap; }
@media (max-width:900px) { .report-overview { grid-template-columns:1fr; } .report-letterhead { flex-wrap:wrap; } }
@media print {
 body:has(.report-document) { font-family:Arial,sans-serif; color:#182c24; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 body:has(.report-document) main > .heading { display:none; }
 .report-letterhead { padding:0 0 5mm; margin-bottom:4mm; border-top:0; border-bottom:2px solid #17664e; gap:5mm; break-inside:avoid; }
 .report-letterhead img { width:20mm; max-height:16mm; }
 .report-letterhead h2 { font-size:18pt; margin:1mm 0 2mm; }
 .report-letterhead p { font-size:9pt; }
 .report-store { font-size:10pt !important; }
 .report-issued { font-size:8pt; }
 .report-overview { display:grid; grid-template-columns:1.1fr 1fr; gap:6mm; break-inside:avoid; }
 .report-document .panel { margin-bottom:4mm; }
 .report-document .panel-head { padding:0 0 2.5mm; }
 .report-document .panel-head h2 { font-size:10pt; }
 .report-document table { font-size:9pt; }
 .report-document th,.report-document td { padding:2.2mm 2.5mm; border:0.25mm solid #a6b8ad; line-height:1.35; }
 .report-document tbody tr:last-child td { border-bottom:0.25mm solid #a6b8ad; }
 .report-document .report-number { white-space:nowrap; overflow-wrap:normal; }
 .report-document tfoot { display:table-row-group; }
 .report-document .table-wrap { border:0; border-radius:0; overflow:visible !important; }
 .report-document tbody tr:nth-child(even) { background:#f2f6f3; }
 .report-document tr { break-inside:avoid; }
 .report-calculation { margin:0 0 3mm; font-size:8pt; }
 .report-signatures { margin-top:6mm; break-inside:avoid; }
 .report-signature { padding-top:10mm; font-size:9pt; border-top:0; border-bottom:1px solid #71877a; }
 .report-signature p { margin-bottom:3mm; }
}
@media print {
 .report-document th,.report-document td { padding:1.8mm 2.5mm; line-height:1.3; }
 .report-signatures { margin-top:3mm; }
 .report-signature { padding:1mm 3mm; }
 .report-signature .signature-space { height:9mm; }
 .report-signature p { margin:0 0 2mm; }
}
@media print { html:has(.report-document),body:has(.report-document) main { background:#fff; } }
.inventory-report-dialog { width:min(1400px,97vw); }
.inventory-report-dialog .report-document { padding:20px; }
.inventory-report-dialog td:not(.report-number) { white-space:pre-line; }
.inventory-report-dialog .report-number { white-space:normal; }
@media print {
 dialog.inventory-report-dialog[open] { page:reportPage; margin:0; padding:0; overflow:visible; }
 .inventory-report-dialog .report-document { padding:0; }
 .inventory-report-dialog table { font-size:8.3pt; }
 .inventory-report-dialog th,.inventory-report-dialog td { padding:1.7mm 1.8mm; }
 .inventory-report-dialog .report-number { white-space:nowrap; }
 .inventory-report-dialog .report-letterhead h2 { font-size:17pt; }
}
@page inventoryPage {
 size:A4 landscape; margin:12mm 12mm 15mm;
 @bottom-left { content:"BGestStock · Inventaire"; font:8pt Arial,sans-serif; color:#52665e; }
 @bottom-right { content:"Page " counter(page) " / " counter(pages); font:8pt Arial,sans-serif; color:#52665e; }
}
@media print {
 body:has(dialog.inventory-report-dialog[open]),dialog.inventory-report-dialog[open] { page:inventoryPage; }
 .inventory-journal table { table-layout:fixed; }
 .inventory-journal th:nth-child(1) { width:12%; }
 .inventory-journal th:nth-child(2) { width:17%; }
 .inventory-journal th:nth-child(3) { width:10%; }
 .inventory-journal th:nth-child(4),.inventory-journal th:nth-child(5),.inventory-journal th:nth-child(8),.inventory-journal th:nth-child(9) { width:5%; }
 .inventory-journal th:nth-child(6),.inventory-journal th:nth-child(7) { width:6%; }
 .inventory-journal th:nth-child(10) { width:10%; }
 .inventory-journal th:nth-child(11) { width:19%; }
 .inventory-journal td:nth-child(10) { overflow-wrap:normal; word-break:normal; }
}
@media print {
 .inventory-journal th,.inventory-journal td { font-size:8pt; line-height:1.2; padding:1.3mm 1.6mm; }
 .inventory-journal td:nth-child(10) { overflow-wrap:break-word; }
}
.replenishment-group { text-align:center !important; background:#dfece5 !important; }
.replenishment-cell { text-align:center !important; white-space:normal !important; }
.replenishment-cell span,.replenishment-cell small,.replenishment-cell strong { display:block; }
.replenishment-cell small { color:#52665e; margin:2px 0 5px; }
.replenishment-cell strong { font-weight:700; }
.reconciliation-sheet + .reconciliation-sheet { margin-top:25px; }
@media print {
 .reconciliation-detail th,.reconciliation-detail td { font-size:7.7pt; padding:1.4mm 1.5mm; }
 .reconciliation-detail .replenishment-cell { min-width:19mm; }
 .reconciliation-detail .replenishment-cell span { white-space:nowrap; }
 .reconciliation-detail .replenishment-cell strong { font-size:8pt; }
 .reconciliation-sheet + .reconciliation-sheet { break-before:page; margin-top:0; }
 .reconciliation-detail thead { display:table-header-group; }
}
.inventory-sms-preview { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:.88rem; line-height:1.6; padding:12px; background:#f2f6f3; border:1px solid #dce7df; border-radius:8px; }
