/* Coal Vision account corner, app strip and DEMO bar for the apps (static/js/cv-appbar.js): Production dockets, the
   Site map and Roster and hours.
   The same look as the home's avatar, menu, strip and DEMO bar (website/futura/cv/account.css, apps.css and demo.css),
   with its own colour tokens (the home's values) so it works without the home's files. Ids, so the apps' own button rules
   never reach it. Graphite and yellow, square corners; the demo is a strip of yellow notepad (dark ink on yellow paper). */
#cv-ab-btn,#cv-ab-menu,#cv-ab-demo,#cv-ab-strip,#cv-ab-foot{
  --ab-surface:#181b1f;--ab-surface-2:#1f2328;--ab-surface-3:#2a2f36;--ab-border:#2a2f36;--ab-border-2:#3d434c;
  --ab-ink:#f2f3f5;--ab-ink-2:#c3c8cf;--ab-muted:#9aa1ab;--ab-yellow:#ffc21a;
  --ab-demo:#ffc21a;--ab-demo-paper:#fff3b5;--ab-demo-line:#e3cb6c;--ab-demo-ink:#17140a;--ab-demo-tag-bg:#17140a;--ab-demo-tag-ink:#ffc21a;
  --ab-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,system-ui,sans-serif;
  --ab-brand:"DIN Alternate","Avenir Next Condensed","Avenir Next","Segoe UI",system-ui,sans-serif;
  --ab-mono:ui-monospace,"SF Mono",Menlo,monospace;
}
#cv-ab-btn,#cv-ab-menu,#cv-ab-demo,#cv-ab-strip,#cv-ab-btn *,#cv-ab-menu *,#cv-ab-demo *,#cv-ab-strip *{box-sizing:border-box}

/* ---------------------------------------------------------------- the account button: a 40 px initials tile in a 56 px tap area, the first name from 600 px.
   -4 px above and below: the apps' headers hold 48 px, so the bigger tap area does not make them taller. */
#cv-ab-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:56px;min-height:56px;margin:-4px -8px -4px 0;padding:0 8px;
  border:0;border-radius:0;background:none;color:var(--ab-ink);font:600 1rem/1.2 var(--ab-font);cursor:pointer;-webkit-tap-highlight-color:transparent}
#cv-ab-btn .cv-ab-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:var(--ab-surface-3);color:var(--ab-ink);
  font:700 .9375rem/1 var(--ab-brand);letter-spacing:.04em}
#cv-ab-btn:hover .cv-ab-av{background:var(--ab-border-2)}
#cv-ab-btn .cv-ab-av--pic{overflow:hidden;background:none}
#cv-ab-btn .cv-ab-av--pic svg{display:block;width:40px;height:40px}
#cv-ab-btn[aria-expanded="true"] .cv-ab-av{box-shadow:inset 0 -3px 0 var(--ab-yellow)}
#cv-ab-btn .cv-ab-nm{display:none;max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:600px){#cv-ab-btn .cv-ab-nm{display:inline}}
#cv-ab-btn:focus-visible{outline:3px solid var(--ab-yellow);outline-offset:-3px}
#cv-ab-btn:focus:not(:focus-visible){outline:none}

/* ---------------------------------------------------------------- the menu under the button */
#cv-ab-menu{position:fixed;z-index:75;width:min(18rem,calc(100vw - 16px));overflow:auto;background:var(--ab-surface);border:1px solid var(--ab-border-2);border-top:3px solid var(--ab-yellow);
  box-shadow:0 12px 32px rgba(0,0,0,.45);color:var(--ab-ink-2);font:400 1rem/1.5 var(--ab-font);text-align:left;animation:cv-ab-fade 150ms ease-out}
@keyframes cv-ab-fade{from{opacity:0}to{opacity:1}}
#cv-ab-menu .cv-ab-who{display:flex;flex-direction:column;padding:12px 16px;border-bottom:1px solid var(--ab-border)}
#cv-ab-menu .cv-ab-who b{color:var(--ab-ink);font-weight:700;overflow-wrap:anywhere}
#cv-ab-menu .cv-ab-who span{color:var(--ab-muted);font-size:.875rem}
#cv-ab-menu .cv-ab-i{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;margin:0;padding:0 16px;border:0;border-radius:0;background:none;color:var(--ab-ink);
  font:600 1rem/1.25 var(--ab-font);text-align:left;text-decoration:none;cursor:pointer}
#cv-ab-menu .cv-ab-i:hover,#cv-ab-menu .cv-ab-i:focus{background:var(--ab-surface-2)}
#cv-ab-menu .cv-ab-i:focus-visible{outline:3px solid var(--ab-yellow);outline-offset:-3px}
#cv-ab-menu .cv-ab-i:focus:not(:focus-visible){outline:none}
#cv-ab-menu .cv-ab-ico{flex:none;display:block}

/* ---------------------------------------------------------------- the DEMO bar: the very top of the page, dark ink on yellow notepad paper, in the page flow (never fixed).
   Phones: the tag, "You're Travis H." and the two buttons ("Made-up people and data." is still read out); from 600 px all of it.
   The sentence asks for 7.5rem of its own, so when a row has no room for it a button drops to a second row: the sentence
   is never squeezed to a few pixels with its words running over "Turn tutorial on" (390 to 414 px phones). */
#cv-ab-demo{display:block;background:var(--ab-demo-paper);box-shadow:inset 0 -1px 0 var(--ab-demo-line);color:var(--ab-demo-ink);font:400 1rem/1.5 var(--ab-font)}   /* the line is drawn inside, like the home's: 48 px on phones and 40 px from 600 px exactly */
#cv-ab-demo[hidden]{display:none!important}
/* lines up with the app under it: each app may set --cv-ab-wrap and --cv-ab-gut (Production dockets' 1100 px and 14 px by default) */
#cv-ab-demo .cv-ab-demo-in{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;max-width:var(--cv-ab-wrap,1100px);min-height:48px;margin:0 auto;padding:0 max(var(--cv-ab-gut,14px),env(safe-area-inset-right)) 0 max(var(--cv-ab-gut,14px),env(safe-area-inset-left))}
#cv-ab-demo .cv-ab-tag{flex:none;display:inline-flex;align-items:center;gap:6px;margin:6px 0;padding:5px 8px;background:var(--ab-demo-tag-bg);color:var(--ab-demo-tag-ink);
  font:700 .6875rem/1.2 var(--ab-mono);letter-spacing:.12em;text-transform:uppercase}
#cv-ab-demo .cv-ab-tag::before{content:"";flex:none;width:7px;height:7px;background:var(--ab-demo)}
#cv-ab-demo .cv-ab-demo-t{flex:1 1 7.5rem;min-width:0;margin:0;color:var(--ab-demo-ink);font-size:.9375rem;line-height:1.3}
#cv-ab-demo .cv-ab-demo-made{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#cv-ab-demo .cv-ab-demo-btn{flex:0 1 auto;min-width:0;max-width:100%;min-height:48px;margin:0 0 0 auto;padding:0 4px 0 12px;border:0;border-radius:0;background:none;color:var(--ab-demo-ink);
  font:700 1rem/1.25 var(--ab-font);text-align:right;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;cursor:pointer}
#cv-ab-demo .cv-ab-demo-btn:focus-visible{outline:3px solid var(--ab-demo-ink);outline-offset:-3px}
#cv-ab-demo .cv-ab-demo-btn--2{margin-left:0}
/* PHONES (Yves, 23 Nov: "the top banner is too big on mobile"): one 40 px row, never two. The name is cut with dots when
   it does not fit, and the two buttons say one word each ("Tutorial", "Switch": data-short; the full words are still read
   out). The buttons keep a 48 px tap height (4 px over each edge). The app's own header under it is shorter too. */
@media (max-width:599px){
  #cv-ab-demo .cv-ab-demo-in{gap:0 8px;min-height:40px}
  #cv-ab-demo .cv-ab-tag{margin:0}
  #cv-ab-demo .cv-ab-demo-t{flex:1 1 2.5rem;overflow:hidden;font-size:.875rem;white-space:nowrap;text-overflow:ellipsis}
  #cv-ab-demo .cv-ab-demo-btn{flex:none;margin-top:-4px;margin-bottom:-4px;padding:0 2px 0 8px;font-size:0;text-decoration:none}
  #cv-ab-demo .cv-ab-demo-btn[data-short]::after{content:attr(data-short);font-size:.9375rem;text-decoration:underline;text-underline-offset:3px}
  .dk-appbar,.app>header.bar,.rs-bar{min-height:56px;padding-top:4px;padding-bottom:4px}
  .app>header.bar .t b{font-size:20px}
}
@media (min-width:600px){
  #cv-ab-demo .cv-ab-demo-in{min-height:40px}
  #cv-ab-demo .cv-ab-demo-btn{margin-top:-4px;margin-bottom:-4px}
  #cv-ab-demo .cv-ab-demo-made{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
}

/* ---------------------------------------------------------------- the app strip: the home's five names (Home, Dockets, Site map, Roster, All apps) in the
   same place on every app page, under the DEMO bar. The home's sizes and "here" look (website/futura/cv/apps.css, .cv-strip).
   In the page flow, never sticky: it scrolls away, so no app's own sticky bar has to move. Graphite always, also in Bright
   sun (the roster's sun rules name the button and the menu only), as the home's header stays graphite there.
   Phones: five equal cells, 52 px, the icon over the word. From 600 px: one 48 px row from the left, the icon then the word. */
/* the words shrink with the screen: five of them still fit a 320 px phone at the largest text (the roster follows the text size setting) */
#cv-ab-strip{display:block;background:#111316;border-bottom:1px solid var(--ab-border);color:var(--ab-ink-2);font:600 min(.75rem,3.75vw)/1.2 var(--ab-font);text-align:left}
#cv-ab-strip[hidden]{display:none!important}
/* lines up with the app under it, like the DEMO bar (--cv-ab-wrap and --cv-ab-gut) */
#cv-ab-strip .cv-ab-strip-in{display:flex;align-items:stretch;max-width:var(--cv-ab-wrap,1100px);margin:0 auto;padding:0 max(var(--cv-ab-gut,14px),env(safe-area-inset-right)) 0 max(var(--cv-ab-gut,14px),env(safe-area-inset-left))}
#cv-ab-strip .cv-ab-strip-i{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;margin:0;padding:4px 2px;
  border:0;border-radius:0;background:none;color:var(--ab-ink-2);font:inherit;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
#cv-ab-strip .cv-ab-strip-w{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cv-ab-strip .cv-ab-strip-i:hover{background:var(--ab-surface)}
/* where you are: a lighter cell and a pale line under it. Never yellow: yellow is for the one thing to press. */
#cv-ab-strip .cv-ab-strip-i[aria-current="page"]{background:var(--ab-surface-2);color:var(--ab-ink);box-shadow:inset 0 -3px 0 var(--ab-ink)}
#cv-ab-strip a:focus-visible{outline:3px solid var(--ab-yellow);outline-offset:-3px}
#cv-ab-strip a:focus:not(:focus-visible){outline:none}
#cv-ab-strip .cv-ab-ico{flex:none;display:block}
#cv-ab-strip .cv-ab-strip-i>.cv-ab-ico{width:22px;height:22px}
/* the app icon (the home's .cv-appi): a dark symbol on a yellow tile with a phone icon's round corners */
#cv-ab-strip .cv-ab-appi{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:22.5%;background:linear-gradient(#ffd24a,#ffb900);color:#111316;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
#cv-ab-strip .cv-ab-appi .cv-ab-ico{width:58%;height:58%}
/* the lockup at the left (wide screens only, see below): the Futura logo, a thin divider and "Coal Vision", back to the home */
#cv-ab-strip .cv-ab-strip-brand{flex:none;display:none;align-items:center;gap:12px;margin:0 14px 0 0;color:var(--ab-ink);font:600 min(1.125rem,18px)/1.2 var(--ab-brand);letter-spacing:.01em;text-decoration:none;white-space:nowrap}
#cv-ab-strip .cv-ab-strip-brand img{flex:none;display:block;width:auto;max-width:none;height:28px}
#cv-ab-strip .cv-ab-strip-brand i{flex:none;align-self:stretch;width:1px;background:var(--ab-border-2)}
@media (min-width:600px){
  /* a little tighter than the home's 14 px and 8 px until 720 px, so the five names fit a 600 px screen without being cut:
     10 px at the usual text size, less as the text size setting grows (8 px at Large, 6 px at Extra large) */
  #cv-ab-strip .cv-ab-strip-i{flex:0 1 auto;flex-direction:row;gap:6px;min-height:48px;padding:0 max(6px,calc(26px - 1rem));font-size:1rem}
  #cv-ab-strip .cv-ab-strip-i>.cv-ab-ico,#cv-ab-strip .cv-ab-appi{width:24px;height:24px}
}
@media (min-width:720px){#cv-ab-strip .cv-ab-strip-i{gap:8px;padding:0 14px}}
@media (min-width:900px){#cv-ab-strip .cv-ab-strip-brand{display:flex}}
/* PHONES (below 600 px), from 23 Nov: the strip is a bar at the bottom of the screen, as on the home (apps.css): four places,
   Home and the three apps; "All apps" is on the home and in the account menu. In Production dockets only: the Site map
   and the roster have a bottom bar of their own on a phone, so cv-appbar.js shows no strip there and their own back arrow
   returns. The page keeps room for the bar, and the timer mode puts it away. */
@media (max-width:599px){
  #cv-ab-strip{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:45;border-bottom:0;border-top:1px solid var(--ab-border-2);box-shadow:0 -6px 18px rgba(0,0,0,.4);font-size:11.5px}
  #cv-ab-strip .cv-ab-strip-in{padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
  #cv-ab-strip .cv-ab-strip-i{min-height:60px;color:var(--ab-muted)}
  #cv-ab-strip .cv-ab-strip-i[data-k="strip:all"],#cv-ab-strip #cv-ab-strip-all{display:none}
  #cv-ab-strip .cv-ab-strip-i>.cv-ab-ico,#cv-ab-strip .cv-ab-appi{width:26px;height:26px}
  #cv-ab-strip .cv-ab-strip-i[aria-current="page"]{background:none;color:var(--ab-ink);box-shadow:inset 0 3px 0 var(--ab-ink)}
  body.cv-ab-on{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  body.cv-ab-on.dk-working{padding-bottom:0}
  body.cv-ab-on .dk-toast{bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* The strip is now the way out of every app, so each app's own "leave" arrow goes while it shows (body.cv-ab-on, set by
   cv-appbar.js). Production dockets' in-app back is a button and stays: it only means "one screen back". From 900 px the
   strip carries the Futura logo, so dockets' own logo goes too. Hidden from here only: no app file is changed. */
body.cv-ab-on #rs-back,body.cv-ab-on header.bar>#back,body.cv-ab-on .dk-appbar>a.back{display:none}
@media (min-width:900px){body.cv-ab-on .dk-appbar>.dk-logo{display:none}}

@media (prefers-reduced-motion:reduce){#cv-ab-menu{animation:none}}
/* the footer: the same line as the roster's (.rs-foot) and the home's, with room above it */
#cv-ab-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:72px;padding:24px 0;border-top:1px solid var(--ab-border);color:var(--ab-muted);font:600 .8125rem/1 var(--ab-font);letter-spacing:.24em}
#cv-ab-foot img{width:18px;height:auto}
body.dk-printing #cv-ab-foot{display:none}
@media print{#cv-ab-btn,#cv-ab-menu,#cv-ab-demo,#cv-ab-strip,#cv-ab-foot{display:none!important}}
