:root{--navy:#181715;--emerald:#85641d;--cream:#faf7ef;--ink:#24221e;--border:#e8e0cf}
.sidebar{background:#181715}.sidebar .brand{color:#f5dfac}.brand-logo{display:block;width:58px;height:50px;flex-shrink:0;object-fit:contain;background:#000;border:1px solid #846a30;border-radius:8px}.nav-link.active{background:#342b18;color:#f8e3b1}.nav-link:hover{background:#29251d}.sidebar-bottom{color:#c4bba7}.nav-caption{color:#b4a384}.auth-shell{background:radial-gradient(ellipse at top left,#eee3ca,transparent 60%),var(--cream)}.auth-brand{flex-direction:column;gap:12px;text-align:center}.auth-brand .brand-logo{width:160px;height:138px;border-radius:14px}.auth-brand small{color:#846c36}.metric-featured{background:#211e18;border-color:#211e18}.metric-featured strong{color:#f0cf82}.metric-featured span,.metric-featured small{color:#d1c3a0}.accent-panel{background:#f5efdf;border-color:#e6dac0}.stock-quantity{background:#f4ecd8;color:#715212}.filter-bar{background:#f2eee3;border-color:#e6deca}.filter-bar label{min-width:130px}.filter-bar label:first-child{min-width:150px}.stock-period-summary{display:flex;flex-wrap:wrap;gap:15px 40px;padding:0 24px 20px}.stock-period-summary span{display:flex;flex-direction:column;gap:7px;color:#786f5e;font-size:.8rem}.stock-period-summary strong{font-size:1.4rem;color:#29251a}.report-pagination{display:flex;justify-content:center;gap:16px;padding:20px}.receipt-logo{display:block;width:28mm;height:24mm;object-fit:contain;margin:0 auto 4mm}.barcode-label .label-logo{display:inline-block;width:11mm;height:9mm;max-width:11mm;object-fit:contain;vertical-align:middle;margin-right:2mm}
@media(max-width:680px){.filter-bar label:first-child{min-width:100%}.auth-brand .brand-logo{width:140px;height:121px}.stock-period-summary{padding:0 17px 20px;gap:18px 28px}}
@media print{.receipt-logo{width:24mm;height:21mm}.barcode-label .label-logo{height:8mm;width:10mm;max-width:10mm}.stock-period-summary{color:#000}}

.catalogue-photo{width:64px;height:64px;object-fit:contain;border-radius:8px;float:left;margin-right:12px}.product-photo{width:100%;height:120px;object-fit:contain;border-radius:8px}

.catalogue-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:18px;margin-bottom:24px}.catalogue-card{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:var(--surface,#fff);box-shadow:0 8px 28px #00000007;transition:transform .2s,box-shadow .2s}.catalogue-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px #00000010}.catalogue-visual{position:relative;height:160px;background:linear-gradient(135deg,#e9e0cb,#faf6ec);display:grid;place-items:center}.catalogue-visual>img{width:100%;height:100%;max-height:160px;object-fit:contain;padding:12px}.catalogue-placeholder{display:flex;flex-direction:column;align-items:center;gap:14px;color:#927139;text-transform:uppercase;letter-spacing:.14em;font-size:.7rem}.catalogue-placeholder .icon{width:42px;height:42px;opacity:.55}.catalogue-stock{position:absolute;bottom:10px;left:10px;padding:6px 10px;border-radius:30px;background:#fff;color:#315942;font-size:.74rem;font-weight:700}.catalogue-stock.is-empty{color:#8c513a}.catalogue-card-content{padding:16px}.catalogue-card h3{margin:8px 0;font-size:1.08rem}.catalogue-card .muted{font-size:.8rem;margin:0 0 12px}.catalogue-price{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.catalogue-price strong{font-size:1.6rem;color:var(--ink)}.catalogue-price small{font-size:.72rem;opacity:.65}.catalogue-code{font-size:.68rem;overflow-wrap:anywhere;display:block;margin:10px 0 12px;opacity:.6}.catalogue-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.catalogue-actions .button{font-size:.75rem;padding:10px 12px}.catalogue-edit{margin-top:12px;border-top:1px solid var(--border);padding-top:12px;font-size:.78rem}.catalogue-edit summary{cursor:pointer}.catalogue-edit form{margin-top:12px}.family-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:24px}.stock-depletion{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:20px;padding:0 24px 24px}.stock-depletion span{display:block;font-size:.8rem;opacity:.7}.stock-depletion strong{display:block;font-size:1.65rem;margin-top:8px}.stock-depletion meter{display:block;width:100%;height:18px;accent-color:#af8430}.barcode-label.barcode-only{display:flex;align-items:center;justify-content:center;padding:3mm;background:#fff}.barcode-only img{width:100%;max-width:55mm;height:15mm;object-fit:contain}
[data-theme="dark"] .catalogue-card{background:#211f1a}[data-theme="dark"] .catalogue-visual{background:linear-gradient(135deg,#302b20,#201e19)}
@media(max-width:600px){.catalogue-grid{grid-template-columns:1fr}.catalogue-visual{height:160px}.catalogue-card-content{padding:16px}}

.money-usd{display:block;font-size:.78rem;font-weight:500;line-height:1.6;opacity:.78}.money-cdf{display:block}.catalogue-price .money-cdf{font-size:1.08rem;font-weight:700}.catalogue-price .money-usd{font-size:.9rem;color:var(--ink);opacity:1}.metric-featured .money-usd{color:inherit}.cart-total>div{text-align:right}.cart-line-end .money-usd{white-space:nowrap}

/* Original complete label: one readable code, unchanged barcode identity. */
.labels-options{flex-wrap:wrap;justify-content:center}
.labels-options select{width:auto;max-width:230px}
.barcode-label{color:#111;background:#fff;gap:0}
.barcode-label .label-brand{display:flex;align-items:center;justify-content:center;letter-spacing:1.8px}
.barcode-label .label-barcode{width:100%;max-width:55mm;height:15mm;object-fit:contain;flex-shrink:0}
.barcode-label .barcode-text{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.barcode-label .label-price{font-size:12px;margin-top:3px;color:#111}
.barcode-label .label-price-note{font-size:8px;color:#444}
.label-row{display:contents}
@media(max-width:680px){.labels-options{width:100%}.labels-options label{flex-wrap:wrap}.labels-options select{max-width:100%}}
@media print{
  :root{background:#fff}
  .label-sheet{display:block}
  .label-row{display:block;white-space:nowrap;font-size:0;line-height:0;break-inside:avoid;page-break-inside:avoid}
  .barcode-label{display:inline-block;vertical-align:top;white-space:normal;margin:0 3mm 3mm 0;font-size:11px;line-height:1.4;break-inside:avoid;page-break-inside:avoid}
  .barcode-label:last-child{margin-right:0}
  .barcode-label .label-brand{display:block}
  .barcode-label>strong,.barcode-label>small,.barcode-label>.barcode-text,.barcode-label>.label-price{display:block}
  .barcode-label .label-barcode{height:14mm}
}
