:root{font-family:Inter,system-ui,sans-serif;color:#162729;background:#eef3f1;line-height:1.5;--accent:#07594f;--edge:#cddbd7;--muted:#465e5a}
*{box-sizing:border-box}
body{margin:0}
header{background:#103633;color:white;padding:.9rem clamp(1rem,5vw,4rem);display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
header>a{color:white;font-size:1.15rem;font-weight:750;text-decoration:none;margin-right:auto}
main{max-width:1040px;margin:auto;padding:clamp(1rem,4vw,2.5rem)}
h1,h2,h3{line-height:1.18;margin:.2em 0 .55em}
h1{font-size:clamp(1.8rem,5vw,2.65rem);letter-spacing:-.035em}
h2{font-size:1.25rem}
p{margin:.6rem 0 1rem}
nav{color:var(--muted);margin-bottom:1rem}
section{background:white;border:1px solid var(--edge);border-radius:14px;padding:1.15rem;margin:1rem 0;min-width:0}
a{color:var(--accent);font-weight:650}
button,.button{display:inline-flex;justify-content:center;align-items:center;border:1px solid transparent;border-radius:8px;background:var(--accent);color:white;text-decoration:none;padding:.55rem 1rem;min-height:44px;font:inherit;font-weight:700;cursor:pointer}
.secondary{background:#e5f0ec;color:#13483f;border-color:#c3d8d1}
.danger{background:#942b20}
label{display:grid;gap:.3rem;font-weight:600;margin:0 0 .85rem}
input,select{font:inherit;width:100%;min-height:44px;padding:.45rem .55rem;border:1px solid #8fa8a2;border-radius:7px;background:white;color:#162729}
:focus-visible{outline:3px solid #c06708;outline-offset:2px}
.grid,.fields{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
.actions,.links,.row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.links{align-items:stretch;flex-direction:column}
.links>a,.row{padding:.7rem 0;border-bottom:1px solid var(--edge)}
.row{justify-content:space-between}
.row:last-child{border-bottom:0}
.notice,.status{border-radius:6px;background:#dceee7;padding:.45rem .7rem;color:#21473e}
.status{display:inline-block}
.product{padding:.65rem 0;border-bottom:1px solid var(--edge);margin-bottom:.65rem}
small{color:var(--muted);display:block}
.login{max-width:410px;margin:6vh auto}
.queue .button{margin-top:1rem}
.scroll{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left}
td,th{padding:.5rem;border-bottom:1px solid var(--edge)}
dl{display:grid;grid-template-columns:auto 1fr;gap:.4rem}
dd{text-align:right;margin:0}
@media print{header,nav,.print-hint,.no-print{display:none}body,section{background:white;color:black;border:0}main{padding:0}}

label[hidden]{display:none}

summary{cursor:pointer;font-weight:650;margin-bottom:.8rem}

/* Daily workspace */
:root{background:#f8f5ee;color:#262822;--accent:#214937;--edge:#e0ded3;--muted:#53594f}
header{background:#223b30}
.welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:clamp(1.4rem,4vw,2.8rem);border-radius:24px;background:#eadfc8;margin-bottom:2rem}
.welcome h1{margin:.3rem 0 0;font-size:clamp(2.4rem,7vw,4.6rem);line-height:1}
.eyebrow{font-size:.9rem;color:#525342;font-weight:700}
.branch-title{display:flex;align-items:baseline;gap:.75rem;margin:1.4rem 0 .7rem}
.branch-title h2{margin:0}
.branch-title span{color:var(--muted)}
.dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.tile{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.9rem;background:#fffdf8;padding:1.15rem;border:1px solid var(--edge);border-radius:16px;text-decoration:none;color:#262822;min-height:95px}
.tile:hover{border-color:#50755b}
.tile strong{display:block;font-size:1.12rem}
.tile small{font-weight:500;margin-top:.2rem}
.tile-icon{width:2.6rem;height:2.6rem;border-radius:12px;background:#e5ebdf;display:grid;place-items:center;color:#274934;font-size:1.4rem}
.tile.featured{background:#214937;color:#fffdf5;border-color:#214937}
.tile.featured small{color:#e4ebdf}
.tile.featured .tile-icon{background:#d7e5b9}
.backup-action{margin-top:1.5rem}
@media(max-width:620px){.dashboard{grid-template-columns:1fr}.tile{min-height:80px;padding:.85rem}.welcome{align-items:flex-start}}

.workspace-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: .35rem;
  margin: 0;
  padding: .45rem max(1rem, calc((100% - 960px) / 2));
  overflow-x: auto;
  background: #fffdf8;
  border-bottom: 1px solid var(--edge);
}
.workspace-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .8rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.workspace-nav a:hover,
.workspace-nav a[aria-current] {
  background: #dceadd;
}

.table-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: .75rem;
}
.table-card {
  display: grid;
  justify-items: start;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 12px;
  text-decoration: none;
}
.table-card:hover { border-color: var(--accent); }

.local-mark{display:inline-flex;align-items:center;gap:.55rem;font-weight:750}
.local-mark img{object-fit:contain;filter:grayscale(1) contrast(1.25);mix-blend-mode:multiply}
.workspace-nav a{gap:.35rem}
.price-preview:not([hidden]){display:flex;flex-wrap:wrap;gap:.65rem 1.4rem;margin:.4rem 0 1rem;padding:.75rem;border-radius:8px;background:#e6eee2}
.price-preview strong{margin-left:.25rem}

[data-print-receipt][hidden]{display:none}

@page{margin:15mm}
@media print{
  .workspace-nav,.no-print,header,nav{display:none}
  html,body,main{background:#fff;color:#000;margin:0;padding:0;max-width:none}
  .receipt{width:100%;max-width:170mm;margin:0 auto;padding:0;border:0;color:#000}
  .receipt .notice{background:none;color:#000;padding:0}
  .receipt .row{break-inside:avoid;border-color:#aaa}
  .receipt small{color:#333}
  .receipt dl{break-inside:avoid}
}

[data-print-options][hidden]{display:none}
[data-print-options]{align-items:end;margin-top:1rem}
[data-print-options] label{margin:0}
@page receipt-roll{size:auto;margin:2mm}
@media print{
  body.print-roll{page:receipt-roll}
  .print-roll .receipt{max-width:72mm;font-size:10pt;overflow-wrap:anywhere}
  .print-roll .receipt h1{font-size:15pt}
  .print-roll .receipt .row{display:block;padding:.35rem 0}
  .print-roll .receipt .row>strong{display:block;text-align:right}
}
