/* ORVO Cloud POS -- cloud.css
   Pulls the canonical owner-portal design tokens (my.css) so the till + ORVO
   Time screens use the SAME buttons, fields, cards, modals, toasts as the rest
   of the platform. Only layout-specific (POS grid, clock screen) rules live
   here -- never re-skin a token that my.css already owns.

   NOTE: bumping my.css means bumping the @import version below AND cloud.css's
   own ?v= in every cloud/*.html (the staff.css lockstep rule).

   (c) 2026 ORVO Software -- orvopos.com */

@import url('https://my.orvopos.com/css/my.css?v=128');

/* ---- Till shell ------------------------------------------------------- */
/* Whole-page reveal gate: the header (operator chip) + body + footer stay invisible
   until init()'s reveal fires (chip resolved, logo + board loaded), so nothing
   flickers / pops in on load or refresh. Was on .till-body only, which left the
   header chip flashing "Log in" -> name in the always-visible header. */
.till { min-height: 100dvh; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s ease; }
.till.is-ready { opacity: 1; }

/* Header: ORVO logo (left) + burger (right) only -- the shop logo + clock live
   on the page, not up here. */
.till-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 20px; border-bottom: 1px solid #1c1c1c;
    position: sticky; top: 0; background: #000; z-index: 10;
    min-height: 76px;   /* reserve the rail's height so the async rail load never reflows the header (no "jump") */
}
.till-head-orvo { height: 40px; width: auto; object-fit: contain; }
.till-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 0; }

/* Till operator chip (who's driving the till) -- top-right, left of the (i).
   Tapping it opens the login overlay (name picker, or log out / switch). */
/* Matches the (i) / burger header buttons (6px radius, #333->#666 border,
   #888->#fff). Teal accent when a person is logged in. */
/* Same 36px height as the (i) info button (20px icon + 7px padding + 1px border). */
.till-user { display: inline-flex; align-items: center; gap: 8px; min-width: 96px; max-width: 190px; height: 36px; box-sizing: border-box; padding: 0 12px; background: none; border: 1px solid #333; border-radius: 6px; color: #888; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s, opacity .2s; }
.till-user.is-loading { opacity: 0; pointer-events: none; }   /* invisible until the operator resolves -- kills the Log in -> name flicker on load */
.till-user:hover { border-color: #666; color: #fff; }
.till-user .till-user-ico { display: flex; }
.till-user .till-user-ico svg { width: 20px; height: 20px; stroke: currentColor; }
.till-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-user.is-on { border-color: #666; color: #fff; padding: 0 12px 0 6px; }
.till-user-initial { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #444; color: #fff; font-size: 12px; font-weight: 800; }

/* Login overlay -- a close mirror of the C# PrepStation "SELECT USER" screen:
   a centred glowing title, a wrapping GRID of plain name tiles (#171717 / #444,
   6px, name only -- no avatar, no role), and a Cancel button. Built on the shared
   .modal-overlay / .modal chrome. */
.till-login { max-width: 480px; width: 100%; text-align: center; }
.till-login-title { margin: 4px 0 18px; font-size: 22px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 0 10px rgba(115, 209, 222, .45); }
.till-login-cur { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 0 0; }
.till-login-cur-name { font-size: 16px; font-weight: 700; color: #fff; }
.till-login-cur-role { font-size: 13px; color: #888; }
/* Footer actions: Cancel (left, neutral) + Log out (right, red) when logged in,
   equal-sized; just Cancel when picking. Mirrors the ORVO modal footer. */
.till-login-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.till-login-cancel, .till-login-out { flex: 1 1 0; min-width: 0; max-width: 200px; height: 48px; padding: 0 18px; border: 1px solid; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: border-color .15s, background .15s; }
.till-login-out { background: #B52B2B; border-color: #B52B2B; color: #fff; }
.till-login-out:hover { background: #c33a3a; border-color: #c33a3a; }
.till-login-out:active { background: #9e2424; }
.till-login-switch { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid #2a2a2a; }
.till-login-grid { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 12px; min-height: 72px; max-height: 48vh; overflow-y: auto; margin-top: 6px; padding: 2px; }
.till-login-tile { flex: 0 0 120px; min-height: 60px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 10px; background: #171717; border: 1px solid #444; border-radius: 6px; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; cursor: pointer; transition: border-color .15s, background .15s; }
.till-login-tile:hover { border-color: #666; background: #2a2a2a; }
.till-login-tile:active { background: #3a3a3a; }
.till-login-tile:disabled { opacity: .5; cursor: default; }
.till-login-cancel { background: #171717; border-color: #444; color: #fff; }
.till-login-cancel:hover { border-color: #666; background: #2a2a2a; }
.till-login-cancel:active { background: #3a3a3a; }
.till-login-loading, .till-login-empty { flex: 1 0 100%; text-align: center; color: #777; padding: 24px 0; font-size: 14px; }

/* Phone: shrink the chip to the avatar/icon only so the header doesn't crowd. */
@media (max-width: 560px) {
    .till-user .till-user-name { display: none; }
    /* Fixed square so the three states (loading / Log in / avatar) are the SAME
       width. Otherwise the chip resizes AFTER the page reveals and the centred
       rail + "Apps" toggle visibly slide across then back (the reported jump). */
    .till-user { width: 36px; min-width: 36px; max-width: 36px; padding: 0; justify-content: center; }
    .till-user.is-on { padding: 0; }
}

/* Header action rail -- the POS function switcher (Home, Till, Expediter, ...).
   Inline + centred on tablet/desktop; on phones it collapses behind the "Apps"
   toggle and drops down under the header (tap-to-expand). */
.till-head-left { display: flex; align-items: center; gap: 12px; flex: 1 1 0; }
/* flex:0 1 auto + equal-flex (flex:1) sides keep the rail dead-centre regardless
   of the logo / actions widths -- so the login chip can't push the nav left. */
.till-rail { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }   /* tighter -- fits an iPad rail */
.till-rail-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 54px; padding: 6px 8px; background: none; border: 1px solid transparent; border-radius: 8px; color: #aaa; font-size: 11px; font-weight: 600; font-family: inherit; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
/* Pending-clock-request count badge on the Clock app (set by cloud-nav.js pollClockReq). */
.till-rail-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #188796; color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #000; }
.till-rail-btn svg { width: 22px; height: 22px; }
.till-rail-btn .till-rail-ico svg { stroke: var(--fn, currentColor); }   /* each function's identity colour (set inline as --fn) */
.till-rail-btn:hover { color: #fff; background: #161616; }
.till-rail-btn.is-active { color: var(--fn, #188796); background: rgba(255,255,255,.06); border-color: var(--fn, #188796); }
.till-rail-btn.is-disabled { opacity: .65; pointer-events: none; }   /* "coming soon" stub, dimmed -- but the function colour still reads */
.till-rail-toggle { display: none; align-items: center; gap: 6px; height: 36px; box-sizing: border-box; padding: 0 12px; background: none; border: 1px solid #333; border-radius: 6px; color: #ccc; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }   /* 36px = matches the Log in chip + info/burger */
.till-rail-toggle svg { width: 18px; height: 18px; }
.till-rail-toggle.is-open { color: #188796; border-color: rgba(24,135,150,.45); background: rgba(24,135,150,.14); }

/* Dim scrim behind the open Apps rail dropdown -- fades the rest of the till so
   the app switcher stands out. z-index 9 sits BELOW the header (z10) + rail so
   only the page content dims; header stays lit. Tap it to close. */
.till-rail-scrim { position: fixed; inset: 0; z-index: 9; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .18s ease; }
.till-rail-scrim.on { opacity: 1; }

@media (max-width: 760px) {
    .till-head { min-height: 0; }   /* rail collapses into the dropdown -- no inline rail height to reserve */
    .till-head-orvo { height: 26px; }   /* the 40px desktop logo is too big on the compact mobile header */
    .till-rail { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d0d0d; border-bottom: 1px solid #1c1c1c; padding: 12px; gap: 8px; justify-content: flex-start; z-index: 20; }
    .till-rail.is-open { display: flex; }
    .till-rail-btn { flex: 0 0 calc(25% - 6px); min-width: 0; }
    .till-rail-toggle { display: flex; }
}

/* Breadcrumb trail under the header on sub-pages (e.g. Till > Clock In/Out) --
   the way back home, mirroring the my-portal `.breadcrumbs` look. */
.till-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #888; padding: 12px 20px; border-bottom: 1px solid #1c1c1c; }
.till-crumbs a { color: #888; text-decoration: none; transition: color .15s; }
.till-crumbs a:hover { color: #188796; }
.till-crumb-sep { color: #444; }
.till-crumb-current { color: #fff; font-weight: 600; }

/* Body: shop logo sits up top, centred just under the header; the Clock In/Out
   tile is pinned to the top-right of that same band (compact -- it's one action,
   not a headline); the four order buttons sit centred below. */
/* Hold the body hidden until the device session resolves, then fade it in as a
   single composed unit. The shop logo + Clock tile are swapped in (src + display)
   while the body is still invisible, so they never pop in / reflow on screen --
   this is what kills the load "jump" (mirrors my.css's .page opacity gate). The
   reveal is added centrally in cloud-nav.js init() (after the session resolves),
   with a safety-net timeout so a hung fetch can't leave the body permanently dark. */
.till-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }   /* opacity gate moved up to .till (header included) */
/* The centred stage: shop logo + a live clock/date + the order tiles, vertically
   centred in the body so the order buttons sit at screen-centre (the key actions);
   the live-action dock stays pinned at the foot below it. */
/* Logo + clock sit UP near the top; the order tiles fill + centre the space
   below them (the key buttons at screen-centre); the dock stays at the foot. */
.till-stage { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding-top: 20px; }
.till-hero { display: flex; justify-content: center; align-items: center; min-height: 120px; }
.till-clock { text-align: center; }
.till-clock-time { font-size: 36px; font-weight: 800; color: #b0b0b0; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.till-clock-date { font-size: 13px; color: #b0b0b0; margin-top: 7px; text-transform: uppercase; letter-spacing: .1em; }
/* Soft-grey (mono) shop logo on the dark till -- pure white read too bright.
   brightness(0) flattens any colour logo to black, invert(.7) lifts it to a
   muted grey (~#b3). Tune the invert amount for lighter/darker. */
.till-logo-hero { width: 300px; max-width: 100%; height: 120px; object-fit: contain; }
/* The company-logo fallback gets the mono filter; the AI till logo (already grayscale+glow) shows AS-IS. */
.till-logo-hero[data-till-logo="off"], .till-logo-hero:not([data-till-logo]) { filter: brightness(0) invert(0.7); }
/* .till-hero prefix: the base .till-tile rule is defined LATER in this file at
   equal specificity, so a bare .till-clock-tile loses the cascade (clock stays
   position:relative + 130px). The descendant selector wins. */
.till-hero .till-clock-tile { position: absolute; top: 0; right: 0; width: 146px; min-height: 84px; padding: 12px; gap: 6px; font-size: 16px; }
.till-hero .till-clock-tile svg { width: 24px; height: 24px; }
.till-orders { flex: 1 1 auto; align-content: center; align-self: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; max-width: 880px; }
.till-orders .till-tile { flex: 1 1 180px; max-width: 220px; }

/* Cloud footer: small (it's a till, reclaim the real estate) but BRIGHT enough
   that the ORVO branding still reads -- owner's call 2026-06-12 (was a near-
   invisible double-dim: my.css's opacity(.3) filter x a .5 element opacity).
   The two unscoped rules cover every cloud page incl. the link screen (no .till). */
.footer-logo { filter: brightness(0) invert(1) opacity(.55); }
.footer p { color: #777777; }
.till .footer { padding: 14px 16px; }
/* height drives the size; clear the inherited width:80px so the 718x185 logo
   keeps its aspect ratio (it was being squashed into an 80x12 box). Tighten the
   inherited 1rem margin -- too big under a 12px mark. */
.till .footer-logo { height: 14px; width: auto; margin-bottom: 7px; }
.till .footer p { font-size: 11px; }

/* Phone portrait: tighten everything -- smaller logo, a compact full-width
   clock, and the order types as a 2x2 grid instead of four tall stacked tiles. */
@media (max-width: 560px) {
    .till-head { padding: 10px 12px; gap: 10px; }   /* tighter gap+pad so the burger clears the screen edge on 360px phones (was overflowing ~3px) */
    .till-body { padding: 14px; }
    .till-hero { flex-direction: column; align-items: center; gap: 10px; min-height: 60px; padding-top: 0; margin-top: 0; }
    .till-logo-hero { width: 200px; height: 60px; }
    .till-stage { padding-top: 0; gap: 5px; flex: 1 1 auto; justify-content: center; }   /* logo+clock centred between header and the order tiles */
    .till-clock-time { font-size: 28px; }
    .till-clock-date { font-size: 11px; margin-top: 4px; }
    .till-hero .till-clock-tile { position: static; width: 100%; max-width: none; min-height: 64px; }
    .till-orders { margin: 14px 0 0; gap: 10px; }
    .till-orders .till-tile { flex: 1 1 calc(50% - 5px); max-width: none; min-height: 96px; padding: 12px; font-size: 16px; }
    .till-orders .till-tile svg { width: 26px; height: 26px; }
}

/* Lock banner -- shown in hybrid mode while the local till is alive (master).
   Orders lock; clocking never does. */
.till-lock {
    display: none; align-items: center; gap: 10px;
    background: #2a1d12; border: 1px solid #5a3a1e; color: #f0b878;
    border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.4;
}
.till-lock svg { width: 20px; height: 20px; stroke: #f0b878; flex-shrink: 0; }
.till.is-locked .till-lock { display: flex; }

.till-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #777; }

/* Order-type grid */
.till-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.till-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; min-height: 130px; padding: 18px;
    background: #0e0e0e; border: 1px solid #242424; border-radius: 12px;   /* match the dock buttons */
    color: #fff; font-weight: 600; font-size: 18px; text-decoration: none;
    cursor: pointer; transition: border-color .3s ease, transform .3s ease;
}
/* Landing-page card hover (copied from index.html .feature-card): silver border +
   a 2px teal gradient line fading in along the top edge + a 2px lift. */
.till-tile::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #188796, transparent);
    opacity: 0; transition: opacity .3s ease;
}
.till-tile:hover  { border-color: #444; transform: translateY(-2px); }
.till-tile:hover::before { opacity: 1; }
.till-tile:active { transform: scale(.98); }
.till-tile svg    { width: 30px; height: 30px; stroke: #188796; }
.till-tile-soon   { font-size: 11px; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: .04em; }
/* "Coming soon" stubs render IDENTICALLY to a live tile (owner: style all the
   same, active or not) -- still not clickable, just no opacity dimming. */
.till-tile.is-disabled { pointer-events: none; cursor: default; }

/* Orders grey out when the local till is master; the ORVO Time tile never does */
.till.is-locked .till-tile:not(.till-tile-time) { opacity: .35; pointer-events: none; }

/* ORVO Time tile -- the one always-available action. Brand teal #188796 (NOT
   the off-palette mint) with a clear teal outline so it reads as the primary
   action while staying in the same family as the order tiles. */
.till-tile-time { background: #0e1c1d; border-color: #188796; }
.till-tile-time:hover { border-color: #1fa9bc; }
.till-tile-time svg   { stroke: #188796; }

/* ---- Bottom live-action dock --------------------------------------------
   The "running the till" strip at the foot of the body: the live Clock + the
   incoming-order queues (Open Orders / Collection / Deliveries). Visible but
   not dominant. The queues are PLACEHOLDERS for now; their count badges flash
   to show the "orders waiting -- tap to action" alert. Count badge colour =
   the brand "order numbers" light blue (#73D1DE). */
.till-dock { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 18px 16px 4px; }
.till-dock-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 72px; padding: 10px 16px; background: #0e0e0e; border: 1px solid #242424; border-radius: 12px; color: #ccc; font-size: 13px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; transition: border-color .3s ease, transform .3s ease, background .3s ease; }
.till-dock-ico { display: flex; }
.till-dock-btn svg { width: 24px; height: 24px; stroke: #9aa3b0; }
/* Same landing-page card hover as .till-tile -- top line inset 14px so it clears
   the rounded corners + the badge that overhangs the top edge (no overflow clip). */
.till-dock-btn::before {
    content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 2px;
    background: linear-gradient(90deg, transparent, #188796, transparent);
    opacity: 0; transition: opacity .3s ease;
}
.till-dock-btn:hover { border-color: #444; transform: translateY(-2px); }
.till-dock-btn:hover::before { opacity: 1; }
/* The live Clock dock button matches the other dock buttons EXACTLY (owner ask):
   same #242424 border, same grey icon, and the same landing-card hover (silver
   #444 + teal top line + lift). It stands out only by being enabled -- the
   queues beside it are dimmed .is-soon stubs. */
.till-dock-btn.is-soon { cursor: default; }   /* no dimming -- matches the live Clock button exactly */
.till-dock-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: flex; align-items: center; justify-content: center; background: #73D1DE; color: #042a30; font-size: 12px; font-weight: 800; border-radius: 999px; box-shadow: 0 0 0 2px #000; }
@media (max-width: 560px) {
    .till-dock { gap: 8px; padding: 14px 8px 2px; }
    .till-dock-btn { min-width: calc(50% - 6px); min-height: 64px; }
}

/* ---- ORVO Time (clock screen) --------------------------------------- */
.ot-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 32px 24px; background: #0d0d0d; border: 1px solid #222;
    border-radius: 12px; max-width: 460px; width: 100%; margin: 10px auto 4px;
}
.ot-name   { font-size: 18px; font-weight: 700; color: #fff; }
.ot-status { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.ot-card.is-on .ot-status    { color: #8FA8C3; }
.ot-card.is-break .ot-status { color: #f0b878; }
.ot-dur { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1; min-height: 10px; font-variant-numeric: tabular-nums; }
.ot-card.is-on .ot-dur { color: #8FA8C3; }
.ot-since { font-size: 14px; color: #888; }
.ot-action {
    margin-top: 16px; min-width: 220px; min-height: 64px; padding: 0 28px;
    font-size: 20px; font-weight: 700; color: #fff; border: none; border-radius: 6px;
    background: #188796; cursor: pointer; transition: transform .1s, background .15s;
}
.ot-action:hover    { background: #1b97a8; }
.ot-action:active   { transform: scale(.97); }
.ot-action:disabled { opacity: .6; cursor: default; }
.ot-card.is-on .ot-action       { background: #5a3a3a; }
.ot-card.is-on .ot-action:hover { background: #6b4444; }

.ot-section { max-width: 560px; width: 100%; margin: 12px auto 0; display: flex; flex-direction: column; gap: 10px; }
.ot-list { display: flex; flex-direction: column; gap: 8px; }
.ot-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #111; border: 1px solid #222; border-radius: 12px; }
.ot-list-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex-shrink: 0; }
.ot-list-row.is-on .ot-list-dot    { background: #8FA8C3; }
.ot-list-row.is-break .ot-list-dot { background: #f0b878; }
.ot-list-name { font-weight: 600; color: #fff; flex: 1; }
.ot-list-sub  { font-size: 13px; color: #888; }

/* Confirmation flash on a clock transaction */
.ot-confirm { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.78); z-index: 2000; }
.ot-confirm.show { display: flex; }
.ot-confirm-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: otPop .35s ease; }
.ot-confirm-icon { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0c2a18; border: 2px solid #0CAB41; }
.ot-confirm-icon svg { width: 48px; height: 48px; stroke: #0CAB41; }
.ot-confirm.is-out .ot-confirm-icon { background: #2a2a2a; border-color: #888; }
.ot-confirm.is-out .ot-confirm-icon svg { stroke: #ddd; }
.ot-confirm-msg { font-size: 22px; font-weight: 700; color: #fff; text-align: center; padding: 0 20px; }
@keyframes otPop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }

/* ---- ORVO Time -- clock board (web recreation of the C# manager dashboard) ----
   Summary stat strip + a grid of per-person cards, each with a status pill, a
   work(mint)/break(amber) transaction timeline with a live-growing trailing
   segment, a per-second ticking worked total, and an End Shift action. */
.ot-board { width: 100%; max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.ot-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }   /* title left, scan button on the same line */
.ot-board-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; line-height: 1.1; }
.ot-board-date { font-size: 14px; color: #888; margin-top: 4px; }
/* Day navigator -- prev / date-pill / next + Today. Mirrors the wall-roster week
   picker (.rv-week-pill): 36px rounded controls, the whole pill is the tap target,
   a transparent OrvoDatepicker input overlays it, the calendar anchors below.
   Scroll back through past days; the current payroll week is editable, completed
   weeks are view-only (the lock note). */
.ot-board-headline { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ot-daynav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ot-nav-btn { width: 36px; height: 36px; border-radius: 10px; background: #0e0e0e; border: 1px solid #242424; color: #c8d0d2; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .12s, background .12s; }
.ot-nav-btn svg { width: 18px; height: 18px; }
.ot-nav-btn:hover:not(:disabled) { border-color: #444; background: #1c1c1c; }
.ot-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.ot-week-pill { position: relative; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; padding: 0 16px; background: #0e0e0e; border: 1px solid #242424; border-radius: 10px; min-width: 150px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.ot-week-pill:hover { border-color: #3a4a4d; }
/* Viewing today -- steel-blue tint so "you're on the live board" reads at a glance
   (mirrors the roster's green is-current-week cue). */
.ot-week-pill.is-today { background: rgba(143,168,195,.10); border-color: rgba(143,168,195,.35); }
/* OrvoDatepicker wraps the overlay input in a .dp-anchor span -> pin it to fill the
   pill so the input overlays the whole face + the popover anchors below it. */
.ot-week-pill .dp-anchor { position: absolute; inset: 0; }
.ot-week-pill input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; background: transparent; padding: 0; margin: 0; cursor: pointer; font-size: 16px; }
.ot-week-pill .ot-pill-cal { pointer-events: none; position: relative; z-index: 1; color: #8FA8C3; display: inline-flex; }
.ot-week-pill .ot-pill-cal svg { width: 15px; height: 15px; }
.ot-week-pill .ot-board-date { pointer-events: none; position: relative; z-index: 1; white-space: nowrap; margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
@media (min-width: 601px) { .ot-week-pill .dp-popover { left: 50%; right: auto; transform: translateX(-50%); } }
.ot-daynav-today { padding: 0 14px; height: 36px; border-radius: 10px; border: 1px solid #2c3e4a; background: #14242c; color: #8FA8C3; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.ot-daynav-today:hover { border-color: #8FA8C3; }
/* Closed (payroll-locked) week: the Add transaction button itself flips to a
   locked, disabled state -- SAME button, same 46px box, so moving in/out of a
   locked day shifts nothing. The person+plus icon swaps for a lock, and it goes
   gold + non-interactive. */
.ot-add-cta .ot-lock-ico { display: none; }
.ot-add-cta.is-locked .ot-add-ico { display: none; }
.ot-add-cta.is-locked .ot-lock-ico { display: block; }
.ot-add-cta.is-locked { color: #C9A227; background: rgba(184,134,11,.08); border-color: rgba(184,134,11,.35); cursor: default; }
.ot-add-cta.is-locked svg { stroke: #C9A227; }
.ot-add-cta.is-locked:hover { transform: none; border-color: rgba(184,134,11,.35); }
.ot-add-cta.is-locked::before { opacity: 0 !important; }
.ot-wiz-locked { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; font-size: 14px; font-weight: 600; color: #C9A227; }
/* Scan CTA styled like an order tile (owner: same as Eat In) -- black bg, the
   #242424 tile border, white text + the landing-card hover. Size unchanged. */
.ot-scan-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 52px; font-size: 16px; font-weight: 700; color: #fff; background: #0e0e0e; border: 1px solid #242424; border-radius: 12px; cursor: pointer; font-family: inherit; transition: border-color .3s ease, transform .3s ease; }
.ot-scan-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #188796, transparent); opacity: 0; transition: opacity .3s ease; }
.ot-scan-cta svg { width: 22px; height: 22px; stroke: #fff; }
.ot-scan-cta:hover  { border-color: #444; transform: translateY(-2px); }
.ot-scan-cta:hover::before { opacity: 1; }
.ot-scan-cta:active { transform: scale(.97); }
/* Two head actions: Add transaction (secondary) + Scan (primary). */
.ot-board-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ot-add-cta { min-height: 46px; padding: 0 18px; font-size: 15px; }   /* secondary -- slightly smaller; same hover/select (teal top-line + lift) as Scan */
.ot-add-cta svg { width: 20px; height: 20px; stroke: #b6c4d6; }

/* Summary stat strip */
.ot-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.ot-stat { flex: 1 1 150px; background: #0e0e0e; border: 1px solid #1f1f1f; border-radius: 12px; padding: 14px 16px; }
.ot-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #777; }
.ot-stat-value { font-size: 26px; font-weight: 800; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ot-stat-value.is-under { color: #8FA8C3; }   /* under roster -- ORVO steel blue */
.ot-stat-value.is-over  { color: #B8860B; }   /* over roster  -- Split gold */
.ot-stat-value.is-ok    { color: #0CAB41; }   /* on target    -- ORVO green */

/* Pending phone clock requests (pass B2) -- a staff member asked to clock in/out
   from their phone; someone at the till Accepts or Dismisses. Teal-accent banner. */
.ot-requests { display: flex; flex-direction: column; gap: 10px; }
.ot-req {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(135deg, #11272b 0%, #0e0e0e 100%);
    border: 1px solid #2a3a3d; border-left: 3px solid #188796; border-radius: 12px;
    padding: 12px 16px;
}
.ot-req-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ot-req-icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(24,135,150,0.14); border: 1px solid rgba(24,135,150,0.3); color: #73D1DE; }
.ot-req-icon svg { width: 19px; height: 19px; }
.ot-req-text { min-width: 0; }
.ot-req-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.ot-req-sub { font-size: 12.5px; color: #8fa0a3; margin-top: 2px; }
.ot-req-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ot-req-actions .btn { min-height: 40px; padding: 0 16px; }
@media (max-width: 600px) {
    .ot-req { flex-direction: column; align-items: stretch; gap: 12px; }
    .ot-req-actions { justify-content: flex-end; }
    .ot-req-actions .btn { flex: 1 1 auto; }
}

/* Staff cards -- one full-width row per person: identity | the long day-bar | figures */
.ot-cards { display: flex; flex-direction: column; gap: 10px; }
/* Fixed figures column (was `auto`) so the day-bar (1fr) is the SAME width on
   every row -- a live "0h 51m 05s" can't widen the column and shrink the bar. */
.ot-staff-card { display: grid; grid-template-columns: 190px 1fr 300px; gap: 18px; align-items: center; background: #0e0e0e; border: 1px solid #1f1f1f; border-left: 3px solid #333; border-radius: 12px; padding: 13px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.ot-card-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ot-card-mid, .ot-card-end { min-width: 0; }
.ot-staff-card:hover { background: #121212; }
.ot-staff-card.is-working     { border-left-color: #0CAB41; }
.ot-staff-card.is-on_break    { border-left-color: #B7481F; }
.ot-staff-card.is-late        { border-left-color: #B52B2B; }
.ot-staff-card.is-not_started { border-left-color: #444; }
.ot-staff-card.is-ended       { border-left-color: #333; opacity: .72; }
.ot-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.ot-card-name { font-size: 16px; font-weight: 700; color: #fff; }
.ot-card-role { font-size: 12px; color: #888; }
.ot-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ot-pill-working     { background: rgba(12,171,65,.16);  color: #0CAB41; }
.ot-pill-on_break    { background: rgba(183,72,31,.20);  color: #d9763f; }
.ot-pill-late        { background: rgba(181,43,43,.20);  color: #e25555; }
.ot-pill-not_started { background: rgba(255,255,255,.06); color: #9aa3b0; }
.ot-pill-ended       { background: rgba(255,255,255,.05); color: #7a8088; }
.ot-card-meta { font-size: 13px; color: #999; }

/* Day progress bar (port of TimelinePanel.cs): the rostered day as the track,
   hourly tick-marks + HH:MM labels, green worked / pink break segments drawn at
   their real times, and a live current-position marker that ticks each second. */
.ot-tl { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.ot-tl-track { position: relative; height: 24px; border-radius: 6px; overflow: hidden; background: #181818; }
/* Active shift: a steady GREEN glow around the whole bar (no flash). The clocked-in
   (green) blocks sit at both ends, so the glow reads as wrapping them on both sides. */
.ot-tl-track.is-active { box-shadow: 0 0 0 1px rgba(12,171,65,.30), 0 0 11px rgba(12,171,65,.42); }
/* Roster band: the rostered window (or, for an unscheduled clock-in, clock-in ->
   shop close) as a lighter shaded surround behind + a touch taller than the green
   worked segments, so the green "king" reads as sitting INSIDE it and an early /
   late clock-in sticks out past it. Drawn first in the track, so green paints on top. */
.ot-tl-roster { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.10); border-radius: 5px; }
.ot-tl-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.09); }
/* The worked segments are inset top/bottom so they sit slimmer INSIDE the taller
   roster band -- the green is the king, the roster band surrounds it. */
.ot-tl-seg { position: absolute; top: 4px; bottom: 4px; min-width: 1px; border-radius: 2px; }
.ot-tl-seg.is-work  { background: #0CAB41; }   /* clocked in -- ORVO green */
.ot-tl-seg.is-break { background: #B7481F; }   /* break / clocked out -- burnt orange (matches the out dots + on-break pill) */
.ot-tl-seg.is-live  { }   /* the trailing segment grows in real time (JS) -- no flash */
.ot-tl-ticks { position: relative; height: 12px; }
.ot-tl-ticklabel { position: absolute; top: 0; transform: translateX(-50%); font-size: 9px; color: #6f6f6f; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Card footer: two live timers (Worked + Break) + variance vs roster. */
.ot-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.ot-card-figs { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; flex-wrap: nowrap; }
/* min-width + right-align so Worked / Break / vs roster form even columns that
   line up across every card (even when a row isn't rostered -> a dash). The
   Worked column reserves room for "0h 00m 00s" so the live seconds never reflow. */
.ot-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 58px; text-align: right; }
.ot-fig.ot-fig-worked { min-width: 92px; }
.ot-fig-label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.ot-worked { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.ot-staff-card.is-working .ot-worked { color: #0CAB41; }
.ot-break { font-size: 14px; font-weight: 700; color: #AAAAAA; font-variant-numeric: tabular-nums; line-height: 1; }
.ot-staff-card.is-on_break .ot-break { color: #d9763f; }   /* on break -- burnt orange (matches the on-break pill) */
.ot-var { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ot-fig-var .ot-var { font-size: 14px; }
.ot-var-under { color: #8FA8C3; }   /* steel blue -- under roster */
.ot-var-over  { color: #B8860B; }   /* gold -- over roster */
.ot-var-ok    { color: #0CAB41; }   /* green -- on target (matches the summary) */
.ot-var-none  { color: #555; }      /* muted dash -- not rostered (keeps the column) */
.ot-detail-end { background: #241414; border-color: #5a3a3a; color: #f0a0a0; }
.ot-detail-end:hover { background: #301a1a; border-color: #6b4444; color: #ffb0b0; }

/* Clock card WIZARD -- ONE fixed-size modal (the body scrolls), the day-bar shown
   in the head on every step: View -> Edit -> Approve, with Back/forward. Reuses the
   existing .ot-tx-* / .tx-edit-* / .ms-* tokens inside its body. */
.ot-wiz { position: relative; width: 460px; max-width: 95vw; height: min(90vh, 600px); display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
.ot-wiz-close { position: absolute; top: 11px; right: 11px; z-index: 3; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #888; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px; transition: color .15s, background .15s; }
.ot-wiz-close:hover { color: #fff; background: #2a2a2a; }
.ot-wiz-head { flex: 0 0 auto; padding: 20px 22px 14px; border-bottom: 1px solid #1c1c1c; }
.ot-wiz-name { margin: 0 40px 4px 0; font-size: 19px; font-weight: 700; color: #fff; }
.ot-wiz-head .ot-tl { margin-top: 12px; }
.ot-wiz-step { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8FA8C3; margin-top: 12px; }
/* Body is a flex column at a FIXED modal height: a scroll region (.ot-wiz-scroll)
   fills the space and any pinned actions (Add button / worked total) sit flush at
   the bottom -- so the modal is the SAME size on every step with no dead gap. */
.ot-wiz-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 14px 22px; overflow: hidden; }
/* overscroll-behavior:contain stops the edit-transaction list (the one tall,
   scrollable modal body) from CHAINING its scroll to the page behind it on iOS
   Safari -- body/html are already pinned, but an inner scroller hitting its
   top/bottom still rubber-bands the bg without this. touch-action:pan-y makes the
   list own the vertical gesture (the locked html is touch-action:none). */
.ot-wiz-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.ot-wiz-scroll > :first-child { margin-top: 0; }
.ot-wiz-center { display: flex; flex-direction: column; justify-content: center; }   /* vertically centre the approve (manager) step */
.ot-wiz-body .ot-detail-worked { margin-top: 14px; }
.ot-wiz-foot { flex: 0 0 auto; display: flex; justify-content: center; gap: 10px; padding: 14px 22px; border-top: 1px solid #1c1c1c; }
.ot-wiz-foot .btn { flex: 1 1 0; max-width: 200px; }
.ot-wiz .tx-edit-rows { max-height: none; overflow: visible; padding: 0; margin-top: 2px; }
.ot-wiz .tx-edit-add { width: 100%; min-height: 46px; margin-top: 12px; flex: 0 0 auto; }
.ot-wiz .tx-edit-delall { width: 100%; min-height: 46px; margin-top: 8px; flex: 0 0 auto; }
.ot-wiz .tx-edit-err { min-height: 0; flex: 0 0 auto; }
/* Approve (manager step-up) -- centred, sensible widths (no full-bleed input/buttons) */
.ot-wiz .ms-scroll { display: flex; flex-direction: column; }
.ot-wiz .ms-body { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; justify-content: space-evenly; }   /* code / OR / request spread evenly -> OR centred between them */
.ot-wiz .ms-codeblock { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ot-wiz .ms-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 auto; }
.ot-wiz .ms-label { text-align: center; }
.ot-wiz .ms-code { width: 220px; max-width: 100%; }
.ot-wiz .ms-or { width: 100%; margin: 0; }
.ot-wiz .ms-request { width: auto; min-width: 210px; }
/* "Ask <name>" buttons -- the present managers, stacked. The buttons are .btn so
   they already take the compact mobile height; this just groups + centres them. */
.ot-wiz .ms-managers { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; max-width: 240px; margin: 0 auto; max-height: 200px; overflow-y: auto; }
.ot-wiz .ms-ask { width: 100%; flex: 0 0 auto; }   /* don't shrink in the scroll list */
.ot-wiz .ms-none { color: #6a7376; font-size: 13px; text-align: center; }
/* Loading dots shown while we look up who's nearby -- the code + ask section stays
   hidden until ready, so the modal doesn't jank/pop as the buttons land. */
.ot-wiz .ms-loading { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 140px; }
.ot-wiz .ms-err { text-align: center; min-height: 0; }
/* On phones, fix the modal to the TALLEST step's height (the manager-code step),
   capped at 90vh, so it never resizes between View / Edit / Approve -- the shorter
   steps just carry a little empty space (owner: hates the size changing). */
@media (max-width: 560px) { .ot-wiz { width: 100%; max-width: 100%; height: min(90vh, 560px); } }

/* Card detail modal -- the person's transactions (view; edit behind the manager
   authenticator lands next slice). Built on the shared .modal-overlay/.modal. */
.ot-detail { position: relative; max-width: 460px; width: 100%; text-align: left; }
.ot-detail-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #888; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px; transition: color .15s, background .15s; }
.ot-detail-close:hover { color: #fff; background: #2a2a2a; }
.ot-detail-name { margin: 0 40px 2px 0; font-size: 19px; font-weight: 700; color: #fff; }
.ot-detail-role { font-size: 14px; font-weight: 500; color: #888; }
.ot-detail-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #999; margin-top: 2px; }
.ot-detail-review { font-size: 12px; color: #E0A33A; background: rgba(224,163,58,.10); border: 1px solid rgba(224,163,58,.25); border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.ot-detail-sub { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 4px; }
.ot-tx-list { display: flex; flex-direction: column; margin-top: 4px; }
.ot-tx-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #1a1a1a; }
.ot-tx-row:last-child { border-bottom: none; }
.ot-tx-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ot-tx-dot.is-in  { background: #0CAB41; }
.ot-tx-dot.is-out { background: #B7481F; }
.ot-tx-dot.is-end { background: #8FA8C3; }   /* the End Shift marker -- ORVO Time steel blue */
.ot-tx-label { flex: 1; color: #fff; font-size: 15px; }
.ot-tx-time { color: #b0b0b0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ot-tx-row.is-now .ot-tx-label, .ot-tx-row.is-now .ot-tx-time { color: #0CAB41; }
.ot-tx-row.is-end .ot-tx-label { color: #c9d2ee; font-weight: 600; }
.ot-tx-auto { font-size: 11px; font-weight: 600; color: #8a8f98; }
.ot-tx-empty { color: #777; text-align: center; padding: 18px 0; font-size: 14px; }
.ot-detail-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ot-detail-worked { font-size: 14px; color: #999; }
.ot-detail-worked strong { color: #fff; }
.ot-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Manager step-up -- End Shift / transaction edits need a manager (own 5-digit code OR
   a request-a-manager push). Standard .modal chrome; X / Esc only, no backdrop. */
.ms-modal { position: relative; max-width: 380px; width: 100%; text-align: center; }
.ms-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #888; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px; transition: color .15s, background .15s; }
.ms-close:hover { color: #fff; background: #2a2a2a; }
.ms-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #fff; }
.ms-sub { font-size: 14px; color: #b0b0b0; margin-bottom: 18px; }
.ms-body { display: flex; flex-direction: column; align-items: stretch; }
.ms-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .04em; text-align: left; margin-bottom: 6px; }
.ms-code { width: 100%; box-sizing: border-box; height: 56px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 10px; text-indent: 10px; color: #fff; background: #171717; border: 1px solid #444; border-radius: 8px; font-family: inherit; }
.ms-code:focus { outline: none; border-color: #188796; }
.ms-err { min-height: 18px; color: #e25555; font-size: 13px; margin: 8px 0 4px; }
.ms-confirm { width: 100%; }
.ms-or { display: flex; align-items: center; text-align: center; color: #6a7376; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0; }
.ms-or::before, .ms-or::after { content: ''; flex: 1; height: 1px; background: #2a2a2a; }
.ms-or span { padding: 0 12px; }
.ms-request { width: 100%; }
.ms-wait { text-align: center; padding: 16px 0 4px; }
.ms-wait-msg { color: #ddd; font-size: 15px; margin-top: 14px; }
.ms-back { margin-top: 18px; width: 100%; }

/* Manager transaction editor -- adjust times / add / remove transactions (signed). */
.tx-edit { position: relative; max-width: 440px; width: 100%; text-align: left; }
.tx-edit-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #888; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px; transition: color .15s, background .15s; }
.tx-edit-close:hover { color: #fff; background: #2a2a2a; }
.tx-edit-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-height: 44vh; overflow-y: auto; padding: 2px; }
.tx-edit-row { display: flex; align-items: center; gap: 10px; }
.tx-edit-dir { flex: 0 0 54px; box-sizing: border-box; text-align: center; font-size: 13px; font-weight: 700; padding: 11px 0; border-radius: 6px; border: 1px solid #333; font-family: inherit; }
.tx-edit-dir.is-in { color: #0CAB41; }
.tx-edit-dir.is-out { color: #B7481F; }
button.tx-edit-dirtoggle { cursor: pointer; background: #171717; }
button.tx-edit-dirtoggle:hover { border-color: #666; }
.tx-edit-time { flex: 1; min-width: 0; box-sizing: border-box; height: 46px; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #fff; background: #171717; border: 1px solid #444; border-radius: 6px; font-family: inherit; font-variant-numeric: tabular-nums; }
.tx-edit-time:focus { outline: none; border-color: #188796; }
/* −/+ steppers: tap = 1 min, hold = accelerating repeat. No select / callout / scroll
   so a long press on the kiosk just nudges the time (never highlights or pans). */
.tx-edit-step { flex: 0 0 42px; height: 46px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #171717; border: 1px solid #333; border-radius: 6px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; font-family: inherit; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.tx-edit-step:hover { border-color: #666; }
.tx-edit-step:active { background: #2a2a2a; border-color: #666; }
.tx-edit-rm { flex: 0 0 44px; height: 44px; background: none; border: 1px solid #333; border-radius: 6px; color: #888; font-size: 22px; line-height: 1; cursor: pointer; }
.tx-edit-rm:hover { border-color: #5a3a3a; color: #f0a0a0; background: #241414; }
.tx-edit-row.is-removed { opacity: .85; }
.tx-edit-rmd { flex: 1; color: #777; font-size: 14px; text-decoration: line-through; }
.tx-edit-undo { flex: 0 0 auto; background: none; border: 1px solid #333; border-radius: 6px; color: #73D1DE; font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer; font-family: inherit; }
.tx-edit-undo:hover { border-color: #666; }
.tx-edit-empty { color: #777; text-align: center; padding: 16px 0; font-size: 14px; }
.tx-edit-add { width: 100%; margin-top: 12px; }
/* Delete-all: a danger-tinted secondary; arms RED on first tap (two-tap confirm). */
.tx-edit-delall { width: 100%; margin-top: 8px; background: none; border: 1px solid #3a2424; color: #c98a8a; }
.tx-edit-delall:hover { border-color: #5a3a3a; color: #f0a0a0; background: #1d1212; }
.tx-edit-delall.is-armed { border-color: #B52B2B; background: #B52B2B; color: #fff; }
.tx-edit-delall.is-armed:hover { background: #c73333; }
.tx-edit-err { min-height: 18px; color: #e25555; font-size: 13px; margin: 10px 0 0; text-align: center; }
.tx-edit-foot { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.tx-edit-foot .btn { flex: 1 1 0; max-width: 200px; }

/* Swapping one clock modal for the next (detail -> editor -> step-up): the new
   overlay mounts first, so skip its pop-in animation -- it reads as the content
   changing in place, not a modal flashing closed + a new one opening. */
.modal-overlay.is-swap { animation: none; opacity: 1; }
.modal-overlay.is-swap .modal { animation: none; transform: none; }

/* Empty / loading state */
/* Add-transaction staff picker -- pick someone not on today's board, then build a
   clock entry for them. Reuses the C# SELECT-USER tiles (.till-login-grid/-tile). */
.ot-pick { position: relative; max-width: 460px; width: 100%; text-align: left; }
.ot-pick-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #fff; }
.ot-pick-sub { font-size: 13px; color: #999; margin-bottom: 14px; line-height: 1.4; }
.ot-pick .till-login-grid { max-height: 42vh; margin-top: 0; }
.ot-pick-scope { width: 100%; margin-top: 16px; }
.ot-pick-actions { margin-top: 12px; }

.ot-empty { grid-column: 1 / -1; text-align: center; color: #777; padding: 50px 20px; }
.ot-empty svg { width: 44px; height: 44px; stroke: #444; margin-bottom: 12px; }
.ot-empty-title { font-size: 17px; font-weight: 700; color: #aaa; }
.ot-empty-sub { font-size: 14px; color: #666; margin-top: 6px; }

/* Scan camera viewport -- shown on demand in a full overlay (the clocking action) */
/* Add-transaction staff picker: seamless scope swap -- the current grid stays
   (dimmed) while the other list loads, then the height GLIDES to the new size. */
.ot-pick-grid { transition: height .22s ease, opacity .15s ease; }
.ot-pick-grid.is-busy { opacity: .45; pointer-events: none; }

/* Toasts are TOPMOST on the till -- above the fullscreen camera (z 1500), the
   card wizard, and the app's own overlays -- so a scan rejection or any other
   feedback is NEVER hidden behind whatever is open. my.css ships z 1001. */
.toast-container { z-index: 100002; }

/* Non-clock device while OFFLINE (app gate): the Scan / Add buttons stay
   EXACTLY in place (no layout shift -- owner's call), just dimmed; tapping one
   opens the standard explainer modal naming the clock device. */
.ot-scan-cta.is-offgate { opacity: .55; }

/* Approve step, offline on a NON-clock device: the up-front "use the other
   till" panel (shown INSTEAD of the code input -- never let a code be typed
   into an action this till would refuse). */
.ms-offdev { max-width: 300px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.ms-offdev-title { color: #fff; font-size: 17px; font-weight: 700; }
.ms-offdev-sub { color: #9a9a9a; font-size: 14px; line-height: 1.55; }

.ot-scan-overlay { position: fixed; inset: 0; z-index: 1500; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,.92); padding: 24px; }
.ot-scan-overlay.is-open { display: flex; }
/* Camera close: clear of the phone status bar (safe-area aware -- it was
   unreachable under the iPhone clock), and a proper 44px bordered button in
   the till header-button style instead of a bare floating x. */
.ot-scan-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: rgba(23,23,23,.85); border: 1px solid #333; border-radius: 6px; color: #ccc; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.ot-scan-close:hover { border-color: #666; color: #fff; }
.ot-scan-frame { position: relative; width: min(78vw, 360px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0b0b0b; border: 1px solid #2a2a2a; display: none; }
.ot-scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-scan-reticle { position: absolute; inset: 16%; border: 3px solid rgba(24,135,150,.95); border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.28); pointer-events: none; }
.ot-scan-hint { color: #cfcfcf; font-size: 16px; text-align: center; max-width: 320px; line-height: 1.4; }

@media (max-width: 700px) {
    .ot-board-title { font-size: 19px; }
    .ot-board-actions { width: 100%; }
    .ot-scan-cta { width: 100%; justify-content: center; }
    /* Full-width day navigator on a phone: the pill stretches edge-to-edge between
       the prev/next arrows (mirrors the wall roster's mobile week pill). */
    .ot-board-headline { width: 100%; }
    .ot-daynav { width: 100%; }
    .ot-week-pill { flex: 1 1 auto; min-width: 0; }
    /* Daily summary on a phone: 3 chips per row, each the SAME height as the Add
       transaction button (52px), so the band is tidy and the staff cards aren't
       pushed off the first screen. Content sits a touch above centre. Desktop /
       iPad keep the full-size chips. */
    .ot-summary { gap: 8px; }
    .ot-stat { flex: 1 1 calc(33.333% - 6px); min-height: 52px; padding: 6px 10px 10px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; }
    .ot-stat-label { font-size: 10px; letter-spacing: .03em; }
    .ot-stat-value { font-size: 17px; margin-top: 1px; line-height: 1.05; }
    /* Stack the full-width card on narrow screens: identity, then the bar, then figures. */
    .ot-staff-card { grid-template-columns: 1fr; gap: 10px; }
    .ot-card-end .ot-card-foot { justify-content: flex-start; }
}

/* Kiosk: this is a till, not a webpage. Nothing is selectable -- a long-press
   on an iPad/iPhone must not select text or pop the iOS copy/paste callout.
   Editable fields (the pairing code box) stay typeable + selectable. */
* { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea, [contenteditable], [contenteditable] * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* Leaving for Help. Mirrors help.css `body.page-exit` so the two halves of the move match.
   Cleared on pageshow (cloud-nav.js) — a bfcache restore must never come back faded out. */
@keyframes orvo-page-out { to { opacity: 0; } }
/* .12s, not .15s: this half is only there to acknowledge the tap. Every millisecond it runs is
   a millisecond of black before Help arrives, so it wants to be the shortest fade that still
   reads as deliberate. will-change so the compositor is ready rather than catching up. */
body.page-exit { animation: orvo-page-out .12s ease-in forwards; will-change: opacity; }
