/* ============================================================================
   apexui.css - the sign-on and dashboard skin (v2.4.0)

   Loaded LAST, after app.css and apple.css, so everything here is an override
   layer: delete the <link> in index.html and the till returns to the previous
   look exactly. Nothing in here changes behaviour - it is presentation only.

   Tone tints are declared once as custom properties so every card, badge and
   tile in the dashboard picks up the dark-mode versions automatically.
   ========================================================================= */

/* Tints, badge fills and grounds are sampled pixel-by-pixel from the approved
   dashboard mockup - not picked by eye. See scratchpad/dash2.mjs. */
:root{
  --t-blue:#1C53A8;   --t-blue-soft:#DBE9FD;
  --t-green:#16815B;  --t-green-soft:#E2F6EF;
  --t-violet:#6D45B0; --t-violet-soft:#EBE6FD;
  --t-red:#C53B3B;    --t-red-soft:#FEE1EA;
  --t-amber:#B4760F;  --t-amber-soft:#FDEDD8;
  /* Solid badge fills, for the severity dots on Needs attention. */
  --sev-red:#FC506A;  --sev-amber:#FD8B0A;  --sev-blue:#065FEB;
  --sev-red-ink:#CE3450; --sev-amber-ink:#B4700A; --sev-blue-ink:#1550C8;
  /* Brief: corners ~12-16px, cards white with a 1px border and a soft shadow. */
  --dash-radius:16px;
  --dash-shadow:0 1px 2px rgba(26,63,120,.06),0 6px 18px -10px rgba(26,63,120,.18);
  /* One 4px spacing scale - every panel, card and gap below uses these. */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
}
/* Dark mode carries the same hues at working contrast: the tints are lifted
   until icon-on-tint clears 4.5:1, rather than left as faint washes. */
:root[data-theme="dark"]{
  --t-blue:#9CC2F7;   --t-blue-soft:rgba(86,146,232,.30);
  --t-green:#5BD6A0;  --t-green-soft:rgba(52,182,128,.30);
  --t-violet:#C4A4F2; --t-violet-soft:rgba(158,118,228,.32);
  --t-red:#FF8B82;    --t-red-soft:rgba(236,94,84,.30);
  --t-amber:#FFC46B;  --t-amber-soft:rgba(238,158,26,.30);
  --sev-red-ink:#FF8B82; --sev-amber-ink:#FFC46B; --sev-blue-ink:#9CC2F7;
}

.dtile{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto}
.dtile svg{width:21px;height:21px;display:block}
.dtile-blue{background:var(--t-blue-soft);color:var(--t-blue)}
.dtile-green{background:var(--t-green-soft);color:var(--t-green)}
.dtile-violet{background:var(--t-violet-soft);color:var(--t-violet)}
.dtile-red{background:var(--t-red-soft);color:var(--t-red)}
.dtile-amber{background:var(--t-amber-soft);color:var(--t-amber)}

/* ==========================================================================
   1. Sign-on
   ========================================================================== */

.signin-card.pos-signin{box-shadow:0 30px 80px rgba(6,20,44,.42)}

/* --- the navy brand panel ---
   Colours sampled straight off the approved mockup: a blue glow in the
   top-right corner falling away to deep navy at the bottom-left. The
   illustration is a crop of that same mockup, so the two must agree. */
.signin{
  background:
    radial-gradient(90% 78% at 5% 38%,#1a5cab 0%,rgba(26,92,171,0) 58%),
    linear-gradient(158deg,#1c60b2 0%,#124588 34%,#063c7e 70%,#04336d 100%);
}
.signin-brand{
  position:relative;overflow:hidden;
  align-items:stretch;text-align:left;
  padding:38px 40px 30px;
  background:
    radial-gradient(118% 92% at 100% 1%,rgba(64,146,226,.85) 0%,rgba(64,146,226,0) 58%),
    linear-gradient(200deg,#0a4287 0%,#05316d 42%,#022c62 78%,#02275a 100%);
}
.signin-brand:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(198,222,255,.22) 1.6px,transparent 1.6px);
  background-size:24px 24px;
  -webkit-mask-image:radial-gradient(120px 110px at 8% 26%,#000 55%,transparent 100%),radial-gradient(150px 120px at 96% 92%,#000 55%,transparent 100%);
  mask-image:radial-gradient(120px 110px at 8% 26%,#000 55%,transparent 100%),radial-gradient(150px 120px at 96% 92%,#000 55%,transparent 100%);
}
.signin-brand>*{position:relative;z-index:1}

.signin-lockup{display:flex;align-items:center;gap:18px}
.signin-brand .signin-logo{
  margin:0;width:66px;height:66px;border-radius:18px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);
  display:grid;place-items:center;color:#fff;flex:0 0 auto;
}
.signin-brand .signin-logo .logo-mark,
.signin-brand .signin-logo svg,
.signin-brand .signin-logo img{width:36px;height:44px;object-fit:contain}
.signin-lockup-text{display:grid;gap:2px;min-width:0}
.signin-wordmark{font-size:clamp(26px,2.9vw,34px);font-weight:700;letter-spacing:-.6px;color:#fff;line-height:1.15}
.signin-org{font-size:clamp(14px,1.4vw,17px);font-weight:400;color:rgba(201,222,250,.72);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.signin-brand h1{
  margin:30px 0 0;font-size:clamp(34px,4.6vw,54px);line-height:1.04;
  font-weight:700;letter-spacing:-1.6px;color:#fff;
}
.signin-lede{margin:14px 0 0;font-size:clamp(16px,1.85vw,22px);line-height:1.4;font-weight:400;color:rgba(201,222,250,.78)}

img.signin-art{margin:20px auto 0;display:block;width:min(100%,470px);height:auto}

/* Solid, not frosted: same look as the mockup without the blur-and-alpha
   glass trick, which also stops the text contrast wandering with whatever
   is behind it. */
.signin-brand .signin-trust{
  margin-top:auto;width:100%;gap:16px;
  background:#123A72;border:1px solid #1B4A87;
  border-radius:16px;padding:20px 22px;
}
.signin-brand .signin-trust strong{color:#fff;font-size:17px;font-weight:600}
.signin-brand .signin-trust p{color:rgba(201,222,250,.72);font-size:15px;line-height:22px}
.signin-brand .signin-trust-mark{color:#8FB6EA}
.signin-brand .signin-trust-mark svg{width:26px;height:26px}

.signin-motto{
  margin-top:20px;display:flex;align-items:center;gap:14px;
  font-size:11.5px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(168,196,232,.58);
}
.signin-rule{width:36px;height:2px;border-radius:2px;background:rgba(168,196,232,.42);flex:0 0 auto}

/* --- the sign-on panel --- */
.signin-main{padding-top:26px}
/* The hint is one line in the design; 400px forced it to wrap to two. */
.signin-main p.tiny.muted{max-width:620px;font-size:15.5px}
.pos-signin .pin-field .pin-display{border-radius:14px}
.signin-top{
  width:100%;max-width:569px;display:flex;align-items:center;justify-content:flex-end;
  gap:12px;margin:0 0 14px;font-size:14.5px;color:var(--ink-2);
}
.signin-clock{font-weight:500;font-variant-numeric:tabular-nums}
.signin-verpill{
  border:1px solid var(--line);background:var(--surface);border-radius:999px;
  padding:4px 11px;font-size:12px;font-weight:600;color:var(--ink-2);
}
.signin-top .ap-appearance-btn{color:var(--ink-2)}
.signin-top .ap-appearance-btn:hover{color:var(--ink)}

.pin-field-lead{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  color:#8AA2BE;display:flex;pointer-events:none;
}
.pin-field-lead svg{width:22px;height:22px;display:block}
.pos-signin .pin-field .pin-display{padding:0 50px}
.pin-clear{
  position:absolute;right:11px;top:50%;transform:translateY(-50%);
  width:32px;height:32px;border:0;border-radius:50%;background:transparent;
  color:#8AA2BE;display:grid;place-items:center;cursor:pointer;padding:0;
}
.pin-clear:hover{background:#E9F0FA;color:var(--ink-2)}
.pin-clear div{display:flex}
.pin-clear svg{width:16px;height:16px;display:block}

.signin-status .signin-dot{margin-right:2px}
.signin-ver{font-size:13px}

:root[data-theme="dark"] .signin-card.pos-signin{background:var(--surface)}
:root[data-theme="dark"] .pin-clear:hover{background:var(--surface-2)}

@media (max-width:900px){
  .signin-brand{padding:26px 22px 22px}
  .signin-brand h1{margin-top:22px}
  .signin-art{width:min(100%,240px)}
  .signin-motto{margin-top:14px}
}

/* ==========================================================================
   2. Dashboard
   ========================================================================== */

/* Grounds, sampled from ApexPOS_Dashboard_Polished.png. These are the LIGHT
   values only - dark mode hands each one back to the theme token, or the page
   and the top bar stay painted daylight behind dark cards. */
body.has-rail{background:#F2F7FC}
body.has-rail .topbar{background:#FAFBFE}
body.has-rail .app-rail .rail-link[aria-current=page]{background:#0C57C7}
:root[data-theme="dark"] body.has-rail{background:var(--bg)}
:root[data-theme="dark"] body.has-rail .topbar{background:var(--surface)}

/* Six everyday destinations, the rest folded behind More. */
.rail-more{margin-top:var(--sp-1)}
.rail-morelist{display:grid;gap:2px;margin-top:2px;padding-left:var(--sp-2)}
.rail-more-btn.is-open{color:#fff}

/* The side panel follows the theme like every other surface. It was the one
   piece left on a fixed navy no matter what light or dark was set to. */
body.has-rail .app-rail{background:linear-gradient(180deg,#123156 0%,#0E2F5B 62%,#0B2850 100%)}
:root[data-theme="dark"] body.has-rail .app-rail{
  background:linear-gradient(180deg,#171A21 0%,#111419 100%);
  border-right:1px solid var(--line);
}
:root[data-theme="dark"] body.has-rail .app-rail .rail-link[aria-current=page]{background:#1D4FA8}

.dash{gap:var(--sp-4)}

.dash-head{align-items:center}
.dash-hello{display:flex;align-items:center;gap:14px;min-width:0}
.dash-hello-ic{
  width:46px;height:46px;border-radius:16px;flex:0 0 auto;
  background:var(--t-blue-soft);color:var(--t-blue);display:grid;place-items:center;
}
.dash-hello-ic svg{width:24px;height:24px;display:block}
.dash-hi{font-size:clamp(22px,2.2vw,30px);line-height:1.25;font-weight:700;color:var(--ink)}
.dash-sub{margin-top:3px;font-size:14.5px;color:var(--ink-2)}
.dash-chip{padding:9px 15px;font-size:13.5px;box-shadow:var(--shadow)}
.dash-chip-ic{display:flex;color:var(--ink-3)}
.dash-chip-ic svg{width:16px;height:16px;display:block}

/* --- the four figures ---
   Mockup layout: label row, then the figure with its sparkline beside it,
   then the comparison line underneath. No percentage chips. */
.kcards{grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:var(--sp-4)}
.kcard{padding:var(--sp-5);border-radius:var(--dash-radius);gap:var(--sp-3);border:1px solid var(--line);box-shadow:var(--dash-shadow)}
.kcard-top{gap:var(--sp-3)}
.kcard-label{font-size:11.5px;letter-spacing:.085em}
/* The sparkline sits behind the lower right of the card, as in the mockup, so
   the figure and its comparison keep the full width and never truncate. */
.kcard{position:relative;overflow:hidden}
.kcard-body{display:block;min-width:0}
.kcard-figures{position:relative;z-index:1;display:grid;gap:var(--sp-2)}
/* The figure never breaks across two lines - the sparkline gives way first. */
.kcard-value{font-size:clamp(26px,2.4vw,34px);line-height:1.18;white-space:nowrap}
/* app.css spaces this row apart; here the chip and its caption sit together. */
.kcard-foot{display:flex;align-items:center;justify-content:flex-start;gap:var(--sp-2);min-width:0;min-height:0}
.kcard-delta{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:700;white-space:nowrap}
.kcard-delta.up{color:var(--t-green)}
.kcard-delta.down{color:var(--t-red)}
.kcard-delta.flat{color:var(--ink-3)}
.kcard-delta-ic{display:flex}
.kcard-delta-ic svg{width:13px;height:13px;display:block}
/* On the low-stock card the chevron takes the slot the change chip uses on
   the others, so the four cards keep one baseline. */
.kcard-go{
  width:30px;height:30px;border-radius:9px;border:0;padding:0;flex:0 0 auto;
  background:var(--t-red-soft);color:var(--t-red);display:grid;place-items:center;cursor:pointer;
}
.kcard-go:hover{filter:brightness(.96)}
.kcard-go div{display:flex}
.kcard-go svg{width:16px;height:16px;display:block}
.kcard-sub{font-size:12.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.kcard-spark{position:absolute;right:0;bottom:0;width:52%;pointer-events:none;z-index:0}
.kcard-spark svg{height:56px;display:block}
.kcard.is-bad .kcard-value{color:var(--t-red)}
.kcard.is-bad .kcard-sub{color:var(--t-red);font-weight:500}

/* the kebab */
.card-menu-wrap{position:relative;display:inline-flex;margin-left:auto}
.card-menu-btn{
  width:28px;height:28px;border:0;border-radius:8px;padding:0;background:transparent;
  color:var(--ink-3);display:grid;place-items:center;cursor:pointer;
}
.card-menu-btn:hover{background:var(--surface-2);color:var(--ink-2)}
.card-menu-btn div{display:flex}
.card-menu-btn svg{width:16px;height:16px;display:block}
.card-menu{min-width:190px;padding:var(--sp-1)}

/* --- panels --- */
.dash-panel{border-radius:var(--dash-radius);border:1px solid var(--line);box-shadow:var(--dash-shadow)}
/* Plain headings in this design - no icon tile beside the title. */
.dash-panel>header{display:flex;align-items:center;gap:var(--sp-2);padding:17px 20px 13px}
.dash-panel>header h2{font-size:17px;font-weight:700;line-height:24px}
.dash-panel .panel-body{padding:0 20px 20px}

.count-tag{
  background:var(--t-red-soft);color:var(--t-red);
  font-size:12px;font-weight:700;border-radius:999px;padding:2px 9px;line-height:18px;
}
.panel-link{
  margin-left:auto;display:inline-flex;align-items:center;gap:4px;
  background:none;border:0;font:inherit;font-size:13px;font-weight:600;
  color:var(--primary);cursor:pointer;padding:4px 0;white-space:nowrap;
}
.panel-link:hover{text-decoration:underline}
.panel-link-ic{display:flex}
.panel-link-ic svg{width:14px;height:14px;display:block}

/* The period reads as a quiet label in this design, not a bordered pill -
   but it is still a real control, so it keeps its chevron and hover. */
.pill-picker{
  margin-left:auto;display:inline-flex;align-items:center;gap:4px;
  border:1px solid transparent;border-radius:999px;padding:4px 6px 4px 8px;
  background:transparent;
}
.pill-picker:hover{background:var(--surface-2);border-color:var(--line)}
.pill-picker-ic{display:flex;color:var(--ink-3)}
.pill-picker-ic svg{width:15px;height:15px;display:block}
.pill-select{
  appearance:none;-webkit-appearance:none;border:0;background:none;font:inherit;
  font-size:13px;font-weight:600;color:var(--ink-2);padding:0 2px;cursor:pointer;outline:none;
}
.pill-picker-chev{display:flex;color:var(--ink-3);pointer-events:none;transform:rotate(90deg)}
.pill-picker-chev svg{width:13px;height:13px;display:block}

/* --- quick actions: four across, each button carrying its own tint --- */
/* Four across wherever the panel is wide enough for the labels to sit on one
   line, two-by-two on a narrower till rather than breaking "Add product". */
.quick-grid{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:var(--sp-3)}
.quick-action{
  position:relative;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  gap:var(--sp-3);padding:14px 12px;border-radius:14px;text-align:left;border:1px solid transparent;
}
.quick-action .dtile{background:rgba(255,255,255,.78)}
.q-green{background:#E6FBF1}
.q-blue{background:#ECF4FE}
.q-violet{background:#F5EFFE}
.q-red{background:#FEEFF0}
.quick-action:hover{background:var(--surface-2);border-color:var(--line)}
.quick-label{font-size:13.5px;font-weight:600}
:root[data-theme="dark"] .q-green{background:var(--t-green-soft)}
:root[data-theme="dark"] .q-blue{background:var(--t-blue-soft)}
:root[data-theme="dark"] .q-violet{background:var(--t-violet-soft)}
:root[data-theme="dark"] .q-red{background:var(--t-red-soft)}
:root[data-theme="dark"] .quick-action .dtile{background:rgba(255,255,255,.12)}
.quick-chev{
  position:absolute;right:10px;top:11px;display:flex;color:var(--ink-3);
  opacity:0;transition:opacity .12s ease;
}
.quick-chev svg{width:14px;height:14px;display:block}
.quick-action:hover .quick-chev,.quick-action:focus-visible .quick-chev{opacity:1}

/* --- empty states --- */
.empty-note{display:flex;align-items:flex-start;gap:12px;padding:12px 0 2px}
.empty-note-ic{
  width:38px;height:38px;border-radius:12px;flex:0 0 auto;
  background:var(--surface-2);color:var(--ink-3);display:grid;place-items:center;
}
.empty-note-ic svg{width:19px;height:19px;display:block}
.empty-note strong{display:block;font-size:14px;font-weight:600;color:var(--ink-2)}
.empty-note p{margin:3px 0 0;font-size:12.5px;line-height:18px;color:var(--ink-3)}

.donut-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 20px 28px}
.donut-empty-mark{
  width:72px;height:72px;border-radius:50%;margin-bottom:var(--sp-3);
  background:var(--t-blue-soft);color:var(--t-blue);display:grid;place-items:center;
}
.donut-empty-mark svg{width:34px;height:34px;display:block}
.donut-empty strong{font-size:15px;font-weight:600;color:var(--ink-2)}
.donut-empty p{margin:5px 0 0;font-size:13px;line-height:19px;color:var(--ink-3);max-width:330px}

/* --- needs attention --- */
.note-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}
.note-card{
  display:flex;align-items:flex-start;gap:12px;text-align:left;
  background:var(--surface-2);border:1px solid var(--line);border-radius:16px;
  padding:14px;font:inherit;cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
.note-card:hover{background:var(--brand-wash);border-color:var(--brand-line)}
/* Solid severity dots with a white glyph, as in the mockup - a filled circle
   reads as a status at a glance where a tinted square does not. */
.note-badge{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;color:#fff}
.note-badge svg{width:17px;height:17px;display:block}
.note-badge-bad{background:var(--sev-red)}
.note-badge-warn{background:var(--sev-amber)}
.note-badge-info{background:var(--sev-blue)}
.note-main{flex:1 1 auto;min-width:0}
.note-title{font-size:13.8px;font-weight:600;line-height:19px}
.note-bad .note-title{color:var(--sev-red-ink)}
.note-warn .note-title{color:var(--sev-amber-ink)}
.note-info .note-title{color:var(--sev-blue-ink)}
.note-detail{
  font-size:12.5px;line-height:18px;color:var(--ink-3);margin-top:2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.note-chev{display:flex;align-self:center;color:var(--ink-3);flex:0 0 auto}
.note-chev svg{width:16px;height:16px;display:block}

/* --- stock health --- */
.health{padding:16px 20px;border-radius:var(--dash-radius);gap:16px;box-shadow:var(--dash-shadow)}
.health .dtile{width:40px;height:40px;border-radius:13px}
.health .dtile svg{width:19px;height:19px}
.health-text strong{font-size:15px}
.health-bar{height:10px}
.health-score{font-size:22px}

.dash-grid{gap:16px}
.dash-grid.three{grid-template-columns:1.05fr 1.25fr 1.25fr}
.dash-area svg{width:100%;height:auto;display:block}

@media (max-width:1180px){
  .dash-grid,.dash-grid.three{grid-template-columns:1fr}
  /* Two-by-two beats three-across-then-one-orphan on a laptop or tablet. */
  .kcards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .kcards{grid-template-columns:1fr}
  .quick-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .dash-head{align-items:flex-start}
  .kcard-spark{display:none}
}

/* ==========================================================================
   3. Shell chrome - the account pill and the trial banner
   ========================================================================== */

.topbar-right .user-pill{
  display:inline-flex;align-items:center;gap:9px;
  padding:4px 11px 4px 4px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line);background:var(--surface);font:inherit;
}
.topbar-right .user-pill:hover{background:var(--surface-2)}
/* Solid blue disc with white initials, sitting before the name. */
.user-ava{
  width:28px;height:28px;border-radius:50%;flex:0 0 auto;
  background:#529BFD;color:#fff;
  display:grid;place-items:center;font-size:11.5px;font-weight:700;
}
.user-name{font-size:13px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.user-chev{display:flex;color:var(--ink-3)}
.user-chev svg{width:15px;height:15px;display:block}

/* The account chip opens its own menu. It used to open the side drawer, which
   put a second navigation panel on top of the sidebar already on screen. */
.user-menu-wrap{position:relative;display:inline-flex}
.user-menu{
  position:absolute;top:calc(100% + 8px);right:0;min-width:260px;z-index:60;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 16px 40px -12px rgba(16,42,80,.34);padding:var(--sp-2);
}
.user-menu-head{
  display:flex;align-items:center;gap:10px;padding:var(--sp-2) 10px var(--sp-3);
  border-bottom:1px solid var(--line);margin-bottom:var(--sp-2);
}
.user-menu-name{font-size:14px;font-weight:600;color:var(--ink);line-height:19px}
.user-menu-role{font-size:12px;color:var(--ink-3);white-space:nowrap}
.user-menu-label{
  font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-3);padding:var(--sp-1) 10px var(--sp-2);
}
.user-menu-empty{font-size:13px;color:var(--ink-3);padding:var(--sp-2) 10px var(--sp-3)}
.user-menu-item{
  display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;
  border:0;background:none;font:inherit;font-size:13.5px;color:var(--ink);
  border-radius:10px;cursor:pointer;text-align:left;
}
.user-menu-item:hover{background:var(--surface-2)}
.user-menu-item-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-mini-ava{
  width:26px;height:26px;border-radius:50%;flex:0 0 auto;
  background:var(--t-blue-soft);color:var(--t-blue);
  display:grid;place-items:center;font-size:10.5px;font-weight:700;
}
.user-menu-sep{height:1px;background:var(--line);margin:var(--sp-2) var(--sp-1)}
.user-menu-ic{display:flex;color:var(--ink-3);flex:0 0 auto}
.user-menu-ic svg{width:17px;height:17px;display:block}
.user-menu-item.danger{color:var(--danger)}
.user-menu-item.danger .user-menu-ic{color:var(--danger)}
.user-menu-item.danger:hover{background:var(--danger-soft)}

.banner.trial-banner{
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:11px 20px;font-weight:600;background:#FEF3DE;
}
:root[data-theme="dark"] .banner.trial-banner{background:var(--warn-soft);color:var(--warn)}
.trial-crown{display:flex;flex:0 0 auto}
.trial-crown svg{width:20px;height:20px;display:block}
.trial-text{min-width:0}

/* --- the till window chrome --- */
.qb-brand{display:flex;align-items:center;gap:10px;min-width:0}
.qb-brand .logo-mark{width:22px;height:27px;flex:0 0 auto}
.qb-brand-text{display:grid;gap:0;min-width:0;line-height:1.25}
.qb-brand-name{font-size:14px;font-weight:700}
.qb-brand-org{font-size:11.5px;opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qb-clockchip{display:inline-flex;align-items:center;gap:8px}
.qb-clock-ic{display:flex;opacity:.7}
.qb-clock-ic svg{width:15px;height:15px;display:block}
.qb-userava{
  width:26px;height:26px;border-radius:50%;flex:0 0 auto;
  background:#529BFD;color:#fff;display:grid;place-items:center;
  font-size:10.5px;font-weight:700;
}
.qb-user{display:inline-flex;align-items:center;gap:8px}
.qb-username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:820px){
  .user-name{display:none}
  .topbar-right .user-pill{padding:4px}
}
