/* Branding: the business's logo and its second colour as highlights. Colours come from
   --brand / --brand-2 (app.css), so this works for any business, not only TAZA. */

/* ---- logo on the module rail: see-through, as wide as the rail. It's the dark-background
   version (dark lettering turned white), so it reads on the dark rail without a white box. ---- */
.rail .brand.has-logo{padding:2px 0 10px;margin:0 -4px}
.rail .brand .logo{display:block;line-height:0;margin:0}
.rail .brand .logo img{display:block;width:100%;height:auto;max-height:90px;object-fit:contain}
/* with a logo, the store and lane are in the page header, so the rail keeps all its room for modules */
.rail .brand.has-logo .full{display:none}
.rail .nav{flex-shrink:0}
.rail.icons .brand .logo{margin:0 auto;width:48px}
/* active module: orange marker and orange icon, the prototype's green tile behind it */
.rail .nav[aria-current="page"]{box-shadow:inset 3px 0 0 var(--brand-2)}
.rail .nav[aria-current="page"] .ico{color:var(--brand-2-light)}
.rail .nav:hover .ico{color:var(--brand-2-light)}
.rail .nav:focus-visible{outline-color:var(--brand-2)}

/* ---- sign-in cards (back office, register PIN) ---- */
.cardlogo{display:block;max-width:min(240px,70%);max-height:110px;height:auto;margin:0 auto 4px;object-fit:contain}

/* ---- back office ---- */
.office .obar{box-shadow:inset 0 3px 0 var(--brand-2)}
.office .eyebrow{color:var(--hl-ink)}
.office .tabs a.on{box-shadow:inset 0 -3px 0 var(--brand-2)}
.office .subtabs button.on{box-shadow:inset 0 -3px 0 var(--brand-2)}
.office .mod .ic{background:var(--hl-soft);color:var(--hl-ink)}
.office a.mod:hover{border-color:var(--hl)}
.office a.mod:hover .ic{background:var(--hl);color:#2a1704}
.office .mod.big .ic{background:var(--brand-2);color:#2a1704}
.office .mod.big{box-shadow:inset 0 -4px 0 var(--brand-2)}
.office h1 .hl,.office .hl{color:var(--hl-ink)}
.office .pill.phase,.office .soon{background:var(--hl-soft);color:var(--hl-ink)}

/* ---- till ---- */
.tl .search:focus-within{border-color:var(--hl);box-shadow:0 0 0 3px color-mix(in oklab,var(--hl) 25%,transparent)}
.tl .avatar{background:var(--spice-soft);color:var(--spice)}
.tl .totals .grand{box-shadow:inset 6px 0 0 var(--hl)}
.tl .totals .saved{background:var(--hl);color:var(--on-hl)}
.tl .badge{background:var(--hl);color:var(--on-hl)}
.tl .seg button[aria-pressed="true"]{box-shadow:0 1px 2px rgba(0,0,0,.12),inset 0 -3px 0 var(--hl)}
.tl .tile .star,.tl .tile .star.on{color:var(--hl)}
.tl .cats button[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);border-color:transparent;box-shadow:inset 0 -4px 0 var(--hl)}
.tl .pinout i.on{background:var(--hl);border-color:var(--hl)}

/* the receipt on screen shows the printed logo, ink on paper */
.receipt .rlogo{display:flex;justify-content:center;padding:2px 0 10px}
.receipt .rlogo img{max-width:62%;height:auto;image-rendering:pixelated;mix-blend-mode:multiply}

/* ---- customer screen ---- */
.cs-logo{line-height:0}
.cs-logo img{display:block;width:min(360px,60vw);height:auto}
.cs-done .cs-donebox{background:var(--brand-2);color:#2a1704}
.cs-logo-sm{display:block;width:180px;max-width:100%;height:auto;margin-bottom:4px}
.cs-big{box-shadow:inset 6px 0 0 var(--brand-2)}

/* ---- Settings > Branding ---- */
.brandlogo{display:grid;place-items:center;min-height:120px;padding:12px;border:1px dashed var(--line);border-radius:10px;background:#fff}
.brandlogo img{max-width:100%;max-height:140px;height:auto}
.brandlogo.dark{background:#17231c;border-color:#17231c}
.brandlogo.dark .muted{color:#b9c6bd}
.colorpick{display:flex;gap:6px;align-items:center}
.colorpick input[type=color]{width:46px;height:38px;padding:2px;border-radius:8px;cursor:pointer}
.colorpick input.mono{width:100px}
.brandprev{display:flex;border-radius:12px;overflow:hidden;border:1px solid var(--line);min-height:190px;
  --accent:var(--brand);background:color-mix(in oklab,var(--brand) 6%,#fff);color:#16201a}
.bp-rail{width:84px;flex:none;background:color-mix(in oklab,var(--brand) 32%,#06100a);padding:8px;display:flex;flex-direction:column;gap:6px}
.bp-logo{display:block;line-height:0;margin:0 -2px 4px}
.bp-logo.raw{background:#fff;border-radius:8px;padding:4px;margin:0}
.bp-logo img{display:block;width:100%;height:auto}
.bp-nav{height:26px;border-radius:7px;background:rgba(255,255,255,.07)}
.bp-nav.on{background:color-mix(in oklab,var(--brand) 62%,#06100a);box-shadow:inset 3px 0 0 var(--brand-2)}
.bp-main{flex:1;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.bp-eyebrow{font:700 11px/1 "JetBrains Mono",monospace;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in oklab,var(--brand-2) 72%,#000)}
.bp-chips{display:flex;gap:6px;flex-wrap:wrap}
.bp-chips span{font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;background:#fff;border:1px solid #d6ddd5}
.bp-chips span.on{background:var(--brand);color:#fff;border-color:transparent;box-shadow:inset 0 -3px 0 var(--brand-2)}
.bp-total{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:10px;background:var(--brand);color:#fff;box-shadow:inset 6px 0 0 var(--brand-2);font-weight:700}
.bp-total b{font-size:22px}
.bp-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bp-btn{padding:8px 16px;border-radius:9px;background:var(--brand);color:#fff;font-weight:600;font-size:13px}
.bp-badge{background:var(--brand-2);color:#2a1704;font:600 11px/1 "JetBrains Mono",monospace;padding:4px 8px;border-radius:99px}
.bp-saved{background:color-mix(in oklab,var(--brand-2) 15%,#fff);color:color-mix(in oklab,var(--brand-2) 72%,#000);font-weight:700;font-size:12px;padding:4px 10px;border-radius:99px}
/* the sample receipt on the Branding page, styled like the till's */
.office .receipt{background:#fffdf6;color:#1d1d1b;font:13px/1.45 "JetBrains Mono",ui-monospace,Consolas,monospace;padding:18px;border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.12);max-width:400px;margin:0 auto;width:100%}
.office .receipt .rr{display:flex;justify-content:space-between;gap:10px}
.office .receipt .rr.c{justify-content:center;text-align:center}
.office .receipt .rr.b{font-weight:700}
.office .receipt .rr.l{font-size:16px}
.office .receipt .bc{letter-spacing:.1em;color:#555;margin-top:6px}
.office .receipt hr{border:0;border-top:1px dashed #999;margin:8px 0}
