*{box-sizing:border-box}
body{margin:0;background:#F5F7F8;color:#17232B;font-family:'IBM Plex Sans Arabic',system-ui,sans-serif;font-size:15px}
a{color:#12355B}
button,input,select,textarea{font-family:inherit;font-size:14px}
.top{background:#fff;border-bottom:1px solid #E3E7EA;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px}
.logo{width:36px;height:36px;border-radius:9px;background:#12355B;display:flex;align-items:center;justify-content:center}
.wrap{max-width:1400px;margin:0 auto;padding:20px}
.layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.side{flex:1 1 210px;max-width:250px;min-width:190px;background:#fff;border:1px solid #E3E7EA;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:2px}
.side button{all:unset;cursor:pointer;padding:10px 12px;border-radius:8px;font-size:15px;display:flex;justify-content:space-between;align-items:center}
.side button:hover{background:#EEF3F4}
.side button.on{background:#E9EEF5;color:#12355B;font-weight:600}
.side button:focus-visible{outline:2px solid #12355B}
.content{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
h1{margin:0;font-size:24px}h2{margin:0;font-size:18px}h3{margin:0;font-size:16px}
.muted{color:#5B6770}.small{font-size:13px}
.card{background:#fff;border:1px solid #E3E7EA;border-radius:12px;padding:18px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.between{justify-content:space-between}
.grid-cards{display:flex;flex-wrap:wrap;gap:16px}
.mod{all:unset;cursor:pointer;flex:1 1 300px;background:#fff;border:1px solid #E3E7EA;border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px}
.mod:hover{border-color:#12355B;box-shadow:0 6px 20px rgba(14,94,111,.1)}
.mod:focus-visible{outline:2px solid #12355B}
.btn{border:none;background:#12355B;color:#fff;font-weight:600;padding:10px 18px;border-radius:9px;cursor:pointer}
.btn:hover{background:#0C2540}
.btn.sec{background:#fff;color:#17232B;border:1px solid #D5DCE0;font-weight:500}
.btn.sec:hover{background:#F2F5F6}
.btn.green{background:#1E6B42}.btn.green:hover{background:#17553A}
.btn.red{background:#9B2C2C}.btn.red:hover{background:#7E1C1C}
.btn.sm{padding:6px 12px;font-size:13px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.inp{padding:9px 11px;border-radius:8px;border:1px solid #D5DCE0;background:#fff;color:#17232B;min-width:0}
.inp:focus{outline:2px solid #12355B;outline-offset:0;border-color:#12355B}
label.f{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#5B6770;flex:1 1 180px}
label.f .inp{font-size:14px}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.chk input[type=checkbox],.chk input[type=radio]{width:18px;height:18px;accent-color:#12355B}
.tbl-wrap{overflow-x:auto;border:1px solid #E3E7EA;border-radius:10px;background:#fff}
table.t{width:100%;border-collapse:collapse}
.t th{font-weight:600;font-size:13px;color:#5B6770;text-align:right;padding:9px 11px;background:#F7F9FA;border-bottom:1px solid #E3E7EA;white-space:nowrap}
.t td{font-size:14px;padding:9px 11px;border-bottom:1px solid #EEF1F3;vertical-align:top}
.t tr.tot td{font-weight:700;background:#F7F9FA}
.t tr.click{cursor:pointer}.t tr.click:hover td{background:#F7FAFB}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;white-space:nowrap}
.p-Fresh{background:#E5F4EA;color:#1E6B42}.p-Duplicate{background:#E7F0FB;color:#1F5598}.p-Cancelation{background:#FBEDE3;color:#9A4A15}
.p-Urgent{background:#F0EAFB;color:#5B3591}.p-DupFresh{background:#EEF0F2;color:#3E4A52}.p-Old{background:#F3EFE6;color:#5E5132}.p-CRM{background:#E9EEF5;color:#12355B}
.p-warn{background:#FCF3DC;color:#7A5410}.p-ok{background:#E5F4EA;color:#1E6B42}.p-gray{background:#EEF0F2;color:#3E4A52}.p-bad{background:#FBEDE3;color:#9A4A15}
.kpi{flex:1 1 150px;background:#fff;border:1px solid #E3E7EA;border-radius:12px;padding:14px 16px}
.kpi b{display:block;font-size:24px;margin-top:2px}
.drop{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed #B9C9CE;border-radius:12px;padding:24px;background:#F7FAFB;cursor:pointer;text-align:center}
.drop:hover{border-color:#12355B}
.step{flex:1 1 220px;background:#fff;border:1px solid #E3E7EA;border-radius:12px;padding:14px 16px;display:flex;gap:10px}
.dot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none;background:#EEF1F3;color:#5B6770}
.dot.ok{background:#E5F4EA;color:#1E6B42}.dot.now{background:#12355B;color:#fff}
.seat{width:58px;height:46px;border-radius:8px;border:2px solid transparent;font-weight:700;font-size:13px;cursor:pointer}
.seat:focus-visible{outline:2px solid #12355B;outline-offset:2px}
.st-free{background:#D5DADE;color:#17232B}.st-res{background:#F2C94C;color:#17232B}.st-sign{background:#E8833A;color:#17232B}.st-sold{background:#8B1E1E;color:#fff}.st-lock{background:#1B1B1B;color:#fff}
.legend{display:inline-flex;align-items:center;gap:6px;font-size:13px}.legend i{width:14px;height:14px;border-radius:4px;display:inline-block}
.modal-bg{position:fixed;inset:0;background:rgba(15,25,30,.45);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;z-index:50;overflow:auto}
.modal{background:#fff;border-radius:14px;max-width:760px;width:100%;padding:22px;display:flex;flex-direction:column;gap:14px}
.toast{position:fixed;bottom:20px;left:20px;background:#17232B;color:#fff;padding:12px 18px;border-radius:10px;z-index:60;max-width:420px;font-size:14px}
.notice{background:#FCF3DC;color:#5E400B;border-radius:10px;padding:12px 14px;font-size:14px}
.notice.info{background:#E9EEF5;color:#0C2540}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 16px}
.facts div{font-size:14px}.facts span{display:block;font-size:12px;color:#5B6770}
.hidden{display:none !important}
.stack{display:flex;flex-direction:column;gap:12px}
.layout.one .content{flex-basis:100%}
.mod-ic{width:50px;height:50px;border-radius:12px;background:#E9EEF5;display:flex;align-items:center;justify-content:center}
.modal.wide{max-width:1040px}
.modal h3{margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{display:inline-block;padding:7px 12px;border:1px solid #D5DCE0;border-radius:999px;background:#fff;color:#17232B;font-size:14px}
.chip input:checked+span{background:#12355B;border-color:#12355B;color:#fff}
.chip input:focus-visible+span{outline:2px solid #12355B;outline-offset:2px}
.dp{display:inline-flex;align-items:stretch;position:relative;min-width:0}
.dp .dp-in{width:130px;border-start-end-radius:0;border-end-end-radius:0}
label.f .dp,label.f .dp .dp-in{width:100%}
.dp-btn{border:1px solid #D5DCE0;border-inline-start:none;background:#F7F9FA;color:#12355B;border-start-end-radius:8px;border-end-end-radius:8px;padding:0 10px;cursor:pointer;display:flex;align-items:center}
.dp-btn:hover{background:#E9EEF5}
.cal{position:absolute;z-index:80;background:#fff;border:1px solid #D5DCE0;border-radius:12px;box-shadow:0 10px 30px rgba(15,25,30,.18);padding:10px;width:290px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.cal-h{font-size:11px;color:#5B6770;padding:4px 0}
.cal-d{border:none;background:none;border-radius:8px;padding:7px 0;cursor:pointer;font-size:14px;color:#17232B}
.cal-d:hover{background:#EEF3F4}.cal-d.td{outline:1px solid #12355B}.cal-d.on{background:#12355B;color:#fff}
.seg{display:inline-flex;border:1px solid #D5DCE0;border-radius:9px;overflow:hidden}
.seg button{border:none;background:#fff;padding:7px 14px;cursor:pointer;font-size:13px;color:#17232B}
.seg button+button{border-inline-start:1px solid #D5DCE0}
.seg button.on{background:#12355B;color:#fff}
.tabs{display:flex;flex-wrap:wrap;gap:6px}
.tabs button{border:1px solid #D5DCE0;background:#fff;border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13px}
.tabs button.on{background:#12355B;border-color:#12355B;color:#fff}
.charts{display:flex;flex-wrap:wrap;gap:16px}
.chart-card{flex:1 1 440px}
.donut{display:flex;flex-wrap:wrap;gap:20px;align-items:center}
.donut svg{flex:none;max-width:100%;height:auto}
.legend-list{list-style:none;margin:0;padding:0;flex:1 1 200px;display:flex;flex-direction:column;gap:6px}
.legend-list li{display:flex;gap:8px;align-items:center;font-size:14px}
.legend-list i{width:12px;height:12px;border-radius:3px;flex:none}
.legend-list span:first-of-type{flex:1}
.up{color:#1E6B42}.down{color:#9B2C2C}
.kpi .small{display:block;margin-top:2px}
.rank{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:10px;background:linear-gradient(135deg,#E9EEF5,#fff)}
.li{padding:9px 0;border-top:1px solid #EEF1F3;font-size:14px}.li:first-of-type{border-top:none}
.li.click{cursor:pointer}.li.click:hover{background:#F7FAFB}
.pchk{width:18px;height:18px;accent-color:#12355B}
code{background:#F2F5F6;padding:8px 10px;border-radius:8px;display:block;font-size:13px}
body.busy{cursor:progress}
body.busy .btn{pointer-events:none;opacity:.7}
@media (max-width:760px){
  .wrap{padding:12px}
  .top{padding:8px 12px}
  .hide-sm{display:none !important}
  .layout{flex-direction:column;gap:12px}
  .side{max-width:none;width:100%;flex:none;flex-direction:row;overflow-x:auto;padding:6px;gap:4px}
  .side button{white-space:nowrap;padding:8px 12px;gap:6px}
  .content{flex:none;width:100%}
  h1{font-size:21px}
  .card{padding:14px}
  .kpi{flex:1 1 130px;padding:10px 12px}.kpi b{font-size:20px}
  .modal-bg{padding:0}
  .modal{border-radius:0;min-height:100vh;padding:16px}
  .btn{padding:11px 16px}
  .inp{font-size:16px;padding:10px 11px}
  .toast{left:12px;right:12px;bottom:12px;max-width:none}
  .seat{width:52px;height:44px}
  .chart-card{flex-basis:100%}
}
.stack>label.f,.stack>.f,fieldset.stack>label.f{flex:none}
.logo-img{height:40px;width:auto;display:block}
.chart-card .donut svg text{font-family:inherit}
.thumb{position:relative;display:inline-block;width:96px;height:96px;border:1px solid #D5DCE0;border-radius:10px;overflow:hidden;background:#F7F9FA}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-x{position:absolute;top:4px;inset-inline-end:4px;border:none;background:rgba(15,25,30,.7);color:#fff;border-radius:50%;width:22px;height:22px;cursor:pointer;line-height:20px;padding:0}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.fgrid .f .dp .dp-in{width:100%}
.msel{border:1px solid #D5DCE0;border-radius:8px;background:#fff;position:relative;align-self:end}
.msel summary{list-style:none;cursor:pointer;padding:9px 12px;display:flex;justify-content:space-between;gap:8px;font-size:14px}
.msel summary::-webkit-details-marker{display:none}
.msel summary b{color:#12355B;font-weight:600}
.msel[open] summary{border-bottom:1px solid #E3E7EA}
.msel-list{max-height:240px;overflow:auto;padding:8px 12px;display:flex;flex-direction:column;gap:6px}
.fchip{display:inline-flex;align-items:center;gap:6px;background:#E9EEF5;color:#12355B;border-radius:999px;padding:4px 6px 4px 12px;font-size:13px}
.fchip button{border:none;background:#12355B;color:#fff;border-radius:50%;width:20px;height:20px;cursor:pointer;line-height:18px;padding:0}
.chipbtn{border:1px solid #D5DCE0;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.chipbtn:hover{border-color:#12355B;color:#12355B}
.seg label{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;cursor:pointer;font-size:14px}
.seg label+label{border-inline-start:1px solid #D5DCE0}
.seg label:has(input:checked){background:#12355B;color:#fff}
.seg input{accent-color:#fff}
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.tl li{border-inline-start:3px solid #D5DCE0;padding:8px 14px 12px;margin-inline-start:6px}
.tl li.tl-sales{border-color:#12355B}.tl li.tl-qc{border-color:#C2410C}.tl li.tl-mkt{border-color:#E4872A}.tl li.tl-mgr{border-color:#5B21B6}.tl li.tl-sys{border-color:#9AA5B1}
.tl-h{margin-bottom:4px}
.tlk-sales{background:#E9EEF5;color:#12355B}.tlk-qc{background:#FCE9DD;color:#9A3412}.tlk-mkt{background:#FBF0DC;color:#7A4E0A}.tlk-mgr{background:#EDE7F6;color:#4C1D95}.tlk-sys{background:#EEF1F3;color:#4A5560}
.qcrow{display:flex;flex-direction:column;gap:6px;padding:8px 0;border-top:1px solid #F3E1D7}
.qcrow:first-of-type{border-top:none}
@media (max-width:760px){
  .t.crm,.t.crm tbody,.t.crm tr,.t.crm td{display:block;width:100%;box-sizing:border-box}
  .t.crm tr:first-child{display:none}
  .t.crm tr{border:1px solid #E3E7EA;border-radius:12px;margin-bottom:10px;padding:8px 12px;background:#fff}
  .t.crm td{border:none;padding:3px 0;display:flex;justify-content:space-between;gap:10px;text-align:start !important}
  .t.crm td::before{content:attr(data-l);color:#5B6770;font-size:12px}
  .fgrid{grid-template-columns:1fr}
}
.phones{margin:8px 0;border:1px solid #E3E8EE;border-radius:10px;padding:6px 10px}.phones summary{cursor:pointer;font-weight:600;font-size:14px}
.ph-list{display:flex;flex-direction:column;gap:6px;margin-top:6px}.ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ph span[dir=ltr]{font-weight:600;min-width:120px}
.linkbtn{background:none;border:0;color:#12355B;font:inherit;font-weight:600;cursor:pointer;padding:4px 0;text-decoration:underline}
/* ===== calmer theme for a follow-up system (Nov 2026) ===== */
body{background:#F3F6FA;color:#1B2733}
.muted{color:#556270}
.card{border-color:#E1E7EF;box-shadow:0 1px 2px rgba(16,42,67,.04)}
.side{border-color:#E1E7EF}
.side button{color:#33414F}
.side button:hover{background:#F0F5FC}
.side button.on{background:#E6F0FC;color:#0F4C8A;font-weight:600;box-shadow:inset -3px 0 0 #3B82C4}
.tabs button{border-color:#D8E1EB;color:#33414F}
.tabs button:hover{background:#F0F5FC}
.tabs button.on{background:#E6F0FC;border-color:#9CC2EA;color:#0F4C8A;font-weight:600}
.seg button.on,.seg label:has(input:checked){background:#E6F0FC;color:#0F4C8A}
table.t tr:hover td{background:#F5F9FE}
table.crm tr.sel td,table.t tr.sel td{background:#E6F0FC}
table.t th{background:#F6F8FB;color:#33414F}
.kpi{border-color:#E1E7EF}
.notice{background:#FFF8EC;border-color:#F3D9A8;color:#5B4208}
.notice.info{background:#EEF5FD;border-color:#C9DDF3;color:#18406B}
/* lead drawer: opens at the side, scrolls inside itself */
body.noscroll{overflow:hidden}
.modal-bg.dr-bg{padding:0;justify-content:flex-start;overflow:hidden;background:rgba(15,30,50,.28)}
.modal.drawer{max-width:620px;width:100%;height:100vh;border-radius:0;padding:0;gap:0;box-shadow:8px 0 30px rgba(15,30,50,.18);display:flex;flex-direction:column;animation:drIn .18s ease-out}
@keyframes drIn{from{transform:translateX(-24px);opacity:.4}to{transform:none;opacity:1}}
.dr-top{padding:16px 18px 0;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #E1E7EF;background:#fff}
.dr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.dr-head h2{font-size:19px;margin:0;overflow-wrap:anywhere}
.dr-phone{font-weight:600;color:#1B2733}
.dr-tabs{display:flex;gap:2px;overflow-x:auto;margin-top:2px}
.dr-tabs button{all:unset;cursor:pointer;padding:10px 12px;font-size:14px;color:#556270;border-bottom:3px solid transparent;white-space:nowrap}
.dr-tabs button:hover{color:#0F4C8A;background:#F5F9FE}
.dr-tabs button.on{color:#0F4C8A;font-weight:600;border-bottom-color:#3B82C4;background:#EEF5FD}
.dr-body{flex:1;overflow-y:auto;padding:16px 18px 40px;display:flex;flex-direction:column;gap:14px;background:#FAFBFD;overscroll-behavior:contain}
.dr-body .facts{background:#fff;border:1px solid #E1E7EF;border-radius:10px;padding:12px 14px;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.facts div{color:#1B2733}.facts span{color:#556270}
.act-form{background:#fff;border:1px solid #D6E4F5;border-radius:12px;padding:14px}
.qc-mark{background:#FFF8F4;border:1px solid #F2D3C1;border-radius:12px;padding:14px}
.qc-types{display:flex;flex-wrap:wrap;gap:8px 18px}
.qc-box{border-color:#F2D3C1}
/* timeline: one clear card per entry */
.tl{gap:10px;position:relative}
.tl li{background:#fff;border:1px solid #E1E7EF;border-inline-start:4px solid #C9D3DE;border-radius:10px;padding:10px 14px;margin:0}
.tl li.tl-sales{border-inline-start-color:#3B82C4}.tl li.tl-qc{border-inline-start-color:#D9662B}.tl li.tl-mkt{border-inline-start-color:#E4872A}.tl li.tl-mgr{border-inline-start-color:#6D4BC4}.tl li.tl-sys{border-inline-start-color:#A3B0BD}
.tl-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.tl-h b{color:#1B2733}
.tl-type{font-size:12px;color:#556270;background:#F1F4F8;border-radius:999px;padding:2px 8px}
.tl-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:#1B2733;margin-bottom:6px;padding-bottom:6px;border-bottom:1px dashed #E1E7EF}
.tl-meta i{font-style:normal;color:#556270}
.tl-text{white-space:pre-wrap;margin-top:6px;color:#1B2733;line-height:1.7;font-size:14.5px}
.tlk-sales{background:#E6F0FC;color:#0F4C8A}
@media (max-width:700px){.modal.drawer{max-width:none}.dr-body{padding:14px 12px 40px}}
/* sales home: sections first, compact numbers */
.quick-mods{display:flex;flex-wrap:wrap;gap:10px}
.quick-mods button{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #E1E7EF;border-radius:10px;padding:10px 14px;font-weight:600;color:#1B2733}
.quick-mods button:hover{border-color:#9CC2EA;background:#F5F9FE}
.kpis-sm{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.kpis-sm div{background:#fff;border:1px solid #E1E7EF;border-radius:10px;padding:8px 10px;font-size:12.5px;color:#556270}
.kpis-sm b{display:block;font-size:18px;color:#1B2733}
.stage-row{gap:10px}.stage-row.off{opacity:.65}
.kvs{display:inline-flex;flex-wrap:wrap;gap:6px}.kv{background:#F1F5FA;border:1px solid #E1E7EF;border-radius:999px;padding:3px 10px;font-size:13px}
.pf-sec summary{cursor:pointer;list-style:none}.pf-sec summary h2{display:inline-flex;align-items:center;gap:8px;margin:0}.pf-sec summary::before{content:'▸';margin-inline-end:8px;color:#556270}.pf-sec[open] summary::before{content:'▾'}
.pf-n{background:#E6F0FC;color:#0F4C8A;border-radius:999px;padding:1px 10px;font-size:14px}
.pf-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}

/* permissions page */
.perm-layout{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:start}
.perm-emps{position:sticky;top:70px;max-height:calc(100vh - 90px);overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:10px}
.perm-grp{font-size:12px;color:#556270;font-weight:600;margin:10px 4px 4px}
.perm-emp{all:unset;cursor:pointer;display:flex;justify-content:space-between;gap:6px;align-items:center;padding:8px 10px;border-radius:8px;color:#1B2733}
.perm-emp span{font-size:12px;color:#556270}
.perm-emp:hover{background:#F0F5FC}.perm-emp.on{background:#E6F0FC;color:#0F4C8A;font-weight:600;box-shadow:inset -3px 0 0 #3B82C4}
.perm-mod summary{cursor:pointer;list-style:none}
.perm-rows{display:flex;flex-direction:column;margin-top:10px}
.perm-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid #EEF2F6;flex-wrap:wrap}
.perm-name{flex:1 1 260px;color:#1B2733}
.perm-ops{display:flex;flex-wrap:wrap;gap:6px}
.perm-op{display:inline-flex;align-items:center;gap:5px;border:1px solid #D8E1EB;border-radius:999px;padding:4px 12px;font-size:13px;cursor:pointer;color:#33414F;background:#fff}
.perm-op input{margin:0}
.perm-op.on{background:#E6F0FC;border-color:#9CC2EA;color:#0F4C8A;font-weight:600}
.perm-op.dis{opacity:.55;cursor:not-allowed}
@media (max-width:800px){.perm-layout{grid-template-columns:1fr}.perm-emps{position:static;max-height:260px}}
/* ===== selectable themes (chosen by the owner in Administration > Settings) ===== */
/* 1) أزرق هادئ */
body[data-theme=ocean]{background:#F4F8FD}
body[data-theme=ocean] .top{background:#0F3D6E;border-color:#0F3D6E}
body[data-theme=ocean] .top,body[data-theme=ocean] .top .muted,body[data-theme=ocean] .top a{color:#EAF2FB}
body[data-theme=ocean] .btn{background:#2563A8}body[data-theme=ocean] .btn:hover{background:#1D4F87}
body[data-theme=ocean] .btn.sec{background:#fff;color:#1D4F87;border:1px solid #BFD5EE}
body[data-theme=ocean] .card,body[data-theme=ocean] .side{border-radius:14px;border-color:#DCE7F4}
body[data-theme=ocean] .side button.on,body[data-theme=ocean] .tabs button.on,body[data-theme=ocean] .dr-tabs button.on{background:#DDEBFA;color:#1D4F87}
body[data-theme=ocean] .t th{background:#EEF4FB}
/* 2) رملي دافئ */
body[data-theme=sand]{background:#F7F3EC;color:#2B2620}
body[data-theme=sand] .top{background:#FFFDF9;border-color:#E9DFCF}
body[data-theme=sand] .card,body[data-theme=sand] .side,body[data-theme=sand] .kpi,body[data-theme=sand] .kpis-sm div{background:#FFFDF9;border-color:#E9DFCF}
body[data-theme=sand] .btn{background:#12355B}body[data-theme=sand] .btn.sec{background:#FFF6EA;color:#7A4A12;border:1px solid #EBCFA8}
body[data-theme=sand] .side button.on,body[data-theme=sand] .tabs button.on,body[data-theme=sand] .dr-tabs button.on,body[data-theme=sand] .perm-emp.on{background:#FCEBD5;color:#7A4A12;box-shadow:inset -3px 0 0 #E4872A;border-color:#EBCFA8}
body[data-theme=sand] table.t tr:hover td,body[data-theme=sand] table.t tr.sel td{background:#FBF1E3}
body[data-theme=sand] .t th{background:#F6EEE2}
body[data-theme=sand] .dr-body{background:#FAF6F0}
/* 3) أخضر مريح */
body[data-theme=mint]{background:#F1F7F5;color:#17302A}
body[data-theme=mint] .top{background:#fff;border-color:#D5E7E1}
body[data-theme=mint] .btn{background:#0F6B5F}body[data-theme=mint] .btn:hover{background:#0B564C}
body[data-theme=mint] .btn.sec{background:#fff;color:#0F6B5F;border:1px solid #B8DDD3}
body[data-theme=mint] .card,body[data-theme=mint] .side,body[data-theme=mint] .kpi{border-color:#D5E7E1}
body[data-theme=mint] .side button.on,body[data-theme=mint] .tabs button.on,body[data-theme=mint] .dr-tabs button.on,body[data-theme=mint] .perm-emp.on,body[data-theme=mint] .perm-op.on{background:#DDF1EB;color:#0B564C;box-shadow:inset -3px 0 0 #14937F;border-color:#B8DDD3}
body[data-theme=mint] table.t tr:hover td,body[data-theme=mint] table.t tr.sel td{background:#EAF6F2}
body[data-theme=mint] .t th{background:#EEF6F3}
/* 4) ليلي داكن */
body[data-theme=night]{background:#0E1621;color:#E3EAF2}
body[data-theme=night] .top,body[data-theme=night] .side,body[data-theme=night] .card,body[data-theme=night] .modal,body[data-theme=night] .kpi,body[data-theme=night] .kpis-sm div,body[data-theme=night] .dr-top,body[data-theme=night] .act-form,body[data-theme=night] .tl li,body[data-theme=night] .dr-body .facts,body[data-theme=night] .quick-mods button,body[data-theme=night] .perm-op{background:#162231;border-color:#26364A;color:#E3EAF2}
body[data-theme=night] .dr-body{background:#111B27}
body[data-theme=night] .muted,body[data-theme=night] .small.muted,body[data-theme=night] .facts span,body[data-theme=night] .tl-meta i,body[data-theme=night] .tl-type,body[data-theme=night] .perm-emp span{color:#9FB0C3}
body[data-theme=night] h1,body[data-theme=night] h2,body[data-theme=night] h3,body[data-theme=night] b,body[data-theme=night] .tl-text,body[data-theme=night] .tl-meta,body[data-theme=night] .facts div,body[data-theme=night] .perm-name,body[data-theme=night] .perm-emp,body[data-theme=night] .side button,body[data-theme=night] .dr-phone{color:#E3EAF2}
body[data-theme=night] .inp{background:#0F1925;border-color:#2C3E54;color:#E3EAF2}
body[data-theme=night] .t th{background:#1B2A3B;color:#C9D6E4}body[data-theme=night] .t td{border-color:#26364A}
body[data-theme=night] table.t tr:hover td,body[data-theme=night] table.t tr.sel td{background:#1C3048}
body[data-theme=night] .btn{background:#3B82C4}body[data-theme=night] .btn.sec{background:#1B2A3B;color:#CFE1F5;border:1px solid #2C3E54}
body[data-theme=night] .side button.on,body[data-theme=night] .tabs button.on,body[data-theme=night] .dr-tabs button.on,body[data-theme=night] .perm-emp.on,body[data-theme=night] .perm-op.on{background:#1C3A5C;color:#CFE6FF;border-color:#2F5F93}
body[data-theme=night] .side button:hover,body[data-theme=night] .tabs button:hover{background:#1A2B3E}
body[data-theme=night] .tabs button{border-color:#2C3E54;color:#C9D6E4}
body[data-theme=night] .notice{background:#2A2414;border-color:#5A4A1E;color:#F3E2B3}
body[data-theme=night] .notice.info{background:#132A42;border-color:#24496E;color:#CFE1F5}
body[data-theme=night] .qc-mark{background:#2A1C16;border-color:#5A3626}
body[data-theme=night] .tl-type,body[data-theme=night] .kv{background:#1B2A3B;border-color:#2C3E54;color:#C9D6E4}
/* theme picker */
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.th-card{all:unset;cursor:pointer;border:2px solid #E1E7EF;border-radius:12px;overflow:hidden;background:#fff}
.th-card.on{border-color:#3B82C4;box-shadow:0 0 0 3px #DDEBFA}
.th-prev{height:86px;display:grid;grid-template-columns:30% 1fr;gap:6px;padding:8px}
.th-prev i{border-radius:6px}.th-prev div{display:flex;flex-direction:column;gap:6px}
.th-name{padding:8px 10px;font-weight:600;color:#1B2733;font-size:14px}
body[data-theme=night] .tbl-wrap,body[data-theme=night] table.t,body[data-theme=night] .t td{background:#162231;color:#D5DEE8;border-color:#26364A}
body[data-theme=night] .t tr.click td{color:#D5DEE8}
body[data-theme=night] .tabs button{background:#162231}
body[data-theme=night] .modal-bg{background:rgba(0,0,0,.5)}
body[data-theme=night] .perm-row{border-color:#26364A}
.tl li.tl-attempt{border-inline-start-color:#C2410C}.tl li.tl-view{border-inline-start-color:#94A3B8;padding:6px 14px}
.tlk-attempt{background:#FFEDD5;color:#9A3412}.tlk-view{background:#F1F5F9;color:#475569}
button.kv{cursor:pointer;font:inherit;font-size:13px;color:#1B2733}button.kv:hover{border-color:#9CC2EA;background:#F0F5FC}button.kv.on{background:#E6F0FC;border-color:#3B82C4;color:#0F4C8A}
button.kv{cursor:pointer;font:inherit;font-size:13px;color:#1B2733}button.kv:hover{border-color:#9CC2EA;background:#F0F5FC}button.kv.on{background:#E6F0FC;border-color:#3B82C4;color:#0F4C8A}
.mic-btn{display:inline-flex;align-items:center;gap:6px;margin-top:6px;border:1px solid #D8E1EB;background:#fff;color:#0F4C8A;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer;align-self:flex-start}
.mic-btn:hover{background:#F0F5FC}
.mic-btn.on{background:#FDECEC;border-color:#E8A0A0;color:#B42318;animation:micPulse 1.2s infinite}
@keyframes micPulse{50%{box-shadow:0 0 0 6px rgba(180,35,24,.12)}}
.rank td.rk-good{background:#E7F6EC !important;color:#14532D}.rank td.rk-bad{background:#FDECEC !important;color:#7A1C1C}.rank td.rk-mid{background:#FFF8E6 !important;color:#6B4E0B}
.rk-badge{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:600}.rk-badge.rk-good{background:#DCF3E4;color:#14532D}.rk-badge.rk-bad{background:#FADADA;color:#7A1C1C}.rk-badge.rk-mid{background:#FCEFC7;color:#6B4E0B}
/* ===== full interface layouts per theme ===== */
/* ocean: a dark sidebar running the full height, content on a wide canvas */
body[data-theme=ocean] .wrap{max-width:none;padding:0}
body[data-theme=ocean] .layout{flex-wrap:nowrap;gap:0;align-items:stretch}
body[data-theme=ocean] .side{position:sticky;top:57px;height:calc(100vh - 57px);overflow-y:auto;max-width:240px;min-width:220px;border-radius:0;border:none;background:#0F2B4C;padding:16px 10px;gap:4px}
body[data-theme=ocean] .side button{color:#C9D9EC;padding:11px 14px}
body[data-theme=ocean] .side button:hover{background:#17406B;color:#fff}
body[data-theme=ocean] .side button.on{background:#2563A8;color:#fff;box-shadow:none}
body[data-theme=ocean] .content{padding:24px 28px 40px}
body[data-theme=ocean] .card{box-shadow:0 2px 8px rgba(15,43,76,.06);border-color:#E3ECF7}
body[data-theme=ocean] h1{font-size:26px;color:#0F2B4C}
/* sand: section pages as tabs across the top, centred reading width */
body[data-theme=sand] .wrap{max-width:1200px}
body[data-theme=sand] .layout{flex-direction:column;gap:18px;align-items:stretch}
body[data-theme=sand] .side{flex-direction:row;max-width:none;min-width:0;width:100%;overflow-x:auto;background:transparent;border:none;border-bottom:2px solid #E9DFCF;border-radius:0;padding:0;gap:2px}
body[data-theme=sand] .side button{white-space:nowrap;border-radius:10px 10px 0 0;padding:10px 16px;gap:8px}
body[data-theme=sand] .side button.on{background:#FFFDF9;box-shadow:inset 0 -3px 0 #E4872A;border:1px solid #E9DFCF;border-bottom-color:#FFFDF9;margin-bottom:-2px}
body[data-theme=sand] .content{flex:1 1 auto}
body[data-theme=sand] .card{border-top:3px solid #E9DFCF}
body[data-theme=sand] h1{font-family:'Noto Naskh Arabic','Amiri',Georgia,serif;font-size:28px;font-weight:700}
body[data-theme=sand] h2{font-family:'Noto Naskh Arabic','Amiri',Georgia,serif}
/* mint: compact, dense layout for long follow-up sessions */
body[data-theme=mint]{font-size:14px}
body[data-theme=mint] .wrap{padding:12px;max-width:1600px}
body[data-theme=mint] .layout{gap:12px}
body[data-theme=mint] .side{min-width:170px;max-width:200px;padding:6px;border-radius:8px}
body[data-theme=mint] .side button{padding:7px 10px;font-size:14px}
body[data-theme=mint] .content{gap:10px}
body[data-theme=mint] .card{padding:12px;border-radius:8px;box-shadow:none}
body[data-theme=mint] .t th,body[data-theme=mint] .t td{padding:6px 8px;font-size:13.5px}
body[data-theme=mint] .btn{padding:7px 12px;border-radius:7px}
body[data-theme=mint] .inp{padding:7px 9px}
body[data-theme=mint] h1{font-size:20px}body[data-theme=mint] h2{font-size:16px}
body[data-theme=mint] .kpi{padding:8px 10px}
body[data-theme=mint] .top{padding:6px 14px}
/* night: dark, floating rounded panels */
body[data-theme=night] .top{background:rgba(22,34,49,.85);backdrop-filter:blur(8px)}
body[data-theme=night] .wrap{padding:24px}
body[data-theme=night] .layout{gap:24px}
body[data-theme=night] .side{border-radius:18px;padding:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);position:sticky;top:80px}
body[data-theme=night] .card{border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:22px}
body[data-theme=night] .btn{border-radius:12px}
body[data-theme=night] .inp{border-radius:10px}
@media (max-width:800px){
  body[data-theme=ocean] .layout{flex-direction:column}
  body[data-theme=ocean] .side{position:static;height:auto;max-width:none;width:100%;flex-direction:row;overflow-x:auto;padding:6px}
  body[data-theme=ocean] .content{padding:14px}
  body[data-theme=night] .side{position:static}
}
/* theme picker: mini layout previews */
.th-prev{position:relative;height:96px;padding:0;display:block}
.th-prev .tp-top{position:absolute;top:0;left:0;right:0;height:14px}
.th-prev .tp-side{position:absolute;top:14px;right:0;bottom:0;width:28%}
.th-prev .tp-tabs{position:absolute;top:22px;left:10px;right:10px;height:8px;border-radius:3px}
.th-prev .tp-card{position:absolute;border-radius:5px}
body[data-theme=sand] .side,body[data-theme=sand] .content{flex:none}
table.rank{width:100%}
.unit-box{border:1px solid #F3D9A8;background:#FFFBF2;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}

/* ---------- drill-down numbers, upload choice ---------- */
td.drill,a.drill{cursor:pointer;color:#0F4C8A;text-decoration:underline dotted;text-underline-offset:3px}
td.drill:hover{background:#EEF5FD}
.up-mode{margin-bottom:12px}
.mod,.quick-mods button{position:relative;overflow:hidden}
.mod-art{position:absolute;inset-inline-end:-18px;bottom:-22px;width:130px;height:130px;color:#12355B;opacity:.06;pointer-events:none}
.quick-mods .mod-art{width:60px;height:60px;inset-inline-end:-10px;bottom:-14px}

/* ---------- night: glass cards, art per section, orange outline around clients ---------- */
body[data-theme=night]{background:#0B121C radial-gradient(1200px 600px at 100% -10%,rgba(228,135,42,.16),transparent 60%),radial-gradient(900px 600px at -10% 110%,rgba(59,130,196,.18),transparent 60%) fixed;color:#E3EAF2}
body[data-theme=night] .top{background:rgba(14,22,33,.7);border-color:rgba(255,255,255,.08)}
body[data-theme=night] .side,body[data-theme=night] .card,body[data-theme=night] .modal,body[data-theme=night] .kpi,body[data-theme=night] .kpis-sm div,body[data-theme=night] .step,body[data-theme=night] .mod,body[data-theme=night] .quick-mods button,body[data-theme=night] .act-form,body[data-theme=night] .tl li,body[data-theme=night] .dr-body .facts,body[data-theme=night] .perm-op,body[data-theme=night] .msel,body[data-theme=night] .cal,body[data-theme=night] .phones{background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)) !important;border:1px solid rgba(255,255,255,.10) !important;backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);color:#E3EAF2;box-shadow:0 10px 30px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06)}
body[data-theme=night] .modal,body[data-theme=night] .cal{background:rgba(18,28,41,.92) !important}
body[data-theme=night] .dr-top,body[data-theme=night] .dr-body{background:rgba(14,22,33,.96) !important;border-color:rgba(255,255,255,.08)}
body[data-theme=night] .mod-art{color:#E4872A;opacity:.16}
body[data-theme=night] .mod:hover,body[data-theme=night] .quick-mods button:hover{border-color:rgba(228,135,42,.6) !important}
body[data-theme=night] .mod-ic{background:rgba(228,135,42,.14)}
body[data-theme=night] .mod-ic svg,body[data-theme=night] .quick-mods svg{stroke:#F3B678}
body[data-theme=night] .tbl-wrap,body[data-theme=night] table.t,body[data-theme=night] .t td{background:transparent !important;border-color:rgba(255,255,255,.08)}
body[data-theme=night] .tbl-wrap{border-color:rgba(255,255,255,.1)}
body[data-theme=night] .t th{background:rgba(255,255,255,.06) !important;color:#C9D6E4;border-color:rgba(255,255,255,.08)}
body[data-theme=night] .t tr.tot td{background:rgba(255,255,255,.05) !important}
body[data-theme=night] table.t tr:hover td,body[data-theme=night] table.t tr.sel td{background:rgba(59,130,196,.16) !important}
body[data-theme=night] .seg{border-color:rgba(255,255,255,.14)}
body[data-theme=night] .seg button,body[data-theme=night] .tabs button,body[data-theme=night] .chipbtn,body[data-theme=night] .chip span,body[data-theme=night] .dp-btn,body[data-theme=night] .btn.sec{background:rgba(255,255,255,.05) !important;color:#D5E2EF !important;border-color:rgba(255,255,255,.14) !important}
body[data-theme=night] .seg button.on,body[data-theme=night] .tabs button.on,body[data-theme=night] .chip input:checked+span{background:rgba(228,135,42,.22) !important;color:#FFD9B3 !important;border-color:rgba(228,135,42,.55) !important}
body[data-theme=night] .seg button+button{border-color:rgba(255,255,255,.14)}
body[data-theme=night] .side button.on{background:rgba(228,135,42,.18) !important;color:#FFD9B3 !important;box-shadow:inset -3px 0 0 #E4872A}
body[data-theme=night] .drop,body[data-theme=night] code,body[data-theme=night] .thumb,body[data-theme=night] .kv,body[data-theme=night] .tl-type,body[data-theme=night] .fchip,body[data-theme=night] .pf-n{background:rgba(255,255,255,.06) !important;border-color:rgba(255,255,255,.14);color:#D5E2EF}
body[data-theme=night] .notice{background:rgba(228,135,42,.12) !important;border-color:rgba(228,135,42,.35);color:#F7DDBF}
body[data-theme=night] .notice.info{background:rgba(59,130,196,.14) !important;border-color:rgba(59,130,196,.35);color:#CFE1F5}
body[data-theme=night] [style*="background:#fff"],body[data-theme=night] [style*="background:#F5F9FE"],body[data-theme=night] [style*="background:#F7F9FC"],body[data-theme=night] [style*="background:#E9EEF5"]{background:rgba(255,255,255,.05) !important;color:#E3EAF2}
body[data-theme=night] [style*="background:#FDECEC"]{background:rgba(180,35,24,.16) !important}
body[data-theme=night] [style*="border-color:#9CC2EA"],body[data-theme=night] [style*="border-top:1px solid #EEF1F3"]{border-color:rgba(255,255,255,.1) !important}
body[data-theme=night] .unit-box,body[data-theme=night] .qc-mark{background:rgba(228,135,42,.08) !important;border-color:rgba(228,135,42,.35) !important}
body[data-theme=night] td.drill,body[data-theme=night] a.drill,body[data-theme=night] a{color:#8EC1F5}
body[data-theme=night] td.drill:hover{background:rgba(59,130,196,.18) !important}
/* each client row in the main CRM list: only an outer orange frame, everything inside keeps the theme */
@media (min-width:761px){
  body[data-theme=night] table.t.crm-main{border-collapse:separate !important;border-spacing:0 8px}
  body[data-theme=night] table.t.crm-main tr:not(:first-child) td{border:0 !important;background:rgba(255,255,255,.03) !important}
  body[data-theme=night] table.t.crm-main tr:not(:first-child){outline:1.5px solid #E4872A;outline-offset:-1px;border-radius:12px}
  body[data-theme=night] table.t.crm-main tr:not(:first-child) td:first-child{border-start-start-radius:12px;border-end-start-radius:12px}
  body[data-theme=night] table.t.crm-main tr:not(:first-child) td:last-child{border-start-end-radius:12px;border-end-end-radius:12px}
  body[data-theme=night] table.t.crm-main tr:not(:first-child):hover td{background:rgba(59,130,196,.14) !important}
}
@media (max-width:760px){
  body[data-theme=night] table.t.crm-main tr{background:rgba(255,255,255,.04) !important;border:1.5px solid #E4872A !important}
  body[data-theme=night] table.t.crm-main tr td,body[data-theme=night] table.t.crm-main tr:not(:first-child) td{border:0 !important;background:transparent !important}
}
body[data-theme=night] .tbl-wrap:has(table.crm-main){border:none;background:transparent !important}


.impbar{background:#B45309;color:#fff;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;position:sticky;top:0;z-index:6;font-size:14px}.impbar .btn{background:#fff;color:#7A3A06;border-color:#fff}

/* ===== profile photos (all layouts) ===== */
.av{display:inline-grid;place-items:center;border-radius:50%;background:#E6EDF6;color:#12355B;font-weight:700;overflow:hidden;flex:none;line-height:1;vertical-align:middle}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.who-cell{display:inline-flex;align-items:center;gap:10px}
.photo-box{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.photo-box .btn{display:inline-flex;align-items:center;gap:6px}

/* ===== modern layout (default + green): fixed side menu, top bar, calm tokens ===== */
body.vc{--bg:#F2F4F7;--surface:#fff;--surface-2:#F7F9FB;--ink:#16212B;--muted:#5B6774;--faint:#8A95A1;--line:#DFE5EC;--line-strong:#C9D2DC;--accent:#12355B;--accent-ink:#fff;--accent-soft:#E6EDF6;--stripe:#E4872A;
  --ok:#1E7A4C;--ok-soft:#E3F3EA;--warn:#A8660A;--warn-soft:#FBF0DC;--bad:#B8352A;--bad-soft:#FBE6E3;--cold:#2A74AD;--cold-soft:#E3EFF8;
  background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
body.vc.vc-orange{--bg:#F7F4F0;--surface-2:#FBF8F4;--ink:#221A12;--muted:#6B5E52;--faint:#9A8C7F;--line:#E8E0D6;--line-strong:#D6CABC;--accent:#C2570F;--accent-soft:#FCEDE0;--stripe:#E4872A}
body.vc a{color:var(--accent)}
body.vc h1{font-size:22px;line-height:1.3}body.vc h2{font-size:17px;line-height:1.3}body.vc h3{font-size:15px}
body.vc .muted{color:var(--muted)}body.vc .small{font-size:12.5px}
body.vc .grow{flex:1;min-width:0}
/* shell */
body.vc .shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
body.vc .sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;z-index:30;min-width:0}
body.vc .sidebar .brand{display:flex;gap:10px;align-items:center;padding:16px 16px 10px;font-weight:400;font-size:inherit}
body.vc .sidebar .brand .logo-img{height:38px;width:auto}
body.vc .sidebar .brand b{display:block;font-size:15px}
body.vc .sidebar .brand span{font-size:11.5px;color:var(--muted)}
body.vc .nav{flex:1;overflow-y:auto;padding:6px 10px 16px;display:flex;flex-direction:column;gap:2px}
body.vc .nav-i{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border-radius:8px;color:var(--ink);font-size:13.5px;cursor:pointer;line-height:1.4}
body.vc .nav-i:hover{background:var(--surface-2)}
body.vc .nav-i:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.vc .nav-i .ic{flex:none;color:var(--muted)}
body.vc .nav-i>span:not(.count):not(.chev){flex:1;min-width:0}
body.vc .nav-i.on{background:var(--accent-soft);color:var(--accent);font-weight:600}
body.vc .nav-i.on .ic{color:var(--accent)}
body.vc .mod-i.open{font-weight:600;color:var(--ink)}
body.vc .mod-i.open .ic{color:var(--accent)}
body.vc .chev{display:inline-flex;color:var(--faint);transition:transform .15s}
body.vc .mod-i.open .chev{transform:rotate(-90deg)}
[dir=ltr] body.vc .chev,body.vc[dir=ltr] .chev{transform:scaleX(-1)}
html[dir=ltr] body.vc .chev{transform:scaleX(-1)}html[dir=ltr] body.vc .mod-i.open .chev{transform:rotate(-90deg)}
body.vc .nav-sub{margin:2px 0 6px;margin-inline-start:19px;padding-inline-start:8px;border-inline-start:1px solid var(--line);display:flex;flex-direction:column;gap:1px}
body.vc .nav-sub .nav-i{font-size:13px;padding:6px 10px}
body.vc .count{margin-inline-start:auto;font-size:11px;background:var(--bad-soft);color:var(--bad);padding:0 7px;border-radius:99px;font-weight:600;line-height:1.7}
body.vc .side-foot{all:unset;box-sizing:border-box;cursor:pointer;border-top:1px solid var(--line);padding:10px 14px;display:flex;gap:10px;align-items:center;font-size:13px;color:var(--ink)}
body.vc .side-foot:hover{background:var(--surface-2)}
body.vc .side-foot b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.vc .side-foot small{display:block;color:var(--muted);font-size:11.5px}
body.vc .side-foot .ic{color:var(--faint)}
body.vc .scrim{display:none}
body.vc .main{display:flex;flex-direction:column;min-width:0}
body.vc .top-stack{position:sticky;top:0;z-index:20}
body.vc .topbar{position:relative;height:58px;display:flex;align-items:center;gap:8px;padding:0 20px;background:var(--surface);border-bottom:1px solid var(--line);flex:none}
body.vc .topbar:after{content:"";position:absolute;inset-inline:0;bottom:-1px;height:3px;background:var(--stripe)}
body.vc .impbar{position:static}
body.vc .sec-pill{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:14px;padding:5px 12px;border-radius:99px;background:var(--accent-soft);color:var(--accent);white-space:nowrap}
body.vc .who{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:3px;padding-inline-end:10px;border-radius:99px;font-size:13px;color:var(--muted)}
body.vc .who:hover{background:var(--surface-2)}
body.vc .who:focus-visible{outline:2px solid var(--accent)}
body.vc .notif-btn{position:relative}
body.vc .nb{position:absolute;top:1px;inset-inline-end:0;min-width:17px;height:17px;border-radius:9px;background:var(--bad);color:#fff;font-size:10.5px;font-weight:700;display:grid;place-items:center;padding:0 4px;line-height:1}
body.vc .btn.menu-btn{display:none}
body.vc .content{flex:1 1 auto;display:block;padding:22px 24px 60px;min-width:0}
body.vc .page{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
body.vc .av{background:var(--accent-soft);color:var(--accent)}
/* components */
body.vc .card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;box-shadow:none}
body.vc .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 14px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);font-size:13.5px;font-weight:600;line-height:1.3;text-decoration:none}
body.vc .btn:hover{background:var(--accent);filter:brightness(1.08)}
body.vc .btn.sec{background:var(--surface);color:var(--ink);border-color:var(--line-strong);font-weight:500}
body.vc .btn.sec:hover{background:var(--surface-2);filter:none}
body.vc .btn.green{background:var(--ok);border-color:var(--ok);color:#fff}
body.vc .btn.red{background:var(--bad);border-color:var(--bad);color:#fff}
body.vc .btn.ghost{background:transparent;border-color:transparent;color:var(--ink);font-weight:500}
body.vc .btn.ghost:hover{background:var(--surface-2);filter:none}
body.vc .btn.icon{width:36px;padding:0}
body.vc .btn.sm{min-height:30px;padding:0 10px;font-size:12.5px}
body.vc .btn.sm.icon{width:30px}
body.vc .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.vc .inp{min-height:36px;padding:6px 10px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-size:13.5px}
body.vc textarea.inp{padding:8px 10px}
body.vc .inp:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
body.vc label.f{font-size:12.5px;color:var(--muted);font-weight:500}
body.vc .chk input[type=checkbox],body.vc .chk input[type=radio],body.vc .pchk{accent-color:var(--accent)}
body.vc .tbl-wrap{border:1px solid var(--line);border-radius:10px;background:var(--surface)}
body.vc table.t th,body.vc .t th{font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);padding:9px 12px;border-bottom:1px solid var(--line)}
body.vc .t td{font-size:13.5px;padding:9px 12px;border-bottom:1px solid var(--line)}
body.vc .t tr:last-child td{border-bottom:0}
body.vc table.t tr:hover td,body.vc .t tr.click:hover td{background:var(--surface-2)}
body.vc table.crm tr.sel td,body.vc table.t tr.sel td{background:var(--accent-soft)}
body.vc .t tr.tot td{background:var(--surface-2);border-top:1px solid var(--line-strong)}
body.vc .pill{font-size:11.5px;padding:1px 8px;line-height:1.7}
body.vc .p-ok{background:var(--ok-soft);color:var(--ok)}body.vc .p-warn{background:var(--warn-soft);color:var(--warn)}body.vc .p-bad{background:var(--bad-soft);color:var(--bad)}body.vc .p-CRM{background:var(--accent-soft);color:var(--accent)}
body.vc .kpi{background:var(--surface);border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:10px;padding:14px 16px;font-size:12.5px;color:var(--muted)}
body.vc .kpi b{font-size:21px;color:var(--ink);font-variant-numeric:tabular-nums}
body.vc .kpis-sm div{border-color:var(--line);border-inline-start:3px solid var(--line-strong)}
body.vc .notice{background:var(--warn-soft);color:#6B4309;border:1px solid #F1DDB4;border-radius:10px}
body.vc .notice.info{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 18%,transparent)}
body.vc .tabs button{border-color:var(--line-strong);color:var(--ink)}
body.vc .tabs button:hover{background:var(--surface-2)}
body.vc .tabs button.on,body.vc .perm-op.on,body.vc button.kv.on{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 35%,transparent);color:var(--accent);font-weight:600}
body.vc .seg{border-color:var(--line-strong)}
body.vc .seg button.on,body.vc .seg label:has(input:checked){background:var(--accent-soft);color:var(--accent);font-weight:600}
body.vc .chip span{border-color:var(--line-strong)}
body.vc .chip input:checked+span,body.vc .cal-d.on,body.vc .fchip button{background:var(--accent);border-color:var(--accent);color:#fff}
body.vc .fchip,body.vc .pf-n{background:var(--accent-soft);color:var(--accent)}
body.vc .msel summary b,body.vc .linkbtn,body.vc td.drill,body.vc a.drill,body.vc .mic-btn,body.vc .dp-btn{color:var(--accent)}
body.vc .perm-emp.on{background:var(--accent-soft);color:var(--accent);box-shadow:inset -3px 0 0 var(--accent)}
body.vc .dr-tabs button:hover{color:var(--accent);background:var(--surface-2)}
body.vc .dr-tabs button.on{color:var(--accent);border-bottom-color:var(--accent);background:var(--accent-soft)}
body.vc .dr-top{border-color:var(--line)}
body.vc .dr-body{background:var(--bg)}
body.vc .dr-body .facts,body.vc .tl li{border-color:var(--line)}
body.vc .act-form{border-color:var(--line)}
body.vc .modal-bg{background:rgba(12,20,30,.45)}
body.vc .modal{border-radius:12px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
body.vc .modal.drawer{border-radius:0;padding:0}
body.vc .toast{left:50%;right:auto;transform:translateX(-50%);bottom:18px;border-radius:9px;background:var(--ink);font-size:13.5px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
body.vc .th-card.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
body.vc .quick-mods button{border-color:var(--line)}
body.vc .quick-mods button:hover{border-color:var(--line-strong);background:var(--surface-2)}
/* home: section cards with a coloured top edge */
body.vc .grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
body.vc .mod{--mc:var(--accent);background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--mc);border-radius:12px;padding:20px 22px;gap:8px}
body.vc .mod:hover{border-color:var(--line-strong);border-top-color:var(--mc);box-shadow:0 6px 18px rgba(16,33,48,.07)}
body.vc .mod .mod-art{display:none}
body.vc .mod-ic{width:46px;height:46px;border-radius:11px;background:color-mix(in srgb,var(--mc) 12%,#fff)}
body.vc .mod-ic svg{stroke:var(--mc)}
body.vc .mod b{font-size:19px !important}
body.vc .mod .muted{font-size:13px}
body.vc .mod[data-mod=me]{--mc:#12355B}body.vc .mod[data-mod=mk]{--mc:#B0731A}body.vc .mod[data-mod=crm]{--mc:#2F5D8A}body.vc .mod[data-mod=vi]{--mc:#3F7A2E}body.vc .mod[data-mod=un]{--mc:#7A3F78}
body.vc .mod[data-mod=sl]{--mc:#0D6B5C}body.vc .mod[data-mod=qc]{--mc:#B8352A}body.vc .mod[data-mod=rp]{--mc:#2A74AD}body.vc .mod[data-mod=data]{--mc:#5D6A66}body.vc .mod[data-mod=ad]{--mc:#E4872A}
/* sign-in */
body.vc .login .card{padding:26px 24px;border-radius:12px;box-shadow:0 1px 2px rgba(20,35,50,.05),0 4px 16px rgba(20,35,50,.05)}
body.vc .login .btn{width:100%;min-height:40px}
/* phones and small tablets: the side menu slides in */
@media (max-width:860px){
  body.vc .shell{grid-template-columns:1fr}
  body.vc .sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:280px;height:100%;transform:translateX(100%);transition:transform .2s;box-shadow:0 0 40px rgba(0,0,0,.2);z-index:60}
  html[dir=ltr] body.vc .sidebar{transform:translateX(-100%)}
  body.vc .sidebar.open,html[dir=ltr] body.vc .sidebar.open{transform:none}
  body.vc .scrim.open{display:block;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:55}
  body.vc .btn.menu-btn{display:inline-flex}
  body.vc .topbar{padding:0 10px;gap:4px}
  body.vc .content{padding:14px 12px 80px}
  body.vc .hidden-sm{display:none !important}
  body.vc .sec-pill{font-size:13px;padding:4px 10px;max-width:46vw;overflow:hidden}
  body.vc .sec-pill span{overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:760px){
  body.vc .btn{min-height:40px;padding:0 14px}
  body.vc .btn.sm{min-height:34px}
  body.vc .inp{font-size:16px;min-height:40px}
  body.vc .card{padding:14px}
  body.vc .modal{padding:16px;border-radius:0}
  body.vc .kpi{padding:10px 12px}body.vc .kpi b{font-size:18px}
  body.vc .grid-cards{grid-template-columns:1fr}
  body.vc .toast{left:12px;right:12px;transform:none;bottom:12px}
}

/* quality case: recipients list */
div.f{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#5B6770}
.tk-to{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px 12px;max-height:240px;overflow:auto;border:1px solid #D5DCE0;border-radius:8px;padding:8px 10px;background:#fff;color:#17232B}
.tk-to .chk{padding:4px 2px}
.tk-to .chk span{display:flex;flex-direction:column;line-height:1.3}
.tk-to small{color:#5B6770;font-size:12px}
body.vc div.f{font-size:12.5px;color:var(--muted);font-weight:500}
body.vc .tk-to{border-color:var(--line-strong);background:var(--surface);color:var(--ink);font-weight:400}
body.vc .tk-to small{color:var(--muted)}
.th-prev{overflow:hidden}

/* ===== professional interface (theme "pro"): dark grouped side menu, search bar, stages board, "my day" ===== */
body.vc.pro{--bg:#F4F6F9;--accent:#12355B;--accent-soft:#E6EDF6;--stripe:#E4872A;--cta:#C2570F}
body.pro .sidebar{background:var(--side,#0F2742);border-inline-end:0;color:#fff}
body.pro .sidebar .brand b{color:#fff}body.pro .sidebar .brand span{color:#93A7C0}
body.pro .sidebar .brand .logo-img{content:url(/brand/mark-white.png)}
body.pro .nav-title{font-size:11px;color:#7F93AD;padding:14px 12px 4px;font-weight:600}
body.pro .nav-i{color:#C9D6E6}
body.pro .nav-i .ic{color:#8EA3BD}
body.pro .nav-i:hover{background:rgba(255,255,255,.07);color:#fff}
body.pro .nav-i.on{background:rgba(255,255,255,.12);color:#fff}
body.pro .nav-i.on .ic,body.pro .mod-i.open .ic{color:#FFB877}
body.pro .mod-i.open{color:#fff}
body.pro .nav-sub{border-inline-start-color:#2A4B74}
body.pro .count{background:rgba(228,135,42,.22);color:#FFD3AE}
body.pro .side-foot{border-top-color:#21406A;color:#fff}body.pro .side-foot:hover{background:rgba(255,255,255,.06)}
body.pro .side-foot small{color:#93A7C0}body.pro .side-foot .ic{color:#93A7C0}
body.pro .topbar{gap:12px;height:62px}
body.pro .crumb{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}
body.pro .crumb b{color:var(--ink)}
.linkish{all:unset;cursor:pointer;color:var(--accent,#12355B);font-weight:500}
.linkish:hover{text-decoration:underline}
body.pro .crumb .linkish{color:var(--muted)}
body.pro .gsearch{flex:1 1 300px;max-width:560px;display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-2);color:var(--faint);margin-inline-start:8px}
body.pro .gsearch:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);background:#fff}
body.pro .gsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:13.5px;outline:none;color:var(--ink)}
body.pro .gsearch kbd{font:inherit;font-size:11px;border:1px solid var(--line-strong);border-radius:5px;padding:0 6px;background:#fff;color:var(--muted)}
body.pro .topbar>.btn:not(.ghost){background:var(--cta);border-color:var(--cta);margin-inline-start:auto}
body.pro .topbar .who{padding:0}
body.pro .content .tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
body.pro .content .tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border-radius:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);font-size:12.5px;color:var(--muted);text-align:start}
body.pro .content .tabs button b{font-size:22px;color:var(--ink)}
body.pro .content .tabs button.on{border-color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent);background:var(--surface);color:var(--accent)}
body.pro .seg button{display:inline-flex;align-items:center;gap:6px}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
body.vc .kpi-btn{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:12px;padding:14px 16px;font-size:12.5px;color:var(--muted)}
body.vc .kpi-btn b{font-size:26px;color:var(--ink)}
body.vc .kpi-btn:hover{border-color:var(--line-strong)}
body.vc .kpi-btn.k-bad{border-inline-start-color:var(--bad)}body.vc .kpi-btn.k-bad b{color:var(--bad)}
body.vc .kpi-btn.k-warn{border-inline-start-color:#E4872A}body.vc .kpi-btn.k-warn b{color:#C2570F}
body.vc .kpi-btn:focus-visible{outline:2px solid var(--accent)}
.day-grid{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.day-list{flex:999 1 520px;min-width:0}
.day-side{flex:1 1 300px;max-width:420px;display:flex;flex-direction:column;gap:14px;min-width:0}
.day-g{font-size:12px;font-weight:700;color:var(--muted,#5B6774);padding:14px 0 6px}
.day-g.g-bad{color:#B42318}.day-g.g-warn{color:#C2570F}
.dayrow{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line,#E1E7EE)}
.dr-time{width:56px;text-align:center;display:flex;flex-direction:column;line-height:1.3}
.dr-time b{font-size:15px}.dr-time span{font-size:11px;color:var(--faint,#8A95A1)}
.dr-time.late b{color:#B42318}
.dr-main{all:unset;cursor:pointer;flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}
.dr-main .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dr-acts{display:flex;gap:6px;flex-wrap:wrap}
.dr-acts a.btn{text-decoration:none}
.board-wrap{overflow-x:auto;padding-bottom:8px}
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,1fr);gap:12px;min-width:min-content}
.bcol{background:#EAEEF3;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.bcol-h{display:flex;align-items:center;gap:8px;padding:2px 4px 4px}
.bcard{all:unset;box-sizing:border-box;cursor:pointer;background:#fff;border:1px solid var(--line,#E1E7EE);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.bcard:hover{border-color:var(--line-strong,#C9D2DC);box-shadow:0 2px 8px rgba(16,33,48,.06)}
.bcard.late{border-inline-start:3px solid #B42318}
.bcard:focus-visible{outline:2px solid var(--accent,#12355B)}
.bmore{all:unset;cursor:pointer;text-align:center;border:1px dashed #C6CED8;border-radius:8px;padding:6px;font-size:12.5px;color:#5B6774}
.tabbar{display:none}
@media (max-width:760px){
  body.pro .tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;bottom:0;inset-inline:0;z-index:40;background:#fff;border-top:1px solid var(--line);padding:4px 4px calc(8px + env(safe-area-inset-bottom))}
  body.pro .tb{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:48px;justify-content:center;color:var(--faint);font-size:11px}
  body.pro .tb.on{color:var(--accent);font-weight:700}
  body.pro .tb-add{background:var(--cta);color:#fff;border-radius:14px;margin:2px 6px}
  body.pro .content{padding-bottom:96px}
  body.pro .crumb{display:none}
  body.pro .gsearch{margin:0}
  body.pro .content .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.pro .toast{bottom:80px}
}
.editbar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:70;background:#7A2E0E;color:#fff;border-radius:12px;padding:8px 10px 8px 16px;display:flex;align-items:center;gap:12px;font-size:13.5px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:94vw}
.editbar .btn{background:#fff !important;color:#7A2E0E !important;border-color:#fff !important}
.th-wrap{display:flex;flex-direction:column;gap:6px}
.th-wrap .linkish{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;padding:2px 4px}
.day-side .card>.row[style*="nowrap"]{flex-wrap:wrap !important;gap:4px 8px}
.day-side .card>.row[style*="nowrap"]>span:last-child{font-size:11.5px;color:var(--faint,#8A95A1)}

/* ===== side menu only inside a section ===== */
body.vc .shell.no-side{grid-template-columns:minmax(0,1fr)}
body.vc .no-side .btn.menu-btn{display:none !important}
body.vc .nav-back{color:var(--muted);font-size:13px}
body.vc .nav-modt{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--ink);padding:10px 10px 6px}
body.pro .nav-modt{color:#fff}body.pro .nav-back{color:#93A7C0}
body.vc .nav-modt .ic{color:var(--accent)}body.pro .nav-modt .ic{color:#FFB877}

/* ===== comments: hair-thin separators between the dates, the comment and the stage ===== */
.tl{--sep:#E9EDF2}
body.vc .tl{--sep:var(--line)}
body[data-theme=night] .tl{--sep:rgba(255,255,255,.08)}
body[data-theme=ocean] .tl{--sep:#E2E9F0}body[data-theme=sand] .tl{--sep:#ECE4D8}body[data-theme=mint] .tl{--sep:#DDEBE5}
.tl li.tl-act .tl-text{border-top:1px solid var(--sep);border-bottom:1px solid var(--sep);padding:7px 0;margin:6px 0}
.tl li.tl-act .tl-stage{margin-top:4px}

/* ===== personal dark mode (modern interfaces) ===== */
body.vc.dark{--bg:#0F1720;--surface:#17212B;--surface-2:#1D2935;--ink:#E6EDF3;--muted:#A3B1BF;--faint:#7C8A99;--line:#273544;--line-strong:#36485C;--accent:#8DB8EC;--accent-ink:#0F1720;--accent-soft:#1E3248;--stripe:#E4872A;
  --ok:#5CC98E;--ok-soft:#163626;--warn:#E8B04B;--warn-soft:#3A2E14;--bad:#F08A80;--bad-soft:#3C1E1C;--cold:#7DB6E6;--cold-soft:#17304A;--cta:#D9692A;color-scheme:dark}
body.vc.dark.vc-orange{--accent:#F2A365;--accent-soft:#3A2717}
body.vc.dark .modal,body.vc.dark .drawer,body.vc.dark .dr-top,body.vc.dark .tabbar,body.vc.dark .bcard,body.vc.dark .sidebar:not(.x),body.vc.dark .topbar{background:var(--surface);color:var(--ink)}
body.vc.dark.pro .sidebar{background:#0B1622}
body.vc.dark .bcol{background:#121C26}
body.vc.dark .notice{color:#F3D9A4;border-color:#4A3B1C}
body.vc.dark .notice.info{color:var(--accent)}
body.vc.dark .tl li,body.vc.dark .facts,body.vc.dark .li{border-color:var(--line)}
body.vc.dark .muted,body.vc.dark .small.muted{color:var(--muted)}
body.vc.dark .gsearch{background:var(--surface-2)}body.vc.dark .gsearch:focus-within{background:var(--surface)}
body.vc.dark .gsearch kbd{background:var(--surface);border-color:var(--line-strong)}
body.vc.dark .p-gray,body.vc.dark .chip span,body.vc.dark .seg,body.vc.dark .tabs button{background:var(--surface-2);color:var(--ink);border-color:var(--line-strong)}
body.vc.dark .tk-to,body.vc.dark .kpi,body.vc.dark .kpi-btn,body.vc.dark .mod,body.vc.dark .card,body.vc.dark .tbl-wrap{background:var(--surface)}
body.vc.dark .mod-ic{background:color-mix(in srgb,var(--mc) 25%,#17212B)}
body.vc.dark .av{background:var(--accent-soft);color:var(--accent)}
body.vc.dark img.logo-img{filter:brightness(1.1)}
body.vc.dark .toast{background:#E6EDF3;color:#0F1720}
body.vc.dark .day-g.g-bad,body.vc.dark .dr-time.late b{color:var(--bad)}
.st-pend{background:repeating-linear-gradient(45deg,#F2C94C,#F2C94C 6px,#FBE9B0 6px,#FBE9B0 12px);color:#17232B}
/* column chooser + page permissions button */
.colsbar{display:inline-block;position:relative;margin:4px 0 6px;font-size:13px}
.colsbar>summary{cursor:pointer;list-style:none;display:inline-flex;gap:6px;align-items:center;padding:4px 10px;border:1px solid var(--line,#d0d5dd);border-radius:8px;background:var(--card,#fff)}
.colsbar>summary::-webkit-details-marker{display:none}
.colsbar-list{position:absolute;z-index:30;inset-inline-start:0;top:calc(100% + 4px);background:var(--card,#fff);border:1px solid var(--line,#d0d5dd);border-radius:10px;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:340px;overflow:auto;min-width:220px;display:flex;flex-direction:column;gap:4px}
.colsbar-list label{display:flex;gap:6px;align-items:center;white-space:nowrap}
body.dark .colsbar>summary,body.dark .colsbar-list{background:#1c2230;border-color:#2c3446}
.pagePermBtn{float:inline-end;margin-bottom:6px}
.linkish.bad{color:#B42318;font-weight:700}

/* export limits by role */
body.noxl [data-act=xlsxTable],body.noxl [data-act=repX],body.noxl [data-act=doExport],body.noxl [data-act=crmExport]{display:none!important}
body.nopdf [data-act=pdfTable],body.nopdf [data-act=shareTable],body.nopdf [data-act=repPdf],body.nopdf [data-act=repShare],body.nopdf [data-act=distPdf],body.nopdf [data-act=distShare],body.nopdf [data-act=dupPdf],body.nopdf [data-act=dupShare],body.nopdf [data-act=dupAll],body.nopdf [data-act=tkPdf],body.nopdf [data-act=tkShare]{display:none!important}

/* accounting side menu: the open card's pages, indented under it */
.hub-sub{margin:2px 0 6px;padding-inline-start:14px;border-inline-start:2px solid #E3E8EE;margin-inline-start:14px}
.hub-sub .nav-i,.hub-sub button{font-size:13px;padding-top:6px;padding-bottom:6px}
/* commissions / payroll settings */
.cm-tabs{margin:0 0 12px;flex-wrap:wrap}
.cm-set .cm-pane{display:block}.cm-set .cm-pane[hidden]{display:none}
.cm-sec{background:#fff;border:1px solid #E3E8EE;border-radius:12px;padding:16px;margin-bottom:12px}
.cm-sec h3{font-size:15px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.cm-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#12355B;color:#fff;font-size:13px}
.cm-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.cm-choice{display:flex;flex-direction:column;gap:4px;border:1.5px solid #E3E8EE;border-radius:10px;padding:12px;cursor:pointer;position:relative}
.cm-choice input{position:absolute;opacity:0}
.cm-choice span{font-size:12.5px;color:#5b6676}
.cm-choice.on{border-color:#12355B;background:#F2F6FA;box-shadow:0 0 0 1px #12355B inset}
.cm-choice:focus-within{outline:2px solid #E8892B;outline-offset:2px}
.cm-plan{border:1px solid #E3E8EE;border-radius:10px;padding:12px;margin:10px 0;background:#FBFCFD}
.cm-sub{margin-top:12px;padding-top:10px;border-top:1px dashed #E3E8EE}
.cm-sub>b{display:block;margin-bottom:6px;font-size:14px}
.cm-checks{display:flex;flex-wrap:wrap;gap:8px 18px}
.cm-save{position:sticky;bottom:0;background:linear-gradient(transparent,#F2F4F7 30%);padding:12px 0 4px;z-index:2}
body.dark .cm-sec,body.dark .cm-plan{background:#17202b;border-color:#2a3542}body.dark .cm-choice{border-color:#2a3542}body.dark .cm-choice.on{background:#1d2a39;border-color:#7fa7d6;box-shadow:0 0 0 1px #7fa7d6 inset}body.dark .cm-choice span{color:#9aa7b6}
