:root{--bg:#ffffff;--card:#fff;--ink:#1c2533;--brand:#1f61af;--brand2:#194e8c;--gold:#ffcf45;--goldtx:#a87a00;--mut:#6b7280;--line:#e5e7eb;--acc:#cf9800;--ok:#16a34a;--na:#9ca3af;--bad:#dc2626;--blue:#2563eb;
--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px)}
[hidden]{display:none!important}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
#bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:4px;padding:calc(6px + var(--safe-t)) 6px 6px;background:#fff;color:var(--ink);min-height:54px;border-bottom:3px solid var(--brand);box-shadow:0 1px 0 var(--gold)}
#ttl{flex:1;min-width:0;padding:0 6px}
#t1{font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#t2{font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon{background:none;border:0;color:inherit;font-size:22px;min-width:44px;height:44px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.icon:active{background:rgba(0,0,0,.06)}
#bar .icon{color:var(--brand)}
#back{font-size:34px;line-height:1;padding-bottom:4px}
#sync.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
#offline{background:#fde68a;color:#78350f;font-size:13px;padding:6px 12px;text-align:center}
main{padding:12px 12px calc(96px + var(--safe-b));max-width:760px;margin:0 auto}
.empty{color:var(--mut);text-align:center;padding:40px 10px}
.card{background:var(--card);border-radius:14px;padding:14px;margin-bottom:10px;box-shadow:0 1px 2px rgba(0,0,0,.05);border:1px solid var(--line)}
a.card{display:block;color:inherit;text-decoration:none}
a.card:active{background:#f9fafb}
.row{display:flex;align-items:center;gap:8px}
.grow{flex:1;min-width:0}
.h{font-weight:700;font-size:16px}
.num{color:var(--acc);font-weight:800;margin-right:4px}
.sub{color:var(--mut);font-size:13px;margin-top:3px}
.chip{display:inline-block;background:#eef2ff;color:#3730a3;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;margin:4px 4px 0 0;white-space:nowrap}
.chip.gray{background:#f3f4f6;color:#374151}
.prog{height:8px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin-top:9px}
.prog>i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .3s}
.pct{font-size:12px;color:var(--mut);margin-top:4px;display:flex;justify-content:space-between}
.seg{display:flex;background:#e5e7eb;border-radius:11px;padding:3px;margin:4px 0 12px}
.seg button{flex:1;border:0;background:none;padding:8px 4px;border-radius:9px;font-weight:600;font-size:14px;color:#374151}
.seg button.on{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.1);color:var(--ink)}
.seg.sm{margin:2px 0 10px;background:none;padding:0;gap:6px}.seg.sm button{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 4px;font-size:13px;font-weight:700;color:#fff;background:var(--brand);border-radius:10px;box-shadow:0 3px 8px rgba(31,97,175,.25);cursor:pointer}.seg.sm button b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;font-size:12px;font-weight:800}.seg.sm button:hover{filter:brightness(1.08)}.seg.sm button.on{background:var(--brand2);color:#fff;box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}.seg.sm button.on b{background:#ffcf45;border-color:#ffcf45;color:#2b2100}.seg.sm button:focus-visible{outline:3px solid #ffcf45;outline-offset:2px}
.search{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:10px;font-size:16px}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:700;background:var(--brand);color:#fff;cursor:pointer;font-size:15px}
.btn.sec{background:#e5e7eb;color:var(--ink)}
.btn.danger{background:#fee2e2;color:var(--bad)}
.btn.small{padding:8px 12px;font-size:14px;border-radius:10px}
.btn.wide{width:100%}
.btn:disabled{opacity:.5}
.fab{position:fixed;right:16px;bottom:calc(18px + var(--safe-b));z-index:15;border-radius:999px;padding:14px 20px;box-shadow:0 6px 18px rgba(31,97,175,.35)}
.sect{margin:18px 2px 6px;display:flex;align-items:center;gap:6px}
.sect .h{font-size:15px}
.sect .cnt{font-size:12px;color:var(--mut);white-space:nowrap}
.note{font-size:13px;color:#6b7280;font-style:italic;margin:0 2px 6px}
.items{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.item{display:flex;gap:6px;align-items:flex-start;padding:10px 8px 10px 12px;border-top:1px solid var(--line)}
.item:first-child{border-top:0}
.item .txt{flex:1;min-width:0;cursor:pointer;padding-top:2px}
.item .d{font-size:15px}
.item .meta{font-size:12px;color:var(--mut);margin-top:3px}
.item .meta .nt{color:#92400e}
.item.done .d{color:#166534}
.item.na .d{color:var(--na);text-decoration:line-through}
.tg{width:44px;height:44px;flex:none;border-radius:11px;border:2px solid #d1d5db;background:#fff;font-size:22px;font-weight:800;color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tg.ok.on{background:var(--ok);border-color:var(--ok);color:#fff}
.tg.x.on{background:#6b7280;border-color:#6b7280;color:#fff}
.tg.ok:not(.on){color:#d1d5db}.tg.x:not(.on){color:#d1d5db}
.tg:active{transform:scale(.94)}
.filters{display:flex;gap:6px;overflow-x:auto;margin:6px 0 2px;padding-bottom:2px}
.filters button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;white-space:nowrap}
.filters button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.plans{margin-top:6px}
.plan{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--line);cursor:pointer}
.plan:first-child{border-top:0}
.plan .pi{width:38px;height:46px;flex:none;border-radius:6px;background:#fee2e2;color:#b91c1c;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.plan .pi.img{background:#dbeafe;color:#1d4ed8}
.kv{font-size:14px;margin-top:6px;color:#374151;white-space:pre-wrap}
.act{font-size:14px;padding:10px 12px;border-top:1px solid var(--line)}
.act:first-child{border-top:0}
.act b{font-weight:700}
.act .when{font-size:12px;color:var(--mut)}
#sheetwrap{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40;display:flex;align-items:flex-end;justify-content:center}
#sheet{background:#fff;width:100%;max-width:640px;border-radius:18px 18px 0 0;padding:16px 16px calc(16px + var(--safe-b));max-height:92vh;overflow:auto;animation:up .18s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.6}}
#sheet h3{margin:2px 0 12px;font-size:18px}
#sheet label{display:block;font-size:13px;font-weight:600;color:#374151;margin:10px 0 4px}
#sheet input,#sheet select,#sheet textarea{width:100%;padding:11px 12px;border:1px solid #d1d5db;border-radius:11px;background:#fff;font-size:16px}
#sheet textarea{min-height:90px;resize:vertical}
.btns{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.btns .btn{flex:1}
.list-btn{display:block;width:100%;text-align:left;background:#f9fafb;border:1px solid var(--line);border-radius:12px;padding:13px 14px;margin-top:8px;font-weight:600;font-size:15px}
.list-btn.red{color:var(--bad)}
.hist{font-size:12px;color:var(--mut);margin-top:10px}
#toast{position:fixed;left:50%;bottom:calc(90px + var(--safe-b));transform:translateX(-50%);background:#111827;color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;z-index:60;max-width:90vw;text-align:center}
.login{max-width:360px;margin:8vh auto 0;text-align:center}
.login .logo{width:76px;height:76px;border-radius:18px;margin:0 auto 14px;display:block}
.login input{width:100%;font-size:17px;padding:13px 14px;border:1px solid #d1d5db;border-radius:12px;margin:0 0 10px;text-align:left;background:#fff}
.err{color:var(--bad);font-size:14px;min-height:20px}
#viewer{position:fixed;inset:0;z-index:50;background:#374151;display:flex;flex-direction:column}
#vbar{display:flex;align-items:center;gap:2px;padding:calc(4px + var(--safe-t)) 4px 4px;background:#111827;color:#fff}
#vname{flex:1;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
#vscroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
#vpages{padding:8px;transform-origin:0 0;width:fit-content;min-width:100%}
.vpage{background:#fff;margin:0 auto 8px;box-shadow:0 2px 8px rgba(0,0,0,.3);position:relative}
.vpage canvas,.vpage img{display:block;width:100%;height:100%}
.vpage .pn{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:2px 6px;border-radius:6px}
#vstatus{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff;font-size:15px;pointer-events:none}
.upl{font-size:13px;color:var(--mut);padding:8px 12px}
.upl .prog{margin-top:4px}
.muted{color:var(--mut)}
.small{font-size:13px}

.space{margin:16px 0 6px}
.spacehd{display:block;color:inherit;text-decoration:none;padding:8px 4px 8px 12px;margin:0 0 8px;border-left:4px solid var(--acc)}
.spacehd .h{font-size:17px}
.spacehd .go{color:var(--blue);font-size:14px;font-weight:600;white-space:nowrap;padding-left:8px}
a.spacehd:active{background:#eef0f4;border-radius:0 10px 10px 0}
.space a.card{margin-left:8px}
.jobhd .kv{margin-top:6px}

/* ---- Berkowatts Electric brand (white, blue primary, gold accent) ---- */
#bmark{height:44px;flex:none;margin-left:6px;display:flex;align-items:center}
#bmark img{height:26px;width:auto;display:block}
#back:not([hidden])+#bmark{display:none}
body.home #bmark,body.home #ttl{visibility:hidden}
img.mark.big{display:block;width:min(330px,86%);height:auto;margin:0 auto}
img.mark.big.custom{width:auto;max-width:86%;max-height:90px}
.hero{text-align:center;padding:22px 10px 18px;margin:-12px -12px 14px;background:#fff;border-bottom:1px solid var(--line)}
.tag{font-size:13px;font-weight:800;letter-spacing:3px;text-transform:uppercase;color:var(--brand);margin-top:14px}
.tagline{font-size:12px;color:var(--mut);margin-top:4px;letter-spacing:.3px}
.login .tag{margin-top:16px}
.login img.mark.big{width:min(300px,90%)}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 13px;box-shadow:0 1px 3px rgba(0,0,0,.06);border-top:3px solid var(--gold)}
.stat .sv{font-size:28px;font-weight:800;line-height:1.05;color:var(--brand)}
.stat .sl{font-size:13px;font-weight:700;color:#374151;margin-top:3px}
.stat .ss{font-size:12px;color:var(--mut);margin-top:3px}
.minip{height:6px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin-top:6px}
.minip>i{display:block;height:100%;background:var(--ok)}
.jobsbtn{display:flex;justify-content:space-between;align-items:center;text-decoration:none;font-size:18px;padding:15px 18px;margin:4px 0 10px;box-shadow:0 4px 12px rgba(31,97,175,.25)}
.jobsbtn .jcount{color:#ffd34d;font-weight:800}
.fab{border:2px solid var(--gold)}
.card{box-shadow:0 1px 3px rgba(0,0,0,.06)}
a.hact{display:flex;gap:10px;align-items:flex-start;color:inherit;text-decoration:none}
a.hact:active{background:#f9fafb}
.ai{width:26px;height:26px;flex:none;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:#fff;margin-top:1px}
.ai.ok{background:var(--ok)}.ai.na{background:#6b7280}.ai.re{background:var(--gold);color:#3b2a00}
.logoprev{text-align:center;margin:14px 0 4px}
.logoprev img.mark.big{width:min(260px,80%)}
/* ---- photos ---- */
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:4px}
.ph{position:relative;aspect-ratio:1/1;border:0;padding:0;border-radius:10px;overflow:hidden;background:#e5e7eb;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--mut);font-weight:600;text-align:center}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .phb{position:absolute;left:4px;bottom:4px;background:rgba(31,97,175,.9);color:#fff;font-size:10px;padding:1px 5px;border-radius:5px}
.ph.more{background:#eef4fb;color:var(--brand);font-size:18px;font-weight:800}
.ph.addph{background:#eef4fb;color:var(--brand);font-size:13px;font-weight:700;line-height:1.3;border:2px dashed #b9d3ee}
.ph.upl-tile{background:#fff7dc;color:#8a6400;padding:4px;font-size:11px}
#pv{position:fixed;inset:0;z-index:70;background:#000;color:#fff;display:flex;flex-direction:column}
#pv .pvbar{display:flex;align-items:center;gap:4px;padding:calc(4px + var(--safe-t)) 6px 4px}
#pv .pvbar .icon{color:#fff}
#pv .pvimg{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
#pv .pvimg img{max-width:100%;max-height:100%;object-fit:contain;display:block}
#pv .pvnav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.18);border:0;color:#fff;font-size:30px;width:44px;height:64px;border-radius:12px}
#pv .pvnav.l{left:6px}#pv .pvnav.r{right:6px}
#pv .pvcap{padding:10px 14px calc(14px + var(--safe-b));font-size:14px;background:rgba(255,255,255,.06)}
#pv .pvcap .cap{font-size:16px;margin-bottom:4px}
#pv .pvcap .small{color:#cbd5e1;margin-top:2px}

.signedas{font-size:13px;color:var(--mut);margin-top:8px}
.signedas b{color:var(--brand)}
.rolechip{display:inline-block;border-radius:999px;padding:0 7px;font-size:11px;font-weight:700;line-height:17px;vertical-align:1px;background:#f3f4f6;color:#374151}
.rolechip.r-office{background:#e0edff;color:#194e8c}
.rolechip.r-staff{background:#e0edff;color:#194e8c}
.rolechip.r-owner{background:#1f2a44;color:#ffcf45}.rolechip.r-senior{background:#e7e5ff;color:#3f2f9e}.rolechip.r-lead{background:#e6f6ec;color:#17643a}
.permlist{padding:2px 12px}.permrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px solid var(--line,#e5e7eb)}.permrow:first-child{border-top:0}.permrow .mname{font-weight:600}
.permsel{width:auto;min-width:142px;max-width:46vw;margin:0;padding:7px 8px;font-size:14px;border-radius:9px}.permrow.pend .permsel{min-width:118px}.permrow .btn.small{flex:0 0 auto}
.rolechip.r-manager{background:#fff4d6;color:#8a6400}
.rolechip.r-crew{background:#e9f7ee;color:#166534}
.maplink{color:var(--brand);text-decoration:none;font-weight:600;cursor:pointer}
.maplink:active{opacity:.6}

.login{margin-top:5vh}
.lform{margin-top:6px}
.login .err{color:var(--bad);min-height:20px;font-size:14px;margin:2px 0 8px}
.login .card .btns{justify-content:flex-start}
.member{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin:0 0 8px;cursor:pointer}
.member .mname{font-weight:600;font-size:15px}
.member .go,.teamcard .go,.reqbanner .go{color:var(--mut);font-weight:600}
.teamcard{display:block;text-decoration:none;color:inherit}
.teamcard .row{display:flex;align-items:center;gap:10px}
.badge{display:inline-block;min-width:22px;height:22px;line-height:22px;border-radius:11px;background:var(--bad);color:#fff;font-size:13px;font-weight:700;text-align:center;padding:0 6px}
.reqbanner{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:#7c2d12;background:#fff7ed;border:1px solid #fed7aa}
.card.req .btns{flex-wrap:wrap}

/* ---- service calls (v18) ---- */
.navbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 10px}
.navbtns .jobsbtn{margin:0;flex-direction:column;align-items:flex-start;gap:2px;padding:13px 15px;font-size:17px;line-height:1.15}
.navbtns .jobsbtn .jcount{font-size:14px}
.navseg{margin:0 0 12px}
.navseg a{flex:1;text-align:center;text-decoration:none;padding:9px 4px;border-radius:9px;font-weight:600;font-size:14px;color:#374151}
.navseg a.on{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.1);color:var(--brand)}
.navseg a b{color:var(--goldtx);margin-left:2px}
.sccard .row,.schd .row{display:flex;align-items:flex-start;gap:8px}
.scpill{margin:0;flex-shrink:0}
.scmeta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:#374151;margin-top:8px}
.scmeta .today{color:var(--brand);font-weight:700}
.scmeta .late{color:var(--bad);font-weight:700}
.scprice{color:var(--goldtx);font-weight:700}
.scissue{margin-top:6px}
.schd .h.big{font-size:20px;font-weight:800}
.scphone{display:inline-block;margin:8px 0 2px;padding:9px 14px;border-radius:10px;background:#eef6ff;color:var(--brand);font-weight:700;text-decoration:none;font-size:16px}
.scgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:10px}
.scgrid .k,.schd .k{font-size:12px;color:var(--mut);font-weight:600}
.scgrid .v{font-size:15px;font-weight:600}
.scstat{display:flex;flex-wrap:wrap;gap:6px}
.scstat button{flex:1 1 auto;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 8px;font-size:14px;font-weight:700;color:#374151;min-width:70px}
.scstat.ro button{opacity:.6}
.scnew{padding:10px 12px;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.scnew textarea{width:100%;min-height:60px;padding:10px;border:1px solid #d1d5db;border-radius:10px;font:inherit;font-size:16px;resize:vertical}
.act.ev{color:var(--mut);font-size:13px}
.act .dn{color:var(--bad);text-decoration:none}
.ai.sc{background:#fef3c7}
#sheet .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---- v19 field modules ---- */
.navbtns.tiles .tile{flex-direction:column;align-items:flex-start;gap:1px;position:relative;padding:12px 14px 12px}
.navbtns.tiles .tile .ti{font-size:20px;line-height:1;margin-bottom:3px}
.navbtns.tiles .tile:last-child:nth-child(odd){grid-column:1/-1}
.navbtns.tiles .tile .jcount{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.mcard .msnip{font-size:14px;color:#374151;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.mcard .msnip.bad{color:var(--bad)}
.late{color:var(--bad);font-weight:700}
.opt{font-weight:400;color:var(--mut)}
.hint{font-size:13px;color:var(--mut);margin:10px 2px}
.joblink{color:var(--brand);font-weight:600;text-decoration:none}
.crewlist .row{padding:6px 0;border-bottom:1px solid var(--line);font-size:15px}
.crewlist .tot{font-weight:700;border-bottom:0}
.crewpick{border:1px solid var(--line);border-radius:12px;padding:0 10px;max-height:300px;overflow:auto}
#sheet label.cp{display:flex;align-items:center;gap:10px;margin:0;padding:9px 2px;border-top:1px solid var(--line);font-size:15px;font-weight:500;color:var(--ink)}
#sheet .crewpick label.cp:first-child,#sheet .crewpick .cpgrp+label.cp{border-top:0}
#sheet label.cp.chk{border:0;margin-top:12px;padding:4px 0}
#sheet .cp input[type=checkbox]{width:22px;height:22px;flex:none;margin:0;accent-color:var(--brand)}
#sheet .cp .hrs{width:78px;flex:none;padding:7px 8px}
.cpgrp{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;padding:10px 2px 2px}
.mline{display:grid;grid-template-columns:1fr 62px 66px 34px;gap:6px;margin-bottom:6px}
#sheet .mline input{padding:9px 8px}
.mline .x{border:0;background:#f3f4f6;border-radius:9px;font-size:14px;color:var(--mut)}
.mtab{width:100%;border-collapse:collapse;margin-top:10px;font-size:15px}
.mtab th{text-align:left;font-size:12px;color:var(--mut);font-weight:600;border-bottom:1px solid var(--line);padding:4px 4px}
.mtab td{border-bottom:1px solid var(--line);padding:8px 4px;vertical-align:top}
.mtab td:nth-child(2),.mtab td:nth-child(3),.mtab th:nth-child(2),.mtab th:nth-child(3){width:58px}
.pirow{display:flex;align-items:flex-start;gap:10px}
.pirow.done .d{text-decoration:line-through;color:var(--mut)}
.pichk{flex:none;width:30px;height:30px;border-radius:8px;border:2px solid #cbd5e1;background:#fff;font-weight:800;color:#fff;font-size:17px;line-height:1;margin-top:1px}
.pichk.on{background:var(--ok);border-color:var(--ok)}
.pichk:disabled{opacity:.45}
.daynav{display:flex;gap:6px;align-items:center;margin:4px 0 8px}
.daynav .grow{flex:1}
.jtabs{margin:4px 0 10px}
.jtabs b{color:inherit;opacity:.8}
.calday{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:10px}
.calday.today{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset}
.cdh{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;margin-bottom:4px}
.tdy{background:var(--brand);color:#fff;border-radius:999px;font-size:11px;padding:2px 8px}
.cj{padding:7px 0;border-top:1px solid var(--line)}
.cjn{font-weight:700;color:var(--ink);text-decoration:none;display:inline-block}
.cchip{color:var(--ink);font-size:13px;border-radius:7px;padding:3px 8px}
.cx{display:block;font-size:14px;padding:6px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.cx.insp{color:#3730a3}
.cempty{font-size:14px;color:var(--mut);padding:4px 0}
.wkhead{display:flex;font-size:13px;color:var(--mut);font-weight:600;margin:2px 2px 6px}
.cglbl{font-size:12px;font-weight:700;letter-spacing:.02em;padding:5px 10px;background:var(--cbg);color:#3a3a3a;border-bottom:1px solid var(--line)}
.cgroup{border-radius:12px;overflow:hidden;margin-bottom:8px;border:1px solid var(--line);border-left:7px solid var(--cb)}
.crow{display:flex;gap:10px;padding:9px 11px;background:var(--cbg);border-top:1px solid rgba(0,0,0,.06);align-items:baseline}
.crow:first-child{border-top:0}
.crow.tap{cursor:pointer}
.crow.me{box-shadow:inset 0 0 0 2px var(--brand)}
.crow .cn{flex:0 0 96px;font-weight:700;font-size:15px}
.crow .cn b{color:var(--goldtx)}
.crow .cw{flex:1;font-size:15px;min-width:0}
.crow .cw a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25)}
.crow .rd{font-size:12px;font-weight:700;color:#374151;background:rgba(255,255,255,.7);border-radius:6px;padding:1px 6px}
.xrow{padding:6px 0;border-top:1px solid var(--line)}
.xrow:first-child{border-top:0}
.xrow .xd{font-weight:700;font-size:13px;color:var(--mut)}
.xrow .cx{border-top:0;padding:3px 0}
.mysched{border-top:3px solid var(--gold)}
.mysched .msrow{display:flex;gap:10px;padding:6px 0;border-top:1px solid var(--line);font-size:15px}
.mysched .msrow:first-of-type{border-top:0}
.mysched .msd{flex:0 0 86px;font-weight:700;color:var(--brand)}
.dpick{display:flex;gap:6px;flex-wrap:wrap}
#sheet label.dp{margin:0;flex:1 1 0;min-width:44px}
#sheet .dp input{display:none}
.dp span{display:block;text-align:center;border:1px solid var(--line);border-radius:10px;padding:7px 2px;font-weight:700;font-size:14px;background:#fff;line-height:1.15}
.dp input:checked+span{background:var(--brand);color:#fff;border-color:var(--brand)}
.r-wh{background:#fef3c7;color:#92400e}
.whbanner{border-left:4px solid var(--gold)}
.ctag{display:inline-block;font-size:10px;font-weight:700;border-radius:6px;padding:1px 5px;margin-left:5px;vertical-align:middle;white-space:nowrap}
.ctag.elec{background:#e0ecff;color:#1d4ed8}
.ctag.solar{background:#fff4c2;color:#8a6200}
.crow .cn .ctag{display:block;width:max-content;margin:3px 0 0}
.crow .cn{flex:0 0 112px}
.crow .cn .ctag{display:inline-block;margin:0 0 0 4px;font-size:9px;padding:0 4px}
.crow .cn{white-space:nowrap}
.crow .cti{font-size:12px;opacity:.85}
.wkhead .legend{margin-left:8px}
.mcard .chip,.pirow .chip{white-space:normal;max-width:100%}
.mcard,.mcard .grow{min-width:0;overflow-wrap:anywhere}

/* v21: sub jobs as full job pages, breadcrumbs, sub-job filter, email warehouse */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;font-size:14px;margin:2px 2px 8px;line-height:1.4}
.crumbs a{color:var(--brand);font-weight:600;text-decoration:none}
.crumbs b{color:var(--ink,#111827);font-weight:700}
.crumbs .sep{color:#9ca3af;margin:0 2px}
.subf{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.subf label{margin:0;font-size:13px;font-weight:600;color:#6b7280;white-space:nowrap}
.subf select{flex:1;min-width:0;margin:0}
.subf .subgo{color:var(--brand);font-weight:600;text-decoration:none;white-space:nowrap;font-size:14px}
.mrc{padding:0;overflow:hidden}
.mrc .mrlink{display:block;padding:14px 14px 10px;color:inherit;text-decoration:none}
.mrc .mrlink:active{background:#f9fafb}
.mrc .mrfoot{border-top:1px solid var(--line);padding:8px 14px;display:flex;justify-content:flex-end}
.mailbtn{display:inline-flex;align-items:center;justify-content:center;gap:4px;text-decoration:none;font-weight:600}
.mrfoot .mailbtn{color:var(--brand);font-size:14px;padding:4px 2px}
a.btn.mailbtn{text-align:center}
.btns.col{flex-direction:column;align-items:stretch}
.hcx{background:#fef3c7;color:#92400e;border-radius:6px;padding:0 5px;font-weight:700;font-size:12px}

/* v22: job & sub job pages open on a tile grid like home; each tile opens one section */
.jtiles{margin-top:12px}
.jtiles .tile{min-height:78px}
.backbig{display:block;font-size:17px;font-weight:700;color:var(--brand);background:#eef5fc;border:1px solid #cfe2f5;border-radius:12px;padding:14px 16px;margin:2px 0 12px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.backbig:active{background:#dcebf9}
.sectitle{display:flex;align-items:center;gap:8px;font-size:23px;font-weight:800;margin:4px 2px 8px;line-height:1.2}
.sectitle .ti{font-size:24px}
.sectitle .cnt{font-size:14px;font-weight:700;color:var(--mut);white-space:nowrap}

/* v23 equipment & vehicles */
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.two>*{min-width:0}
.soon{color:#b45309;font-weight:700}
a.card.ascard{display:flex;gap:12px;align-items:flex-start;text-decoration:none;color:inherit}
.ascard .h{font-size:16px;font-weight:700}
.asimg{width:58px;height:58px;border-radius:12px;object-fit:cover;flex:none;background:#eef4fb;border:1px solid var(--line)}
.asico{display:flex;align-items:center;justify-content:center;font-size:28px}
.ashero{display:flex;gap:14px;align-items:center}
.ashero .asimg{width:84px;height:84px}
.ashero .asico{font-size:40px}
.ashero .h.big{font-size:20px;font-weight:800}
.duechip{display:inline-block;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700;margin:5px 4px 0 0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.duechip.red{background:#fee2e2;color:#991b1b}
.duechip.amber{background:#fef3c7;color:#92400e}
.assum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 6px}
.assum>div{background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:12px;padding:8px 10px;text-align:center}
.assum b{display:block;font-size:22px;color:var(--brand);line-height:1.1}
.assum span{font-size:12px;color:var(--mut)}
.assum .r{border-top-color:var(--bad)}.assum .r b{color:var(--bad)}
.assum .a{border-top-color:#f59e0b}.assum .a b{color:#b45309}
.duebox{border-color:#fde68a}
.duerow{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.duerow:first-child{border-top:0}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.dot.red{background:var(--bad)}.dot.amber{background:#f59e0b}
.dates .drow{display:flex;align-items:center;gap:8px;padding:11px 12px;border-top:1px solid var(--line);font-size:14px}
.dates .drow:first-child{border-top:0}
.drow.red{background:#fef2f2}.drow.red b{color:var(--bad)}
.drow.amber{background:#fffbeb}.drow.amber b{color:#b45309}
.dtag{font-size:11px;font-weight:800;border-radius:999px;padding:2px 7px;text-transform:uppercase;letter-spacing:.03em}
.drow.red .dtag{background:var(--bad);color:#fff}.drow.amber .dtag{background:#f59e0b;color:#fff}
.askv{display:flex;gap:10px;justify-content:space-between;padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:14px}
.askv span{color:var(--mut);white-space:nowrap}.askv b{text-align:right;word-break:break-word}
.asempty{text-align:center;padding:22px 16px}
.asempty .big{font-size:44px}
.asempty .h{font-size:17px;font-weight:800;margin:6px 0}
.btn.big{padding:15px 16px;font-size:17px}
.photolbl{display:block;text-align:center;cursor:pointer}
.eqbtn .jcount b{font-weight:800;background:#fff;border-radius:6px;padding:0 5px;color:#b45309}
.eqbtn .jcount b.r{color:var(--bad)}

/* v25 progress */
.pgchip{background:#ecfdf5;color:#065f46}
.pgsum{padding:14px 14px 10px}
.pgsrow{margin:2px 0 10px}
.pgsl{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;font-size:15px}
.pgsrow.big .pgsl b{font-size:24px;font-weight:800}
.pgbar{height:12px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin-top:5px}
.pgbar>i{display:block;height:100%;border-radius:99px;transition:width .3s}
.pgbar.sm{height:7px;margin-top:5px}
.pgnote{margin-top:4px;line-height:1.35}
.pgfloor{padding:0;overflow:hidden}
.pgfh{display:flex;align-items:center;gap:4px;padding:4px 8px 4px 0}
.pgft{display:block;text-align:left;background:none;border:0;padding:10px 6px 10px 14px;font:inherit;color:inherit;min-width:0}
.pgft .h{font-size:17px}
.pgmini{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px;color:var(--mut);margin-top:2px}
.pgmini b{color:var(--ink)}
.pgduo{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pgmenu{background:#f3f4f6;border:0;border-radius:10px;width:40px;height:40px;font-size:20px;font-weight:800;color:var(--ink);flex:none}
.pgcaret{width:22px;text-align:center;color:var(--mut);flex:none}
.pgrows{border-top:1px solid var(--line);padding:2px 12px 8px}
.pgcl{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--goldtx);margin:10px 2px 0}
.pgrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #f1f2f4;padding:10px 2px;font:inherit;color:inherit}
.pgrow:last-child{border-bottom:0}
.pgrow:active{background:#f8fafc}
.pgname{font-weight:600;font-size:15px}
.pgby{font-size:11.5px;color:var(--mut);margin-top:3px}
.pgpct{font-size:18px;font-weight:800;min-width:52px;text-align:right}
.pglist{padding:2px 12px}
.pgempty .h{font-size:17px}
.pgbtns{margin:4px 0 6px}
.pgquick{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:14px 0 6px}
.pgquick .btn{padding:14px 0;font-size:16px;min-width:0}

/* v27: job assignment + orders */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chips .chip{margin:0}
.chip.mgrchip{background:#e8f0fb;color:#1e3a5f;border:1px solid #c9d9f2}
.chip.mgrnone{font-weight:500}
.mgrcard{padding:12px 14px}
.mgrcard .row{display:flex;align-items:center;gap:10px}
.mgrnames{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mgrnames .chip{margin:0;font-size:14px}
.mgrpick{display:flex;flex-direction:column;gap:2px;margin:6px 0 4px}
.utitle{font-size:13px;color:#475569;font-weight:600;margin-top:1px}
.pgtog .pgcheck{width:28px;height:28px;border-radius:8px;border:2px solid #cbd5e1;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;flex:none}
.pgtog.on .pgcheck{background:var(--ok);border-color:var(--ok)}
#sheet .mgrpick label.cp.chk{margin-top:2px}
.chip.stkchip{background:#fef3c7;color:#92400e}

/* v28: sub jobs list on a job page, scope page link */
.subjobs .card.subjob{display:block;padding:9px 12px;margin:6px 0}
.subjobs .card.subjob .row{display:flex;align-items:center;gap:10px}
.subjobs .card.subjob .h{font-size:15px;margin:0}
.subjobs .card.subjob .sub{font-size:13px}
.subjobs .sjpct{font-size:15px;color:var(--ink,#111)}
.subjobs .card.subjob .prog{margin-top:6px;height:5px}
.card.scopehome{display:block;text-decoration:none;color:inherit}
.card.scopehome .row{display:flex;align-items:center;gap:10px}
.subjobs .go,.scopehome .go{color:var(--mut);font-weight:600;font-size:20px}

/* v29: 💲 Estimates */
.fubadge.corner{position:absolute;top:10px;right:10px}
.fubadge{display:inline-block;background:#dc2626;color:#fff;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:800;line-height:18px}
.bidstats .sv{font-size:24px}
.stat .sv.ok{color:var(--ok)}
.bidcard .bidamt{font-weight:800;color:var(--brand);font-size:16px;white-space:nowrap}
.bidcard .scmeta,.bidhd .scmeta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:8px;font-size:13px;color:var(--mut)}
.card.late-fu{border-left:4px solid var(--bad);background:#fff7f7}
.fubanner{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;font-size:15px;color:#991b1b;background:#fef2f2;border-color:#fecaca;cursor:pointer}
.fubanner .go{color:#991b1b;font-weight:700}
.filters button.fu{border-color:#fca5a5;color:#b91c1c}
.filters button.fu.on{background:var(--bad);border-color:var(--bad);color:#fff}
.bidbig{font-size:30px;font-weight:800;color:var(--brand);margin-top:8px;display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--gold);padding-bottom:8px}
.bidbig .chip{margin:0}
.btn.bidjob{display:block;width:100%;text-align:center;margin:4px 0 2px;padding:14px 16px;font-size:16px;text-decoration:none}
.btn.bidjob.done{background:#dcfce7;color:#166534}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.two input{width:100%}
#sheet label.chk{display:flex;align-items:center;gap:8px;margin-top:12px;font-weight:600}
#sheet label.chk input{width:20px;height:20px;margin:0}
.bjmode{margin-top:4px}
.scstat.bidst{flex-wrap:nowrap}
.scstat.bidst button{flex:1 1 0;min-width:0;padding-left:2px;padding-right:2px;font-size:13px}
.chip.lockchip{background:#fef3c7;color:#92400e;margin:0 4px 0 0}

/* v33: plan downloads */
.dlb{flex:none;display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border-radius:10px;background:#eef5fc;color:var(--brand);border:1px solid #c9dcf2;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.dlb span{font-size:15px;line-height:1}
.dlb:active{background:#dbeafe}
.dlall{margin:0 2px 8px}
.dlallb{display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;width:100%;box-shadow:inset 0 -2px 0 var(--gold)}
.dlallb .zipt{font-size:11px;font-weight:800;background:var(--gold);color:#3b2a00;border-radius:6px;padding:2px 6px}
.vdl{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 10px;margin:0 2px;border-radius:9px;background:var(--brand);color:#fff;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap;border-bottom:2px solid var(--gold)}
@media (max-width:360px){.dlb{padding:7px 8px;font-size:12px}}

/* v36: Orders items (added per job) */
.pgorders .pgoh{display:flex;align-items:center;gap:8px;padding:12px 2px 2px;border-top:1px solid var(--line)}
.pgorders .pgoh:first-child{border-top:0}
.pgoh b{font-size:15px;color:var(--brand)}
.pgok{font-size:12px;color:var(--goldtx);background:#fff8e1;border-radius:6px;padding:1px 6px;margin-left:4px;white-space:nowrap}
.pgorm{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--mut);font-size:15px;flex:none}
.pgorm:active{background:#fee2e2;color:var(--bad)}
.pgorders .pgrow{padding-left:10px}
.pgopick .member[disabled]{opacity:.55}
.pgopick .member[disabled] .go{font-size:12px;color:var(--ok)}
.pgokind{grid-template-columns:2fr 1fr}
.pgoempty .btns{margin-top:10px}

/* v38: estimate type (Estimate / Change order) and Create change order */
.bidpills{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.bidpills .chip{margin:0}
.btn.bidjob .bjsub{display:block;font-size:12.5px;font-weight:600;opacity:.85;margin-top:3px}
.btn.bidjob.bidco{background:#ffcf45;color:#2b2100;box-shadow:0 2px 0 rgba(0,0,0,.08)}
.filters.bkind{margin:2px 0 6px}
.filters.bkind button{flex:1}
.filters button.cof.on{background:#fef3c7;color:#92400e;border-color:#f59e0b}
.cosum{background:#fffbeb;border:1px solid #fde68a;font-size:14px;line-height:1.4}
.fromest{margin-top:4px}

/* v39: Approved by */
.apprline{margin:8px 0 2px;padding:8px 10px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.linkbtn{background:none;border:0;padding:2px 4px;color:var(--brand);font-weight:600;font-size:13px;cursor:pointer;text-decoration:underline}
.apprline .linkbtn{margin-left:auto}
.apadd{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:600;cursor:pointer;background:#fff;border:1px dashed var(--brand);border-radius:99px;padding:1px 9px;font-size:12px}
.apadd.big{display:flex;width:100%;margin:8px 0 2px;padding:9px 12px;border-radius:10px;font-size:14px;justify-content:flex-start;border:1.5px dashed var(--gold);background:#fffbeb}
.apadd.big .muted{font-weight:400;font-size:13px}
.apprchip{color:#166534;font-weight:600}
.kindflip{margin:2px 0 10px;font-weight:600}
.kindflip.co{border-color:#f59e0b;color:#92400e;background:#fffbeb}

/* v40: 💡 Request a change */
.crnew{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1.5px dashed #f59e0b;background:#fffbeb;font:inherit;color:inherit;cursor:pointer}
.crnew .ti{font-size:26px}.crnew .grow b{display:block;font-size:16px}.crnew .grow .sub{display:block}.crnew .go{font-size:22px;font-weight:700;color:#b45309}
.crcard .h{font-size:16px}
.crcard .row{display:flex;gap:8px;align-items:flex-start}
.crdet{white-space:pre-wrap;margin-top:8px;font-size:15px;line-height:1.4}
.crwhere{margin-top:6px}
.crphotos{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px}
.crph{position:relative;width:84px;height:84px;border-radius:10px;overflow:hidden;border:1px solid var(--line);padding:0;background:#f3f4f6}
.crph img{width:100%;height:100%;object-fit:cover;display:block}
.crx{position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:12px;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:13px;line-height:24px;padding:0}
.crreply{margin-top:10px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;padding:8px 10px;font-size:14px;white-space:pre-wrap}
.crchips{display:flex;gap:6px;margin:12px 0 8px;flex-wrap:wrap}
.crchips button{flex:1;min-width:70px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 6px;font-size:13px;font-weight:700}
.crchips button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.crcopy{width:100%;font-size:17px;padding:14px;margin-top:2px}
.crfoot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}
.linkbtn{border:0;background:none;color:var(--brand);font-weight:600;font-size:14px;padding:6px 0}
.linkbtn.danger{color:var(--bad)}
.crsent{text-align:center;padding:26px 6px 10px}.crsent .big{font-size:24px;font-weight:800;margin-bottom:8px}
#crpv{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9999;display:flex;align-items:center;justify-content:center}
#crpv[hidden]{display:none}
#crpv img{max-width:100%;max-height:100%;object-fit:contain}
.crpvx{position:absolute;top:calc(env(safe-area-inset-top) + 12px);right:12px;width:38px;height:38px;border-radius:19px;border:0;background:rgba(255,255,255,.2);color:#fff;font-size:18px}
#crcopytxt{width:100%;font-size:16px;margin-top:8px}
.crbadge{background:#f59e0b}

/* v41 invoices */
.invtabs button{flex:0 0 auto}
.invgrp{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:800;padding:14px 2px 6px;border-bottom:2px solid var(--line);margin-bottom:8px}
.invgrp .muted{font-weight:600;color:var(--mut);white-space:nowrap}
.card.invrow{display:block;text-decoration:none;color:inherit;padding:12px 14px}
.invrow .l1{display:flex;gap:10px;align-items:baseline;font-weight:700;font-size:16px}
.invrow .l1 .grow{flex:1;min-width:0}
.invamt{font-weight:800;white-space:nowrap;font-size:16px}
.card.taxrow{border-left:4px solid var(--bad)}
.chip.taxtag{background:#dc2626;color:#fff}
.chip.testbadge{background:#7c3aed;color:#fff;letter-spacing:.06em}
.card.invwarn{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.card.invnote{background:#fffbeb;border-color:#fde68a;color:#78350f}
.invvendor{font-size:20px;font-weight:800}
.invthumb{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f9fafb;cursor:zoom-in;max-height:360px}
.invthumb canvas{display:block;width:100%;height:auto}
.invzoom{position:absolute;right:8px;bottom:8px;background:rgba(17,24,39,.75);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px}
.invgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.invgrid span{display:block;font-size:12px;color:var(--mut);font-weight:600}
.invgrid b{font-size:16px;word-break:break-word}
.invgrid .tot b{font-size:24px}
.invgrid .taxbad b{color:var(--bad)}
.invd{padding:4px 0;font-size:15px}
.invd + .invd{border-top:1px solid var(--line);margin-top:6px;padding-top:8px}
.invd.bad{color:#991b1b}
.invbtns{display:flex;gap:8px;margin:2px 0 10px}
.invbtns .btn{flex:1}
.btn.okb{background:var(--ok)}
.btn.warnb{background:#ea580c}
.invchk{margin-top:8px}
.invkey{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;word-break:break-all;background:#f3f4f6;border:1px solid var(--line);padding:12px;border-radius:10px;margin:10px 0;user-select:all;-webkit-user-select:all}
/* v43: invoices under their job */
.card.invjob .h a{color:var(--brand);text-decoration:none}
.card.invjob .list-btn{margin-top:10px}
.chip.unlchip{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.card.invunl{display:block;background:#fff7ed;border-color:#fed7aa;color:#9a3412;text-decoration:none;font-size:14px}
.invtabs button.unl:not(.on){color:#9a3412;border-color:#fed7aa;background:#fff7ed}

/* v44: plan revisions */
.oldrevs{margin:8px 0 14px}.oldrevs>summary{cursor:pointer;color:var(--mut);font-weight:600;font-size:14px;padding:8px 2px;list-style:none}.oldrevs>summary::-webkit-details-marker{display:none}.oldrevs>summary::before{content:"▸ "}.oldrevs[open]>summary::before{content:"▾ "}.plan.oldplan{opacity:.72}.chip.oldchip{background:#fef3c7;color:#92400e}

/* v45: ☰ menu */
#ttl{cursor:pointer}
#mscrim{position:fixed;inset:0;z-index:60;background:rgba(15,23,42,.18)}
#mdrop{position:fixed;right:8px;z-index:61;min-width:228px;max-width:calc(100vw - 16px);max-height:calc(100vh - 90px);overflow:auto;background:#fff;border-radius:14px;border-top:3px solid var(--gold);box-shadow:0 12px 32px rgba(15,23,42,.22),0 2px 6px rgba(15,23,42,.12);padding:6px;animation:mdin .12s ease-out}
@keyframes mdin{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
#mdrop .mitem{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:8px 12px;border:0;background:none;border-radius:10px;font:inherit;font-size:16px;font-weight:600;color:var(--ink);text-align:left;cursor:pointer}
#mdrop .mitem:active{background:#eef4fb}
#mdrop .mitem.on{background:#eef4fb;color:var(--brand)}
#mdrop .mitem.on::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none}
#mdrop .mi{width:26px;text-align:center;font-size:19px}
#mdrop .msep{height:1px;background:var(--line);margin:4px 8px}
#mdrop .mout{color:var(--bad)}

/* v46: tiles look tappable — a round arrow in the corner, a lift on hover and a press when tapped */
.navbtns.tiles .tile{padding-right:46px;cursor:pointer;transition:transform .08s ease,box-shadow .15s ease,filter .15s ease}
.navbtns.tiles .tile::after{content:"\203A";position:absolute;right:10px;bottom:10px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;font-size:22px;font-weight:700;line-height:24px;text-align:center}
.navbtns.tiles .tile .jcount{color:#ffd34d}
@media (hover:hover){.navbtns.tiles .tile:hover{filter:brightness(1.08);box-shadow:0 6px 16px rgba(31,97,175,.35)}.navbtns.tiles .tile:hover::after{background:#ffcf45;border-color:#ffcf45;color:#2b2100}}
.navbtns.tiles .tile:active{transform:scale(.97);filter:brightness(.95)}
.navbtns.tiles .tile:focus-visible{outline:3px solid #ffcf45;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.navbtns.tiles .tile{transition:none}.navbtns.tiles .tile:active{transform:none}}
.navbtns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.navbtns .tile>span{max-width:100%;min-width:0}
.btn.addjob{display:block;margin:0 0 12px;padding:14px 16px;font-size:16px;border-bottom:3px solid var(--gold)}
/* v46: job setup checklist */
.card.setup{border:1.5px solid #c9dcf2;background:#f6faff}
.card.setup .prog{margin-top:8px}
.setuplist{display:flex;flex-direction:column;margin-top:10px;border-top:1px solid var(--line)}
.setupstep{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:11px 2px;font:inherit;color:inherit;cursor:pointer}
.setupstep:last-child{border-bottom:0}
.setupstep:active{background:#eaf2fc}
.setupstep .sck{width:26px;height:26px;flex:none;border-radius:8px;border:2px solid #9bb8dc;background:#fff;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.setupstep.on .sck{background:var(--ok);border-color:var(--ok)}
.setupstep .stt{display:block;font-weight:700;font-size:15px}
.setupstep.on .stt{color:#166534}
.setupstep .sts{display:block;font-size:12.5px;color:var(--mut);margin-top:2px}
.setupstep .go{color:var(--brand);font-size:22px;font-weight:700}
.card.setup-done{background:#f3fbf5;border-color:#bbf7d0}
/* v46: every card or row that opens something gets the same round arrow as the Home boxes */
#app a.card,#app .mrc a.mrlink,#app a.spacehd,#app a.plan,#app a.act.hact{position:relative;padding-right:58px}
a.card::after,.mrc a.mrlink::after,a.spacehd::after,a.plan::after,a.act.hact::after{content:"\203A";position:absolute;right:14px;top:50%;margin-top:-15px;width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;font-size:22px;font-weight:700;line-height:27px;text-align:center;box-shadow:0 2px 6px rgba(31,97,175,.28);pointer-events:none}
#app a.plan,#app a.act.hact{padding-right:52px}
a.plan::after,a.act.hact::after{width:26px;height:26px;margin-top:-13px;font-size:19px;line-height:23px;right:12px}
a.card .go,a.spacehd .go,a.plan .go{display:none}
a.card,.mrc a.mrlink,a.spacehd,a.plan,a.act.hact{transition:box-shadow .15s ease,transform .08s ease}
@media (hover:hover){a.card:hover,.mrc a.mrlink:hover{box-shadow:0 4px 14px rgba(31,97,175,.18)}a.card:hover::after,.mrc a.mrlink:hover::after,a.spacehd:hover::after,a.plan:hover::after,a.act.hact:hover::after{background:var(--gold);color:#2b2100}}
a.card:active,.mrc a.mrlink:active{transform:scale(.985)}
#app .subjobs .card.subjob{padding-right:54px}
.card.fubanner{position:relative}
@media (prefers-reduced-motion:reduce){a.card,.mrc a.mrlink{transition:none}a.card:active,.mrc a.mrlink:active{transform:none}}
/* v46: on the Jobs list the job's name is the tab: a blue bar across the top of its card */
#app a.card.jobcard{padding:0 0 14px;overflow:hidden}
#app a.card.jobcard::after{display:none}
#app a.card.jobcard>:not(.jobtab){margin-left:14px;margin-right:14px}
.jobtab{display:flex;align-items:center;gap:10px;background:var(--brand);color:#fff;padding:13px 14px;margin-bottom:10px;font-weight:700;font-size:17px;line-height:1.25;border-bottom:3px solid var(--gold)}
.jobtab .grow{min-width:0}
.jobtab .jtgo{flex:none;font-size:13px;font-weight:700;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);border-radius:999px;padding:4px 10px}
@media (hover:hover){a.card.jobcard:hover .jobtab{filter:brightness(1.08)}a.card.jobcard:hover .jtgo{background:var(--gold);border-color:var(--gold);color:#2b2100}}

/* v47: whole-job tiles folded under one row on jobs with sub jobs */
#app .wholejob{margin-top:12px}
#app .wholejob>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}
#app .wholejob>summary::-webkit-details-marker{display:none}
#app .wholejob>summary .sub{display:block}
#app .wholejob>summary::after{content:"\203A";font-size:22px;color:#1d5bbf;transition:transform .15s}
#app .wholejob[open]>summary::after{transform:rotate(90deg)}
#app .wholejob[open]>summary{margin-bottom:10px}

/* v49: tasks + required files */
#app .taskrow{display:flex;align-items:center;gap:10px;cursor:pointer}
#app .taskrow.late .sub{color:#b42318}
#app .taskrow.done{opacity:.6}
#app .tchk{flex:0 0 28px;width:28px;height:28px;border-radius:8px;border:2px solid #1d5bbf;background:#fff;color:#fff;font-weight:800;font-size:16px;line-height:1;cursor:pointer}
#app .taskrow.done .tchk{background:#16a34a;border-color:#16a34a}
#app .reqfiles .setupstep{display:flex;align-items:center;gap:8px}
#app .reqfiles .setupstep.skip{opacity:.55}

/* v50: purchase orders */
#app .pill{display:inline-block;border-radius:999px;padding:3px 8px;font-size:11.5px;font-weight:700;white-space:nowrap}
#app .pill.blue{background:#e2ecfa;color:#1d4f91}#app .pill.amber{background:#fff4d1;color:#7a5a00}#app .pill.green{background:#e3f4ea;color:#1f7a45}#app .pill.gray{background:#eef1f5;color:#5b6b80}
#sheet .poline{border:1px solid #e3e8ef;border-radius:10px;padding:8px;margin:8px 0;display:flex;flex-direction:column;gap:6px}
#sheet .poline .row input{min-width:0;flex:1}
#app .potable{width:100%;border-collapse:collapse;margin-top:12px;font-size:13px}
#app .potable th,#app .potable td{border-bottom:1px solid #e3e8ef;padding:6px 4px;text-align:left;vertical-align:top}
#app .bad{color:#b42318}
@media print{#bar,#pvbar,.noprint,#toast{display:none!important}#app .poprint{border:0;box-shadow:none}}

/* v51: alerts bell */
#bell{position:relative;text-decoration:none}
#belln{position:absolute;top:2px;right:0;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#e8a400;color:#fff;font:700 10px/16px system-ui;text-align:center}
#belln:empty{display:none}
#belln.red{background:#d92d20}
#app .alertrow.red .pi{background:#fde8e7}

/* v54: information box at the top of a page */
#app .infobox{background:#eef4fc;border-color:#c9daf2}
#app .infobox ul{margin:6px 0 0;padding-left:18px}#app .infobox li{margin:3px 0}

/* v55: reports */
#app .wrapseg{flex-wrap:wrap}
#app .tablewrap{overflow-x:auto;border:1px solid #e3e8ef;border-radius:10px;background:#fff}
#app .rtable{border-collapse:collapse;font-size:13px;min-width:720px;width:100%}
#app .rtable th,#app .rtable td{padding:7px 8px;border-bottom:1px solid #eef1f5;text-align:left;vertical-align:top;white-space:nowrap}
#app .rtable th{background:#f6f8fb;font-weight:700;position:sticky;top:0}
#app .rtable td.warn{color:#7a5a00;font-weight:700}#app .rtable td.bad{color:#b42318;font-weight:700}

/* v56: two jobs per crew-day */
.cplus{color:var(--muted,#888);font-weight:700;margin:0 2px}
.cj2{margin-top:12px;padding:10px 12px;border:1px dashed var(--line,#ccc);border-radius:10px}

/* v56: 💬 company chat — fun edition */
.chhero{position:relative;overflow:hidden;border-radius:18px;padding:18px 18px 16px;margin:0 0 12px;color:#fff;background:linear-gradient(135deg,#1f61af 0%,#5f3dc4 55%,#e8590c 120%);box-shadow:0 8px 22px rgba(31,97,175,.28)}
.chhero::after{content:"";position:absolute;right:-30px;top:-30px;width:140px;height:140px;border-radius:50%;background:rgba(255,207,69,.22)}
.chhero-e{font-size:30px;line-height:1;letter-spacing:4px}.chhero-t{font-size:22px;font-weight:800;margin-top:8px}.chhero-s{opacity:.9;margin-top:2px}
.chhero-n{display:inline-block;margin-top:10px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
.chatbox{border-radius:18px}.chcomp{display:flex;gap:10px;align-items:flex-start}
.chatbox textarea{display:block;flex:1;width:100%;box-sizing:border-box;min-height:64px;margin:0;font-size:16px;border-radius:14px}
.chquick{display:flex;gap:6px;overflow-x:auto;padding:10px 0 4px;scrollbar-width:none}.chquick::-webkit-scrollbar{display:none}
.chq{flex:0 0 auto;border:1px solid #d6e2f3;background:#f3f8ff;color:#194e8c;border-radius:999px;padding:6px 11px;font:600 13px/1.2 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.chq:hover{background:#ffcf45;border-color:#ffcf45;color:#2b2100}
.chemo{display:flex;gap:2px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:none}.chemo::-webkit-scrollbar{display:none}
.che{flex:0 0 auto;border:0;background:none;font-size:22px;width:38px;height:38px;border-radius:10px;cursor:pointer;transition:transform .12s}.che:hover,.che:focus-visible{background:#f1f5f9;transform:scale(1.2)}
.chatbox .btns{margin:0}.chpost{background:linear-gradient(135deg,#1f61af,#5f3dc4)}
.chatlist{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.chatpost{display:flex;gap:10px;align-items:flex-start}.chbody{flex:1;min-width:0;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:4px 16px 16px 16px;padding:10px 12px;box-shadow:0 2px 6px rgba(15,47,87,.06)}
.chatpost.mine .chbody{background:#f2f7ff;border-color:#c7dbf5}
.chava{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px;box-shadow:0 0 0 2px #fff,0 2px 6px rgba(0,0,0,.15)}
.chathead{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.chwhen{margin-left:auto;font-size:12px;color:var(--muted,#6b7280)}.chathead .chatdel{font-size:14px;width:28px;height:28px}
.chattext{margin-top:5px;white-space:pre-wrap;word-wrap:break-word;font-size:16px;line-height:1.45}.chattext.big{font-size:42px;line-height:1.15}
.chatphotos{display:grid;gap:6px;margin-top:8px;grid-template-columns:repeat(3,1fr)}.chatphotos.n1{grid-template-columns:1fr}.chatphotos.n2{grid-template-columns:1fr 1fr}
.chatph{padding:0;border:0;border-radius:12px;overflow:hidden;aspect-ratio:1;background:#eef2f7;cursor:pointer}.chatphotos.n1 .chatph{aspect-ratio:4/3}.chatph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.chatph:hover img{transform:scale(1.04)}
.chreact{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:8px}
.chr{border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:3px 9px;font:600 13px/1.4 inherit;font-family:inherit;cursor:pointer;transition:transform .1s}.chr b{font-weight:800;color:#475569;margin-left:1px}
.chr.on{background:#fff4cc;border-color:#ffcf45}.chr.on b{color:#7a5a00}.chr:active{transform:scale(1.15)}.chr.add{color:#64748b}
.chpick{display:inline-flex;gap:3px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:2px 4px;box-shadow:0 4px 12px rgba(0,0,0,.08)}.chr.pk{border:0;background:none;font-size:20px;padding:2px 4px}.chr.pk:hover{transform:scale(1.3)}
.chempty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:30px 10px;color:#475569}.chempty div{font-size:40px}
.chconf{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}.chconf span{position:absolute;top:-40px;animation:chfall 2.2s ease-in forwards}
@keyframes chfall{to{transform:translateY(110vh) rotate(540deg);opacity:.8}}
@media (prefers-reduced-motion:reduce){.chconf{display:none}.che,.chr,.chatph img{transition:none}}
/* v56: 😀 name icons + 💬 replies */
.nicon{font-size:15px;line-height:1}.myicon{font-size:20px;vertical-align:-2px}
.chava.emo{background:#fff!important;font-size:22px;box-shadow:0 0 0 2px #dbe7f6,0 2px 6px rgba(0,0,0,.12)}
.chmyic{position:relative;border:0;background:none;padding:0;cursor:pointer;flex:0 0 auto}.chmyic-e{position:absolute;right:-4px;bottom:-4px;font-size:11px;background:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.chichint{display:block;width:100%;margin:0 0 10px;border:1px dashed #8fb3e0;background:#f3f8ff;color:#194e8c;border-radius:12px;padding:8px;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer}
.icprev{display:flex;align-items:center;gap:8px;margin:8px 0 4px}.icprev span{font-size:34px}
.ictitle{font-weight:700;font-size:13px;color:#475569;margin:10px 0 4px}
.icgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:4px}
.icb{font-size:26px;height:46px;border:1px solid transparent;background:#f8fafc;border-radius:12px;cursor:pointer}.icb:hover{background:#eef4fc}.icb.on{border-color:#ffcf45;background:#fff4cc}
.chreply-b{margin-top:6px;border:0;background:none;color:#1f61af;font:600 13px/1.3 inherit;font-family:inherit;cursor:pointer;padding:2px 0}
.chreplies{display:flex;flex-direction:column;gap:8px;margin-top:4px}.chreplies:empty{display:none}
.chatpost.reply .chava{width:30px;height:30px;font-size:12px}.chatpost.reply .chava.emo{font-size:17px}
.chatpost.reply .chbody{background:#f8fafc;box-shadow:none;padding:8px 10px}.chatpost.reply.mine .chbody{background:#eaf2fd}
.chmore{align-self:flex-start;border:0;background:none;color:#64748b;font:600 13px inherit;font-family:inherit;cursor:pointer;padding:0}
.chrbox{display:flex;gap:8px;align-items:flex-end}.chrbox .chava{width:30px;height:30px;font-size:12px}.chrbox .chava.emo{font-size:17px}
.chrbox textarea{flex:1;min-width:0;box-sizing:border-box;margin:0;min-height:40px;font-size:16px;border-radius:12px}.chrbox .btn{flex:0 0 auto;width:44px;padding:0;height:40px}
/* v56: 📋 forms */
.fform label{margin-top:12px}.fyn{margin:4px 0 0}.fyn button{font-size:15px}

/* v56: home tiles in three groups with a space between */
.tilegrp + .tilegrp{margin-top:44px;position:relative}
.tilegrp + .tilegrp::before{content:"";position:absolute;left:0;right:0;top:-24px;height:4px;border-radius:2px;background:#1f61af}
.tilegrp:not(:has(.tile)){display:none}

/* v56: 👁 View as bar (Owner / Admin) */
body.hasva{padding-bottom:calc(64px + var(--safe-b,0px))}
body.hasva .fab{bottom:calc(76px + var(--safe-b,0px))}
body.hasva #toast{bottom:calc(140px + var(--safe-b,0px))}
#vabar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:8px;align-items:center;padding:8px max(12px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px));background:#0f2f57;box-shadow:0 -4px 14px rgba(15,47,87,.25)}
#vabar button{font-family:inherit;cursor:pointer;border-radius:12px;min-height:44px}
.vab-open{flex:1;border:0;background:#ffcf45;color:#2b2100;font:800 16px/1.2 inherit;text-align:center;padding:6px 12px}.vab-open:hover{filter:brightness(1.05)}
.vab-cur{flex:1;min-width:0;border:0;background:#ffcf45;color:#2b2100;font:500 14px/1.2 inherit;text-align:left;padding:6px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vab-back{flex:0 0 auto;border:2px solid #fff;background:#fff;color:#0f2f57;font:800 14px/1.2 inherit;padding:6px 12px}
body.vaon #bar{box-shadow:inset 0 -4px 0 #ffcf45}
.valist{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.varow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px 12px;font:15px/1.3 inherit;font-family:inherit;cursor:pointer}
.varow .grow{display:flex;flex-direction:column}.varow.on{border-color:#ffcf45;background:#fff8dc}.vai{font-size:22px}
.launchseg{margin-top:10px}.launchcard{border-left:4px solid #1f61af}
.reqintro{margin-top:16px;background:#fff8dc;border:1px solid #ffcf45;border-radius:12px;padding:10px 12px;text-align:left;font-size:15px;line-height:1.4}
.lhead{display:block;text-align:left;font-size:14px;font-weight:600;margin:6px 2px 2px;color:#334155}
.permhead{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;color:#475569}.permhead select{flex:1;min-width:0;max-width:220px;font-size:14px;padding:4px 6px;margin:0}

/* v56: job page — two large tabs, Plans and Pictures */
.navbtns.tiles.bigpair{margin:4px 0 14px}
.navbtns.tiles.bigpair .tile.bigtile{min-height:120px;justify-content:flex-end;padding:16px 16px 14px;font-size:20px}
.navbtns.tiles.bigpair .tile.bigtile .ti{font-size:34px;margin-bottom:8px}
.navbtns.tiles.bigpair .tile.bigtile .jcount{font-size:14px}

/* v56: plan tabs on a job's Plans page */
.pcats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 14px}
.pcat{display:flex;align-items:center;gap:8px;min-height:52px;border:2px solid #c7dbf5;background:#f3f8ff;color:#194e8c;border-radius:14px;padding:8px 10px;font:700 14px/1.2 inherit;font-family:inherit;text-align:left;cursor:pointer}
.pcat .pci{font-size:20px}.pcat .pcl{flex:1;min-width:0}.pcat b{min-width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.9);border:1.5px solid #8fb3e0;font-size:13px;color:#194e8c}
.pcat.on{background:#1f61af;border-color:#1f61af;color:#fff;box-shadow:0 4px 12px rgba(31,97,175,.3)}.pcat.on b{background:#ffcf45;border-color:#ffcf45;color:#2b2100}
.pcat:focus-visible{outline:3px solid #ffcf45;outline-offset:2px}
.pmove{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}

/* v56: ONE tab style everywhere (Israel: "all tabs on all pages should be the same blue unless otherwise requested")
   — the blue of the big tiles; the selected tab is a darker blue with a yellow ring; counts sit in a round bubble (yellow when selected) */
.seg{background:none;padding:0;gap:6px}
.seg button,.seg a,.navseg a,.filters button,.filters button.fu,.filters button.cof,.pcat{
  background:var(--brand);color:#fff;border:0;border-radius:10px;font-weight:700;box-shadow:0 3px 8px rgba(31,97,175,.25);cursor:pointer;text-decoration:none}
.seg button,.seg a,.navseg a{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 6px}
.filters button{padding:8px 13px}
.seg button b,.seg a b,.navseg a b,.filters button b,.pcat b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;font-size:12px;font-weight:800;margin:0}
.seg button.on,.seg a.on,.navseg a.on,.filters button.on,.filters button.fu.on,.filters button.cof.on,.pcat.on{background:var(--brand2);color:#fff;border:0;box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}
.seg button.on b,.seg a.on b,.navseg a.on b,.filters button.on b,.pcat.on b{background:#ffcf45;border-color:#ffcf45;color:#2b2100}
.seg button:hover,.seg a:hover,.navseg a:hover,.filters button:hover,.pcat:hover{filter:brightness(1.08)}
.seg button:focus-visible,.seg a:focus-visible,.navseg a:focus-visible,.filters button:focus-visible,.pcat:focus-visible{outline:3px solid #ffcf45;outline-offset:2px}
.filters{padding:3px 2px 6px}
.pcatsel{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;font-weight:700;color:#475569}.pcatsel select{flex:1;min-width:0;max-width:240px;font-size:14px;padding:5px 6px;margin:0;border-radius:8px;border:1.5px solid #8fb3e0;background:#f3f8ff;color:#194e8c;font-weight:600}
.pcat.padd{grid-column:1/-1;justify-content:center}
.navbtns.tiles.bigpair .tile.addplantile{grid-column:1/-1;font-family:inherit;cursor:pointer;text-align:left;border:0}
.pcats.phtabs{grid-template-columns:1fr 1fr}.pcats.phtabs .pcat:first-child{grid-column:1/-1}

/* v56: 📸 in-app camera */
#camov{position:fixed;inset:0;z-index:80;background:#000;display:flex;flex-direction:column}
#camov video,#camov img{flex:1;min-height:0;width:100%;object-fit:contain;background:#000}
.camtop{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;color:#fff;font-weight:700}
.cambot{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 12px calc(18px + env(safe-area-inset-bottom,0px));background:#000}
.camb{min-width:44px;min-height:44px;border:0;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font:700 16px/1 inherit;font-family:inherit;cursor:pointer;padding:0 14px}
.camb.wide{flex:1;max-width:180px;min-height:50px;font-size:17px}#camuse{background:#ffcf45;color:#2b2100}
#camshot{width:74px;height:74px;border-radius:50%;border:4px solid #fff;background:transparent;padding:5px;cursor:pointer}#camshot span{display:block;width:100%;height:100%;border-radius:50%;background:#fff}#camshot:active span{background:#ffcf45}
#camshot[hidden],.camb[hidden]{display:none}

/* v56: Forms are blue tabs like every other tab */
.formtiles{margin-bottom:8px}.formtiles button.tile{font-family:inherit;border:0;cursor:pointer;text-align:left}
.tiledit{position:absolute;top:8px;right:8px;border:1.5px solid rgba(255,255,255,.6);background:rgba(255,255,255,.15);color:#fff;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:700;line-height:1.2;font-family:inherit;cursor:pointer}
.tiledit:hover{background:#ffcf45;border-color:#ffcf45;color:#2b2100}

/* v56: in-app "Are you sure?" box */
.askov{position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.askbox{background:#fff;border-radius:16px;padding:18px 16px 12px;width:100%;max-width:360px;box-shadow:0 18px 40px rgba(0,0,0,.25)}
.askmsg{font-size:16px;line-height:1.4;color:var(--ink);white-space:pre-wrap}.askin{width:100%;box-sizing:border-box;margin:12px 0 0;font-size:16px}
.askbox .btns{margin-top:14px}

/* v56: picture icons */
.chava.pic{background:#e2e8f0;overflow:hidden;padding:0}.chava.pic img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
img.nicon.pic{width:18px;height:18px;border-radius:50%;object-fit:cover;vertical-align:-4px}
img.myicon.pic{width:28px;height:28px;border-radius:50%;object-fit:cover;vertical-align:-8px}
.icpic{width:56px;height:56px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #ffcf45}
.icpicbtns{margin:10px 0 8px}
.navbtns.tiles.bigpair .tile.addbul{grid-column:1/-1;min-height:96px;border:0;font-family:inherit;cursor:pointer;text-align:left}

/* v56: tab pickers in forms (blue tabs instead of dropdowns) */
.tablbl{font-size:13px;font-weight:700;color:#334155;margin:12px 2px 6px}
.pcats.tabpick{margin:0 0 4px}.pcats.tabpick .pcat{min-height:46px}
.pcats.tabpick .pcat:last-child:nth-child(odd){grid-column:1/-1}
#bu_natab,#bu_ftab{grid-column:1/-1}
#sheet .btns .btn.sec{background:#fff;color:var(--brand);border:2px solid var(--brand)}
/* v56: each bulletin post is its own card with a thick blue border; Open and Delete sit side by side */
.bulcard{border:4px solid var(--brand);border-radius:16px;background:#fff;margin:0 0 12px;overflow:hidden}
.bulmain{display:flex;align-items:center;gap:10px;padding:12px 12px 6px;text-decoration:none;color:inherit}
.bulacts{display:flex;justify-content:flex-end;gap:8px;padding:0 12px 12px}.bulacts.top{padding:0 0 8px}
.bulopen{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700;text-decoration:none}
.buldelb{min-height:38px;padding:0 14px;border-radius:10px;border:2px solid #fca5a5;background:#fff;color:#b91c1c;font-weight:700;font-family:inherit;font-size:14px;cursor:pointer}.buldelb:hover{background:#fee2e2}
.card.bulpost{border:4px solid var(--brand);border-radius:16px}
.permsel.denied{border-color:#fca5a5;color:#b91c1c;background:#fff5f5}
/* v56: View app as choices are blue tabs too */
.varow{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.25)}.varow .small.muted{color:#dbe7f6}
.varow.on{background:var(--brand2);box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}.varow:hover{filter:brightness(1.08)}
/* v56: every tab's description starts with a capital letter */
.tile .jcount::first-letter,.pcat .pcl::first-letter,.varow .small::first-letter{text-transform:uppercase}

/* v56: 📅 yearly calendar */
.yeartabs{grid-template-columns:1fr;margin:4px 0 10px}.yeartab{text-decoration:none;justify-content:flex-start}
.holban{background:var(--brand);color:#fff;border:0;font-size:15px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.yearlbl{background:var(--brand);color:#fff;font-weight:800;cursor:default}
.holpost .hollist{display:flex;flex-direction:column;gap:6px}
.holrow{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#f3f8ff}.holrow.past{opacity:.55}
.hold{font-weight:700;min-width:150px;color:#194e8c}.holn{flex:1;min-width:0}.holrow .btn,.holrow .buldelb{min-height:32px;padding:0 10px;font-size:13px}
@media (max-width:420px){.holrow{flex-wrap:wrap}.hold{min-width:0;flex-basis:100%}}
.ylegend{display:flex;align-items:center;gap:8px;font-size:13px;color:#475569;margin:12px 2px 6px}
.yearcal{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.ymonth{background:#fff;border:3px solid var(--brand2);border-radius:12px;padding:8px}.ymn{font-weight:800;color:#194e8c;margin:0 0 4px;font-size:14px}
.ygrid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:12px}
.ydh{color:#94a3b8;font-weight:700;font-size:10px}
.yd{display:inline-flex;align-items:center;justify-content:center;height:22px;min-width:22px;border-radius:6px}.yd.wk{color:#94a3b8}
.yd.closed{background:#dc2626;color:#fff;font-weight:800} /* v56: holidays in red */.yd.today{background:var(--brand);color:#fff;font-weight:800} /* v56: today filled blue */
.yd.today.closed{background:#dc2626;box-shadow:inset 0 0 0 3px var(--brand)}
.ylegend .yd.lg{min-width:18px;height:18px;border-radius:5px}
.yearnav{text-decoration:none}.yearlbl{background:var(--brand2);box-shadow:0 0 0 2px #ffcf45}
.ydb{border:0;background:none;font:inherit;font-size:12px;color:inherit;cursor:pointer;padding:0}.ydb.closed{background:#dc2626;color:#fff}.ydb:hover{box-shadow:inset 0 0 0 2px #dc2626}
.holhint{background:var(--brand);color:#fff;border:0;font-size:14px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.holnote{display:flex;align-items:flex-start;gap:8px;margin:2px 0 10px}.holnotet{flex:1;font-size:14px;color:#475569;white-space:pre-wrap}
.pcats.holfill{margin:12px 0 0}
.usflag{width:30px;height:16px;border-radius:2px;display:block;box-shadow:0 0 0 1px rgba(255,255,255,.6)}
/* v56: bigger month boxes; days always fit (Saturday never cut off) */
.yearcal{grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
.ymonth{padding:8px 6px;min-width:0;box-sizing:border-box}
.ygrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.ygrid .yd{min-width:0;width:100%;height:24px;box-sizing:border-box;font-size:12px}
@media (max-width:360px){.yearcal{grid-template-columns:1fr}}
/* v56: each month's name is a blue tab across the top of its box */
.ymonth{padding:0 0 8px;overflow:hidden}
.ymn{background:var(--brand);color:#fff;font-weight:800;font-size:14px;margin:0 0 6px;padding:7px 10px}
.ymonth .ygrid{padding:0 6px}
/* v56: the blue month tab runs from the top of the box down to the dates (name + weekday letters) */
.ymn{padding:7px 6px 5px;margin:0 0 6px}.ymname{padding:0 4px 4px}
.ymonth .ygrid.ydhrow{padding:0}.ydhrow .ydh{color:#dbe7f6}
/* v56: weekday letters on their own thin yellow strip under the blue month name */
.ymn{padding:7px 0 0}.ymname{padding:0 10px 6px}
.ymonth .ygrid.ydhrow{background:#ffcf45;padding:2px 6px}.ydhrow .ydh{color:#2b2100;font-size:10px;line-height:14px}

/* v56: 📦 inventory */
.invtabs{margin:2px 0 12px}
.invgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.invcard{display:flex;flex-direction:column;background:#fff;border:3px solid var(--brand);border-radius:14px;overflow:hidden}.invcard.low{border-color:#dc2626}
.invpic{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#eef4fc;font-size:40px;text-decoration:none}.invpic img{width:100%;height:100%;object-fit:cover;display:block}
.invinfo{display:flex;flex-direction:column;gap:2px;padding:8px 10px 4px;text-decoration:none;color:inherit;flex:1}.invinfo b{font-size:15px;line-height:1.2}
.invqty{font-size:13px;font-weight:700;color:#194e8c}.invcard.low .invqty{color:#b91c1c}
.invadd{margin:6px 8px 8px}
.invthumb{flex:0 0 auto;width:52px;height:52px;border-radius:10px;background:#eef4fc;display:inline-flex;align-items:center;justify-content:center;font-size:24px;overflow:hidden}.invthumb img{width:100%;height:100%;object-fit:cover}
.cartbar{position:fixed;left:12px;right:12px;bottom:calc(76px + var(--safe-b,0px));z-index:29;display:flex;align-items:center;gap:8px;background:var(--brand2);color:#fff;border-radius:14px;padding:12px 14px;text-decoration:none;box-shadow:0 0 0 2px #ffcf45,0 8px 20px rgba(15,47,87,.3)}.cartbar span{margin-left:auto;font-weight:800;color:#ffcf45}
body:not(.hasva) .cartbar{bottom:calc(14px + var(--safe-b,0px))}
#app:has(.cartbar){padding-bottom:80px}
.cartqty{width:64px;text-align:center;margin:0;padding:6px;font-size:16px}
.ilpick{padding:0 12px 12px;grid-template-columns:1fr 1fr}.ilpick .pcat{min-height:40px;font-size:13px}.ilpick .pcat[disabled]{opacity:.35;cursor:not-allowed}
.invbig{display:flex;align-items:center;justify-content:center;background:#eef4fc;border-radius:12px;min-height:180px;font-size:64px;overflow:hidden}.invbig img{width:100%;max-height:340px;object-fit:contain;display:block}
.invfacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:12px}.invfacts div{background:#f3f8ff;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.invfacts span{font-size:12px;color:#64748b}.invfacts b{font-size:16px}.invfacts b.r{color:#b91c1c}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.invprev{background:#f8fafc;border-radius:10px;padding:8px 10px;font-size:13px;display:flex;flex-direction:column;gap:3px}
.invtot{font-size:16px;color:#194e8c}.invcostrows{padding:0 12px 12px;display:flex;flex-direction:column;gap:6px}
.invpic span{font-size:44px;line-height:1}

/* v56: 📝 evaluations */
.evscale{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:#475569;margin-bottom:6px}.evscale b{color:#194e8c}
.evsect{border:3px solid var(--brand);padding:0;overflow:hidden}.evsh{display:flex;align-items:center;justify-content:space-between;background:var(--brand);color:#fff;padding:9px 12px}.evtot{font-size:18px;font-weight:800;color:#ffcf45}.evtot small{font-size:12px;color:#dbe7f6}
.evline{display:flex;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #e2e8f0}.evq{flex:1;min-width:0;font-size:14px;font-weight:600}
.evbtns{display:flex;gap:4px}.evb{width:36px;height:36px;border-radius:9px;border:2px solid #c7dbf5;background:#f3f8ff;color:#194e8c;font-weight:800;font-size:15px;font-family:inherit;cursor:pointer}.evb.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 0 0 2px #ffcf45}
@media (max-width:380px){.evline{flex-direction:column;align-items:stretch}.evbtns{justify-content:space-between}.evb{flex:1}}
.evdot{min-width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;background:#eef2f7;color:#475569}.evdot.s1{background:#fee2e2;color:#b91c1c}.evdot.s2{background:#ffedd5;color:#c2410c}.evdot.s3{background:#e0f2fe;color:#075985}.evdot.s4,.evdot.s5{background:#dcfce7;color:#166534}
.evsum{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:10px}.evsum div{background:#f3f8ff;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.evsum span{font-size:12px;color:#64748b}.evsum b{font-size:20px;color:#194e8c}
.evraise{margin-top:10px;background:#fff8dc;border:2px solid #ffcf45;border-radius:12px;padding:10px;font-size:13px}.evbig{font-size:16px;margin-top:4px}.pos{color:#166534;font-weight:700}.neg{color:#b91c1c;font-weight:700}
.evtable{overflow-x:auto;background:#fff;border:3px solid var(--brand);border-radius:12px;margin-bottom:6px}.evtable table{border-collapse:collapse;width:100%;font-size:13px;min-width:720px}.evtable th{background:var(--brand);color:#fff;text-align:left;padding:7px 8px;white-space:nowrap}.evtable td{padding:7px 8px;border-top:1px solid #e2e8f0;white-space:nowrap}.evtable td a{font-weight:700;color:#194e8c}
.evb{background:var(--brand);border-color:var(--brand);color:#fff}.evb.on{background:#0f2f57;border-color:#ffcf45;color:#ffcf45;box-shadow:0 0 0 2px #ffcf45}
.row2>div{min-width:0}.row2 input,.row2 select{width:100%;box-sizing:border-box;min-width:0}
.evtable tr.evcur td{background:#fff8dc}
.evb.na{width:46px;font-size:12px}.evdot.na{background:#f1f5f9;color:#64748b;font-size:11px;min-width:36px}
@media (max-width:420px){.evline{flex-wrap:wrap}.evq{flex-basis:100%}.evbtns{width:100%;justify-content:space-between}.evb{flex:1}.evb.na{flex:1.3}}

/* v56: eval form — the fill-in boxes are blue tabs; employee info card */
input.bluein{background:var(--brand);color:#fff;border:0;border-radius:10px;font-weight:700;box-shadow:0 3px 8px rgba(31,97,175,.25);color-scheme:dark}input.bluein::placeholder{color:#c9dbf3}input.bluein:focus{outline:3px solid #ffcf45;outline-offset:1px}
.evinfo{display:grid;grid-template-columns:1fr 1fr;gap:8px}.evinfo div{background:var(--brand);color:#fff;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.evinfo span{font-size:11px;color:#c9dbf3}.evinfo b{font-size:15px}
.evemps .pcat{text-decoration:none}.evemps .pcl small{font-weight:500;color:#dbe7f6}
#sheet input.bluein,#app input.bluein{display:block;width:100%;box-sizing:border-box;background:var(--brand);color:#fff;border:0;border-radius:10px;font-weight:700;padding:10px 12px;min-height:44px;box-shadow:0 3px 8px rgba(31,97,175,.25);color-scheme:dark}

/* v56: new employee to-dos */
.nhcard{display:block;width:100%;text-align:left;border:2px solid var(--blue,#1d5fbf);background:var(--card,#fff);color:inherit;font:inherit;cursor:pointer;margin-bottom:8px}
.nhcard.todo{border-color:#e0a200;background:#fff8e1}
.nhneed{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.nhneed span{background:#ffcf45;color:#2b2100;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700}
.login .lhead{display:block;text-align:left;font-weight:700;font-size:13px;margin:10px 2px 3px}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .nhcard.todo{background:#3a2f0a}}
.login .lform select{display:block;width:100%;box-sizing:border-box;padding:13px 12px;font-size:16px;border-radius:12px;border:2px solid var(--blue,#1d5fbf);background:var(--card,#fff);color:inherit;margin:0 0 4px}
/* v56: Permissions — every pick list and chip is a blue tab, like the rest of the app */
.permsel,.permhead select{-webkit-appearance:none;appearance:none;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;border:0;border-radius:10px;font-weight:700;padding:9px 30px 9px 12px;box-shadow:0 3px 8px rgba(31,97,175,.25);cursor:pointer}
.permsel option,.permhead select option{background:#fff;color:#111}
.permsel:focus-visible,.permhead select:focus-visible{outline:none;box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}
.permsel.denied{background-color:#b91c1c;color:#fff;border:0}
.permhead select:disabled{opacity:.6;cursor:default}
.permhead{color:inherit;font-weight:600}.permhead select{max-width:none}
.permlist .rolechip{background:var(--brand);color:#fff;padding:3px 10px;font-size:12px;line-height:18px;border-radius:10px}
.permlist .chip.addon.ro{background:var(--brand);color:#fff;border:0}
/* new-person rows: details on top, level + Approve on their own line */
.permrow.pend{display:grid;grid-template-columns:1fr auto;align-items:center}
.permrow.pend>.grow{grid-column:1/-1}
.permrow.pend .permsel{width:100%;max-width:none}
.permrow.pend .permhead{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:8px}
/* v56: Permissions — each person is a full blue tab */
.card.permlist{background:transparent;border:0;box-shadow:none;padding:0}
.permlist .permrow{background:var(--brand);color:#fff;border:0;border-radius:12px;padding:12px 14px;margin:0 0 8px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.permlist .permrow:first-child{border-top:0}
.permlist .permrow.pend{background:var(--brand2);box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}
.permlist .permrow .mname,.permlist .permrow .sub,.permlist .permrow .small,.permlist .permrow .permhead,.permlist .permrow .muted{color:#fff}
.permlist .permrow .sub{opacity:.9}
.permlist .permsel,.permlist .permhead select{background-color:#fff;color:#194e8c;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23194e8c' stroke-width='2'/%3E%3C/svg%3E");box-shadow:none}
.permlist .permsel.denied{background-color:#fee2e2;color:#b91c1c}
.permlist .rolechip,.permlist .chip.addon.ro{background:#fff;color:#194e8c}
.permlist .permrow .btn.small{background:#ffcf45;color:#2b2100;border:0}
.permlist .permrow .buldelb{background:#fff;color:#b91c1c;border:0}
.permrow .permhead[hidden]{display:none}

/* v56: sign-up position tabs; new-person rows stack: position → crew head → Approve */
.login .lpos{text-align:left;margin-top:10px}.login .lpos .tablbl{font-weight:700;font-size:13px;margin:0 2px 4px}
.login .lpos .tabpick{grid-template-columns:1fr 1fr}
.permlist .permrow.pend{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.permpos{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:8px;color:#fff;font-weight:600;font-size:13px}
.permrow.pend .permhead{grid-template-columns:96px 1fr;margin-top:0}
.permrow.pend .btn.small{align-self:stretch;padding:11px}
.login .lform select{-webkit-appearance:none;appearance:none;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;color:#fff;border:0;font-weight:700;padding-right:36px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.login .lform select option{background:#fff;color:#111}

/* v56: date picker styled like the yearly calendar */
input[data-cal]{cursor:pointer}
.calpop{position:fixed;inset:0;z-index:55;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.calbox{background:var(--card,#fff);border-radius:16px;padding:14px;width:100%;max-width:360px;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.calttl{font-weight:800;color:#194e8c;margin:0 2px 10px;font-size:15px}
.calm{border:3px solid var(--brand2)}
.calhd{display:flex;align-items:center;gap:6px;padding:0 6px 8px!important}
.calnav{background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;border-radius:8px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer;flex:0 0 auto}
.calsel{-webkit-appearance:none;appearance:none;flex:1;min-width:0;background:transparent;color:#fff;border:0;font:800 16px/1.2 inherit;font-family:inherit;text-align:center;text-align-last:center;cursor:pointer;padding:6px 2px;margin:0}
.calsel option{color:#111;background:#fff}
.calm .ygrid .yd{height:38px;font-size:15px}
.calm .ydhrow .ydh{font-size:12px;line-height:18px}
.yd.sel{background:#ffcf45;color:#2b2100;font-weight:800;box-shadow:inset 0 0 0 2px #a87a00}
.yd.sel.today,.yd.sel.closed{box-shadow:inset 0 0 0 3px #ffcf45}
.calm .ydb:hover{box-shadow:inset 0 0 0 2px var(--brand)}
.callg{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:#475569;margin:10px 2px 0}.callg .yd.lg{min-width:16px;width:16px;height:16px;border-radius:4px}
.calbox .btns{margin-top:12px}
.calbox .btns .btn.sec{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.25)}.calbox #cal_x{background:var(--brand2);box-shadow:0 0 0 2px #ffcf45}

/* v56: "filled in from the employee" — yellow tab with a red Change it tab */
.evfrom{display:flex;align-items:center;gap:10px;background:#ffcf45;color:#2b2100;border-radius:10px;padding:8px 8px 8px 12px;margin:8px 0 2px;font-weight:700;font-size:14px;box-shadow:0 3px 8px rgba(168,122,0,.25)}
.evfrom span{flex:1;min-width:0}
.evchg{flex:0 0 auto;background:#dc2626;color:#fff!important;text-decoration:none;border-radius:8px;padding:8px 12px;font-weight:800;font-size:14px;box-shadow:0 2px 6px rgba(185,28,28,.3)}
.evchg:focus-visible{outline:3px solid #fff;outline-offset:1px}

/* v56: eval notes — a blue tab with a big writing area */
.evnotes{background:var(--brand);border-radius:12px;padding:10px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.evnotes label{display:block;color:#fff;font-weight:800;font-size:15px;margin:0 2px 8px}
.evnotes textarea{display:block;width:100%;box-sizing:border-box;min-height:200px;resize:vertical;background:#fff;color:#111;border:0;border-radius:8px;padding:10px 12px;font-size:16px;line-height:1.4;margin:0}
.evnotes textarea:focus{outline:3px solid #ffcf45;outline-offset:1px}

.evinfo .evemp{position:relative;padding-right:58px}
.evedit{position:absolute;top:50%;right:8px;transform:translateY(-50%);background:#ffcf45;color:#2b2100!important;text-decoration:none;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:800;box-shadow:0 2px 5px rgba(0,0,0,.2)}
.evedit:focus-visible{outline:2px solid #fff;outline-offset:1px}
/* v56: month and year in the date picker are clear dropdowns */
.calsel{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23194e8c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 8px center;color:#194e8c;border-radius:8px;padding:7px 24px 7px 8px;text-align:left;text-align-last:left;font-size:15px;height:36px}
#cal_m{flex:1.4}#cal_y{flex:1}
.calsel:focus-visible{outline:3px solid #ffcf45;outline-offset:1px}
.calhd{gap:5px}

/* v56: employee menu — Previous evals / New eval */
.pcats.evmenu{grid-template-columns:1fr 1fr}.evmenu .pcat{min-height:64px;font-size:15px}
.evprev{display:flex;flex-direction:column;gap:8px;margin-top:10px}.evprev .pcat{text-decoration:none;min-height:54px}.evprev .go{color:#fff;font-size:20px}
#sheet .btns .btn.sec{background:var(--brand);color:#fff;border:0}

/* v56: employee tabs run full width; name in yellow; yellow arrow on the left */
.pcats.evemps{grid-template-columns:1fr}
.evemps .pcat{min-height:58px;gap:12px;padding:10px 14px}
.evemps .pcat .pcl b{color:#ffcf45;font-size:16px;background:none;border:0;min-width:0;height:auto;padding:0;display:inline;border-radius:0}
.evemps .pcat small{color:#dbe7f6}
.evemps .evarr{flex:0 0 auto;color:#ffcf45;font-size:18px;line-height:1;width:20px;text-align:center}
.evemps .padd .evarr{font-size:24px;font-weight:800}
/* v56: same round arrow as the Home tabs, on the left */
.evemps .evarr{width:28px;height:28px;box-sizing:border-box;border-radius:50%;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;font-size:22px;font-weight:700;line-height:24px;text-align:center}
.evemps .padd .evarr{font-size:20px;line-height:24px}
@media (hover:hover){.evemps .pcat:hover .evarr{background:#ffcf45;border-color:#ffcf45;color:#2b2100}}
/* v56: like the Home tabs — name in white, description in yellow */
.evemps .pcat .pcl b{color:#fff}
.evemps .pcat small{color:#ffcf45;font-weight:600}
/* v56: round arrow on the right, like the Home tabs */
.evemps .pcat .pcl{flex:1;min-width:0}
.evemps .evarr{order:2}
/* v56: round yellow arrow on the right (previous evaluations + employee tabs) */
.evprev .go,.evemps .evarr{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;box-sizing:border-box;border-radius:50%;background:#ffcf45;border:1.5px solid #ffcf45;color:#2b2100;font-size:22px;font-weight:800;line-height:1;padding-bottom:3px}
.evemps .padd .evarr{padding-bottom:1px;font-size:20px}
.evprev .pcat{gap:10px}
.evprev .pcat .pcl b{background:none;border:0;padding:0;height:auto;min-width:0;display:inline;border-radius:0;color:#fff;font-size:15px}
.evprev .pcat small{color:#ffcf45;font-weight:600}

/* ===== v56: ONE TAB LOOK for the whole app — blue tab, white name, yellow description, yellow round arrow on the right ===== */
/* blue tabs */
#app a.card:not(.jobcard),#app button.card,#app .card.teamcard,#app .card.reqbanner,#app button.member,#app a.member,#app a.plan,#app .plan.alertrow,#app a.act.hact,#app a.spacehd,#app .mrc a.mrlink,#app .chichint,#app .setupstep{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.25)}
#app .card.reqbanner{border-radius:12px}
/* names white */
#app a.card:not(.jobcard) :is(.h,.mname,.stt,b,strong,.grow>div:first-child),#app :is(button.card,.card.teamcard,.card.reqbanner,button.member,a.member,a.plan,.plan.alertrow,a.act.hact,a.spacehd,.mrc a.mrlink,.chichint,.setupstep) :is(.h,.mname,.stt,b,strong){color:#fff}
/* descriptions yellow */
#app a.card:not(.jobcard) :is(.sub,.small,.muted,small,.utitle,.sts,.meta,.desc),#app :is(button.card,.card.teamcard,.card.reqbanner,button.member,a.member,a.plan,.plan.alertrow,a.act.hact,a.spacehd,.mrc a.mrlink,.chichint,.setupstep) :is(.sub,.small,.muted,small,.utitle,.sts,.meta,.desc){color:#ffcf45!important}
.navbtns.tiles .tile :is(.sub,small,.tsub){color:#ffcf45}
/* yellow round arrow on the right */
a.card::after,.mrc a.mrlink::after,a.spacehd::after,a.plan::after,a.act.hact::after,.navbtns.tiles .tile::after{background:#ffcf45!important;border:0!important;color:#2b2100!important;box-shadow:0 2px 5px rgba(0,0,0,.18)}
#app .go,#app .bulopen,#app .jtgo,#app .subgo,#app .opencard .jobtab .open,#app .alertrow .go{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:28px;height:28px;padding:0 9px;box-sizing:border-box;border-radius:999px;background:#ffcf45!important;color:#2b2100!important;font-weight:800;font-size:15px;text-decoration:none;border:0}
/* grey "second" buttons are blue too (red Delete / Sign out stay red) */
#app .btn.sec,#sheet .btn.sec{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.2)}
#app a.card .go,#app a.spacehd .go,#app a.plan .go{display:none}
/* link tabs (pcat) get the yellow round arrow on the right too */
#app a.pcat:not(.evprev a)::after,#sheet a.pcat:not(.evprev a)::after{content:"\203A";margin-left:auto;flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#ffcf45;color:#2b2100;font-size:22px;font-weight:800;line-height:25px;text-align:center;box-shadow:0 2px 5px rgba(0,0,0,.18)}
#app a.pcat,#sheet a.pcat{text-decoration:none}
#app .nhcard{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.25)}
#app .nhcard.todo{background:var(--brand2);box-shadow:0 0 0 2px #ffcf45,0 3px 8px rgba(31,97,175,.3)}
#app .nhcard .h{color:#fff}#app .nhcard .sub{color:#ffcf45}

/* v56: filling out a form — one question per row, blue fields like the rest of the app */
.fform label{display:block;margin:14px 2px 5px;font-weight:700;font-size:14px}
.fform label:first-child{margin-top:0}
.fform input,.fform select,.fform textarea{display:block;width:100%;box-sizing:border-box;margin:0;font-size:16px}
.fform input.bluein{padding:11px 12px}
.fform textarea{min-height:110px;border:2px solid var(--brand);border-radius:10px;padding:10px 12px;resize:vertical}
.fform select{-webkit-appearance:none;appearance:none;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;color:#fff;border:0;border-radius:10px;font-weight:700;padding:11px 36px 11px 12px}
.fform select option{background:#fff;color:#111}
.fform .seg.fyn{margin:0}
.fform .opt{font-weight:400;opacity:.7}
.yearcal+.holpost{margin-top:14px}

/* v56: crew size on the weekly schedule — tap to change */
.crow .hcbtn{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 7px;margin-left:2px;border:0;border-radius:999px;background:#ffcf45;color:#2b2100;font:800 13px/1 inherit;font-family:inherit;cursor:pointer;vertical-align:1px;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.crow .hcbtn:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.hcstep{display:grid;grid-template-columns:56px 1fr 56px;gap:10px;align-items:center;margin:4px 0 6px}
.hcstep .hcm{height:52px;border:0;border-radius:12px;background:var(--brand);color:#fff;font-size:28px;font-weight:800;cursor:pointer;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.hcstep input{height:52px;text-align:center;font-size:24px!important;margin:0}
#app .btns a.btn{display:flex;align-items:center;justify-content:center}
#app .pcat.padd:not(.evemps .pcat)::after{content:"\203A";margin-left:auto;flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#ffcf45;color:#2b2100;font-size:22px;font-weight:800;line-height:25px;text-align:center;box-shadow:0 2px 5px rgba(0,0,0,.18)}

/* v56: voltage drop calculator */
.vdcard .tablbl{display:block;font-weight:700;font-size:14px;margin:12px 2px 6px}
.vdcard .tablbl:first-of-type{margin-top:0}
.vdsel{-webkit-appearance:none;appearance:none;display:block;width:100%;box-sizing:border-box;margin:0;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;color:#fff;border:0;border-radius:10px;font-weight:700;font-size:16px;padding:12px 36px 12px 12px;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.vdsel option{background:#fff;color:#111}
.vdcard .row2 input{width:100%;box-sizing:border-box;margin:0;font-size:18px}
.vdres{background:var(--brand);color:#fff;border:0;box-shadow:0 3px 8px rgba(31,97,175,.25)}
.vdres.ok{box-shadow:0 0 0 3px #16a34a,0 3px 8px rgba(31,97,175,.25)}.vdres.warn{box-shadow:0 0 0 3px #ffcf45,0 3px 8px rgba(31,97,175,.25)}.vdres.bad{box-shadow:0 0 0 3px #dc2626,0 3px 8px rgba(31,97,175,.25)}
.vdhint{color:#fff}
.vdbig{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.vdbig span{flex:1 0 100%;color:#ffcf45;font-weight:700;font-size:13px}.vdbig b{font-size:34px;line-height:1.1}.vdbig em{font-style:normal;font-size:22px;font-weight:800;color:#ffcf45}
.vdgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.vdgrid div{background:rgba(255,255,255,.12);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.vdgrid span{font-size:12px;color:#ffcf45;font-weight:600}.vdgrid b{font-size:16px}
.vdverdict{margin-top:12px;font-weight:800;font-size:15px}
.vdwarn{background:#fff8e1;border:2px solid #ffcf45;color:#5a4300;border-radius:10px;padding:8px 10px;font-weight:700;font-size:13px;margin:8px 0 0}
.vdcard [data-tp="vd_sets"]{grid-template-columns:repeat(3,1fr)}
.tilegrp-tools .tile{grid-column:1/-1}

/* v56: wire size chart */
.wsans{margin-top:10px;background:#ffcf45;color:#2b2100;border-radius:10px;padding:10px 12px;font-size:15px}
.wschart{padding:8px 10px}
.wsrow{display:grid;grid-template-columns:96px 1fr 92px;gap:8px;align-items:center;padding:5px 4px;border-radius:8px}
.wshead{font-size:12px;font-weight:700;color:#475569;padding-bottom:6px}
.wssz{font-weight:700;font-size:14px;white-space:nowrap}
.wsbar{position:relative;display:flex;align-items:center;gap:6px;min-width:0}
.wsbar i{display:block;height:20px;border-radius:5px;background:var(--brand);flex:0 0 auto;min-width:6px}
.wsbar b{font-size:14px;white-space:nowrap}
.wsall{font-size:12px;color:#64748b;text-align:right;white-space:nowrap}
.wsrow.on{background:#fff4cc;box-shadow:inset 0 0 0 2px #ffcf45}.wsrow.on .wsbar i{background:#ffcf45}
@media (max-width:360px){.wsrow{grid-template-columns:84px 1fr}.wsall{display:none}}

/* v56: company handbook */
.hbtiles{grid-template-columns:1fr}.hbtiles .tile{grid-column:1/-1}
.hbtiles button.tile{border:0;font:inherit;font-weight:700;text-align:left;cursor:pointer;color:#fff}
.hbtiles .hbnone{opacity:.6;cursor:default}.hbtiles .hbnone::after{display:none}
.formtiles.hbtiles{margin-bottom:6px}

/* v56: pinned welcome in Company chat */
.chwelcome{position:relative;background:var(--brand);color:#fff;border-radius:16px;padding:16px 16px 14px;margin:0 0 14px;box-shadow:0 0 0 3px #ffcf45,0 4px 12px rgba(31,97,175,.3)}
.chw-pin{font-size:12px;font-weight:800;color:#ffcf45;letter-spacing:.02em;margin-bottom:4px}
.chw-t{font-size:22px;font-weight:800;margin-bottom:8px}
.chw-b{white-space:pre-wrap;font-size:15px;line-height:1.45}
.chw-edit{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);color:#fff;border-radius:999px;padding:4px 10px;font:700 12px/1.2 inherit;font-family:inherit;cursor:pointer}

/* v56: Home groups — one-tile rows run full width; an odd last tile in a row of three runs full width too */
.tilegrp-one .tile{grid-column:1/-1}
.tilegrp-main .tile:last-child:nth-child(odd){grid-column:1/-1}

/* v56: tiles grouped inside Plans / Tasks / Status */
.hubtiles{margin:0 0 14px}
.hubtiles .tile:last-child:nth-child(odd){grid-column:1/-1}
.hubsect{margin-top:22px}

/* v56: each plan's buttons in one row — Download · Move to · Delete · ⋯ */
.plan .grow{min-width:0}
.planacts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.planacts .pcatsel{margin:0;display:block}
.planacts .pcatsel select{-webkit-appearance:none;appearance:none;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;border:0;border-radius:9px;font:700 13px/1.2 inherit;font-family:inherit;padding:8px 28px 8px 10px;height:34px;max-width:200px;cursor:pointer}
.planacts .pcatsel select option{background:#fff;color:#111}
.planbtn{height:34px;border:0;border-radius:9px;padding:0 12px;font:700 13px/1 inherit;font-family:inherit;cursor:pointer}
.planbtn.del{background:#fee2e2;color:#b91c1c}
.planbtn.more{background:var(--brand);color:#fff;font-size:18px;padding:0 10px}
.planacts{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;flex-wrap:nowrap}
.planacts .dlb{height:34px;box-sizing:border-box;display:inline-flex;align-items:center;padding:0 10px;white-space:nowrap}
.planacts .pcatsel select{width:100%;max-width:none;text-overflow:ellipsis}
.planbtn.del{padding:0 10px}
@media (max-width:380px){.planacts .dlb .dlt{display:none}}
.planacts{display:flex;flex-wrap:wrap}
.planacts .pcatsel{order:5;flex:1 0 100%}
.planacts .pcatsel select{height:36px}
.planbtn{font-family:inherit;font-weight:700;font-size:13px;line-height:1}.planbtn.more{font-size:18px}.planacts .pcatsel select{font-family:inherit;font-weight:700;font-size:13px}
.planacts .dlb{order:4;margin-left:auto}

/* v56: Delete stacked on top of Download on the right; Move to on the left */
.planacts{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:". del" "sel dl";gap:6px 8px;align-items:center}
.planacts .planbtn.del{grid-area:del;justify-self:stretch}
.planacts .dlb{grid-area:dl;margin-left:0;justify-content:center}
.planacts .pcatsel{grid-area:sel;flex:none;order:0}
.planacts:not(:has(.del)){grid-template-areas:"sel dl"}

/* v56: thinner plan rows — Move to under the name; Delete over Download on the right */
.plan{align-items:center}
.plan .grow .pcatsel{display:block;margin:6px 0 0}
.plan .grow .pcatsel select{-webkit-appearance:none;appearance:none;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;border:0;border-radius:8px;font-family:inherit;font-weight:700;font-size:13px;padding:0 28px 0 10px;height:30px;max-width:100%;width:auto;cursor:pointer}
.plan .grow .pcatsel select option{background:#fff;color:#111}
.planside{display:flex;flex-direction:column;gap:5px;flex:0 0 auto;align-self:center}
.planside .planbtn,.planside .dlb{height:30px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;white-space:nowrap;margin:0}
.tilegrp-tools .tile{grid-column:auto} /* v56: Voltage drop and Wire size side by side */
.tilegrp-one .tile[href="#/exp"],.tilegrp-one .tile[href="#/stock"]{grid-column:auto} /* v56: Receipts and Inventory side by side */
.tilegrp-one .tile[href="#/sc"],.tilegrp-one .tile[href="#/reports"]{grid-column:auto} /* v56: Service Calls | Inventory, Receipts | Reports */
.navbtns.tiles.tilegrp-one .tile[href="#/sc"],.navbtns.tiles.tilegrp-one .tile[href="#/reports"],.navbtns.tiles.tilegrp-one .tile[href="#/exp"],.navbtns.tiles.tilegrp-one .tile[href="#/stock"]{grid-column:auto}

/* v56: inactive jobs */
.pcats.inactjobs{grid-template-columns:1fr;margin:0 0 12px}
.inactban{background:#fff8e1;border:2px solid #ffcf45;color:#5a4300;font-size:14px}

/* v56: job card corner tab */
#app a.card.jobcard .jcfoot{display:flex;justify-content:flex-end;margin-top:10px}
.jcinact{border:0;border-radius:8px;padding:6px 10px;font-family:inherit;font-weight:700;font-size:12px;cursor:pointer;background:#eef2f7;color:#334155}
.jcinact.on{background:#ffcf45;color:#2b2100}
.addjob{margin-bottom:12px}

/* v56: passkeys + sign-in log */
.pkor{text-align:center;color:#64748b;font-size:13px;margin:12px 0 8px}
.pkbtn{background:var(--brand2)!important;box-shadow:0 0 0 2px #ffcf45}
.pkrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line,#e5e7eb)}.pkrow:first-child{border-top:0}
.signrow.bad{box-shadow:inset 4px 0 0 #dc2626}
.pkreq{margin-top:12px}
/* v58: arrow-only yellow circles match the tile arrows (same size › in the same 28px circle) */
#app .go.arr{width:28px;min-width:28px;height:28px;padding:0 0 3px;font-size:22px;font-weight:700;line-height:1}
/* v59: sign-in log — last time active on the right */
.signrow .lastact{flex:none;text-align:right;font-size:12.5px;color:var(--mut);white-space:nowrap;padding-left:10px}
.signrow .lastact span{display:block}.signrow .lastact b{display:block;color:var(--ink,#0f172a);font-size:13.5px}
.signrow .lastact.on{color:#15803d;font-weight:700;font-size:13.5px}
/* v60: red after 24 hours; Signed out */
.signrow .lastact.old,.signrow .lastact.old b{color:#b91c1c}
.signrow .lastact i{display:block;font-style:normal;font-size:12px;font-weight:700;color:#64748b;margin-top:1px}
/* v62: red light line on top, last active under it */
.signrow .lastact.old b{font-size:13.5px}.signrow .lastact.old span{margin-top:2px;color:#b91c1c}
/* v63: two lights (green / red), one lit */
.signrow .lastact{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.signrow .lastact .lights{display:inline-flex;gap:6px;margin-bottom:2px}
.signrow .lastact .lt{width:16px;height:16px;border-radius:50%;display:block;background:#e5e7eb;box-shadow:inset 0 0 0 1.5px #cbd5e1}
.signrow .lastact.isgreen .lt.g{background:#22c55e;box-shadow:0 0 0 2px #bbf7d0,0 0 8px #22c55e}
.signrow .lastact.isred .lt.r{background:#ef4444;box-shadow:0 0 0 2px #fecaca,0 0 8px #ef4444}
.signrow .lastact b{font-size:13.5px}.signrow .lastact.isgreen b{color:#15803d}.signrow .lastact.isred b{color:#b91c1c}
.signrow .lastact .la{color:var(--mut);font-size:12px;margin:0}
/* v64: unlit lights keep their color as an outline — green ring on the left, red ring on the right */
.signrow .lastact .lt{background:#fff}
.signrow .lastact .lt.g{box-shadow:inset 0 0 0 2px #22c55e}
.signrow .lastact .lt.r{box-shadow:inset 0 0 0 2px #ef4444}
.signrow .lastact.isgreen .lt.g{background:#22c55e;box-shadow:0 0 0 2px #bbf7d0,0 0 8px #22c55e}
.signrow .lastact.isred .lt.r{background:#ef4444;box-shadow:0 0 0 2px #fecaca,0 0 8px #ef4444}
/* v66: several replies on a change request */
.crreply+.crreply{margin-top:6px}.crreply .crrwhen{color:var(--mut);font-size:12px}
.crfoot{flex-wrap:wrap;gap:6px 14px}
/* v66: files on a change request */
.crfiles{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.crfile{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:#f8fafc;color:inherit;text-decoration:none;font-size:14px;word-break:break-word}
.crfile .sub{margin-left:auto;white-space:nowrap}.crfile .crx{position:static;margin-left:6px}
/* v67: Edit reply / Reply again / Delete — three equal blue buttons across the post */
.crbtns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.crbtns .btn{width:100%;margin:0;padding:11px 6px;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crbtns .btn.span2{grid-column:span 2}
.crbtns{gap:6px}.crbtns .btn{padding:10px 2px;font-size:13.5px;letter-spacing:-.1px;text-overflow:clip}
/* v68: delete button on the right of each reply */
.crreply{display:flex;align-items:flex-start;gap:8px}.crreply .grow{flex:1;min-width:0}
.crrdel{flex:none;border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;width:32px;height:32px;font-size:15px;cursor:pointer;margin:-2px -4px -2px 0}
.crrdel:active{background:#fecaca}
/* v69: the sender's Edit / Delete — two equal blue buttons */
.crbtns.two{grid-template-columns:repeat(2,1fr)}.crbtns.two .btn:only-child{grid-column:span 2}
/* v74: New version ready banner, just under the title bar */
#updbar{position:sticky;z-index:19;display:flex;flex-direction:column;align-items:center;gap:1px;width:100%;margin:0;padding:9px 12px;border:0;border-bottom:2px solid #e0b42f;background:#ffcf45;color:#16386b;font:inherit;font-size:15px;cursor:pointer;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.12)}
#updbar b{font-weight:800}#updbar .es{font-size:12.5px;opacity:.85}
#updbar:active{background:#f5c22a}
/* v76: Camera / Photos on a change request */
.crpbtns{margin-top:4px}.crpbtns[hidden]{display:none!important}
/* v83: tap a name in Permissions to edit the profile */
.permrow .pname{font:inherit;font-weight:700;color:var(--brand);text-decoration:none;padding:0;text-align:left}.permrow .pname .pedit{font-size:13px;opacity:.75}
/* v84: the tappable name sits on the blue card — white, like the other names */
#app .permrow .pname,#app .permrow .pname:visited{color:#fff!important;font-size:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:3px;background:none;border:0;cursor:pointer}
#app .permrow .pname .pedit{opacity:.9;text-decoration:none}
#app .permrow .mname{text-align:left}#app .permrow .pname{display:inline-flex;align-items:center;gap:6px;width:auto;min-width:0;margin:0;padding:0;justify-content:flex-start;text-align:left;box-shadow:none;min-height:0}
/* v85: Edit profile button under the level */
.permlist .permrow .permside{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-left:auto}
.permlist .permrow .permedit{background:#ffffff;color:#194e8c;border:0;border-radius:9px;padding:8px 10px;font-size:14px;font-weight:700;width:100%;margin:0;box-shadow:none}
.permlist .permrow.pend .permedit{align-self:stretch;padding:11px}
/* v91: in the week view, the job side of a crew's row is what you tap */
.crow.tap{cursor:default}.crow.tap .cw{cursor:pointer;border-radius:8px}.crow.tap .cw:active{background:rgba(31,97,175,.08)}
/* v96: closed days (from the yearly calendar) on the weekly / daily calendar */
.calclosed{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0;padding:10px 12px;border-radius:12px;background:#fee2e2;color:#991b1b;border:1.5px solid #fca5a5;font-size:14.5px}
.calclosed .ccd{background:#fff;border-radius:8px;padding:2px 8px;font-weight:700}
.calday.isclosed{opacity:.6}
.dpick .dp.closed span{background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important}
.dpick .dp.closed span::after{content:"Closed";display:block;font-size:10px;font-weight:800}
/* v97: three week buttons in a row — copy from last week · clear · copy to next week */
.calweekbtns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.calweekbtns .btn{width:100%;margin:0;padding:11px 6px;font-size:14px;line-height:1.2;white-space:normal}
/* v98: crew group header ("Rolo's Crews") with Edit */
.cghead{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--cb);color:#fff;font-weight:800;font-size:15px;letter-spacing:.01em}
.cghead .cgnone{opacity:.8;font-weight:600}
.cghead .cgedit{border:0;background:#fff;color:#1f2937;font-weight:700;font-size:13px;border-radius:999px;padding:5px 12px;cursor:pointer}
.cgrow{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;margin:6px 0}.cgrow input{margin:0}
.cgrow.new{grid-template-columns:1fr 70px auto}.cgrow .btn.small{margin:0;min-width:40px}
/* v100: empty named crew group */
.cgempty{padding:10px 12px;font-size:13.5px;color:#57534e;background:var(--cbg)}
.cghead[style*="#facc15"] .cgedit{background:#fff;color:#3b2f00}
/* v103: neon crew groups — glowing header and stripe */
.cghead.neon{text-shadow:none;box-shadow:0 0 14px var(--glow),inset 0 -1px 0 rgba(0,0,0,.08);position:relative;z-index:1}
.cgroup{border-left-width:8px;box-shadow:0 0 10px color-mix(in srgb,var(--cb) 45%,transparent)}
/* v104: Sub jobs in the calendar switch */
.calsubs{margin:6px 0 10px}.calsubs .pcat{grid-column:1/-1}.calsubs .pcl small{display:block;font-weight:500;font-size:12px;color:#ffcf45;opacity:.95}
.calsubs .calsw{background:#fff;color:#194e8c;border-radius:999px;padding:3px 12px;font-size:13px}.calsubs .calsw.on{background:#22c55e;color:#fff}
/* v105: week view — crew name, crew size and ⚡/☀️ each in their own column, lined up down the page */
.crow{align-items:center}
.crow .cn{flex:0 0 150px;display:grid;grid-template-columns:minmax(0,1fr) 36px 20px;align-items:center;column-gap:4px;white-space:nowrap}
.crow .cn .cnn{overflow:hidden;text-overflow:ellipsis}
.crow .cn .hcbtn,.crow .cn .hcro{justify-self:center;margin:0}
.crow .cn .hcro{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;border-radius:999px;background:#ffcf45;color:#2b2100;font:800 13px/1 inherit}
.crow .cn .hcro:empty{background:none}
.crow .cn .cti{justify-self:center}
.crow .cn{flex-basis:138px;grid-template-columns:minmax(0,1fr) 34px 18px}
/* v106: sign-in log — name, how and ✅ stay on one line */
.signrow .signhd{display:flex;align-items:baseline;min-width:0;white-space:nowrap}
.signrow .signhd b{overflow:hidden;text-overflow:ellipsis;min-width:0}
.signrow .signhow{flex:none}
.signrow .signhd{flex-wrap:wrap;white-space:normal;column-gap:0}
.signrow .signhd b{overflow:visible;text-overflow:clip;white-space:nowrap}
.signrow .signhow{white-space:nowrap;font-size:13.5px}
.signrow .lastact{max-width:38%}
.signrow .signhd{flex-wrap:nowrap}.signrow .signhd b{overflow:hidden;text-overflow:ellipsis}.signrow .lastact{max-width:none}
