/* Clawdie POS (tills.js): the small card on Office Home and the /pos page. A dark strip of numbered tills
   like the Omarchy app's machines (the one showing is a light block; a dot under each number gives its
   state), a card per till with its screen, and one till's screen large. Office colours, fonts and list styles. */
:is(#home,#pos) :is(.home-tills,.tills-panel){--till-online:#f48c5b;--till-late:#e8a33a;--till-offline:#d4483f;--till-none:rgb(255 255 255/.55)}
:is(#home,#pos) .tills-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:48px;padding-top:0;padding-bottom:0}
:is(#home,#pos) :is(#home-tills-title,.tills-title){font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ink)}
:is(#home,#pos) .tills-summary{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
:is(#home,#pos) .tills-badge{margin-left:auto;padding:3px 10px;border:1px solid #f2c98a;border-radius:999px;background:var(--citrus);color:#7a4a08;font-size:11px;font-weight:700;letter-spacing:.08em;white-space:nowrap}

/* The strip */
:is(#home,#pos) .tills-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 22px;padding:12px 16px 10px;background:var(--night);color:#fff}
:is(#home,#pos) .tills-store{display:grid;gap:4px;min-width:0}
:is(#home,#pos) .tills-store-name{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgb(255 255 255/.6)}
:is(#home,#pos) .tills-store-spots{display:flex;gap:4px}
:is(#home,#pos) .tills-store-empty{display:flex;align-items:center;min-height:44px;font-size:12px;color:rgb(255 255 255/.45)}
:is(#home,#pos) .tills-spot{display:inline-grid;justify-items:center;align-content:center;gap:5px;min-width:44px;min-height:44px;padding:4px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:rgb(255 255 255/.85);font-family:Inter,sans-serif;font-size:15px;font-weight:700;line-height:1;cursor:pointer}
:is(#home,#pos) .tills-spot:hover{background:rgb(255 255 255/.1)}
:is(#home,#pos) .tills-spot:focus-visible{outline:3px solid var(--jungle);outline-offset:2px}
:is(#home,#pos) .tills-spot[aria-pressed=true]{background:#fff;color:var(--night)}
:is(#home,#pos) .tills-all{align-self:flex-end;min-width:56px;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
:is(#home,#pos) .tills-dot{width:7px;height:7px;border-radius:50%;background:var(--till-none)}
:is(#home,#pos) .tills-spot.state-online .tills-dot{background:var(--till-online)}
:is(#home,#pos) .tills-spot.state-late .tills-dot{background:var(--till-late)}
:is(#home,#pos) .tills-spot.state-offline .tills-dot{background:var(--till-offline)}
:is(#home,#pos) .tills-spot.state-not-installed .tills-dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--till-none)}
:is(#home,#pos) .tills-spot[aria-pressed=true].state-not-installed .tills-dot{box-shadow:inset 0 0 0 1.5px #9a958c}

/* Status words, in the Office's tints */
:is(#home,#pos) .till-state{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
:is(#home,#pos) .till-state::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
:is(#home,#pos) .till-state.state-online{background:var(--mint);color:#1d5a2e}
:is(#home,#pos) .till-state.state-late{background:var(--citrus);color:#7a4a08}
:is(#home,#pos) .till-state.state-offline{background:var(--blush);color:#8c2f2b}
:is(#home,#pos) .till-state.state-not-installed{background:#eceeef;color:#35434b}
:is(#home,#pos) .till-state.state-not-installed::before{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}
:is(#home,#pos) .till-num{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:7px;background:var(--night);color:#fff;font-family:Inter,sans-serif;font-size:13px;font-weight:700}

/* All tills: a card each */
:is(#home,#pos) .tills-body{padding:16px}
:is(#home,#pos) .tills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
:is(#home,#pos) .till-card{position:relative;display:grid;align-content:start;min-width:0;border:1px solid var(--edge);border-radius:var(--radius);background:var(--surface);overflow:hidden}
:is(#home,#pos) .till-shot{display:block;width:100%;min-height:0;padding:0;border:0;border-bottom:1px solid var(--edge);border-radius:0;background:var(--night);cursor:pointer}
:is(#home,#pos) .till-shot:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
:is(#home,#pos) .till-shot:hover .till-picture,:is(#home,#pos) .till-shot:hover .till-screen-empty{opacity:.9}
:is(#home,#pos) .till-picture{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--night)}
:is(#home,#pos) .till-screen-empty{display:grid;place-items:center;aspect-ratio:16/9;padding:16px;background:var(--night);color:rgb(255 255 255/.6);font-size:13px;font-weight:600;text-align:center}
:is(#home,#pos) .till-card.state-not-installed .till-screen-empty{background:#3a3637}
:is(#home,#pos) .till-card-body{display:grid;gap:6px;padding:12px 14px 14px}
:is(#home,#pos) .till-card-title{display:flex;align-items:center;gap:8px;min-width:0}
:is(#home,#pos) .till-card-title strong{min-width:0;overflow-wrap:anywhere;font-size:15px}
:is(#home,#pos) .till-card>.till-state{position:absolute;top:10px;right:10px;box-shadow:0 1px 3px rgb(34 31 32/.25)}
:is(#home,#pos) .till-card-where,:is(#home,#pos) .till-card-facts{margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
:is(#home,#pos) .till-card-where{color:var(--ink);font-weight:600}
:is(#home,#pos) .till-alerts{display:grid;gap:4px;margin:4px 0 0;padding:0;list-style:none}
:is(#home,#pos) .till-alerts li{padding:6px 10px;border:1px solid var(--danger-line);border-radius:8px;background:var(--danger-bg);color:var(--danger);font-size:13px;font-weight:600}

/* One till */
:is(#home,#pos) .till-detail{display:grid;gap:14px}
:is(#home,#pos) .till-detail-head{display:flex;align-items:center;gap:14px}
:is(#home,#pos) .till-detail-title{display:flex;align-items:center;gap:10px;margin:0;font-family:Inter,'Segoe UI',system-ui,sans-serif;font-size:18px;font-weight:700;letter-spacing:0;text-transform:none}
:is(#home,#pos) .till-detail-title:focus{outline:none}
:is(#home,#pos) .till-detail-title:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
:is(#home,#pos) .till-detail-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:20px;align-items:start}
:is(#home,#pos) .till-detail-screen{border:1px solid var(--edge);border-radius:var(--radius);overflow:hidden;background:var(--night)}
:is(#home,#pos) .till-detail-side{display:grid;gap:12px;min-width:0}
:is(#home,#pos) .till-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:0;font-size:14px}
:is(#home,#pos) .till-facts dt{color:var(--muted);font-weight:600}
:is(#home,#pos) .till-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
:is(#home,#pos) .till-fact-note{color:var(--muted);font-size:13px}

:is(#home,#pos) .tills-foot .tills-updated{margin-left:auto;font-weight:500}

@media(max-width:900px){:is(#home,#pos) .till-detail-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
  :is(#home,#pos) .tills-body{padding:12px}
  :is(#home,#pos) .tills-bar{gap:8px 16px;padding:10px 12px}
  :is(#home,#pos) .tills-grid{grid-template-columns:minmax(0,1fr)}
  :is(#home,#pos) .till-detail-head{flex-wrap:wrap}
  :is(#home,#pos) .till-detail-head .secondary{min-height:44px}
}
@media(max-width:420px){:is(#home,#pos) .till-facts{grid-template-columns:minmax(0,1fr);gap:2px}:is(#home,#pos) .till-facts dd{margin-bottom:8px}}

/* The footer's "Clawdie POS" link: the same button as its neighbours, always outlined in green, as a known
   important one (DeAndre, 16 Nov). */
.footer-directory a.footer-important-link{border-color:var(--jungle);box-shadow:inset 0 0 0 1px var(--jungle)}
.footer-directory a.footer-important-link:hover{background:rgb(244 140 91/.16)}

/* The /pos page title, underlined like the Office's other page titles. */
#pos-title::after{content:'';display:block;width:48px;height:4px;margin-top:14px;border-radius:4px;background:var(--juice)}
/* Home's Clawdie POS card (DeAndre, 16 Nov: "super clean"): light like Favourites and Recently updated.
   One sentence until a till checks in; then a line per store, each dot inside the words it stands for. */
#home .home-tills-message{margin:0;padding:16px;font-size:14px;line-height:1.5;color:var(--ink)}
#home .home-tills-stores{margin:0;padding:0;list-style:none}
#home .home-tills-store{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:48px;padding:8px 16px}
#home .home-tills-store+.home-tills-store{border-top:1px solid var(--line)}
#home .home-tills-store-name{flex:1 1 140px;min-width:0;font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
#home .home-tills-counts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:13px;font-weight:600;color:var(--muted)}
#home .home-tills-count{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
#home .home-tills-count:has(.tills-dot){color:var(--ink)}
#home .home-tills-count .tills-dot{flex:none;width:8px;height:8px}
#home .home-tills-count.state-online .tills-dot{background:var(--till-online)}
#home .home-tills-count.state-late .tills-dot{background:var(--till-late)}
#home .home-tills-count.state-offline .tills-dot{background:var(--till-offline)}
/* The warning at the top of /pos until two-factor sign-in exists (DeAndre, 16 Nov). */
#pos .tills-warning{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:14px 16px;border:1px solid #f2c98a;border-radius:var(--radius);background:var(--citrus);color:#7a4a08}
#pos .tills-warning .glyph{flex:none;width:26px;height:26px;margin-top:-1px;color:#c27a00}
#pos .tills-warning .glyph path{stroke-width:2}
#pos .tills-warning p{margin:0;font-size:15px;line-height:1.5}
#pos .tills-warning strong{font-weight:700}
