/* The store's own look. This copy is Tales & Stories, kept minimal on purpose:
   white, near-black ink, hairlines, a lot of air, Poppins. The brand's magenta appears in ONE role only
   (where you are: the active menu item, the chosen tab, today's bar). The colour lives in the logo, not the screen.
   To dress the POS for another store, swap this file and shared/brand/ (logo.png, icon.png, fonts). Nothing else changes. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/shared/brand/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/shared/brand/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700 800; font-style: normal; font-display: swap; src: url("/shared/brand/poppins-700.woff2") format("woff2"); }

:root {
  --b-magenta: #BE1B82;
  --bg: #ffffff; --card: #fff; --ink: #141414; --muted: #77777b; --line: #ececec; --soft: #f5f5f5;
  --accent: #141414; --accent-ink: #fff; --focus: #141414; --link: #141414;
  --ok: #1a7f4e; --warn: #a8581a; --bad: #b3261e;
  --radius: 10px; --shadow: none;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
body { font-size: 14px; line-height: 1.5; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; }
b, strong { font-weight: 600; }

/* header: logo, quiet text menu, one hairline */
.top { padding: 14px 24px; gap: 28px; border-bottom: 1px solid var(--line); }
.brand .logo { display: block; height: 18px; width: auto; }
.brand .credit { margin-top: 4px; font-size: 10px; color: #a0a0a4; }
.top nav { gap: 22px; }
.nav { padding: 6px 0; border-radius: 0; font-weight: 400; color: var(--muted); border-bottom: 2px solid transparent; }
.nav:hover { color: var(--ink); }
.nav.on { background: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--b-magenta); }
.who { font-size: 12px; }
.pill { font-weight: 400; font-size: 12px; padding: 5px 12px; border-color: var(--line); }
.pill.warn { background: #fff; border-color: #d9a066; color: var(--warn); } .pill.bad { background: #fff; border-color: #e0a09b; color: var(--bad); }
.dot { width: 7px; height: 7px; } .dot.on { background: var(--ok); } .dot.off { background: #d08a3c; }

/* controls: black, flat, calm */
input, select, textarea { border-color: #dedede; border-radius: 8px; min-height: 42px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.btn { border-radius: 8px; font-weight: 600; font-size: 13.5px; background: #fff; border-color: var(--line); }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #000; }
.btn.danger { background: #fff; color: var(--bad); border-color: #e0a09b; }
.btn.big { font-size: 15px; }
.link { color: var(--ink); text-underline-offset: 2px; }
.lbl { font-size: 12px; margin-top: 14px; }
.card { padding: 22px; margin-bottom: 20px; }
.tag { background: none; border: 1px solid var(--line); font-size: 11px; padding: 1px 8px; }
.tag.ok { background: none; border-color: #b9dcc9; } .tag.warn { background: none; border-color: #e6c9a8; } .tag.bad { background: none; border-color: #e8bcb8; }
th { font-size: 11px; font-weight: 400; letter-spacing: .08em; padding: 10px 8px; }
td { padding: 12px 8px; }
.modal { background: rgba(20,20,20,.28); }
.sheet { border-radius: 14px; padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,.14); }
.toast { background: var(--ink); border-radius: 8px; font-size: 13px; }
.pad button { border-radius: 10px; font-weight: 400; font-size: 20px; min-height: 56px; }
.pad button:active { background: var(--ink); color: #fff; }

/* tour: outline only, page never greyed */
.tour-on { outline: 2px solid var(--ink) !important; }
#tourCard { border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.12); }
#tourCard .t-primary { background: var(--ink); border-color: var(--ink); }
#tourCard .t-try { background: var(--soft); }

/* counter */
#main { padding: 24px 24px 60px; }
.sell { gap: 24px; grid-template-columns: minmax(0, 1fr) 380px; }
.left, .right-pane { padding: 20px; }
.right-pane { gap: 14px; top: 84px; }
#scan { border-width: 1px; font-size: 16px; min-height: 52px; }
.results { box-shadow: 0 16px 50px rgba(0,0,0,.12); border: 1px solid var(--line); }
.res:hover, .res:focus { background: var(--soft); }
.empty .big { font-size: 18px; font-weight: 600; }
.tiles { gap: 10px; margin-top: 24px; }
.tile { font-weight: 600; font-size: 12.5px; padding: 14px; border-radius: 10px; gap: 6px; }
.tile span { font-weight: 400; }
.tile:hover { border-color: var(--ink); }
.q { border-radius: 50%; }
.cust { border: 1px solid var(--line); background: #fff; padding: 12px 14px; }
.cust:hover { border-color: var(--ink); }
.grand { font-size: 30px; font-weight: 600; border-top: 1px solid var(--ink); padding-top: 14px; }
.pay { min-height: 60px; font-size: 17px; letter-spacing: .01em; }
.tab { font-weight: 400; border-radius: 8px; }
.tab.on { background: #fff; color: var(--ink); border-color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--b-magenta); }
.big-input { font-weight: 600; }
.upi .big, .done .big { font-weight: 600; }
.paid-ok { background: #fff; border: 1px solid #b9dcc9; font-size: 15px; }
.tick { font-size: 36px; }
.change b { font-weight: 600; }

/* back office */
.head { margin-bottom: 22px; }
.kpis { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.kpi { border: 0; border-radius: 0; border-right: 1px solid var(--line); padding: 20px; margin: 0 -1px -1px 0; border-bottom: 1px solid var(--line); }
.kpi .k { font-size: 10.5px; letter-spacing: .08em; }
.kpi .v { font-size: 26px; font-weight: 600; margin-top: 8px; }
.kpi .s { margin-top: 4px; }
.bars { gap: 10px; height: 150px; }
.bars .fill { background: #d9d9d9; border-radius: 2px 2px 0 0; }
.bars .b.today .fill { background: var(--b-magenta); }
tr.click:hover td { background: #fafafa; }
.tabs2 { gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs2 button { border: 0; border-radius: 0; padding: 8px 0; font-weight: 400; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; }
.tabs2 button.on { background: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--b-magenta); }
.big { font-weight: 600; }
.note { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--ink); border-radius: 0 8px 8px 0; }

@media (max-width: 980px) { .sell { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 10px; } .top nav { gap: 18px; }
  #main { padding: 14px 14px 50px; } .left, .right-pane { padding: 14px; }
  .kpi { padding: 14px; } .kpi .v { font-size: 20px; }
}
