/* Dodan Hub frame: the top bar and side menu around every page (hub/hub.js draws them). Tool pages keep their
   own styles for their content; these rules only use hub- class names so they never clash. */
:root{--g:#006837;--g2:#0B7F45;--g3:#EDF5E6;--gold:#B89B55;--gold2:#977F3E;--goldbg:#F6F0E2;--blue:#1F4E8C;--bluebg:#EAF1FB;--lime:#8DC63F;--bg:#F7F5EF;--card:#fff;--line:#E3DFD3;--text:#1B221E;--muted:#66706A;--red:#B3261E;--redbg:#FDF0EF;--ok:#1E6B3A;--okbg:#E6F3EA;--amber:#8A5A00;--amberbg:#FFF4DC;--side:240px;--top:64px;--gt:var(--g);--redf:var(--red);--okf:var(--ok);--amberf:var(--amber);--r:12px;--rs:9px;--sh:0 1px 2px rgba(27,34,30,.06);--shh:0 4px 14px rgba(0,104,55,.12)}
/* Dark screens (hub.js sets data-theme from the phone's setting, or the person's pick in the menu). --g, --redf,
   --okf and --amberf fill buttons and dots under white text; --gt, --red, --ok and --amber are text on cards.
   --soft, --soft2, --line2 and --grey exist only here: in light the pages keep their own colour after the comma.
   Screen only, so printing stays light. */
@media screen{:root[data-theme=dark]{color-scheme:dark;--g:#1B7F45;--gt:#62CC90;--g2:#2A9A5A;--g3:#183A27;--gold:#C2A464;--gold2:#D6BC7E;--goldbg:#33291A;--bg:#111412;--card:#1B1F1D;--soft:#202523;--soft2:#2B312D;--line:#3A413C;--line2:#2B312D;--text:#ECEFEB;--muted:#A7AFA9;--grey:#A7AFA9;--red:#F28B82;--redf:#C62828;--redbg:#3B1F1C;--ok:#6FCF97;--okf:#1E7A44;--okbg:#173426;--amber:#F0B85A;--amberf:#9A6500;--amberbg:#3A2D12;--blue:#8AB4F8;--bluebg:#1C2A42;--here:#7DB3EA;--herebg:#1C2A42;--serious:#F5A365;--redline:#6B2E29;--okline:#2F5A40;--faint:#5C645F;--goldt:#E0C27F;--seriousbg:#3D2616;--head:#0E4A2A;--sh:0 1px 2px rgba(0,0,0,.35);--shh:0 4px 14px rgba(0,0,0,.45)}}
/* On touch screens fields are 16px at least: iPhones zoom the page into any smaller field when it is tapped.
   Computers keep each tool's own smaller fields (tables of inputs). */
@media (pointer:coarse){input,select,textarea{font-size:max(16px,1em)!important}}
html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body.hub{padding-top:var(--top)}
body.hub.hub-framed{padding-left:var(--side)}
.hub-top{position:fixed;top:0;left:0;right:0;height:var(--top);z-index:30;background:var(--head,var(--g));color:#fff;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:5px solid var(--co,var(--gold));box-sizing:border-box}
/* The company stripe, toned down on the dark header (left bright where color-mix is unknown). */
:root[data-theme=dark] .hub-top{border-bottom-color:color-mix(in srgb,var(--co,var(--gold)) 70%,#0E4A2A)}
.hub-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;min-width:0}
.hub-brand img{width:42px;height:42px;flex:none;background:#fff;border-radius:50%;padding:2px}
.hub-brand b{display:block;font-size:18px;letter-spacing:.4px;line-height:1.1}
.hub-brand span{display:block;font-size:11px;color:#E4D3A6;text-transform:uppercase;letter-spacing:1.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-sp{flex:1}
.hub-who{font-size:13px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
.hub-btn{background:none;border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:7px;padding:6px 11px;font:inherit;font-size:13px;cursor:pointer}
.hub-menu{display:none;background:none;border:0;color:#fff;padding:6px;margin-left:-6px;cursor:pointer}
.hub-menu svg{width:26px;height:26px}
.hub-side{position:fixed;top:var(--top);left:0;bottom:0;width:var(--side);z-index:20;background:var(--card);border-right:1px solid var(--line);overflow-y:auto;padding:14px 10px;box-sizing:border-box}
.hub-side h4{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin:16px 10px 6px;font-weight:700}
.hub-side h4:first-child{margin-top:2px}
.hub-link{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;color:var(--text);text-decoration:none;font-weight:600;font-size:14px}
.hub-link:hover,.hub-link:active{background:var(--g3)} .hub-link:active{transform:scale(.98)}
.hub-link.on{background:var(--g);color:#fff}
.hub-link svg{width:20px;height:20px;flex:none}
.hub-link small{margin-left:auto;font-weight:400;font-size:12px;opacity:.7}
.hub-shade{display:none}
/* Light or dark screen (hub.js setTheme): Auto follows the phone. */
.hub-theme{display:flex;gap:4px;margin:0 6px 10px;padding:3px;border:1px solid var(--line);border-radius:10px}
.hub-theme button{flex:1;border:0;border-radius:7px;padding:7px 4px;background:none;color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.hub-theme button[aria-pressed=true]{background:var(--g);color:#fff}
.hub-denied{max-width:520px;margin:48px auto;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px;text-align:center}
.hub-denied h2{margin:0 0 8px;font-size:18px}
@media (max-width:900px){
  body.hub.hub-framed{padding-left:0}
  .hub-menu{display:block}
  .hub-side{transform:translateX(-105%);transition:transform .2s;box-shadow:4px 0 18px rgba(0,0,0,.15)}
  body.hub-open .hub-side{transform:none}
  body.hub-open .hub-shade{display:block;position:fixed;inset:var(--top) 0 0 0;background:rgba(0,0,0,.3);z-index:15}
  .hub-who{display:none}
}
/* Narrow phones: no room for both lines. In a tool its name takes the title's place, so it is clear where you are. */
.hub-brand div{min-width:0}
.hub-brand .hub-here{display:none}
@media (max-width:420px){.hub-brand span{display:none}
  .hub-brand.hub-in b{display:none}
  .hub-brand.hub-in .hub-here{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* Printing (receipts, invoices, reports): only the page, without the Hub frame. */
@media print{.card{box-shadow:none!important}.hub-top,.hub-side,.hub-shade{display:none!important}body.hub,body.hub.hub-framed{padding:0!important}}
/* The company being worked in: a badge in the header (tap to switch), and the company chooser. */
.hub-co{border:0;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;background:var(--co,var(--gold));color:var(--text);cursor:pointer;white-space:nowrap}
.hub-co:disabled{cursor:default;opacity:1}
.hub-choose{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.hub-choose-card{background:var(--card);border-radius:14px;padding:20px;width:100%;max-width:380px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.hub-choose-card h2{margin:0 0 6px;font-size:20px}
.hub-choose-card p{margin:0 0 14px;color:var(--muted);font-size:14px}
.hub-choose-card [data-co]{display:block;width:100%;text-align:left;margin-bottom:10px;padding:16px;border:2px solid var(--line);border-left:10px solid var(--c);border-radius:12px;background:var(--card);font:inherit;font-size:17px;cursor:pointer}
.hub-choose-card [data-co].now{border-color:var(--c)}
.hub-choose-card [data-co] small{display:block;font-size:12px;color:var(--muted);font-weight:400}
.hub-choose-x{background:none;border:0;color:var(--muted);font:inherit;padding:8px;cursor:pointer;width:100%}
.hub-choose-err{color:var(--red)!important;margin:6px 0 0!important}
@media (max-width:520px){.hub-co{padding:6px 10px;font-size:12px;max-width:140px;overflow:hidden;text-overflow:ellipsis}.hub-top .hub-btn{display:none}.hub-brand b{white-space:nowrap}}
/* How to: the tool's SOP (hub.js howTo), over the page. */
.hub-how{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.hub-how svg{width:18px;height:18px;flex:none}
.hub-how-sheet{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.45);display:flex;align-items:stretch;justify-content:center;padding:16px}
.hub-how-card{background:var(--card);border-radius:14px;width:100%;max-width:760px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.hub-how-head{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--g);color:#fff}
.hub-how-head b{flex:1;font-size:16px}
.hub-how-head button{background:none;border:0;color:#fff;font-size:20px;line-height:1;padding:4px 8px;cursor:pointer}
.hub-how-frame{flex:1;width:100%;border:0;min-height:0}
.hub-how-foot{padding:8px 16px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.hub-how-msg{padding:20px 18px;font-size:15px}
.hub-how-msg p{margin:0 0 12px}
.hub-how-go{border:0;border-radius:9px;padding:12px 18px;font:inherit;font-weight:600;background:var(--g);color:#fff;cursor:pointer}
.hub-how-go:disabled{opacity:.5}
.hub-how-link{background:none;border:0;padding:0;font:inherit;color:var(--gt);text-decoration:underline;cursor:pointer}
@media (max-width:520px){.hub-how{padding:6px 10px;font-size:12px}.hub-how svg{display:none}.hub-top{gap:8px}.hub-how-sheet{padding:0}.hub-how-card{border-radius:0;max-width:none}}
@media print{.hub-how-sheet{display:none!important}}
/* A request that failed (hub.js problem): what went wrong, in plain words, and a Try again button. */
.hub-problem{background:var(--redbg);color:var(--red);border:1px solid var(--redline,#F2C9C5);border-radius:12px;padding:12px 14px;margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hub-problem p{margin:0;flex:1;min-width:200px;font-size:14px}
.hub-problem-go{border:0;border-radius:9px;padding:10px 16px;min-height:44px;font:inherit;font-weight:700;background:var(--redf);color:#fff;cursor:pointer}
.hub-problem-go:disabled{opacity:.6}
/* The question sheet (hub.js ask / tell / askText), in place of the browser's pop-ups. A bottom sheet on phones. */
.hub-ask{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px}
/* It is a modal <dialog>: undo the browser's and the tools' own dialog looks, so it covers the whole screen. */
dialog.hub-ask{width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;box-sizing:border-box;color:var(--text);overflow:hidden}
dialog.hub-ask::backdrop{background:transparent}
.hub-ask-card{background:var(--card);border-radius:14px;padding:20px;width:100%;max-width:440px;max-height:calc(100vh - 32px);box-sizing:border-box;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.hub-ask-card h2{margin:0 0 8px;font-size:18px;line-height:1.3}
.hub-ask-body{overflow-y:auto;font-size:15px;color:var(--text);min-height:0}
.hub-ask-body p{margin:0 0 10px}
.hub-ask-body ul{margin:0 0 10px;padding-left:20px;max-height:none;overflow:visible;font-size:inherit}
.hub-ask-body li{margin:3px 0}
.hub-ask-in{width:100%;box-sizing:border-box;font:inherit;padding:11px;border:1px solid var(--line);border-radius:8px;margin-top:6px}
.hub-ask-row{display:flex;gap:10px;margin-top:16px}
.hub-ask-row button{flex:1;min-height:48px;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}
.hub-ask-no{background:var(--card);border:1px solid var(--line);color:var(--text)}
.hub-ask-ok{background:var(--g);border:0;color:#fff}
.hub-ask-ok.danger{background:var(--redf);color:#fff}
.hub-ask-ok:disabled{opacity:.45;cursor:default}
@media (max-width:520px){.hub-ask{align-items:flex-end;padding:0}.hub-ask-card{max-width:none;border-radius:16px 16px 0 0;max-height:85vh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
@media print{.hub-ask{display:none!important}}
/* Screen readers only (hub.js live area). */
.hub-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Keyboard focus: a green ring in every tool, white on the green header. A tool's own focus style still wins. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--g);outline-offset:2px}
.hub-top :focus-visible,.hub-how-head :focus-visible{outline-color:#fff}
/* Touch screens: everything in the frame is at least 44px to tap. */
@media (pointer:coarse){
  .hub-menu,.hub-how-head button{min-width:44px;min-height:44px}
  .hub-co,.hub-how,.hub-btn{min-height:44px}
  .hub-co{min-width:44px}
  .hub-link{min-height:44px;box-sizing:border-box}
  .hub-theme button{min-height:44px}
  .hub-choose-x,.hub-how-link{min-height:44px}
}
/* People who ask their phone for less motion: no sliding menu and no spinning. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Style A, shared by every tool: cards 12px (--r), buttons and fields 9px (--rs), a soft shadow (--sh, --shh on hover).
   Hub.i(name) draws an icon the size of the text around it, in place of emojis. */
svg.hub-i{width:1.15em;height:1.15em;vertical-align:-.2em;flex:none;stroke-width:2.1}
/* Fleet's and Visits' maps (hub/map.js): each LGA's name, shown once zoomed in to about a state. */
.leaflet-tooltip.lga{background:none;border:0;box-shadow:none;padding:0;color:#5B3A85;font:600 11px/1.2 system-ui,sans-serif;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff}
.leaflet-tooltip.lga::before{display:none}
/* Figures cards: the Sales month and each part of the business, on Home (Sales only, short) and on Reports. */
.month{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:16px;margin-top:16px}
.month .when{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
/* Figures in fixed-width digits, so ₦ amounts and counts line up and don't jiggle as they refresh. */
.month,.wait,.myshifts,.hub-link small{font-variant-numeric:tabular-nums}
.month .inc{margin:8px 0 2px;font-size:14px;color:var(--muted);font-weight:600}
.month .big,.month .goal .n.hero{font-size:clamp(28px,7vw,36px);font-weight:700;color:var(--gt);line-height:1.1;letter-spacing:-.02em}
.month .cur{font-size:.6em;font-weight:600;vertical-align:.3em;margin-right:2px}
.month .unlock{margin:10px 0 2px;font-size:15px} .month .unlock b{color:var(--gt)}
.month .sub{font-size:14px;color:var(--muted)}
.month .pace{display:inline-block;margin-top:8px;font-size:13px;background:var(--g3);color:var(--ok);padding:4px 10px;border-radius:999px;font-weight:600}
.month .nums{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.month .nums div{background:var(--soft,#FBFAF6);border:1px solid var(--line);border-radius:10px;padding:10px}
.month .nums b{display:block;font-size:17px}
.month .nums span{font-size:12px;color:var(--muted)}
.month h3{font-size:13px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:14px 0 6px}
.month .bars{display:flex;align-items:flex-end;gap:2px;height:70px;border-bottom:1px solid var(--line)}
.month .bars i{flex:1;background:var(--g3);border-radius:3px 3px 0 0;min-height:2px;cursor:pointer}
.month .bars i.has{background:var(--lime)} .month .bars i.today{background:var(--g)} .month .bars i.sel{outline:2px solid var(--gold)}
.month .tip{font-size:13px;margin-top:4px;min-height:18px}
.month .rows div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line2,#F1EFE8);font-size:14px}
.month .rows div:last-child{border-bottom:0}
.month .hist{display:flex;gap:8px}
.month .hist div{flex:1;text-align:center;background:var(--soft,#FBFAF6);border:1px solid var(--line);border-radius:10px;padding:8px 4px;font-size:13px}
.month .hist b{display:block;font-size:16px}
.month .hist .now{border-color:var(--g);background:var(--g3)}
.month .hist small{display:block;font-size:11px;color:var(--muted)} .month .hist .short small{color:var(--amber)}
.month .goal{margin:10px 0 4px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft,#FBFAF6)}
.month .goal .n{font-size:22px;font-weight:700} .month .goal .n span{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}
.month .meter{height:8px;border-radius:999px;background:var(--line);margin:8px 0 6px;overflow:hidden}
/* Green for progress; amber only when this month's pace falls short of the target. */
.month .meter i{display:block;height:100%;background:var(--g);border-radius:999px} .month .goal.made .meter i{background:var(--okf)} .month .goal.behind .meter i{background:var(--amberf)}
.month .goal .say{font-size:13px;font-weight:600;color:var(--text)} .month .goal.made .say{color:var(--ok)} .month .goal.behind .say{color:var(--amber)}
.month .big.locked{color:var(--muted)}
.month .how{font-size:12px;color:var(--muted);margin-top:12px}
.month .late{color:var(--red);font-size:12px}
.month .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:12px 0}
.month .stats div{background:var(--soft,#FBFAF6);border:1px solid var(--line);border-radius:10px;padding:10px}
.month .stats b{display:block;font-size:22px;color:var(--gt)}
.month .stats .warn b{color:var(--red)}
.month .stats span{font-size:12px;color:var(--muted)}
.month .rows .warn b{color:var(--red)}
.month .rows .note{display:block;font-size:12px;color:var(--muted)}
@media (max-width:560px){.month .nums{grid-template-columns:1fr 1fr}}
.month .when a{color:var(--gt);font-weight:600;text-decoration:none}
