/* =====================================================================
   Baltina app — tablet first, works on phones too.
   Colours come from the shop itself: berbere red, paprika, turmeric gold,
   coffee brown, injera cream — plus green, teal and plum for categories.
   Everything is plain CSS (no images, no web fonts) so it stays light.
   ===================================================================== */
:root {
  --bg: #fbf5ec;           /* injera cream */
  --bg-2: #f3e7d6;
  --card: #ffffff;
  --ink: #2a1d16;
  --muted: #7d6b5f;
  --line: #ecdfcf;
  --brand: #a1301b;        /* berbere */
  --brand-2: #d2601a;      /* paprika */
  --brand-soft: #fdebe3;
  --gold: #e4a325;         /* turmeric */
  --gold-soft: #fdf1d6;
  --coffee: #4a2c1e;
  --green: #2e8b57;
  --green-soft: #e3f4ea;
  --teal: #1d7e8a;
  --teal-soft: #ddf1f3;
  --plum: #7b4a8f;
  --plum-soft: #f1e6f6;
  --ok: #2e8b57;
  --warn: #c27a12;
  --bad: #c0362c;
  --bad-soft: #fde7e5;
  --brand-ink: #ffffff;
  --accent: var(--brand-2);
  --radius: 16px;
  --tap: 56px;             /* smallest button height: easy to tap */
  --shadow: 0 1px 2px rgba(74, 44, 30, 0.06), 0 4px 14px rgba(74, 44, 30, 0.08);
  --shadow-lg: 0 12px 34px rgba(74, 44, 30, 0.2);
  font-family: system-ui, "Segoe UI", "Nyala", "Ebrima", "Noto Sans Ethiopic", sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font-size: 18px; line-height: 1.35;
  background:
    radial-gradient(circle at 0% 0%, #fffaf2 0, transparent 38%),
    radial-gradient(circle at 100% 20%, #f9ead8 0, transparent 32%),
    var(--bg);
  min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- buttons & inputs ---------- */
.btn {
  min-height: var(--tap); padding: 0 20px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--card); font-weight: 650;
  box-shadow: 0 1px 2px rgba(74, 44, 30, 0.05);
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(161, 48, 27, 0.3);
}
.btn.danger { border-color: #efb9b3; color: var(--bad); background: #fff; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 16px; }
.btn.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn:disabled { opacity: 0.45; box-shadow: none; }
.input {
  width: 100%; min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(210, 96, 26, 0.15); }
.btn:focus-visible { outline: 3px solid rgba(210, 96, 26, 0.45); outline-offset: 2px; }
label { display: block; font-weight: 650; margin: 14px 0 6px; }

/* a woven tibeb-style stripe, drawn with gradients */
.tibeb, .top::after {
  height: 6px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 12px, var(--coffee) 12px 14px, var(--green) 14px 20px,
      var(--coffee) 20px 22px, var(--brand-2) 22px 34px, var(--coffee) 34px 36px,
      var(--teal) 36px 42px, var(--coffee) 42px 44px);
}

/* ---------- login & simple pages ---------- */
.page { max-width: 460px; margin: 6vh auto; padding: 24px 16px; }
.page h1 {
  margin: 0 0 4px; font-size: 38px; letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.login-card .tibeb { margin: 0; }
.login-card .inner { padding: 22px 22px 26px; }
.hero { font-size: 34px; letter-spacing: 6px; margin-bottom: 6px; }
.page .btn.primary { width: 100%; margin-top: 20px; }
.error { color: var(--bad); font-weight: 650; margin-top: 12px; }
.place-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.place-list .btn {
  min-height: 80px; text-align: left; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); border-color: transparent;
}
.place-list .btn .pi { font-size: 28px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); flex: 0 0 auto; }
.place-list.wh .btn .pi { background: var(--teal-soft); }
.page.wide { max-width: 900px; margin-top: 4vh; }
.picker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5; color: var(--brand-ink);
  background: linear-gradient(115deg, var(--coffee) 0%, var(--brand) 55%, var(--brand-2) 100%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px;
  box-shadow: 0 6px 18px rgba(74, 44, 30, 0.25);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; }
.top .back-btn { min-width: 46px; min-height: 42px; padding: 0 10px; font-size: 22px; }
.top .place { font-size: 22px; font-weight: 800; margin-right: auto; letter-spacing: 0.3px; }
.top .date { font-size: 15px; opacity: 0.9; }
.top .btn { min-height: 42px; background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); font-size: 15px; box-shadow: none; }
.top .menu-btn { margin-left: auto; min-height: 46px; font-size: 17px; }
.menu-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.menu-list .btn { text-align: left; min-height: 60px; font-size: 19px; display: flex; align-items: center; gap: 14px; }
.menu-list .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); }
.status { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); white-space: nowrap; font-weight: 600; }
.status.waiting { background: var(--gold); color: var(--coffee); }
.status.bad { background: var(--bad); }

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 6px; padding: 16px 16px 6px; overflow-x: auto; background: transparent;
  position: sticky; top: calc(var(--topbar-h, 62px) + 6px); z-index: 4; scrollbar-width: none;
  background: linear-gradient(var(--bg) 70%, rgba(251, 245, 236, 0));
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: var(--muted); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s ease, color 0.15s ease;
}
.tab .ti { font-size: 18px; }
.tab.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px rgba(161, 48, 27, 0.3); }
main { padding: 12px 16px 120px; max-width: 1200px; margin: 0 auto; }
.help {
  background: var(--gold-soft); border: 0; border-left: 5px solid var(--gold); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 16px; color: #5c4214;
}

/* ---------- filters & product grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters .input { flex: 1 1 220px; min-height: 50px; padding-left: 42px; box-shadow: var(--shadow);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237d6b5f' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 14px center; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 650; font-size: 16px; }
.chip.on { background: var(--coffee); color: #fff; border-color: var(--coffee); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }

/* category colours: every tile picks one */
.bread { --c: var(--gold);  --c-soft: var(--gold-soft); }
.spice { --c: var(--brand); --c-soft: var(--brand-soft); }
.dairy { --c: var(--teal);  --c-soft: var(--teal-soft); }
.other { --c: var(--plum);  --c-soft: var(--plum-soft); }

.tile {
  position: relative; min-height: 118px; padding: 12px 12px 10px; border-radius: var(--radius);
  border: 1px solid var(--line); border-top: 4px solid var(--c, var(--line));
  background: var(--card); text-align: left; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow); transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.tile:active { transform: scale(0.97); box-shadow: none; }
@media (hover: hover) { .tile:hover { box-shadow: var(--shadow-lg); } }
.tile .ico {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; background: var(--c-soft, var(--bg));
}
.tile .am { font-size: 19px; font-weight: 800; padding-right: 42px; line-height: 1.2; }
.tile .en { font-size: 13px; color: var(--muted); padding-right: 42px; }
.tile .left, .fam-size span {
  margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--ok);
}
.tile .left.low, .fam-size.low span { background: var(--gold-soft); color: var(--warn); }
.tile .left.zero, .fam-size.zero span { background: var(--bad-soft); color: var(--bad); }

/* one tile for all sizes of a bread: a button per size */
.tile.family { grid-column: span 2; cursor: default; }
.fam-sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 8px; }
.fam-size {
  min-height: 64px; border-radius: 12px; border: 1.5px solid transparent; background: var(--c-soft, var(--bg));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px;
  transition: transform 0.08s ease;
}
.fam-size b { font-size: 18px; }
.fam-size span { margin-top: 0; align-self: center; padding: 1px 7px; font-size: 12px; }
.fam-size:active { transform: scale(0.95); border-color: var(--c); }
.empty { padding: 34px; text-align: center; color: var(--muted); }

/* ---------- warehouse: shop picker & delivery list ---------- */
.shop-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.shop-picker .btn { min-height: 52px; font-size: 16px; }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand-2); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.badge.red { background: var(--bad); }
.cart {
  background: #fff; border: 0; border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
  box-shadow: var(--shadow); border-left: 6px solid var(--brand-2);
}
.cart-head { font-weight: 800; margin-bottom: 10px; }
.cart .btn.big { width: 100%; min-height: 64px; font-size: 20px; margin-top: 12px; }
.sub.warn { color: var(--warn); font-weight: 650; }

/* ---------- totals & Owed page ---------- */
.totals { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 18px; }
.total-card {
  flex: 1 1 200px; color: #fff; border-radius: 18px; padding: 14px 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow);
}
.total-card:nth-child(2) { background: linear-gradient(135deg, #b8740f, var(--gold)); }
.total-card:nth-child(3) { background: linear-gradient(135deg, #1a6470, var(--teal)); }
.total-card:nth-child(4) { background: linear-gradient(135deg, #236b44, var(--green)); }
.total-card::after { content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.total-card .muted { color: rgba(255, 255, 255, 0.88); font-size: 15px; }
.total-card b { font-size: 28px; }
.debt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.debt-card {
  background: var(--card); border: 0; border-left: 6px solid var(--brand); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.debt-card:has(.clear) { border-left-color: var(--ok); }
.debt-who { font-weight: 800; }
.debt-balance { font-size: 30px; font-weight: 850; color: var(--brand); }
.debt-balance.clear { color: var(--ok); }
.debt-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.debt-actions .btn { flex: 1; }
.warn { color: var(--warn); font-weight: 650; }
main h2 { margin: 20px 0 10px; font-size: 22px; }
main h3 { margin: 20px 0 10px; font-size: 18px; color: var(--coffee); }

/* ---------- Birke: warehouses & margin ---------- */
.tile-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--c-soft, var(--bg)); flex: 0 0 auto; }
.left-pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--ok); white-space: nowrap; }
.left-pill.low { background: var(--gold-soft); color: var(--warn); }
.left-pill.zero { background: var(--bad-soft); color: var(--bad); }
.qty.pos { color: var(--ok); text-align: right; }
.qty.neg { color: var(--bad); text-align: right; }

/* ---------- round 4: who, per-size counters, owners ---------- */
.who { font-weight: 700; white-space: nowrap; }
.ro { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.2); vertical-align: middle; }
.multi { display: flex; flex-direction: column; gap: 8px; }
.multi-row { display: grid; grid-template-columns: 1fr 56px 56px 56px; align-items: center; gap: 8px; }
.multi-row b { font-size: 19px; }
.multi-row .btn { min-height: 52px; padding: 0; font-size: 24px; border-radius: 50%; }
.multi-row .n { text-align: center; font-size: 24px; font-weight: 850; color: var(--brand); }
.holiday { background: linear-gradient(135deg, #fff3d6, #fde3c8); border-left: 5px solid var(--gold); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; background: #fff; border-radius: var(--radius); padding: 10px 10px 24px; box-shadow: var(--shadow); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 6px; }
.bar span { display: block; background: linear-gradient(var(--brand-2), var(--brand)); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--muted); }

/* ---------- admin ---------- */
.prices { text-align: right; font-size: 15px; white-space: nowrap; }
.sheet select.input { appearance: auto; }
@media (max-width: 600px) { .prices { white-space: normal; max-width: 45%; } }

/* ---------- deliveries waiting / banners ---------- */
.banner {
  display: block; width: 100%; text-align: left; min-height: 58px; margin-bottom: 14px; padding: 12px 16px;
  border-radius: var(--radius); border: 0; color: #fff; font-weight: 750; font-size: 17px;
  background: linear-gradient(135deg, var(--brand-2), var(--gold)); box-shadow: 0 6px 18px rgba(210, 96, 26, 0.3);
  animation: nudge 1.2s ease-in-out 3;
}
.banner.low { background: linear-gradient(135deg, var(--bad), var(--brand-2)); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ok-box { background: var(--green-soft); border-left-color: var(--ok); color: var(--ok); }

/* ---------- lists (stock, today) ---------- */
.list { background: var(--card); border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .name { font-weight: 750; }
.row .sub { font-size: 14px; color: var(--muted); }
.row .qty { font-weight: 800; white-space: nowrap; }
.row.voided { opacity: 0.45; text-decoration: line-through; }
.row.pending { background: #fff8ec; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f1ebe4; white-space: nowrap; font-weight: 650; }
.tag.sale { background: var(--green-soft); color: var(--ok); }
.tag.dispatch, .tag.return { background: var(--teal-soft); color: var(--teal); }
.tag.stock_in { background: var(--plum-soft); color: var(--plum); }
.tag.unsold, .tag.damage { background: var(--bad-soft); color: var(--bad); }
.tag.wait { background: var(--gold-soft); color: var(--warn); }

/* ---------- action sheet (pop-up) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(42, 29, 22, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade 0.15s ease;
}
.sheet {
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card);
  border-radius: 24px; padding: 20px 20px 22px; box-shadow: var(--shadow-lg); animation: rise 0.2s ease;
}
.sheet h2 { margin: 0; font-size: 26px; }
.sheet .en { color: var(--muted); }
.sheet-backdrop.still, .sheet-backdrop.still .sheet { animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes .btn { flex: 1 1 100px; min-height: 64px; font-size: 20px; }
.sizes.fam { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sizes.fam .btn { padding: 0 4px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .btn { width: 64px; min-height: 64px; font-size: 28px; padding: 0; border-radius: 50%; }
.stepper .n { min-width: 64px; text-align: center; font-size: 32px; font-weight: 850; color: var(--brand); }
.summary {
  margin-top: 14px; padding: 12px 16px; border-radius: 14px; font-size: 18px;
  background: linear-gradient(135deg, var(--gold-soft), #fff6e8);
}
.summary b { font-size: 22px; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; min-height: 64px; font-size: 20px; }
.choice { display: flex; gap: 8px; }
.choice .btn { flex: 1; min-height: 64px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { background: var(--coffee); color: #fff; padding: 14px 16px; border-radius: 14px; font-weight: 650; box-shadow: var(--shadow-lg); animation: rise 0.2s ease; }
.toast.ok { background: linear-gradient(135deg, #236b44, var(--green)); }
.toast.bad { background: linear-gradient(135deg, #9c241c, var(--bad)); }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding: 10px 12px; }
  .top .place { font-size: 19px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top .date { width: 100%; order: 3; font-size: 14px; }
  .tabs { padding: 12px 12px 6px; }
  .tab { padding: 0 12px; min-height: 44px; font-size: 15px; }
  main { padding: 10px 12px 120px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
  .tile { min-height: 108px; padding: 10px; }
  .tile .ico { width: 32px; height: 32px; font-size: 18px; top: 8px; right: 8px; }
  .tile .am { font-size: 17px; padding-right: 34px; }
  .tile .en { padding-right: 34px; }
  .shop-picker { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .shop-picker .btn { min-height: 46px; font-size: 14px; padding: 0 6px; }
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 24px 24px 0 0; max-height: 94vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 12px; }
  .sheet h2 { font-size: 22px; }
  .total-card b { font-size: 24px; }
}

/* people who asked their device for less motion get none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- price change note, show-password eye ---------- */
.price-note { background: #fff6d6; border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 14px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.price-note .btn { justify-self: start; margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font-size: 22px; width: 44px; height: 44px; cursor: pointer; }

/* ---------- money tab, transfers, phone setup ---------- */
.big-btn { width: 100%; min-height: 64px; font-size: 18px; margin-bottom: 8px; }
.tag.ok { background: var(--green-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.row.wrap { flex-wrap: wrap; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
details.fix summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.copy-box { display: flex; gap: 8px; align-items: center; background: #f6f1ea; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.copy-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.steps { padding-left: 22px; line-height: 1.5; }

/* ---------- raw materials / production ---------- */
.tile-ico.raw { background: #efe6d6; }
.row.flour { background: #fff9ec; }

/* ---------- round 6 ---------- */
.big-name { font-size: 19px; font-weight: 850; }
.ok-text { color: var(--ok); }
.row.day-sep { background: #f6efe6; font-weight: 800; font-size: 14px; padding: 8px 14px; }
.total-card.between b { font-size: 17px; }

/* admin: lighter cards, colour stripes, pills, switches, avatars */
main.admin .admin-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px 18px;
  border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
main.admin .admin-hero h2 { margin: 0; color: #fff; }
main.admin .hero-ico { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.18); }
main.admin .list { background: transparent; box-shadow: none; display: grid; gap: 8px; }
main.admin .row { background: var(--card); border-radius: 14px; border-top: 0; box-shadow: var(--shadow); }
main.admin .row.prod { border-left: 6px solid var(--line); }
main.admin .row.cat-bread { border-left-color: var(--gold); }
main.admin .row.cat-spice { border-left-color: var(--brand); }
main.admin .row.cat-dairy { border-left-color: var(--teal); }
main.admin .row.cat-other { border-left-color: var(--plum); }
main.admin .row.cat-raw { border-left-color: #a08060; }
main.admin .filters { position: sticky; top: var(--topbar-h, 0px); z-index: 5; background: var(--bg); padding: 6px 0; }
.price-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--ok); font-weight: 800; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #fff; background: var(--brand-2); }
.avatar.r-owner { background: var(--plum); } .avatar.r-admin { background: var(--brand); }
.avatar.r-shopkeeper { background: var(--teal); } .avatar.r-warehouse { background: var(--gold); }
.avatar.r-place { background: #f1ebe4; font-size: 20px; }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 0; background: #d8cfc5; position: relative; cursor: pointer; flex: 0 0 52px; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--ok); } .switch.on span { left: 25px; }
@media (prefers-reduced-motion: reduce) { .switch span { transition: none; } }

/* ---------- round 7: employees, holidays ---------- */
button.row.staff-row { width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.holiday { position: relative; padding-right: 48px; }
.hol-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); cursor: pointer; font-size: 16px; }
