/* Couch Potato factory system — one stylesheet, no framework.
   Built for a factory: big tap targets, strong contrast, readable on a phone
   in a workshop and on a desktop in the office. */

:root {
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --paper: #faf9f7;
  --card: #ffffff;
  --brand: #b45309;        /* caramel — Couch Potato accent */
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --blue: #1d4ed8;
  --blue-soft: #dbeafe;
  --green: #15803d;
  --green-soft: #dcfce7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --slate: #475569;
  --slate-soft: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(28, 25, 23, .09);
  --shadow-lg: 0 18px 50px rgba(28, 25, 23, .25);
}

* { box-sizing: border-box; }

/* The hidden attribute must beat the display rules below, or a screen that is
   meant to be put away (the login card) stays on the page behind the app. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 .5rem; }
p { margin: 0 0 .5rem; }
ul { margin: .25rem 0 .5rem; padding-left: 1.2rem; }
li { margin: .2rem 0; }
code { background: var(--line); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); font-size: 12.5px; }
.sub { color: var(--muted); font-size: 13px; margin: .2rem 0 0; }
.plain { list-style: none; padding: 0; }
.plain li { margin: .45rem 0; }

/* ------------------------------------------------------------------ login */

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #000;
  color: #fff;
}
.login-card {
  width: min(400px, 100%);
  background: #0c0c0c;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 2.6rem 2rem 2.2rem;
}
.login-brand { text-align: center; margin-bottom: 1.9rem; }
.wordmark {
  font-family: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin: 0 0 0 .34em;          /* balances the trailing letter-space */
  color: #fff;
  white-space: nowrap;
}
.rule { width: 28px; height: 1px; background: #5a5a5a; margin: 1rem auto .8rem; }
.wordsub {
  font-family: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 0 .36em;
}
.login .fld > span { color: #9a9a9a; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.login .fld input {
  background: #161616;
  border: 1px solid #2e2e2e;
  color: #fff;
  border-radius: 4px;
}
.login .fld input::placeholder { color: #5a5a5a; }
.login .fld input:focus { outline: 1px solid #fff; outline-offset: 0; border-color: #fff; }
.login .btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  border-radius: 4px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: .8rem 1rem;
  margin-top: .4rem;
}
.login .btn.primary:hover { background: #e5e5e5; }
.login-status { color: #f87171; font-size: 13px; min-height: 1.2em; margin: .7rem 0 0; text-align: center; }
.notice {
  background: #171310;
  border: 1px solid #4a3a1e;
  color: #d8c3a0;
  border-radius: 4px;
  padding: .7rem .85rem;
  font-size: 12.5px;
  margin-bottom: 1.1rem;
}
.notice code { background: #2a2419; color: #e8d7b5; }

/* ----------------------------------------------------------------- chrome */

.topbar {
  background: #000;
  color: #fff;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: .7rem; }
.brand-name { font-family: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.brand-sub { font-family: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 9.5px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .3em; padding-left: .7rem; border-left: 1px solid #333; }
.top-right { display: flex; align-items: center; gap: .6rem; }
.who { font-size: 12.5px; color: #e7e5e4; display: flex; flex-direction: column; line-height: 1.25; }
.role { font-size: 10px; color: #a8a29e; text-transform: uppercase; letter-spacing: .08em; }
.demo-chip { background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .06em; }

.tabs {
  display: flex;
  gap: .25rem;
  padding: .45rem .6rem;
  background: #161616;
  border-bottom: 1px solid #262626;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #d6d3d1;
  padding: .5rem .8rem;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.tab.on { background: var(--brand); color: #fff; }

.shell { max-width: 1240px; margin: 0 auto; padding: 1.1rem 1rem 4rem; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: .9rem;
  align-items: start;
}
.grid.cards .card { margin: 0; }
.card-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.meta { font-size: 12.5px; color: var(--ink-2); display: grid; gap: .15rem; margin-top: .35rem; }
.notes {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 8px;
  padding: .5rem .6rem;
  margin: .6rem 0 0;
}

.order-top { display: flex; justify-content: space-between; gap: .75rem; }
.order-no { font-size: 12px; font-weight: 800; color: var(--brand-dark); letter-spacing: .04em; }
.order .qty { color: var(--muted); font-weight: 600; }
.order-chips { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex: 0 0 auto; }
.order-controls { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .7rem; }
.inline { font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: .35rem; }
.inline input, .inline select {
  font: inherit;
  font-size: 12.5px;
  padding: .3rem .4rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.cust-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.count { font-size: 11px; font-weight: 800; color: var(--brand-dark); background: var(--brand-soft); padding: .1rem .5rem; border-radius: 999px; }

/* ------------------------------------------------------------------ chips */

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: .12rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.st-new { background: var(--slate-soft); color: #334155; }
.st-prod { background: var(--blue-soft); color: #1e40af; }
.st-ready { background: var(--amber-soft); color: #92400e; }
.st-disp { background: var(--green-soft); color: #166534; }
.st-inv { background: #ede9fe; color: #5b21b6; }
.fb-none { background: var(--red-soft); color: #991b1b; }
.fb-ord { background: var(--amber-soft); color: #92400e; }
.fb-rec { background: var(--green-soft); color: #166534; }
.late { background: var(--red-soft); color: #991b1b; }
.soon { background: var(--amber-soft); color: #92400e; }
.calm { background: var(--line); color: var(--ink-2); }
.warn-soft { background: #f5f5f4; color: var(--muted); }
.feed { background: var(--blue-soft); color: #1e40af; }
.late-text { color: var(--red); font-weight: 700; }

/* ------------------------------------------------------------ stat strips */

.stat-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: .8rem; }
.stat {
  flex: 1 0 auto;
  min-width: 112px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .55rem .7rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
}
.stat:hover { border-color: var(--brand); }
.stat.on { border-color: var(--brand); background: var(--brand-soft); }
.stat-n { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.stat-l { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.tile { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .8rem .9rem; }
.tile-n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.tile-l { font-size: 12px; color: var(--muted); font-weight: 700; }
.tile.amber { background: var(--amber-soft); }
.tile.red { background: var(--red-soft); }
.tile.wide { grid-column: span 2; }

/* --------------------------------------------------------------- toolbars */

.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search { flex: 1 1 260px; }
.toolbar input, .toolbar select {
  font: inherit;
  font-size: 14px;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

/* --------------------------------------------------------------- controls */

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.btn.danger { border-color: #fca5a5; background: var(--red-soft); color: #991b1b; }
.btn.sm { font-size: 12.5px; padding: .4rem .75rem; }
.btn.wide { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); padding: .2rem .4rem; }

.fld { display: block; margin-bottom: .7rem; }
.fld > span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.fld input, .fld select, .fld textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: .6rem .7rem;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.fld textarea { resize: vertical; }
.fld-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.fld-row > .fld { flex: 1 1 170px; }

/* ----------------------------------------------------------------- modals */

#modal { display: none; }
#modal.open { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(28, 25, 23, .6); z-index: 90; }
.modal-card {
  position: fixed;
  z-index: 91;
  left: 50%;
  top: 2vh;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 1.5rem));
  max-height: 96vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
}
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 1rem 1.1rem; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--card);
}

.history { list-style: none; padding: 0; margin: 0; }
.history li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history li:last-child { border-bottom: 0; }

/* ----------------------------------------------------------------- states */

.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty-icon { font-size: 34px; }
.empty-title { font-weight: 800; color: var(--ink-2); margin-top: .4rem; }
.empty-note { font-size: 13px; margin-top: .2rem; }

.stub { border-left: 4px solid var(--brand); }
.stub-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-bottom: .45rem;
}
.stub-lead { font-size: 13px; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 200%);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform .22s ease;
  z-index: 95;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.warn { background: var(--brand-dark); }

/* ---------------------------------------------------------- factory floor */

.btn-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: .7rem;
  overflow-x: auto;
  padding-bottom: .3rem;
}
.pcol, .pcol-body > * { min-width: 0; }          /* cards shrink with their column instead of spilling out */
.pcol {
  background: #f3f1ee;
  border: 1.5px dashed transparent;
  border-radius: 12px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.pcol.current { background: var(--brand-soft); }
.pcol.over, .pool.over { border-color: var(--brand); background: #fff7e6; }
.pcol-head { padding: .6rem .7rem .4rem; }
.pcol-title { font-weight: 800; font-size: 13.5px; }
.pcol-sub { font-size: 11px; color: var(--muted); font-weight: 700; }
.pcol-body { padding: 0 .5rem .5rem; display: grid; gap: .45rem; flex: 1; }
.pcol-empty { color: #b0aba5; font-size: 12px; text-align: center; padding: 1.2rem .5rem; }
.ppool { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.pool { border: 1.5px dashed transparent; }

.pcard {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .55rem .65rem;
  cursor: grab;
  border-left: 4px solid var(--line);
}
.pcard.waiting { border-left-color: var(--amber); }
.pcard.dragging { opacity: .45; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.pcard-no { font-size: 11px; font-weight: 800; color: var(--brand-dark); letter-spacing: .04em; }
.pcard-prod { font-weight: 800; font-size: 13.5px; margin-top: .1rem; }
.pcard-meta { font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.pcard-chips { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.pcard-controls { display: flex; gap: .3rem; margin-top: .45rem; }
.pcard-controls select, .pcard-controls input {
  flex: 1 1 0;
  min-width: 0;
  font: inherit;
  font-size: 11.5px;
  padding: .25rem .3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.pcard-actions { display: flex; gap: .3rem; margin-top: .45rem; }
.pcard-actions .btn.sm { padding: .3rem .6rem; font-size: 12px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl select { font: inherit; font-size: 12.5px; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; }

/* ---------------------------------------------------------------- costing */

.cat { margin: 1rem 0 .4rem; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl .r { text-align: right; }
.tbl .nowrap { white-space: nowrap; }
.tbl.cost td { vertical-align: top; }
.good { color: var(--green); } .bad { color: var(--red); } .warn { color: var(--amber); }
.notice-inline { background: var(--amber-soft); color: #78350f; border-radius: 10px; padding: .6rem .8rem; font-size: 12.5px; margin-bottom: .8rem; }
.bom-row { display: grid; grid-template-columns: 1fr 86px 84px 28px; gap: .35rem; align-items: center; margin-bottom: .35rem; }
.bom-row select, .bom-row input { font: inherit; font-size: 13px; padding: .45rem .5rem; border: 1px solid #d6d3d1; border-radius: 8px; min-width: 0; }
.bom-line { text-align: right; font-size: 12px; }
.oh-row { display: grid; grid-template-columns: 1fr 150px 28px; gap: .35rem; align-items: center; margin-bottom: .35rem; }
.oh-row input { font: inherit; font-size: 14px; padding: .5rem .6rem; border: 1px solid #d6d3d1; border-radius: 8px; min-width: 0; }
.cost-live { background: var(--paper); border-radius: 10px; padding: .5rem .8rem; margin: .5rem 0 .8rem; font-size: 13px; }
.cost-live > div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.cost-live .tot { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .4rem; font-weight: 700; }

/* --------------------------------------------------------------- invoices */

.inv-lines-head, .inv-line { display: grid; grid-template-columns: 1fr 64px 110px 96px; gap: .35rem; align-items: center; }
.inv-lines-head { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.inv-line { margin-bottom: .35rem; }
.inv-line input { font: inherit; font-size: 13px; padding: .45rem .5rem; border: 1px solid #d6d3d1; border-radius: 8px; min-width: 0; }
.il-tot { text-align: right; font-size: 12.5px; }
.tbl tfoot th { text-align: right; padding: .5rem; font-size: 13px; }
.q-pick { width: 18px; height: 18px; }

/* ----------------------------------------------------------- point of sale */

.pos { display: grid; grid-template-columns: 1fr 400px; gap: 1rem; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.pos-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .85rem; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: .15rem; min-height: 108px; }
.pos-tile:hover { border-color: var(--ink); }
.pos-tile:active { background: var(--paper); }
.pos-tile-cat { font-family: var(--font-ui); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pos-tile-name { font-weight: 700; font-size: 14px; }
.pos-tile-price { font-family: var(--font-ui); font-weight: 600; font-size: 14px; margin-top: .2rem; }
.pos-tile-stock { font-size: 11px; color: var(--muted); }
.pos-cart { position: sticky; top: 1rem; }
.pos-cust { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .75rem; cursor: pointer; font: inherit; display: grid; gap: .1rem; margin-bottom: .6rem; }
.pos-cust strong { font-size: 14px; } .pos-cust span { font-size: 12px; color: var(--muted); }
.pos-lines { max-height: 46vh; overflow: auto; margin: 0 -.2rem; padding: 0 .2rem; }
.pos-line { border-top: 1px solid var(--line); padding: .6rem 0; display: grid; gap: .4rem; }
.pos-line-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pos-line-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; }
.pos-line-ctl .qty { display: inline-flex; align-items: center; gap: .35rem; } .pos-line-ctl .qty b { min-width: 1.4em; text-align: center; }
.pos-line-ctl input { font: inherit; font-size: 13px; padding: .4rem .5rem; border: 1px solid var(--line-2); border-radius: 3px; min-width: 0; text-align: right; }
.pos-line > input { font: inherit; font-size: 13px; padding: .4rem .5rem; border: 1px solid var(--line-2); border-radius: 3px; }
.pos-kind { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.pos-kind button { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .3rem; border: 0; background: #fff; color: var(--muted); cursor: pointer; }
.pos-kind button.on { background: var(--ink); color: #fff; }
.pos-totals { border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .5rem; font-size: 13px; }
.pos-totals > div { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .18rem 0; }
.pos-totals .tot { font-family: var(--font-ui); font-weight: 600; font-size: 16px; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.pos-totals input { font: inherit; font-size: 13px; padding: .3rem .4rem; border: 1px solid var(--line-2); border-radius: 3px; }
.pos-charge { flex: 1; padding: .9rem 1rem; font-size: 12.5px; }
.pay-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .8rem 0; }
.pk-list { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.pk-row { display: grid; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: .55rem .7rem; cursor: pointer; font: inherit; }
.pk-row:hover { background: var(--paper); } .pk-row span { font-size: 12px; color: var(--muted); }
/* the till: bigger targets, nothing but the sale */
.till .tabs { display: none; }
.till .pos-tile { min-height: 130px; padding: 1rem; } .till .pos-tile-name { font-size: 16px; }
.till .pos-charge { padding: 1.1rem 1rem; font-size: 14px; }
.till .btn.sm { padding: .55rem .8rem; }

/* --------------------------------------------------------------- scan out */

.scan-cam-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; }
#scan-video { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; background: #000; border-radius: 12px; object-fit: cover; }
.scan-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1rem; margin-bottom: .5rem; }
.scan-hit { text-align: center; padding: .4rem 0 .2rem; }
.scan-hit .scan-no { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brand-dark); }
.scan-hit h2 { font-size: 20px; margin: .2rem 0 .4rem; }
.scan-hit p { margin: .15rem 0; }
.notify-btns { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.notify-btns .btn { text-align: center; text-decoration: none; }
.qr svg { width: 100%; height: 100%; display: block; }

@media (max-width: 560px) {
  h1 { font-size: 20px; }
  .shell { padding: .85rem .7rem 4rem; }
  .grid.cards { grid-template-columns: 1fr; }
  .order-top { flex-direction: column; }
  .order-chips { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .tile.wide { grid-column: span 1; }
  .page-head .btn { width: 100%; }
  .toolbar select { flex: 1 1 100%; }
  .pgrid { grid-template-columns: 1fr; }
  .ppool { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .bom-row { grid-template-columns: 1fr 70px 24px; }
  .scan-cam-grid { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .pos-lines { max-height: none; }
  .inv-lines-head, .inv-line { grid-template-columns: 1fr 52px 84px; }
  .il-tot, .inv-lines-head span:last-child { display: none; }
  .scan-row { flex-direction: column; align-items: stretch; }
  .bom-line { display: none; }
}


/* =====================================================================
   Professional theme — restrained, monochrome, typographic. Loaded last so
   it overrides the base rules above. The sign-in page keeps its own styling.
   ===================================================================== */

:root {
  --paper: #f4f4f2;
  --card: #ffffff;
  --line: #e2e1dd;
  --line-2: #cfcdc7;
  --ink: #111111;
  --ink-2: #3d3d3a;
  --muted: #7a7873;
  --brand: #111111;
  --brand-dark: #111111;
  --brand-soft: #efeeea;
  --radius: 6px;
  --shadow: none;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .22);
  --font-ui: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

body { font-size: 14px; color: var(--ink); }
h1 { font-family: var(--font-ui); font-weight: 600; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
h2 { font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.sub { font-size: 12.5px; }
.cat { font-family: var(--font-ui); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); margin: 1.2rem 0 .5rem; }

/* chrome */
.topbar { padding: .85rem 1.25rem; }
.tabs { background: #000; border-bottom: 1px solid #262626; padding: 0 1rem; gap: 0; }
.tab {
  font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #a3a3a3; padding: .85rem .95rem; border-radius: 0; border-bottom: 2px solid transparent;
}
.tab:hover { background: none; color: #fff; }
.tab.on { background: none; color: #fff; border-bottom-color: #fff; }
.who { font-family: var(--font-ui); font-size: 11.5px; }
.role { font-size: 9.5px; letter-spacing: .14em; }
.demo-chip { background: none; border: 1px solid #555; color: #ccc; font-family: var(--font-ui); font-weight: 600; font-size: 9.5px; letter-spacing: .18em; padding: .2rem .55rem; border-radius: 2px; }
.shell { padding-top: 1.5rem; }
.page-head { margin-bottom: 1.2rem; }

/* cards & tables */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.card .card { border-color: var(--line); }
.notes { background: var(--paper); border-radius: 4px; }
.tbl th { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.tbl td { font-size: 13px; }

/* buttons */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 3px; padding: .62rem 1rem; border: 1px solid var(--ink); background: #fff; color: var(--ink);
}
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #333; }
.btn.ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn.danger { border-color: var(--line-2); background: #fff; color: #9f1d1d; }
.btn.danger:hover { border-color: #9f1d1d; }
.btn.sm { font-size: 10px; letter-spacing: .1em; padding: .42rem .7rem; }
.icon-btn { color: var(--muted); }

/* inputs */
.fld > span { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select, .fld textarea, .toolbar input, .toolbar select, .inline input, .inline select,
.pcard-controls select, .pcard-controls input, .bom-row select, .bom-row input, .oh-row input, .inv-line input, .tbl select {
  border-radius: 3px; border-color: var(--line-2); font-size: 13.5px;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.toolbar input, .toolbar select { padding: .55rem .7rem; }

/* status chips: a dot and quiet text instead of coloured pills */
.chip {
  font-family: var(--font-ui); font-weight: 600; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  background: none !important; color: var(--ink-2) !important; border: 1px solid var(--line); border-radius: 2px; padding: .18rem .5rem .18rem .4rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b5b3ad; flex: 0 0 auto; }
.chip.st-new::before { background: #8a8884; }
.chip.st-prod::before { background: #2f5fb3; }
.chip.st-ready::before { background: #b8860b; }
.chip.st-disp::before { background: #1f7a3a; }
.chip.st-inv::before { background: #5b3fa0; }
.chip.fb-none::before, .chip.late::before { background: #b91c1c; }
.chip.fb-ord::before, .chip.soon::before { background: #b8860b; }
.chip.fb-rec::before { background: #1f7a3a; }
.chip.calm::before, .chip.warn-soft::before, .chip.feed::before { background: #b5b3ad; }
.chip.late { border-color: #e2b4b4; color: #9f1d1d !important; }
.chip.soon { border-color: #e3cf9a; color: #7a5a06 !important; }
.late-text { color: #9f1d1d; font-weight: 600; }
.count { background: none; border: 1px solid var(--line); color: var(--ink-2); font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }

/* tiles and stat strip */
.tile { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: #fff; }
.tile.amber { background: #fff; border-left: 3px solid #b8860b; }
.tile.red { background: #fff; border-left: 3px solid #b91c1c; }
.tile-n { font-family: var(--font-ui); font-weight: 600; font-size: 22px; }
.tile-l { font-family: var(--font-ui); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.stat { border-radius: var(--radius); border: 1px solid var(--line); }
.stat:hover { border-color: var(--ink); }
.stat.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.on .stat-l { color: #cfcfcf; }
.stat-n { font-family: var(--font-ui); font-weight: 600; font-size: 19px; }
.stat-l { font-family: var(--font-ui); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* orders */
.order-no, .pcard-no, .scan-hit .scan-no { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.order h2 { font-family: inherit; font-weight: 700; font-size: 15.5px; letter-spacing: 0; text-transform: none; color: var(--ink); margin: .1rem 0 0; }
.cust h2 { font-family: inherit; font-weight: 700; font-size: 15.5px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.inline { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* planner */
.pcol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pcol.current { background: #fff; border-top: 3px solid var(--ink); }
.pcol.over, .pool.over { border-color: var(--ink); background: var(--paper); }
.pcol-title { font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pcol-sub { font-size: 10.5px; }
.pcol-body { background: var(--paper); padding: .5rem; border-radius: 0 0 var(--radius) var(--radius); }
.pcard { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.pcard.waiting { border-left: 3px solid #b8860b; }
.pcard-prod { font-size: 13px; }
.pool { background: #fff; }

/* modal, toast, misc */
.modal-card { border-radius: var(--radius); }
.modal-head h2 { font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.toast { border-radius: 3px; font-family: var(--font-ui); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.toast.warn { background: #7a1f1f; }
.notice-inline { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); border-radius: 4px; }
.empty-icon:empty { display: none; }
.empty-title { font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.stub { border-left: 3px solid var(--ink); }
.cost-live { background: var(--paper); border-radius: 4px; }
.scan-cam { border-color: var(--line); }
#scan-video { border-radius: 4px; }
.scan-row { border-radius: var(--radius); }
.qr-wrap small { font-family: var(--font-ui); }
.brand-sub { padding-left: .7rem; }

/* ------------------------------------------------- accounts and the team */
.login-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #3a3a3a; margin: 0 0 1.1rem; }
.login-switch button { background: none; border: 0; color: #9a9a9a; font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: .7rem .4rem; cursor: pointer; }
.login-switch button.on { background: #fff; color: #000; font-weight: 600; }
.login-lead { color: #bdbdbd; font-size: 13px; line-height: 1.5; margin: 0 0 1rem; text-align: center; }
.login-lead:empty { display: none; }
.login-link { display: block; margin: .9rem auto 0; background: none; border: 0; color: #9a9a9a; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.login-status.ok { color: #86efac; }
.trial-chip { border: 1px solid #555; color: #ddd; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 2px; white-space: nowrap; }
.trial-chip.low { border-color: #f59e0b; color: #fbbf24; }
.team-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line, #e7e5e4); }
.team-row:first-of-type { border-top: 0; }
.team-row .who-n { font-weight: 600; }
.team-row .who-e { font-size: 12px; color: var(--muted, #78716c); overflow-wrap: anywhere; }
.team-row select { width: 100%; }
.team-acts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.team-invite { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: .6rem; align-items: end; margin-top: .9rem; }
.roles-help { font-size: 12px; color: var(--muted, #78716c); margin: .4rem 0 0; padding-left: 1.1rem; }
@media (max-width: 640px) {
  .team-row { grid-template-columns: 1fr; }
  .team-acts { justify-content: flex-start; }
  .team-invite { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- billing */
.lock-card { max-width: 560px; margin: 3rem auto; text-align: center; }
.lock-card .card-actions { justify-content: center; }
.lock-co { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.lock-price { margin: 1.2rem 0 .4rem; font-size: 15px; }
.lock-price strong { font-size: 26px; }
.readonly-bar { background: #7f1d1d; color: #fff; text-align: center; font-size: 13px; padding: .55rem 1rem; display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.readonly-bar .btn { background: #fff; color: #7f1d1d; border-color: #fff; }
.client-row { grid-template-columns: minmax(0, 1.6fr) auto auto; }

/* ------------------------------------------------------------------ stock */
.nowrap { white-space: nowrap; }
.stock-tbl tr.short td:first-child { box-shadow: inset 3px 0 0 #b91c1c; }
.stock-order { border-left: 4px solid #b91c1c; }
.stock-sup { border-top: 1px solid var(--line); padding: .7rem 0 .4rem; }
.stock-sup-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.stock-line { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .6rem; font-size: 13px; padding: .2rem 0; }
.po-head, .po-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(70px, .8fr) minmax(80px, .9fr) 34px; gap: .45rem; align-items: center; }
.po-head { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.po-row { margin-bottom: .4rem; }
.po-row select, .po-row input { width: 100%; }
.po-total { margin-top: .6rem; font-weight: 600; text-align: right; }
.po-msg { white-space: pre-wrap; background: var(--paper, #f4f3f0); border: 1px solid var(--line); padding: .7rem .8rem; font: 13px/1.5 var(--font-ui, inherit); border-radius: 4px; }
.po-recv { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: .6rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.check { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; font-size: 13px; }
@media (max-width: 640px) {
  .stock-line { grid-template-columns: 1fr; gap: 0; padding: .35rem 0; }
  .po-head { display: none; }
  .po-row { grid-template-columns: 1fr 1fr 34px; }
  .po-row .po-mat { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- quotes */
.modal-card.wide { width: min(860px, calc(100vw - 1.5rem)); }
.q-head, .q-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 64px minmax(90px, .9fr) 34px; gap: .45rem; align-items: center; }
.q-head { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.q-row { margin-bottom: .55rem; }
.q-row input { width: 100%; }
.q-hint { grid-column: 1 / -1; font-size: 12px; margin-top: -.2rem; min-height: 0; }
.q-hint:empty { display: none; }
.q-total { text-align: right; margin: .2rem 0 .8rem; }
.q-total .muted { font-size: 12px; margin-top: .2rem; }
@media (max-width: 640px) {
  .q-head { display: none; }
  .q-row { grid-template-columns: 1fr 1fr 34px; }
  .q-row .q-desc, .q-row .q-fabric { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- profit */
.profit-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; margin-top: 1rem; }
.profit-two h2 { margin: 0 0 .6rem; }
.tbl tr.sel td { background: #f4f1ea; }
@media (max-width: 900px) { .profit-two { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ roles */
.viewonly-note { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; border-radius: 6px; padding: .55rem .8rem; font-size: 13px; margin-bottom: .9rem; }
.roles-wrap { overflow-x: auto; margin: .6rem 0; }
.roles-tbl th.c, .roles-tbl td.c { text-align: center; }
.roles-tbl td:first-child { min-width: 190px; }
.roles-tbl .role-name { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13px; }
.roles-tbl .role-count { text-transform: none; letter-spacing: 0; font-weight: 400; }
.role-acts { display: flex; gap: .25rem; justify-content: center; margin-top: .3rem; }
.btn.xs { padding: .2rem .45rem; font-size: 9.5px; }
.lvl { min-width: 92px; }
.lvl-none { color: #8a8884; }
.lvl-view { color: #92400e; background: #fffbeb; }
.lvl-edit { color: #14532d; background: #f0fdf4; }

/* ------------------------------------------------------- drop-down menus */
.tab-group { display: inline-flex; align-items: center; gap: .4rem; }
.tab-group .tg-now:not(:empty)::before { content: "· "; opacity: .6; }
.tab-group .tg-now { text-transform: none; letter-spacing: .04em; font-weight: 400; opacity: .85; }
.tab-group .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.tab-group[aria-expanded="true"] .caret { transform: rotate(180deg); }
.tab-menu { position: fixed; z-index: 60; min-width: 210px; background: #111; border: 1px solid #333; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.35); padding: .35rem; display: flex; flex-direction: column; }
.tab-menu[hidden] { display: none; }
.tab-item { background: none; border: 0; color: #d4d4d4; text-align: left; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: .75rem .9rem; border-radius: 4px; cursor: pointer; }
.tab-item:hover { background: #262626; color: #fff; }
.tab-item.on { color: #fff; background: #262626; box-shadow: inset 3px 0 0 #fff; }

/* -------------------------------------------------------------- deliveries */
.dl-days { display: flex; gap: .4rem; flex-wrap: wrap; align-items: stretch; }
.dl-day { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .7rem; display: flex; flex-direction: column; align-items: center; min-width: 74px; cursor: pointer; font: inherit; }
.dl-day span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dl-day strong { font-size: 18px; }
.dl-day.on { background: #111; color: #fff; border-color: #111; }
.dl-day.on span { color: #ccc; }
.dl-pick { border: 1px solid var(--line); border-radius: 6px; padding: 0 .5rem; }
.dl-run-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dl-run-head h2 { margin: 0; }
.dl-card { display: flex; justify-content: space-between; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.dl-card:first-child, .dl-run-head + .dl-card { border-top: 0; }
.dl-card.issue { box-shadow: inset 3px 0 0 #b91c1c; padding-left: .7rem; }
.dl-main { min-width: 0; font-size: 13px; }
.dl-top { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .2rem; }
.dl-prod { font-weight: 600; font-size: 14px; }
.dl-when { margin-top: .2rem; font-weight: 600; color: #1d4ed8; }
.dl-acts { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; min-width: 128px; }
.dl-link { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dl-card { flex-direction: column; } .dl-acts { flex-direction: row; flex-wrap: wrap; } }

/* ------------------------------------------------------------ driver page */
#app.drv { background: #f2f0ec; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #1c1917; }
.drv-head { background: #000; color: #fff; text-align: center; padding: 1rem 1rem 1.4rem; }
.drv-co { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.drv-hi { font-size: 26px; font-weight: 900; margin-top: .3rem; }
.drv-date { font-size: 14px; opacity: .8; }
.drv-days { display: inline-flex; margin-top: .7rem; border: 1px solid #444; border-radius: 999px; overflow: hidden; }
.drv-days button { background: none; border: 0; color: #bbb; font: inherit; font-size: 14px; font-weight: 700; padding: .45rem 1.1rem; }
.drv-days button.on { background: #fff; color: #000; }
.drv-body { max-width: 620px; margin: -.8rem auto 0; padding: 0 .8rem 4rem; }
.drv-tiles { display: flex; gap: 8px; margin-bottom: 12px; }
.drv-tiles > div { flex: 1; background: #fff; border-radius: 14px; padding: 10px; text-align: center; font-size: 12px; font-weight: 700; color: #78716c; }
.drv-tiles strong { display: block; font-size: 26px; color: #111; }
.drv-shop { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: #111; color: #fff; border-radius: 14px; font-weight: 900; font-size: 15px; text-decoration: none; }
.drv-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-left: 6px solid #111; }
.drv-card.done { border-left-color: #16a34a; }
.drv-stop { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #78716c; display: flex; justify-content: space-between; gap: 8px; }
.drv-st { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.drv-prod { font-size: 22px; font-weight: 900; margin-top: 4px; }
.drv-who { font-size: 18px; font-weight: 700; }
.drv-addr { font-size: 17px; color: #44403c; }
.drv-warn { color: #991b1b; }
.drv-note { font-size: 14px; background: #f5f5f4; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.drv-ok { font-size: 16px; font-weight: 800; color: #166534; margin-top: 8px; }
.drv-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.drv-btn { flex: 1 1 44%; min-height: 58px; padding: 10px 8px; border-radius: 14px; border: 2px solid #111; background: #fff; color: #111; font: inherit; font-weight: 900; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; }
.drv-btn.blue { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.drv-btn.amber { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.drv-btn.green { background: #16a34a; border-color: #16a34a; color: #fff; }
.drv-btn.red { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.drv-btn.dark { background: #111; color: #fff; }
.drv-btn.wide { flex-basis: 100%; }
.drv-menu { margin-top: 8px; }
.drv-q { font-size: 13px; font-weight: 800; margin-top: 4px; }
.drv-hint { margin-top: 8px; font-size: 12px; color: #a8a29e; }
.drv-sec { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: #78716c; margin: 14px 0 6px; }
.drv-empty { background: #fff; border-radius: 16px; padding: 2rem; text-align: center; color: #78716c; font-size: 18px; margin-bottom: 12px; }
.drv-flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 800; z-index: 99; }
.drv-sign { position: fixed; inset: 0; background: #fff; z-index: 95; overflow: auto; padding: 16px; }
.drv-sign-in { max-width: 720px; margin: 0 auto; font-size: 15px; }
.drv-note-head { display: flex; justify-content: space-between; border-bottom: 3px solid #000; padding-bottom: 8px; }
.drv-note-head .r { text-align: right; }
.drv-note-tbl { width: 100%; border-collapse: collapse; margin-top: 12px; }
.drv-note-tbl th, .drv-note-tbl td { border: 1px solid #000; padding: 6px 8px; text-align: left; vertical-align: top; }
.drv-note-tbl th { width: 30%; font-size: 11px; letter-spacing: .08em; background: #eee; }
.drv-lbl { display: block; font-size: 11px; letter-spacing: .08em; color: #555; margin-top: 10px; }
#sg-name { width: 100%; font: inherit; font-size: 18px; padding: 10px; border: 1px solid #000; border-radius: 6px; }
#sg-pad { width: 100%; height: 220px; border: 2px dashed #000; border-radius: 8px; background: #fff; touch-action: none; display: block; }

/* ------------------------------------------------------------- stock room */
.sr-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); font-size: 13px; }
.sr-row:first-of-type { border-top: 0; }
.sr-count .sr-in { width: 110px; text-align: right; }

/* Connect Shopify: the setup steps */
ol.steps { margin: 0 0 1rem 1.1rem; padding: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
ol.steps li { margin-bottom: .35rem; }
ol.steps code { font-size: 11.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; white-space: nowrap; }
