:root{--bg:#f2f4f7;--card:#fff;--ink:#16202c;--mut:#5a6676;--line:#dce2e9;--pri:#001065;--pri2:#e9ebf5;--red:#bc0000;--ok:#1e8e4e;--okbg:#dff3e7;--bad:#b42318}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%}
header.top{position:sticky;top:0;z-index:5;background:#fff;color:var(--pri);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;border-bottom:3px solid var(--red);box-shadow:0 1px 4px rgba(0,0,0,.06)}
header.top .brand{display:flex;align-items:center;gap:10px;min-width:0}
header.top .brand img{width:48px;height:48px;display:block;flex:none}
header.top .brand small{display:block;font-weight:600;color:var(--mut);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.top .right{display:flex;gap:8px;align-items:center}
.langbtn{background:#fff;color:var(--pri);border:1.5px solid var(--pri);border-radius:8px;padding:8px 11px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
main{max-width:640px;margin:0 auto;padding:12px 12px 100px}
nav.tabs{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;z-index:5;padding-bottom:env(safe-area-inset-bottom)}
nav.tabs a{flex:1;text-align:center;padding:8px 0 10px;color:var(--mut);text-decoration:none;font-size:12px;font-weight:650;position:relative}
nav.tabs a svg{display:block;margin:0 auto 2px}
nav.tabs a.on{color:var(--pri)}
nav.tabs .badge{position:absolute;top:4px;left:50%;margin-left:6px;background:var(--red);color:#fff;border-radius:999px;font-size:11px;padding:1px 6px;font-weight:800}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;margin:0 0 12px}
.card h3{margin:0 0 10px;font-size:12.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut)}
.muted{color:var(--mut)} .center{text-align:center} .small{font-size:13px}
.banner{border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:14px;background:#fff6e5;border:1px solid #f0d49b;color:#6b4a00}
.banner.ok{background:var(--okbg);border-color:#b6e0c6;color:#17713e}
.banner.info{background:var(--pri2);border-color:#c9cde6;color:var(--pri)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 14px;border-radius:11px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:650;font-size:15px;text-decoration:none;cursor:pointer;font-family:inherit;text-align:center}
.btn.pri{background:var(--pri);color:#fff;border-color:var(--pri)}
.btn.ok{background:var(--ok);color:#fff;border-color:var(--ok)}
.btn.red{background:var(--red);color:#fff;border-color:var(--red)}
.btn.bad{color:var(--bad);border-color:#efc4c4}
.btn.full{width:100%}
.btn:disabled{opacity:.5;cursor:default}
.row{display:flex;gap:8px;flex-wrap:wrap}
.row>.btn{flex:1 1 0}
.link{background:none;border:0;color:var(--pri);font-weight:650;font-size:15px;padding:6px 2px;cursor:pointer;font-family:inherit;text-decoration:none;display:inline-block}
label{display:block;font-size:13px;font-weight:600;color:#3d4856;margin:10px 0 4px}
input,select,textarea{width:100%;min-height:46px;border:1px solid #cdd5df;border-radius:10px;padding:10px 12px;font-size:16px;font-family:inherit;background:#fff;color:var(--ink)}
textarea{min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--pri);outline-offset:-1px;border-color:var(--pri)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.check{display:flex;align-items:center;gap:10px;margin:12px 0 4px;font-size:15px;color:var(--ink);font-weight:500}
.check input{width:24px;min-height:24px;height:24px;margin:0;flex:none}
.datebar{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.datebar .icon{width:46px;height:46px;border-radius:11px;border:1px solid var(--line);background:#fff;font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}
.dlabel{flex:1;text-align:center}
.dmain{font-weight:700;font-size:17px}
.chips{display:flex;gap:6px;overflow-x:auto;margin:0 0 12px;padding-bottom:2px}
.chips button,.pill{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 13px;font-size:14px;font-weight:650;color:var(--mut);cursor:pointer;font-family:inherit}
.chips button.on,.pill.on{background:var(--pri);color:#fff;border-color:var(--pri)}
.vsw button{flex:1}
.mgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.mhd{text-align:center;font-size:12px;font-weight:700;color:var(--mut);padding:2px 0}
.mday{position:relative;aspect-ratio:1/1.05;border:1px solid var(--line);border-radius:10px;background:#fff;font-family:inherit;color:var(--ink);cursor:pointer;padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:14px}
.mday.has{background:var(--pri2)}
.mday.tdy{border:2px solid var(--pri)}
.mday b{background:var(--pri);color:#fff;border-radius:999px;font-size:12px;min-width:20px;padding:1px 6px;line-height:1.4}
.mday i{position:absolute;top:2px;right:4px;font-style:normal;font-size:11px;color:#17713e}
.wday{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:8px;overflow:hidden}
.wday.tdy{border:2px solid var(--pri)}
.whd{display:flex;justify-content:space-between;width:100%;border:0;background:#f6f8fb;padding:9px 12px;font-family:inherit;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer}
.whd em{font-style:normal;color:var(--mut);font-weight:600}
.wjob{display:flex;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid var(--line);text-decoration:none;color:inherit}
.wjob.off{opacity:.5}
.wjob b{flex:none;width:52px;color:var(--pri);font-size:14px}
.wjob span{flex:1;min-width:0;font-weight:650;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wjob small{display:block;color:var(--mut);font-weight:500;font-size:12px}
.wjob i.chip{margin:0;font-style:normal;flex:none}
.wjob{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.wjob.dragging{opacity:.3}
.wjob.ghost{position:fixed;z-index:50;background:#fff;border:1px solid var(--pri);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);pointer-events:none}
.wday.drop{outline:3px dashed var(--pri);outline-offset:-3px;background:var(--pri2)}
.ghost{position:fixed;z-index:50;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.job.ghost{background:#fff;border:1px solid var(--pri);border-radius:14px;padding:12px}
.job.dj{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.job.dragging{opacity:.3}
.slot{border-radius:14px;padding:2px 0 4px;margin-bottom:6px}
.slh{font-size:13px;font-weight:800;color:var(--mut);margin:4px 2px 6px;text-transform:uppercase;letter-spacing:.02em}
.slempty{border:1px dashed var(--line);border-radius:12px;padding:10px;text-align:center;color:var(--mut);font-size:13px}
.slot.drop{outline:3px dashed var(--pri);outline-offset:2px;background:var(--pri2)}
.jmap{display:block;width:100%;height:220px;border:0;border-radius:12px;margin-top:12px;background:#eef2f7}
.pbline{display:flex;justify-content:space-between;gap:10px;width:100%;border:0;border-top:1px solid var(--line);background:#fff;padding:12px 14px;font-family:inherit;font-size:15px;color:var(--ink);text-align:left;cursor:pointer}
.pbline:first-child{border-top:0}
.pbline span{flex:1;min-width:0}
.pbline b{flex:none;white-space:nowrap}
.pbline.on{background:var(--pri2);font-weight:700}
.pbedit{padding:4px 14px 14px;background:var(--pri2)}
.clrow{display:block;padding:11px 14px;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.clrow:first-child{border-top:0}
#clList .clrow{position:relative;padding-right:48px}.cldots{position:absolute;right:4px;top:50%;transform:translateY(-50%);padding:6px 14px;font-size:22px;line-height:1;font-weight:700;color:var(--mut);border-radius:10px;cursor:pointer}.cldots:hover{background:#eef1f5;color:var(--ink)}
.clrow b{display:block;font-size:15px}
.clrow small{display:block;color:var(--mut);font-size:13px;margin-top:2px}
[dir=rtl] .pbline,[dir=rtl] .clrow,[dir=rtl] .pbi span{text-align:right}
[dir=rtl] body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif}
.opts{display:grid;gap:8px}
.opts.dayscroll{display:flex;overflow-x:auto;gap:8px;padding-bottom:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.opts.dayscroll .opt{flex:0 0 66px;scroll-snap-align:start}
.opts.c2{grid-template-columns:repeat(2,minmax(0,1fr))}.opts.c3{grid-template-columns:repeat(3,minmax(0,1fr))}.opts.c5{grid-template-columns:repeat(5,minmax(0,1fr))}.opts.c7{grid-template-columns:repeat(7,minmax(0,1fr))}
.opt{min-height:48px;border-radius:10px;border:1px solid #cfd6de;background:#fff;color:var(--ink);font:inherit;font-size:14.5px;font-weight:700;padding:6px;cursor:pointer}
.opt.on{border:2px solid var(--pri);background:var(--pri2);color:var(--pri)}
.opt:disabled{border-style:dashed;background:#f2f4f7;color:var(--mut);cursor:default}
.opt small{display:block;font-size:12px;font-weight:600}
.job{display:flex;gap:12px;align-items:flex-start;text-decoration:none;color:inherit}
.job .tm{flex:none;width:62px;font-weight:800;font-size:16px;color:var(--pri)}
.job .bd{flex:1;min-width:0}
.job .nm{font-weight:700;font-size:16px}
.job .ln{color:var(--mut);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip{display:inline-block;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;margin-top:6px;margin-right:4px}
.s-scheduled{background:#e7edf4;color:#35506c}.s-enroute{background:#ece6fb;color:#5b3cb0}.s-onsite{background:#fff1d6;color:#7a4a00}.s-parts{background:#ffe5d6;color:#a3410a}.s-done{background:#dff3e7;color:#17713e}.s-cancelled{background:#eceef1;color:#4a5361}
.c-ok{background:#dff3e7;color:#17713e}.c-warn{background:#fff1d6;color:#7a4a00}.c-red{background:#fde8e8;color:#a11212}.c-blue{background:var(--pri2);color:var(--pri)}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.seg button{min-height:44px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:650;color:var(--ink);cursor:pointer;padding:4px;font-family:inherit}
.seg button.on{border-width:2px;border-color:var(--pri);color:var(--pri);background:var(--pri2)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:15px;margin:0}
.kv dt{color:var(--mut)} .kv dd{margin:0;font-weight:600;word-break:break-word}
.cname{font-size:21px;font-weight:800;margin:0 0 2px}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.photos button{padding:0;border:0;border-radius:9px;overflow:hidden;aspect-ratio:1;background:#e3e7ec;cursor:pointer}
.photos img{width:100%;height:100%;object-fit:cover;display:block}
/* customer photos in the job's appliance box: small thumbnails (tap to see them full size) */
.apbox .photos{grid-template-columns:repeat(auto-fill,64px);gap:6px;margin:4px 0 0}.apbox .photos button{width:64px;height:64px}
.filebtn{position:relative;overflow:hidden}
.filebtn input{position:absolute;inset:0;opacity:0;min-height:0;cursor:pointer}
.part{display:grid;grid-template-columns:1fr 70px 44px;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.part .desc{grid-column:1 / 3}.part .st{grid-column:1 / 2}.part .pr{grid-column:2 / 4}
.part .co{grid-column:1 / 4}
.part .po{grid-column:1 / 4;display:flex;gap:6px}.part .po input{flex:1;min-width:0}
.part .x{grid-row:1;grid-column:3;min-height:46px;border:1px solid #efc4c4;color:var(--bad);background:#fff;border-radius:10px;font-size:18px;cursor:pointer}
.totals{margin-top:12px;border-top:1px dashed var(--line);padding-top:10px}
.totals div{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:15px}
.totals .big{font-weight:800;font-size:18px;border-top:1px solid var(--line);margin-top:4px;padding-top:8px}
.paidbox{background:var(--okbg);border:1px solid #b6e0c6;color:#17713e;border-radius:11px;padding:12px;font-weight:700;text-align:center;margin-top:10px}
.inv{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;font-size:14.5px}
.inv .hd{display:flex;justify-content:space-between;gap:10px;border-bottom:3px solid var(--red);padding-bottom:10px;margin-bottom:12px}
.inv .biz{font-weight:800;font-size:18px;color:var(--pri)}
.inv table{width:100%;border-collapse:collapse;margin:12px 0}
.inv td{padding:6px 0;border-bottom:1px solid var(--line);vertical-align:top}
.inv td.r{text-align:right;white-space:nowrap;padding-left:10px}
.inv tr.tot td{font-weight:800;font-size:16px;border-bottom:0}
.switch{flex:none;width:52px;height:32px;border-radius:16px;border:0;padding:3px;display:flex;background:#c4ccd6;justify-content:flex-start;cursor:pointer}
.switch span{width:26px;height:26px;border-radius:13px;background:#fff;display:block}
.switch[aria-checked="true"]{background:var(--pri);justify-content:flex-end}
.setrow{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0}
.stepper{display:flex;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 10px;margin-bottom:12px}
.stepper .st{display:flex;flex-direction:column;align-items:center;gap:6px;width:25%}
.stepper .dot{width:30px;height:30px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;background:#e3e7ec;color:var(--mut)}
.stepper .dot.done{background:var(--pri);color:#fff}.stepper .dot.cur{background:#fff;color:var(--pri);border:2px solid var(--pri)}
.stepper .lb{font-size:12px;text-align:center;color:var(--mut);font-weight:500}.stepper .lb.on{color:var(--ink);font-weight:700}
.info{display:flex;gap:12px;align-items:flex-start;margin:10px 0}
.info svg{flex:none}
.stars{display:flex;gap:6px;justify-content:center}
.stars button{width:48px;height:48px;border:0;background:transparent;padding:0;cursor:pointer}
#overlay{position:fixed;inset:0;background:rgba(10,18,28,.72);z-index:20;display:none;align-items:flex-end;justify-content:center;padding:12px}
#overlay.on{display:flex}
@media (min-width:600px){#overlay{align-items:center}}
#overlay .box{background:#fff;border-radius:16px;padding:16px;max-width:560px;width:100%;max-height:90vh;overflow:auto}
/* ✕ close button at the top right of a pop-up list (stays visible while scrolling) */
/* read-only red checkbox (technicians: Diagnosis fee already paid) */
.rbox{flex:none;width:24px;height:24px;border:2px solid #16202c;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:16px;line-height:1;box-sizing:border-box}
.rbox.on{background:#d4351c;border-color:#d4351c}
.oxx{position:sticky;top:0;float:right;z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;line-height:1;cursor:pointer;margin:-6px -6px 0 8px;color:var(--ink);font-family:inherit;box-shadow:0 1px 4px rgba(0,0,0,.08)}
#overlay img.big{width:100%;border-radius:10px;display:block;margin-bottom:12px}
#toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%);background:#16202c;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;z-index:30;display:none;max-width:90%;text-align:center}
#toast.on{display:block}
.empty{text-align:center;padding:30px 10px;color:var(--mut)}
.empty .big{font-size:15px;margin-bottom:12px}
.login{max-width:380px;margin:40px auto;padding:0 16px}
.login img{width:120px;height:120px;display:block;margin:0 auto 16px}
textarea.copy{font-size:14px;min-height:140px}
.hidden{display:none !important}
#f_type option{color:#1f2328}#f_type option[value=""]{color:#8a8f98}
/* Phones: Quo call + Quo text on the first line, Call + SMS (and directions) below */
@media (max-width:700px){.row>.btn.q{order:-1}.row:has(>.btn.q)>.btn{flex:1 1 calc(50% - 4px)}}
.cmbox{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f6f8fb}
.cmbox.warn{background:#fff6e5;border-color:#f0c36d}
.cmbox.ok{background:#eaf7ef;border-color:#9fd5b3}
.cmbox b{display:block}
.cmbox .link{display:block;margin-top:4px}
.cmrow{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:6px 0;cursor:pointer;font:inherit;color:inherit}
.cmrow:hover{background:#eef3fb}
.cmrow .small,.cmbox .small.muted{display:block}
/* Week view: time grid, 4 days per screen, swipe for the rest */
.tgwrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.tgs{overflow:auto;max-height:calc(100dvh - 210px);min-height:320px;overscroll-behavior:contain;container-type:inline-size;scroll-snap-type:x proximity;scroll-padding-left:36px;-webkit-overflow-scrolling:touch}
.tgin{width:calc(36px + (100cqw - 36px) * var(--nd, 7) / var(--vd, 4))}
.tghd,.tgbody,.tgall{display:flex}
.tghd{border-bottom:1px solid var(--line)}
.tggut{flex:0 0 36px;position:relative}
.tgbody .tggut span{position:absolute;left:0;right:6px;text-align:right;font-size:13px;font-weight:600;color:#3a4553;white-space:nowrap}
.tgall .tggut span{display:block;font-size:9px;color:var(--mut);text-align:right;padding:4px 4px 0 0;line-height:1.1}
.tgday,.tgcol{flex:0 0 calc((100cqw - 36px) / var(--vd, 4));box-sizing:border-box;border-left:1px solid #edf0f4;scroll-snap-align:start}
.tgday{background:#fff;border-top:0;border-right:0;border-bottom:0;padding:6px 2px 7px;font-family:inherit;cursor:pointer;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:1px}
.tgday small{font-size:12px;font-weight:600;color:var(--mut);text-transform:capitalize}
.tgday b{font-size:16px;font-weight:800;width:30px;height:30px;line-height:30px;border-radius:50%;text-align:center}
.tgday.tdy b{background:var(--pri);color:#fff}
.tgday em{font-style:normal;font-size:11px;color:var(--mut)}
.tgcol{position:relative;background-image:linear-gradient(to bottom,#e6eaf0 1px,transparent 1px)}
.tgcol.tdy{background-color:#f4f6fc}
.tgcol.drop{background-color:var(--pri2);outline:2px dashed var(--pri);outline-offset:-2px}
.tgall{border-bottom:1px solid var(--line)}
.tgall .tgallc{background-image:none;padding:2px;display:flex;flex-direction:column;gap:2px;min-height:30px}
.tgj{position:absolute;box-sizing:border-box;border-radius:8px;padding:3px 5px;overflow:hidden;color:#fff;text-decoration:none;display:block;line-height:1.2;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.tgj b{display:block;font-size:11px;font-weight:600;opacity:.92;white-space:nowrap;overflow:hidden}
.tgj span{display:block;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgj small{display:block;font-size:11px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgj.off{opacity:.45;text-decoration:line-through}
.tgj.dragging{opacity:.3}
.tgj.ghost{position:fixed!important;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.25);pointer-events:none}
.tgleg{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 2px 12px;font-size:12px;color:var(--mut)}
.tgleg i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.tgdrop{position:absolute;left:2px;right:2px;box-sizing:border-box;border:2px dashed var(--pri);background:rgba(0,16,101,.10);border-radius:8px;pointer-events:none;font-size:11px;font-weight:800;color:var(--pri);padding:3px 5px;z-index:2}
.tgcol.drop{outline:0}
.tgbody .tgcol{cursor:pointer}
.tgblk{position:absolute;left:1px;right:1px;box-sizing:border-box;border-radius:6px;background:repeating-linear-gradient(135deg,#e3e7ee 0 6px,#eef1f5 6px 12px);color:#4a5361;font-size:11px;font-weight:700;padding:3px 5px;overflow:hidden;cursor:pointer;z-index:0}
.tgblk span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgblk.k-personal{background:repeating-linear-gradient(135deg,#ece6fb 0 6px,#f5f1fd 6px 12px);color:#5b3cb0}
.tgblk.k-hold{background:repeating-linear-gradient(135deg,#fff1d6 0 6px,#fff8ea 6px 12px);color:#7a4a00}
.tgcol .tgj{z-index:1}
.tggut{position:sticky;left:0;z-index:4;background:#fff;border-right:1px solid #e6eaf0}
.tgnow{position:absolute;right:-1px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #d93025;transform:translateY(-6px);z-index:5}
.tgnowl{position:absolute;left:0;right:0;height:2px;background:#d93025;z-index:3;pointer-events:none;transform:translateY(-1px)}
.tgnow[hidden],.tgnowl[hidden]{display:none}

.tghd{position:sticky;top:0;z-index:6;background:#fff}
.tghd .tggut{z-index:7}
.tgblk.mine{touch-action:pan-y;-webkit-user-select:none;user-select:none}
.tgblk.dragging{opacity:.4}
.tgblk.ghost{position:fixed;z-index:9999;pointer-events:none;opacity:.9;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.rp{margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.rp[hidden],#rpBox[hidden],.rpdays[hidden],#rpUntil[hidden],#rpCnt[hidden]{display:none}
.rphd{display:flex;align-items:center;justify-content:space-between}
.rpsw{position:relative;display:inline-block;width:44px;height:26px;margin:0}
.rpsw input{opacity:0;width:0;height:0;position:absolute}
.rpsw i{position:absolute;inset:0;border-radius:13px;background:#cfd5de;transition:.15s;cursor:pointer}
.rpsw i:before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:.15s}
.rpsw input:checked+i{background:var(--pri)}
.rpsw input:checked+i:before{transform:translateX(18px)}
#rpBox select,#rpBox input{margin-top:8px}
.rpev{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:600}
.rpev input{width:64px!important;margin:0!important;text-align:center}
.rpdays{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rpd{width:46px;height:46px;border-radius:50%;border:1.5px solid #cfd5de;background:#fff;font-size:11px;font-weight:800;color:#4a5361;padding:0;cursor:pointer}
.rpd.on{background:var(--pri);border-color:var(--pri);color:#fff}
.csres{max-height:60vh;overflow:auto;margin-top:8px}
.cshd{font-size:12px;font-weight:800;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;margin:12px 0 4px}
.csrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-bottom:6px;color:inherit;text-decoration:none;font:inherit;cursor:pointer}
.csrow.off{opacity:.55}
.csrow .csd{flex:0 0 74px;display:flex;flex-direction:column;font-size:13px}
.csrow .csb{flex:1;min-width:0;display:flex;flex-direction:column}
.csrow small{color:var(--mut);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csrow i{flex:0 0 6px;align-self:stretch;border-radius:3px}
.nicard{margin-top:12px;border:2px solid #17713e;border-radius:12px;padding:10px 12px;background:#f3faf5}
.nicard.neg{border-color:#c62828;background:#fdf3f3}
.nicard h4{margin:0 0 6px}
.niln{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:14px}
.niln small{color:var(--mut);font-weight:400}
.niln.nitot{border-top:1px solid var(--line);margin-top:4px;padding-top:6px;font-size:17px;font-weight:800}
.nicard.pos .nitot b{color:#17713e}.nicard.neg .nitot b{color:#c62828}
.nicard .warn{margin:6px 0 0;color:#8a5a00}
.csbar{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:22px;padding:10px 14px;margin:0 0 10px;font:inherit;font-size:15px;color:var(--mut);cursor:pointer;text-align:left}
.chips.techbot{margin:12px 0 4px}
.chipsep{flex:0 0 1px;background:var(--line);margin:4px 2px}
.chips .blkchip.k-blocked.on{background:#4a5361;border-color:#4a5361;color:#fff}
.chips .blkchip.k-personal.on{background:#6a3fbf;border-color:#6a3fbf;color:#fff}
.chips .blkchip:not(.on){text-decoration:line-through;opacity:.7}
.dupg{padding:10px 12px}
.dupwhy{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.dupwhy span{font-size:11px;font-weight:800;text-transform:uppercase;background:#fff3d6;color:#7a4a00;border-radius:10px;padding:2px 8px}
.duprow{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:0 0 6px;cursor:pointer;font-weight:400}
.duprow.on{border-color:var(--pri);background:var(--pri2)}
.duprow input{margin:0;flex:0 0 auto;width:20px;height:20px}
.duprow span{flex:1;min-width:0;display:flex;flex-direction:column}
.duprow small{color:var(--mut);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duprow .dupn{color:var(--ink);font-weight:600}
.dupopen{font-size:22px;color:var(--mut);text-decoration:none;padding:0 4px}
.tgj.tgrq{background:#fff6dc!important;color:#7a4a00;border:2px dashed #d99a00;text-align:left;font:inherit;cursor:pointer;z-index:2}
.tgallc .tgj.tgrq{width:100%;margin:0}
.mday .mrq{display:block;font-style:normal;font-size:10px;font-weight:800;color:#a36b00}
/* a busy day (number + jobs + requests) must never widen the month: it stays square and the content shrinks */
.mday{min-width:0;overflow:hidden}
@media (max-width:520px){.mday{padding:3px 1px;gap:1px;font-size:13px}.mday b{font-size:11px;padding:0 5px;min-width:18px}.mday .mrq{font-size:9px;line-height:1.1}.mday i{top:1px;right:3px}}
.card.rqday{border:2px dashed #d99a00;background:#fffaf0}
.card.rqday .csrow{background:#fff}
.card.rqflash{box-shadow:0 0 0 3px #d99a00;transition:box-shadow .3s}
.tgs{touch-action:none}
.trbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0 2px;font-size:13px;color:var(--mut)}
.trbar button{border:1px solid var(--line);background:#fff;border-radius:14px;padding:4px 11px;font:inherit;font-weight:700;color:var(--pri);cursor:pointer;min-width:38px}
.trbar button.busy{opacity:.6}
.trbar .trundo{color:var(--mut);font-weight:600}
.trbar .trundo[hidden]{display:none}
.rtrb{border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 6px;font-size:11px;line-height:18px;cursor:pointer;vertical-align:middle;margin-inline-start:4px}
.rtrb.on{background:var(--pri2);border-color:var(--pri)}
.rtrb.wide{font-size:13px;padding:3px 10px;line-height:20px;font-weight:700;color:var(--pri);margin:0}
.rtrout{margin-top:5px;padding-top:5px;border-top:1px dashed #c9cfd8;font-size:13px;font-style:italic;white-space:pre-wrap;word-break:break-word;color:#243046}
.droute{height:340px;margin-top:10px}
.setbtn{display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:46px;height:46px;border:1.5px solid var(--pri);border-radius:8px;color:var(--pri);background:#fff;text-decoration:none}
.setbtn.hidden{display:none}
.setbtn.on{background:var(--pri);color:#fff}
.trate{display:flex;align-items:center;gap:4px;margin:0 8px 0 auto;flex:none;font-size:13px;color:var(--mut);font-weight:600}
.trate input{width:78px;padding:6px 8px;text-align:right;margin:0}
.qrow{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line)}
.qrow:first-child{border-top:0}
.qrow>.clrow{border-top:0!important}
.qdel{flex:none;border:1.5px solid var(--line);background:#fff;border-radius:8px;padding:6px 9px;font-size:15px;cursor:pointer;font-family:inherit;font-weight:700}
.qdel.arm{background:#b3261e;color:#fff;border-color:#b3261e;font-size:13px}
.tgrz{display:none;position:absolute;width:22px;height:22px;right:-2px;bottom:-18px;cursor:ns-resize;touch-action:none;z-index:7;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.tgrz.t{right:auto;left:-2px;bottom:auto;top:-18px}
.tgrz::after{content:"";position:absolute;left:0;right:0;top:0;height:15px;background:var(--pri);border-radius:0 0 5px 0;clip-path:polygon(0 0,100% 0,100% 100%,42% 100%)}
.tgrz.t::after{top:auto;bottom:0;border-radius:5px 0 0 0;clip-path:polygon(0 0,58% 0,100% 100%,0 100%)}
.tgj>.tgrz::after{background:var(--c);filter:brightness(.85) saturate(1.3)}
.rzsel>.tgrz{display:block}
.tgj.rzsel,.tgblk.rzsel,.tgj.rzing,.tgblk.rzing{z-index:5;overflow:visible;box-shadow:0 0 0 2px #fff,0 4px 14px rgba(0,0,0,.35)}
.rztip{position:absolute;left:0;bottom:-24px;background:#111;color:#fff;font-style:normal;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px;white-space:nowrap;z-index:6}
.cxbox{background:#26355a;border-radius:14px;padding:12px 14px 14px;color:#fff}
.cxl{display:block;text-align:center;font-weight:800;font-size:13px;letter-spacing:.3px;text-transform:uppercase;color:#fff;margin:8px 0 4px}
.cxin{display:flex;align-items:center;background:#e4e6ea;border:3px solid #111;border-radius:14px;padding:0 12px}
.cxin.big{border-color:#5aa9e6}
.cxin input{flex:1;min-width:0;border:0;background:transparent;font-size:20px;font-weight:700;text-align:right;padding:8px 6px;margin:0;color:#111;box-shadow:none;outline:none}
.cxin span{font-weight:800;font-size:18px;color:#111}
.ccd{background:#26355a;color:#fff;border-radius:12px 12px 0 0;padding:12px 14px 2px;font-size:28px;font-weight:800;text-align:right;min-height:40px;word-break:break-all}
.ccres{background:#26355a;color:#9fc7ff;border-radius:0 0 12px 12px;margin-top:0;padding:0 14px 10px;text-align:right;font-weight:700;min-height:22px}
.cck{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.cck button{font:inherit;font-size:20px;font-weight:700;padding:14px 0;border-radius:12px;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.cck button.op{background:#e8eefc;color:var(--pri);border-color:#c8d4f3}
.cck button.fn{background:#f3f4f6;color:#b3261e}
.cck button[data-k="="]{background:var(--pri);color:#fff;border-color:var(--pri)}
.tcbadge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#d4351c;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center}
.tcbadge.hidden{display:none}
.tcrow{display:flex!important;align-items:center;gap:10px;padding:10px 0;text-decoration:none;color:inherit}
.tcav{flex:none;width:38px;height:38px;border-radius:19px;background:#e8eefc;color:var(--pri);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px}
.tcun{flex:none;min-width:22px;height:22px;border-radius:11px;background:#d4351c;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 6px}
.tcwrap{display:flex;flex-direction:column;height:calc(100dvh - 170px);min-height:360px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.tchead{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}
.tchead .link{font-size:24px;text-decoration:none;padding:0 4px}
.tcmsgs{flex:1;overflow-y:auto;padding:12px;background:#f4f6fa;display:flex;flex-direction:column;gap:6px}
.tcb{max-width:80%;align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px 14px 14px 4px;padding:8px 11px}
.tcb.me{align-self:flex-end;background:var(--pri);color:#fff;border-color:var(--pri);border-radius:14px 14px 4px 14px}
.tcb b{display:block;font-size:12px;color:var(--pri)}
.tcb small{display:block;font-size:10px;opacity:.65;margin-top:2px;text-align:right}
.tcday{align-self:center;font-size:11px;font-weight:700;color:var(--mut);background:#e6e9ef;border-radius:10px;padding:2px 10px;margin:6px 0}
.tcsys{align-self:center;font-size:12px;color:var(--mut);text-align:center}
.tcbar{display:flex;gap:8px;padding:8px;border-top:1px solid var(--line);align-items:flex-end;margin:0}
.tcbar textarea{flex:1;margin:0;resize:none;min-height:42px;max-height:140px}
.tcbar .btn{flex:none;width:48px;height:42px;padding:0;font-size:18px}
#rtcBox{position:fixed;inset:0;z-index:9999;background:rgba(9,20,52,.94);display:flex;align-items:center;justify-content:center;color:#fff}
.rtcin{text-align:center;padding:24px;width:100%;max-width:360px}
.rtcav{width:96px;height:96px;border-radius:48px;margin:0 auto 14px;background:#2a3f7a;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800}
.rtcname{font-size:24px;font-weight:800}
.rtcst{margin-top:6px;opacity:.8;font-size:16px;min-height:22px}
.rtcbtns{display:flex;justify-content:center;gap:34px;margin-top:40px}
.rtcb{width:72px;height:72px;border-radius:36px;border:0;background:#33467d;color:#fff;font-size:28px;cursor:pointer;position:relative;font-family:inherit}
.rtcb span{position:absolute;top:80px;left:50%;transform:translateX(-50%);font-size:13px;font-weight:700;white-space:nowrap}
.rtcb.red{background:#d4351c}.rtcb.red:first-child:not(:last-child){}
.rtcb.green{background:#1f9d55}
.rtcb.on{background:#fff;color:#0b1f4d}

/* team member form: two fields side by side (one per line on small phones) */
.row2{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
@media (max-width:380px){.row2{grid-template-columns:1fr}}
/* team list: name + Edit on top, role and email under, then $/h and on/off — fits a phone */
.tmrow{padding:10px 0;border-bottom:1px solid var(--line)}
.tmrow:last-child{border-bottom:0}
.tmtop{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tmsub{overflow-wrap:anywhere;margin-top:2px}
.tmctl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.tmctl .trate{margin:0}
/* team list folds: name only when closed */
details.tmrow>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:16px;min-height:36px}
details.tmrow>summary::-webkit-details-marker{display:none}
details.tmrow>summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);margin:-4px 6px 0 0;transition:transform .15s;flex:none}
details.tmrow[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
details.tmrow[open]>summary{margin-bottom:6px}
details.tmrow>summary b{flex:1}
/* header: the owner sees no name next to the logo (room for the language menu); others see their first name */
#who:empty{display:none}
/* ⭐ favorite star (client page and Favorites list) */
.favb{flex:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:22px;line-height:1;color:#9aa4b1;cursor:pointer;font-family:inherit}
.favb.on{color:#e0a100;border-color:#f0d49b;background:#fff9e8}
/* Recent: small red dot for new, and where each line comes from (AI, Quo text/call, 514 text) */
.qdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d4351c;margin-inline-end:6px;vertical-align:2px}
.qsrc{flex:none;position:relative;width:34px;height:34px;border-radius:10px;background:var(--pri2);display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1}
.qsrc.s-ai{background:#efe9ff}.qsrc.s-sms{background:#e8f5ec}.qsrc.s-pc{background:#e8f5ec}
.qsrc .qse{font-size:18px}.qsrc .qsn{font-size:9px;font-weight:800;color:#17713e;margin-top:1px}
.qsrc .qsl{width:20px;height:20px;border-radius:5px}
.qsrc .qsb{position:absolute;right:-4px;bottom:-4px;font-size:12px;background:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 1px var(--line)}
/* new: small red dot on the top-left corner of the source icon */
.qsrc .qdot{position:absolute;top:-3px;left:-3px;margin:0;width:10px;height:10px;box-shadow:0 0 0 2px #fff}
/* Recent: internal (team) messages use the app's own logo */
.qsrc.s-in{background:#e8ecf8}
.qsrc.s-in .qsl{width:24px;height:24px;border-radius:6px}
/* calendar filters: line 1 = team with colour dots, line 2 = All / Blocked / Personal / Requests */
.chips .tdot{display:inline-block;width:11px;height:11px;border-radius:3px;margin-inline-end:6px;vertical-align:-1px}
.chips.techbot.t2{margin-top:6px}
.chips .blkchip.k-all.on{background:var(--pri);border-color:var(--pri);color:#fff}
/* 3 buttons per row, wrapping (no sideways scrolling) */
.chips.techbot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible}
.chips.techbot button{width:100%;padding:8px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* calendar filter buttons (except All): white, outlined in the person's / type's colour, with a colour circle */
.chips.techbot .blkchip.k-c,.chips.techbot .blkchip.k-c.on{background:#fff;color:var(--ink);border:2px solid var(--c)}
.chips.techbot .blkchip.k-c:not(.on){border-style:dashed;color:var(--mut)}
.chips.techbot .tdot{border-radius:50%;width:12px;height:12px}
/* icon / colour circle on the left inside the button, text stays centered */
.chips.techbot .blkchip.k-c{position:relative;padding-left:26px;padding-right:26px}
.chips.techbot .blkchip.k-c .tdot,.chips.techbot .blkchip.k-c .ticon{position:absolute;left:9px;top:50%;transform:translateY(-50%);margin:0}
.chips.techbot .ticon{font-style:normal;font-size:14px;line-height:1;text-decoration:none}
/* 🗓 availability bands in the week calendar (person's colour): Unavailable = hatched, Available = light tint */
.tgav{position:absolute;left:calc(1px + var(--i,0) * 21%);width:20%;box-sizing:border-box;border-radius:3px;pointer-events:none;z-index:2;opacity:.2}
.tgav.k-off{background:repeating-linear-gradient(180deg,var(--c) 0 4px,transparent 4px 7px)}
.tgav.k-on{background:var(--c)}
/* Team: "Add team member" folds open/closed */
details.tmadd>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}
details.tmadd>summary::-webkit-details-marker{display:none}
details.tmadd>summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);margin:-4px 6px 0 0;transition:transform .15s;flex:none}
details.tmadd[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
details.tmadd>form.card{border:0;padding:0;margin:8px 0 0;background:none}
details.tmadd>form.card>h3:first-child{display:none}
/* technicians: their name at the top opens their menu */
#who:not(:empty){cursor:pointer;color:var(--pri);padding:6px 4px}
/* ⚠️ error codes (calculator window) */
.ecr{border-top:1px solid var(--line)}
.ecr:first-of-type{border-top:0}
.ech{display:flex;gap:10px;align-items:flex-start;width:100%;background:none;border:0;padding:9px 2px;text-align:left;cursor:pointer;font-family:inherit;color:var(--ink)}
.ecc{flex:none;min-width:58px;padding:3px 7px;border-radius:7px;background:var(--pri);color:#fff;font-size:14px;text-align:center}
.ecm{display:flex;flex-direction:column;gap:2px;font-size:14px;min-width:0}
.ecr.on .ech{background:var(--pri2);border-radius:8px}
.ecd{padding:4px 4px 10px 70px;font-size:13.5px}
.ecd b{display:block;margin-top:6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--mut)}
.ecd p{margin:2px 0 0}
.chips.cctabs{overflow:visible;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.chips.cctabs button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;border-radius:14px;font-size:13px;line-height:1.15}
.chips.cctabs button i{font-style:normal;font-size:20px;line-height:1}
.chips.cctabs button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dgrow{display:flex;gap:8px;align-items:stretch}.dgrow input{flex:1;min-width:0}
.dgu{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:none}.dgu button{border:0;background:#fff;padding:0 14px;font-weight:700;font-family:inherit;color:var(--mut);cursor:pointer;min-height:42px}.dgu button.on{background:var(--pri);color:#fff}.dgu.wide button{flex:1}
.dgout{margin-top:10px}.dgbig{background:#26355a;color:#fff;border-radius:12px;padding:10px 14px;margin-bottom:8px}.dgbig small{display:block;color:#b9c8e6;font-size:12.5px}.dgbig b{display:block;font-size:26px;line-height:1.25}
.dgst{border-radius:10px;padding:9px 12px;font-weight:750;font-size:15px}.dgst.ok{background:#e4f6ea;color:#11683a}.dgst.warn{background:#fff3d6;color:#7a5200}.dgst.bad{background:#fde5e5;color:#a32020}
.dgtab{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}.dgtab td{padding:5px 8px;border-bottom:1px solid var(--line)}.dgtab td:last-child{text-align:right;font-weight:700}
.dgh{margin:0 0 8px;font-size:16px}.dgpre{display:grid;gap:6px}.dgpre button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;font-family:inherit;cursor:pointer}.dgpre button span{font-weight:700}.dgpre button small{color:var(--mut)}.dgpre button.on{border-color:var(--pri);box-shadow:0 0 0 1px var(--pri)}
.dgref{border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-bottom:6px;background:#fff}.dgref summary{font-weight:700;cursor:pointer}.dgref p{margin:6px 0 0;font-size:14px}
.d2c{border:1px solid var(--line);border-radius:10px;padding:9px 11px;margin-bottom:8px;background:#fff}.d2c p{margin:4px 0;font-size:14px}.d2pts{background:#f3f6fb;border-radius:8px;padding:6px 8px;margin:6px 0;font-size:13.5px}
.d2ol{margin:8px 0 6px;padding-inline-start:20px;font-size:14px}.d2ol li{margin-bottom:5px}.d2w{background:#fff3d6;color:#7a5200;border-radius:8px;padding:6px 9px;font-size:13.5px;margin:6px 0}
.d2cv{display:grid;grid-template-columns:1fr auto 18px 1fr auto;gap:6px;align-items:center;margin-bottom:6px}.d2cv input{min-width:0}.d2cv span{font-size:13px;color:var(--mut);min-width:46px}.d2cv b{text-align:center;color:var(--mut)}
.ecn{border-top:1px solid var(--line);margin-top:10px;padding-top:8px}.ecnn{background:#f3f6fb;border-radius:8px;padding:6px 9px;margin:6px 0}.ecnn p{margin:0 0 2px;white-space:pre-wrap}.ecn textarea{width:100%;margin-top:6px}

/* Owner on a computer: week view full screen, 7 days in view */
@media (min-width:1000px){body.wkfull main{max-width:none;padding-left:16px;padding-right:16px}body.wkfull .tgin{width:calc(36px + (100cqw - 36px) * var(--nd, 7) / var(--vdd, 7))}body.wkfull .tgday,body.wkfull .tgcol{flex-basis:calc((100cqw - 36px) / var(--vdd, 7))}body.wkfull .tgs{max-height:calc(100dvh - 200px)}body.wkfull .tghint{display:none}body.wkfull .chips.techbot,body.wkfull .chips.techbot.t2{display:inline-flex;flex-wrap:nowrap;gap:6px;margin:8px 6px 0 0;vertical-align:top}body.wkfull .chips.techbot button{width:auto;padding:4px 12px 4px 24px;font-size:12px;min-height:0;line-height:1.3}body.wkfull .chips.techbot .blkchip.k-c .tdot,body.wkfull .chips.techbot .blkchip.k-c .ticon{left:8px}body.wkfull .chips.techbot .tdot{width:9px;height:9px}body.wkfull .chips.techbot .ticon{font-size:11px}body.wkfull .chips.techbot .blkchip.cssm{padding:4px 12px;font-size:13px}body.wkfull .tgday{flex-direction:row;justify-content:center;align-items:center;gap:7px;padding:4px 2px}body.wkfull .tgday b{width:26px;height:26px;line-height:26px;font-size:15px}body.wkfull .tgday em{font-size:11px}body.wkfull .wktop{display:flex;align-items:center;gap:16px;margin-bottom:10px}body.wkfull .wktop .vsw{flex:0 0 42%;margin:0}body.wkfull .wktop .datebar{flex:1;margin:0}body.wkfull .wktop .datebar .icon{width:40px;height:40px}body.wkfull .wktop{flex-wrap:wrap;gap:8px 14px}body.wkfull .wktop .vsw{flex:0 0 270px}body.wkfull .wktop .chips.techbot{margin:0}body.wkfull .wktop .datebar{flex:1 1 300px}body.wkfull .datebar .dlabel{display:flex;align-items:baseline;justify-content:center;gap:10px}body.wkfull .datebar .dlabel>span.muted{display:none}body.wkfull header.top{padding:3px 14px;z-index:6}body.wkfull header.top .brand img{width:34px;height:34px}body.wkfull header.top .setbtn,body.wkfull header.top .langbtn{transform:scale(.85)}body.wkfull nav.tabs{top:0;bottom:0;right:auto;width:76px;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--line);padding-top:52px}body.wkfull nav.tabs a{flex:0 0 auto;padding:10px 0;font-size:11px}body.wkfull main{padding:8px 16px 10px 92px}body.wkfull .tgs::-webkit-scrollbar{width:10px;height:0}body.wkfull .tgs::-webkit-scrollbar-thumb{background:#c9ced6;border-radius:5px}body.wkfull .tgs::-webkit-scrollbar-track{background:transparent}body.wkfull .tgwrap{position:relative}body.wkfull .wknav{position:absolute;top:3px;z-index:8;width:30px;height:28px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:20px;line-height:1;cursor:pointer;padding:0}body.wkfull .wknav:hover{background:var(--pri2)}body.wkfull .wknav.l{left:3px}body.wkfull .wknav.r{right:14px}body.wkfull .wktoday{padding:5px 12px;font-size:13px;min-height:0;width:auto;margin:0}body.wkfull .wktoday[hidden]{display:none}}
/* job page: appliance & problem box */
.apbox{margin-top:10px;background:var(--pri2);border-radius:10px;padding:10px 12px;font-size:14px}.apbox .aph{font-weight:700;font-size:15px}.apbox .approb{margin-top:3px;white-space:pre-wrap;line-height:1.4}.apbox .none{color:var(--mut);font-weight:400}.apbox .apgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px;padding-top:9px;border-top:1px solid rgba(0,0,0,.08)}.apbox .apgrid span,.apbox .apx>span{display:block;font-size:11px;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;margin-bottom:1px}.apbox .apgrid b{font-weight:600;word-break:break-all}.apbox a{font-size:12px;white-space:nowrap}.apbox .apx{margin-top:9px;padding-top:9px;border-top:1px solid rgba(0,0,0,.08);font-size:13px}.apbox .apx>div{margin-top:3px}
/* Recent filters on a phone: icons (and red counts) only, the label shows on a computer */
@media (max-width:600px){.qfb .qfl{display:block!important;flex:1 1 0!important;min-width:0;font-size:0!important;visibility:hidden}.qfb{justify-content:flex-start!important;gap:0;padding:9px 12px!important}.qfb b{margin-inline-start:0!important}}
/* A–Z bar on the right of the Clients list */
#azBar{position:fixed;right:2px;top:calc(50% + 20px);transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;padding:4px 3px;background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:12px;z-index:15;touch-action:none;user-select:none;-webkit-user-select:none}#azBar span{font-size:11px;font-weight:800;line-height:1.5;color:var(--pri);padding:0 4px;cursor:pointer;border-radius:6px}#azBar span.on{background:var(--pri);color:#fff}@media (max-height:620px){#azBar span{font-size:9.5px;line-height:1.35}}
.clkf{display:flex;margin:0 0 10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px}.clkf button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border:0;border-radius:9px;background:none;color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;line-height:1.15}.clkf button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clkf button small{font-size:11px;font-weight:600;opacity:.6}.clkf button.on{background:var(--pri);color:#fff}.clkf button.on small{opacity:.85}
@media (max-width:600px){.clkf,#clList{margin-right:26px}.clkf button{font-size:12px}}
body.wkm .tghint{display:none}body.wkm .wkmtop{display:flex;gap:8px;align-items:center;margin-bottom:8px}body.wkm .wkmtop .vsw{flex:1;margin:0}body.wkm .chips.vsw{margin-bottom:8px}body.wkm .chips.vsw button{padding:6px 4px;min-height:0;font-size:14px}body.wkm .wkmtop [data-act="shStart"]{flex:none;margin:0!important;padding:7px 14px;min-height:0;font-size:14px;width:auto}body.wkm .datebar{margin-bottom:8px;gap:6px}body.wkm .datebar .icon{width:36px;height:36px;font-size:19px;border-radius:9px}body.wkm .datebar .dmain{font-size:15px}body.wkm .datebar .dlabel>span.muted{display:none}body.wkm .datebar .dlabel .link{font-size:12px}body.wkm main{padding-top:8px}body.wkm main{padding-bottom:0}
.vdbar{display:flex;align-items:center;gap:8px;margin:-2px 2px 8px;color:var(--mut);font-size:11px}.vdbar input{flex:1;accent-color:var(--pri);height:22px;margin:0}.vdbar b{flex:none;min-width:52px;text-align:right;font-size:13px;color:var(--ink)}.vdbar span{letter-spacing:-2px}
body.wkm .wkbar{position:relative;display:flex;align-items:center;gap:4px;margin:0 0 6px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:3px}body.wkm .wkbar .wkb{flex:none;height:32px;min-width:32px;padding:0 7px;border:0;border-radius:9px;background:var(--pri2,#eef1f8);color:var(--ink);font:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer}body.wkm .wkbar .wkv,body.wkm .wkbar .wkd{font-size:12.5px;padding:0 8px}body.wkm .wkbar .wkd small{font-size:11px;margin-left:1px}body.wkm .wkbar .wks{background:var(--pri);color:#fff;font-size:13px}body.wkm .wkbar .dlabel{flex:1;min-width:0;border:0;background:none;font:inherit;padding:0 2px;cursor:pointer;text-align:center}body.wkm .wkbar .dmain{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}body.wkm .wkpop{position:absolute;top:calc(100% + 4px);z-index:30;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 20px rgba(0,0,0,.15);padding:6px}body.wkm .wkpop.p-v{left:3px;display:flex;flex-direction:column;gap:2px;min-width:130px}body.wkm .wkpop.p-v button{border:0;background:none;text-align:left;padding:9px 12px;border-radius:8px;font:inherit;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}body.wkm .wkpop.p-v button.on{background:var(--pri);color:#fff}body.wkm .wkpop.p-d{left:3px;right:3px}body.wkm .wkpop[hidden]{display:none}body.wkm .wkpop .vdbar{margin:4px 6px}body.wkm main{padding-top:6px}
.shx{position:absolute;top:6px;right:6px;width:30px;height:30px;border:0;border-radius:50%;background:#f1f3f6;color:var(--mut);font-size:15px;line-height:30px;padding:0;cursor:pointer;z-index:2}.shx:hover{background:#e4e7ec;color:var(--ink)}.shmini{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:4px 11px;margin:0 0 8px;font:inherit;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}.shdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1a9b4b}body.wkm .wkbar .wkt{font-size:11.5px;padding:0 6px;white-space:nowrap}body.wkm .wkbar .wkt .shdot{width:6px;height:6px}
body.wkm .tgday{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 4px;padding:3px 2px 4px}body.wkm .tgday small{font-size:11.5px}body.wkm .tgday b{width:24px;height:24px;line-height:24px;font-size:14px}body.wkm .tgday em{flex-basis:100%;text-align:center;font-size:10px;line-height:1.2}
.qsrch{display:block;width:100%;box-sizing:border-box;margin:0 0 10px;padding:10px 14px;border:1px solid var(--line);border-radius:22px;background:#fff;font:inherit;font-size:15px}.qrow[hidden]{display:none!important}
@media (pointer:fine){.tgs{cursor:grab}.tgs .tgj,.tgs .tgblk{cursor:pointer}}body.tgpanning,body.tgpanning *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
@media (min-width:1000px){body.dside nav.tabs{top:var(--hdrH,60px);bottom:0;right:auto;width:76px;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--line);padding-top:8px}body.dside nav.tabs a{flex:0 0 auto;padding:16px 0;margin-bottom:18px;font-size:11px}body.dside main{padding-bottom:24px}}
.vddsel{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:10px;padding:2px;gap:2px}.vddsel button{border:0;background:none;border-radius:8px;padding:5px 10px;font:inherit;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}.vddsel button.on{background:var(--pri);color:#fff}
.wkroute{display:inline-flex;gap:6px}.wkroute .btn{width:auto;margin:0;padding:6px 12px;font-size:13px;min-height:0}.wrdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:10px}.wrdays button{display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);background:#fff;border-radius:10px;padding:5px 0;font:inherit;cursor:pointer;color:var(--ink)}.wrdays button small{font-size:11px;color:var(--mut);text-transform:capitalize}.wrdays button b{font-size:16px}.wrdays button em{font-style:normal;font-size:10px;color:var(--mut)}.wrdays button.on{background:var(--pri);border-color:var(--pri);color:#fff}.wrdays button.on small,.wrdays button.on em{color:#dfe4ff}
.wkbr{flex-basis:100%;height:0}
.tctr{display:block;border:0;background:none;padding:2px 0 0;font:inherit;font-size:11.5px;color:var(--pri);cursor:pointer;opacity:.85;text-align:left}.tcb.me .tctr{color:#dfe4ff}.tcautob{opacity:.55}.tcautob.on{opacity:1;background:var(--pri2,#eef1f8);border-color:var(--pri)}.tcundo{display:block;margin:0 auto 4px;border:0;background:none;font:inherit;font-size:12.5px;color:var(--pri);cursor:pointer}
