/* ONSnacks · O'Neal School colors: navy #001444 + white */
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #001444; --navy-2: #0B2563; --navy-3: #1D3A7A;
  --tint: #EAF0F6; --tint-2: #F4F7FB; --line: #D9E1EC; --line-2: #E7ECF3;
  --ink: #0B1530; --muted: #5A6A85; --white: #FFFFFF;
  --red: #C62828; --red-bg: #FDECEC; --green: #1E7B45; --green-bg: #E8F5EE; --amber: #8A5A00; --amber-bg: #FFF4DB;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(0,20,68,.06), 0 6px 18px rgba(0,20,68,.06);
  --side: 248px; --tab: 64px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--tint-2); }
body { font-size: 15px; line-height: 1.45; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 17px; font-weight: 700; } h3 { font-size: 15px; font-weight: 700; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .num { font-variant-numeric: tabular-nums; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 22px 14px 16px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.brand-text b { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand-text small { display: block; font-size: 12px; color: rgba(255,255,255,.62); }
.side-nav { margin-top: 30px; display: grid; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: rgba(255,255,255,.78); font-weight: 600; }
.side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav a.on { background: #fff; color: var(--navy); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.me { flex: 1; display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px; border-radius: 10px; min-width: 0; }
.me:hover, .me.on { background: rgba(255,255,255,.08); }
.me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.linkbtn { background: none; border: 0; color: rgba(255,255,255,.7); padding: 8px; border-radius: 8px; cursor: pointer; display: grid; }
.linkbtn:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar, .tabbar { display: none; }
.main { margin-left: var(--side); padding: 30px 34px 60px; max-width: calc(1240px + var(--side)); }

@media (max-width: 900px) {
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; height: 58px; align-items: center; justify-content: space-between; padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--navy); color: #fff; }
  .topbar .brand b { font-size: 17px; } .topbar .mark { width: 34px; height: 34px; font-size: 11px; border-radius: 9px; }
  .avatar.sm { width: 34px; height: 34px; color: #fff; }
  .main { margin: 0; padding: 18px 16px calc(var(--tab) + 28px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); z-index: 30; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a.on { color: var(--navy); }
  .tabbar a.on .ic { stroke-width: 2.4; }
  h1 { font-size: 22px; }
}

/* ---------- page parts ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; gap: 10px; }
.card-head a { font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1.5fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .g2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g3 { grid-template-columns: 1fr; } }
.section-gap { margin-top: 16px; }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.flash.ok { background: var(--green-bg); color: var(--green); } .flash.err { background: var(--red-bg); color: var(--red); }

/* hero KPI band */
.hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.hero .lead small { color: rgba(255,255,255,.65); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }
.hero .lead .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.hero .lead .sub { color: rgba(255,255,255,.75); margin-top: 4px; }
.hero .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 18px; }
.hero .stat small { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; }
.hero .stat b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.hero .stat span { font-size: 12.5px; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr 1fr; padding: 18px; } .hero .lead { grid-column: 1 / -1; } .hero .stat { border-left: 0; padding-left: 0; } .hero .lead .big { font-size: 34px; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.02em; margin-top: 2px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.warn b { color: var(--red); }

/* bars chart */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 180px; padding: 12px 20px 0; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: var(--navy); min-height: 4px; }
.bar.zero i { background: var(--line); }
.bar.today i { background: var(--navy-3); box-shadow: 0 0 0 3px var(--tint); }
.bar em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--navy); }
.bar span { font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 14px; }

/* lists */
.list { list-style: none; margin: 0; padding: 6px 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-2); }
.list li:first-child { border-top: 0; }
.list .t { font-weight: 600; } .list .s { font-size: 12.5px; color: var(--muted); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--navy); font-weight: 800; font-size: 12px; flex: none; }
.empty { padding: 26px 20px; text-align: center; color: var(--muted); }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { height: 54px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--red); border-color: #F2C9C9; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; font: inherit; color: var(--ink); background: #fff; outline: none; }
textarea { height: auto; padding: 10px 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,20,68,.12); }
.money-input { position: relative; } .money-input::before { content: "$"; position: absolute; left: 13px; top: 11px; color: var(--muted); font-weight: 600; }
.money-input input { padding-left: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .row3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; margin: 4px 0 12px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* segmented + chips + search */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg a, .seg button { padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.seg a.on, .seg button.on { background: var(--navy); color: #fff; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 38px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--navy); cursor: pointer; font-family: inherit; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--tint); color: var(--navy); } .badge.low { background: var(--amber-bg); color: var(--amber); }
.badge.out { background: var(--red-bg); color: var(--red); } .badge.inactive { background: var(--line-2); color: var(--muted); }
.badge.navy { background: var(--navy); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--tint-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #FAFBFD; }
table.t .cat td { background: var(--tint); color: var(--navy); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; }
table.t a.name { font-weight: 700; color: var(--ink); } table.t a.name:hover { color: var(--navy); text-decoration: underline; }
.qty { font-weight: 700; font-variant-numeric: tabular-nums; } .qty.zero { color: var(--red); } .qty.total { color: var(--navy); font-size: 15px; }
th.qcol, td.qcol { text-align: right; }
td.hl, th.hl { background: rgba(0,20,68,.035) !important; }

/* mobile inventory cards */
.inv-cards { display: none; }
@media (max-width: 760px) {
  .inv-table { display: none; } .inv-cards { display: grid; gap: 10px; }
  .inv-card { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); display: block; color: var(--ink); }
  .inv-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .inv-card .nm { font-weight: 700; } .inv-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .inv-card .counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
  .inv-card .counts div { background: var(--tint-2); border-radius: 9px; padding: 6px 8px; text-align: center; }
  .inv-card .counts small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .inv-card .counts b { font-variant-numeric: tabular-nums; }
  .inv-card .counts .tot { background: var(--navy); color: #fff; } .inv-card .counts .tot small { color: rgba(255,255,255,.7); }
  .inv-cat { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin: 10px 2px 0; }
}

/* stock location pills on item page */
.locs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .locs { grid-template-columns: 1fr 1fr; } }
.loc { border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: #fff; }
.loc small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.loc b { display: block; font-size: 28px; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loc.total { background: var(--navy); border-color: var(--navy); } .loc.total small { color: rgba(255,255,255,.7); } .loc.total b { color: #fff; }
.tabs-inline { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding: 0 20px; margin-top: 14px; overflow-x: auto; }
.tabs-inline button { background: none; border: 0; padding: 10px 6px 12px; margin-right: 12px; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs-inline button.on { color: var(--navy); border-color: var(--navy); }
.pane { display: none; padding: 16px 20px 20px; } .pane.on { display: block; }

/* ---------- POS ---------- */
body.pos-page .main { padding-bottom: 140px; }
.pos-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .pos-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.cat-title { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 10px 2px -2px; }
.tile { position: relative; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 14px 12px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow); transition: transform .06s, border-color .12s; -webkit-tap-highlight-color: transparent; user-select: none; }
.tile:active { transform: scale(.97); }
.tile .nm { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile .bot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.tile .pr { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.tile .lf { font-size: 12px; font-weight: 600; color: var(--muted); }
.tile .lf.low { color: var(--amber); }
.tile.in { border-color: var(--navy); background: #F5F8FD; }
.tile .cnt { position: absolute; top: -8px; right: -8px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: none; place-items: center; border: 3px solid #fff; }
.tile.in .cnt { display: grid; }
.tile.out { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tile.out .lf { color: var(--red); }
.tile.hide { display: none; }

.cartbar { position: fixed; left: var(--side); right: 0; bottom: 0; padding: 14px 34px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--tint-2) 70%, rgba(244,247,251,0)); z-index: 25; display: none; }
.cartbar.show { display: block; }
.cartbar .btn { width: 100%; max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; height: 60px; font-size: 17px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,20,68,.3); padding: 0 20px; }
.cartbar .pill { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 11px; font-size: 14px; }
@media (max-width: 900px) { .cartbar { left: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 10px 14px; } }

.sheet-bg { position: fixed; inset: 0; background: rgba(0,10,35,.45); z-index: 40; display: none; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: min(560px, 100%); max-height: 88vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transition: transform .22s ease; padding-bottom: env(safe-area-inset-bottom); }
.sheet.show { transform: translate(-50%, 0); } .sheet-bg.show { display: block; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.sheet-body { overflow-y: auto; padding: 0 20px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.line:first-child { border-top: 0; }
.line .nm { flex: 1; font-weight: 700; } .line .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.step button { width: 38px; height: 38px; border: 0; background: none; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.step b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.line .amt { width: 64px; text-align: right; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.sheet-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.total-row b { font-size: 30px; color: var(--navy); letter-spacing: -.02em; }
.paid { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.paid .chip { padding: 8px 12px; }
.change { margin-left: auto; font-weight: 700; color: var(--green); }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; z-index: 60; box-shadow: 0 12px 30px rgba(0,20,68,.35); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); } .toast.err { background: var(--red); }

/* store picker */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } }
.pick a { background: var(--navy); color: #fff; border-radius: 20px; padding: 26px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pick a:nth-child(2) { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.pick a b { font-size: 26px; letter-spacing: -.02em; } .pick a small { opacity: .75; font-weight: 600; }
.pick a .ic { width: 30px; height: 30px; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); background-image: radial-gradient(circle at 85% 10%, rgba(255,255,255,.08) 0 180px, transparent 181px), radial-gradient(circle at 5% 95%, rgba(255,255,255,.05) 0 220px, transparent 221px); }
.auth { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.auth .brand { color: var(--navy); margin-bottom: 22px; } .auth .mark { background: var(--navy); color: #fff; }
.auth .brand-text small { color: var(--muted); }
.auth h1 { font-size: 22px; margin-bottom: 4px; } .auth p.lede { color: var(--muted); margin: 0 0 20px; }
.err-box { background: var(--red-bg); color: var(--red); padding: 10px 12px; border-radius: 10px; font-weight: 600; margin-bottom: 14px; font-size: 14px; }

/* more page */
.menu { display: grid; gap: 10px; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); font: inherit; font-weight: 700; width: 100%; cursor: pointer; text-align: left; }
.menu small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.menu .arrow { margin-left: auto; color: var(--muted); }

.type { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.type.sale { color: var(--navy); } .type.restock, .type.transfer_in { color: var(--green); } .type.loss { color: var(--red); } .type.adjust, .type.transfer_out { color: var(--amber); }
details.add { margin-bottom: 16px; } details.add summary { list-style: none; cursor: pointer; } details.add summary::-webkit-details-marker { display: none; }

/* fixes */
.costq { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E0A100; margin-left: 5px; vertical-align: middle; }
td.cost { white-space: nowrap; }
.toast { visibility: hidden; } .toast.show { visibility: visible; }
@media (max-width: 760px) { .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .toolbar .seg::-webkit-scrollbar { display: none; } .toolbar .search { min-width: 100%; } }
