﻿/* =====================================================================
   Phone directory — the approved prototype's stylesheet, carried over as-is.
   Only additions at the end: classes that replace the prototype's few inline
   style attributes (blocked by the strict Content-Security-Policy).
   ===================================================================== */

/* The Tajawal font, served locally — no connection to any outside server */
/* Tajawal — served from wwwroot/fonts */
@font-face{font-family:"Tajawal";font-weight:400;font-display:swap;src:url("../fonts/Tajawal-Regular.woff") format("woff")}
@font-face{font-family:"Tajawal";font-weight:500;font-display:swap;src:url("../fonts/Tajawal-Medium.woff") format("woff")}
@font-face{font-family:"Tajawal";font-weight:600 900;font-display:swap;src:url("../fonts/Tajawal-Bold.woff") format("woff")}
:root{
  --pri:#449E60; --pri-d:#2F7A49; --pri-w:#EAF5EE; --pri-l:#6CC08A;
  --sea:#17383A; --sea-2:#21504C;
  --bg:#F3F6F4; --surf:#FFFFFF; --surf2:#F8FAF9; --line:#E2E8E4;
  --ink:#22302A; --ink2:#55665D; --ink3:#87968E;
  --gold:#B98A22; --gold-w:#FBF3E1; --bad:#C0453F; --bad-w:#FBEAEA;
  --cam:#E07A1F; --cam-w:#FDEFE2;
  --r:14px; --r-sm:9px;
  --sh:0 1px 2px rgba(23,56,58,.05),0 8px 28px rgba(23,56,58,.07);
}
html[data-mode="dark"]{
  --pri:#449E60; --pri-d:#5CB47A; --pri-w:#2A4A3C; --pri-l:#5CB47A;
  --sea:#17383A; --sea-2:#21504C;
  --bg:#192D2E; --surf:#233C3D; --surf2:#1E3334; --line:#31504F;
  --ink:#E4E9E7; --ink2:#AFC0BB; --ink3:#7E948E;
  --gold:#D9AE4C; --gold-w:#3A3423; --bad:#E36C66; --bad-w:#42292A;
  --cam:#F0913A; --cam-w:#43301E;
  --sh:0 1px 2px rgba(0,0,0,.3),0 8px 28px rgba(0,0,0,.25);
  color-scheme:dark;
}
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{overflow-x:clip}
/* the scroll margin is on the targets themselves, not on the whole page — scroll-padding on the page made the browser
   move the page with every letter typed, to show the fixed search field in the header */
#dirAnchor,.box{scroll-margin-top:calc(80px + env(safe-area-inset-top,0px))}
*,*::before,*::after{box-sizing:inherit;margin:0;padding:0}
body{overflow-x:clip;min-height:100vh;font-family:Tajawal,"Segoe UI",Tahoma,sans-serif;background:var(--bg);color:var(--ink);font-size:14.5px;line-height:1.6;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
:focus-visible{outline:2px solid var(--pri);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
svg{flex:none}
/* numbers: left-to-right inside, aligned right in their block like the rest of the Arabic text */
.num{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;text-align:right}
/* scroll bars */
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:9px}
::-webkit-scrollbar-track{background:transparent}
html{scrollbar-color:var(--line) transparent}
.modal .mc{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.noscroll{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}
.noscroll::-webkit-scrollbar{display:none}

/* ═════ The top bar ═════ */
.hdr{position:sticky;top:0;z-index:30;background:var(--surf);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px)}
.hdr-in{max-width:none;margin:0;height:68px;display:flex;align-items:center;gap:22px;padding:0 24px}
.brand{display:flex;align-items:center;gap:11px;flex:none;cursor:pointer}
.brand img{width:63px;height:auto;display:block}
.brand b{display:block;font-size:17px;font-weight:800;line-height:1.2}
.brand span{display:block;font-size:11.5px;color:var(--ink3)}
.tabs{display:flex;gap:4px;align-self:stretch}
.tabs button{position:relative;padding:0 14px;font-size:14.5px;color:var(--ink2);font-weight:500;display:flex;align-items:center;gap:8px}
.tabs button:hover{color:var(--ink)}
.tabs button.on{color:var(--pri-d);font-weight:700}
.tabs button.on::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--pri)}
.tabs .adm{color:var(--gold)}
.hsp{flex:1}
.hsearch{position:relative;width:min(340px,30vw)}
/* the colour of a hotline in print: four dots, the chosen one ringed */
.hcol{display:inline-flex;gap:7px;align-items:center}
.hcol button{width:18px;height:18px;border-radius:50%;border:2px solid var(--surf);box-shadow:0 0 0 1px var(--line);cursor:pointer}
.hcol button.on{box-shadow:0 0 0 2px var(--ink)}
.hcol button:disabled{opacity:.3;cursor:not-allowed}
.hcol .hc0{background:#1F5A3A}.hcol .hc1{background:#B83A33}.hcol .hc2{background:#C8671B}.hcol .hc3{background:#2C5C8F}
/* the fixed number beside the search (every page, every region) */
.hfix{display:inline-flex;align-items:center;gap:8px;height:40px;padding:3px 14px 0;box-sizing:border-box;border-radius:30px;background:var(--pri-w);border:1px solid var(--line);color:var(--pri-d);white-space:nowrap;min-width:0;flex:0 1 auto}
.hfix svg{flex:none;display:block;transform:translateY(-3px)}
.hfix .nm,.hfix b{line-height:1}
.hfix .nm{font-size:12.5px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis}
.hfix b{font-size:16px;font-weight:800;letter-spacing:.5px;color:var(--pri-d)}
html[data-mode="dark"] .hfix,html[data-mode="dark"] .hfix b{color:var(--ink)}
@media (max-width:1250px){.hfix .nm{max-width:150px}}
@media (max-width:1000px){.hfix .nm{display:none}}
@media (max-width:860px){.hfix{order:4;height:34px;padding:0 11px}.hfix b{font-size:14.5px}}
.hsearch input{width:100%;height:40px;border-radius:30px;border:1px solid var(--line);background:var(--surf2);padding:0 38px 0 34px;font-size:13.5px;color:var(--ink)}
.hsearch input::placeholder{color:var(--ink3)}
.hsearch input:focus{outline:none;border-color:var(--pri);background:var(--surf);box-shadow:0 0 0 3px var(--pri-w)}
.hsearch .ic{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--ink3);pointer-events:none}
.hsearch .clr{position:absolute;left:7px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;color:var(--ink3);display:none;place-items:center}
.hsearch input:not(:placeholder-shown) ~ .clr{display:grid}
.ib{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--ink2);flex:none}
.ib:hover{background:var(--surf2);color:var(--pri)}
.mode-ic .ic-sun{display:none}
html[data-mode="dark"] .mode-ic .ic-moon{display:none}
html[data-mode="dark"] .mode-ic .ic-sun{display:block}
.login{height:38px;padding:0 14px;border-radius:30px;border:1px solid var(--line);display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink2);flex:none}
.login:hover{border-color:var(--pri);color:var(--pri-d)}
.login.on{background:var(--gold-w);border-color:transparent;color:var(--gold);font-weight:700}
.proto{font-size:11px;color:var(--gold);border:1px dashed var(--gold);border-radius:20px;padding:0 9px;flex:none}

/* no automatic "scroll anchoring": redrawing the list while typing used to shift the page */
html,body{overflow-anchor:none}
.page{max-width:none;margin:0;padding:22px 24px 34px}   /* full width on large screens */
/* no automatic "scroll anchoring": redrawing the list while typing used to move the page */
html,body{overflow-anchor:none}

/* ═════ General ═════ */
.box{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.box-h{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:16px 20px 0}
.box-h h3{font-size:16px;font-weight:700}
.box-h small{font-size:12px;color:var(--ink3)}
.box-h .sp{flex:1}
.btn{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;padding:0 14px;text-decoration:none;transition:.15s;flex:none}
.btn.p{background:var(--pri);color:#fff}
.btn.p:hover{background:var(--pri-d)}
.btn.g{background:var(--surf);border:1px solid var(--line);color:var(--ink2)}
.btn.g:hover{border-color:var(--ink3);color:var(--ink)}
.btn.d{background:var(--surf);border:1px solid var(--line);color:var(--bad)}
.btn.d:hover{border-color:var(--bad)}
.btn.sm{height:32px;font-size:12.5px;padding:0 11px}
.btn:disabled{opacity:.4;cursor:not-allowed}
.av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--pri-w);color:var(--pri);flex:none}
.av.line{border-radius:11px;background:var(--sea-2);color:#fff}
.av.lg{width:56px;height:56px}
.av{position:relative}
.cb{position:absolute;bottom:-3px;left:-3px;width:19px;height:19px;border-radius:50%;background:var(--cam);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px var(--surf)}
.cb.lg{width:24px;height:24px;bottom:-2px;left:-2px}
.row.on .cb{box-shadow:0 0 0 2px var(--pri-w)}
.row:hover .cb{box-shadow:0 0 0 2px var(--surf2)}
.pub .ic{position:relative}
.pub .cb{width:16px;height:16px;bottom:-4px;left:-4px;box-shadow:0 0 0 2px #1B4441}
.pub .cb svg{width:9px;height:9px}
mark{background:#FFE7A8;color:#26332C;border-radius:3px;padding:0 1px}

/* ═════ Line keys — inspired by the line buttons of a Cisco phone ═════ */
.keys{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.key{position:relative;display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;text-align:right;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.16);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 0 rgba(0,0,0,.18)}
.key .led{width:10px;height:28px;border-radius:5px;background:#6CE49A;box-shadow:0 0 10px rgba(108,228,154,.8);flex:none}
.key .led.amber{background:#F4BE4F;box-shadow:0 0 10px rgba(244,190,79,.8)}
.key .led.red{background:#F26B64;box-shadow:0 0 10px rgba(242,107,100,.8)}
.key .led.blue{background:#7FB8FF;box-shadow:0 0 10px rgba(127,184,255,.8)}
.key .t{flex:1;min-width:0}
.key .t span{display:block;font-size:12.5px;color:rgba(255,255,255,.72)}
.key .t b{display:block;font-size:30px;font-weight:800;line-height:1.15;letter-spacing:.5px}
.key .t small{display:block;font-size:11.5px;color:rgba(255,255,255,.6)}

/* ═════ Home (for everyone) ═════ */

.sec-t{display:flex;align-items:baseline;gap:10px;margin:0 2px 12px}
.sec-t h2{font-size:18px;font-weight:800}
.sec-t small{color:var(--ink3);font-size:12.5px}

.dirs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.dcard{display:flex;flex-direction:column;padding:18px 20px 16px;border-radius:var(--r);background:var(--surf);border:1px solid var(--line);box-shadow:var(--sh);position:relative;overflow:hidden}
.dcard::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--pri-l),var(--pri))}
.dcard h3{font-size:17px;font-weight:800;line-height:1.35}
.dcard .meta{display:flex;gap:18px;margin:10px 0 12px}
.dcard .meta div b{display:block;font-size:24px;font-weight:800;line-height:1.1}
.dcard .meta div span{font-size:12px;color:var(--ink3)}
.dcard .secs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;flex:1;align-content:flex-start}
.dcard .secs button{font-size:12px;padding:3px 10px;border-radius:20px;background:var(--surf2);border:1px solid var(--line);color:var(--ink2)}
.dcard .secs button:hover{border-color:var(--pri);color:var(--pri-d)}
.dcard .acts{display:flex;gap:8px;border-top:1px dashed var(--line);padding-top:12px}

/* ═════ The network map: the public numbers around the logo ═════ */
.net{position:relative;border-radius:22px;padding:30px 32px;margin-bottom:26px;color:#fff;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1.12fr) 1px minmax(0,1fr);gap:30px;align-items:center;
  background:radial-gradient(ellipse at 72% 50%,#26594F 0%,#17383A 52%,#0E2423 100%);box-shadow:0 18px 44px rgba(14,36,35,.22)}
.net::before{content:"";position:absolute;inset:0;opacity:.11;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.45) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.45) 1px,transparent 1px);background-size:34px 34px;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 25%,transparent 72%);mask-image:radial-gradient(ellipse at center,#000 25%,transparent 72%)}
.net > *{position:relative}
.net-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.net-lines .ln{fill:none;stroke:rgba(108,224,154,.22);stroke-width:2}
.net-lines .fl{fill:none;stroke:rgba(140,240,175,.85);stroke-width:2.2;stroke-linecap:round;stroke-dasharray:3 22;animation:flow 1.6s linear infinite}
.net-lines circle{fill:#8CF0AF}
@keyframes flow{to{stroke-dashoffset:-50}}
.netw{position:relative}
.regions{position:relative;z-index:2;display:inline-flex;gap:3px;padding:3px;border-radius:30px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);margin-bottom:12px}
.regions button{padding:5px 16px;border-radius:30px;font-size:13px;font-weight:600;color:rgba(255,255,255,.75)}
.regions button:hover{color:#fff;background:rgba(255,255,255,.08)}
.regions button.on{background:#fff;color:#17383A}
.pp-head{position:relative;z-index:3;display:flex;justify-content:flex-start;margin-bottom:12px}
.regions.light{background:var(--surf2);border-color:var(--line);margin:0}
.regions.light button{color:var(--ink2)}
.regions.light button:hover{background:var(--surf);color:var(--ink)}
.regions.light button.on{background:var(--pri);color:#fff}
.regions button:disabled{opacity:.35;cursor:not-allowed}
.net-h4{position:relative;z-index:1}
.net-g{position:relative;z-index:1;display:grid;grid-template-columns:1fr 170px 1fr;align-items:center;gap:40px}
.net-col{display:flex;flex-direction:column;justify-content:center;gap:40px}
.node{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.17);box-shadow:0 10px 28px rgba(0,0,0,.22)}
.node .t{flex:1;min-width:0}
.node .t span{display:block;font-size:12.5px;color:rgba(255,255,255,.72);white-space:nowrap}
.node .t b{display:block;font-size:30px;font-weight:800;line-height:1.1}
.net-col.r .node{flex-direction:row-reverse}
.net-sep{align-self:stretch;width:1px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.3) 20%,rgba(255,255,255,.3) 80%,transparent)}
.net-h4,.pubs h4{font-size:13px;font-weight:700;color:rgba(255,255,255,.6);margin-bottom:10px;letter-spacing:.3px}
.pub-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 20px}
.pub-c{min-width:0}
.pub .nm{min-width:0}
.pub{display:flex;align-items:center;gap:10px;width:100%;padding:9px 6px;border-radius:10px;color:#fff;text-align:right;transition:background .15s}
.pub:hover,.pub:focus-visible{background:rgba(255,255,255,.08)}
.pub .ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(140,240,175,.14);color:#9CF2BC;flex:none}
.pub .nm{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.pub .dt{flex:1 1 8px;min-width:8px;border-bottom:1.5px dotted rgba(255,255,255,.3);transform:translateY(4px)}
.pub .x{font-size:19px;font-weight:800;letter-spacing:.5px}
/* row density: the more lines, the smaller the font and the closer the rows */
.pubs[data-rows="5"] .pub{padding:7px 6px}.pubs[data-rows="5"] .pub .nm{font-size:13.5px}.pubs[data-rows="5"] .pub .x{font-size:18px}
.pubs[data-rows="6"] .pub{padding:5px 6px}.pubs[data-rows="6"] .pub .nm{font-size:13px}.pubs[data-rows="6"] .pub .x{font-size:17px}.pubs[data-rows="6"] .pub .ic{width:28px;height:28px}
.pubs[data-rows="7"] .pub{padding:4px 6px}.pubs[data-rows="7"] .pub .nm{font-size:12.5px}.pubs[data-rows="7"] .pub .x{font-size:16px}.pubs[data-rows="7"] .pub .ic{width:26px;height:26px}
.pub{cursor:pointer;position:relative}
/* supervisor mode: a drag handle, a remove button and an add field */
.net.editing .pub-c{min-height:60px;border-radius:12px;outline:1px dashed rgba(255,255,255,.18);outline-offset:4px;padding:2px}
.net.editing .pub-c.full{outline-color:#F26B64}
.grip{width:16px;height:30px;display:grid;place-items:center;color:rgba(255,255,255,.45);cursor:grab;flex:none;touch-action:none;border-radius:6px}
.grip:hover{color:#fff;background:rgba(255,255,255,.08)}
.pdel{position:absolute;left:0;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#2B4A47;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.3);opacity:0;transition:.15s;z-index:2}
.pub:hover .pdel,.pub:focus-within .pdel{opacity:1}
.pdel:hover{background:#F26B64;color:#fff}
.net.editing .pub{padding-inline-end:28px}
.pub.dragging{opacity:.25}
.pub.ghost{position:fixed;z-index:200;pointer-events:none;background:#21504C;box-shadow:0 16px 36px rgba(0,0,0,.4);border-radius:10px;cursor:grabbing}
.pub-add{display:flex;align-items:center;justify-content:center;width:100%;margin-top:4px;padding:9px;border-radius:10px;border:1.5px dashed rgba(140,240,175,.45);color:#9CF2BC;font-size:13px;font-weight:600}
.pub-add:hover{background:rgba(140,240,175,.08)}
.pn{flex-direction:row-reverse}
.pn{display:flex;align-items:center;gap:14px;width:min(100%,360px);padding:12px 16px;border-radius:16px;text-align:right;color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.17);
  box-shadow:0 10px 28px rgba(0,0,0,.22);transition:transform .15s,border-color .15s,background .15s}
.pn:hover,.pn:focus-visible{transform:translateY(-2px);border-color:rgba(140,240,175,.6);background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07))}
.pn .t{flex:1;min-width:0}
.pn .t span{display:block;font-size:13px;color:rgba(255,255,255,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pn .t b{display:block;font-size:28px;font-weight:800;line-height:1.15;letter-spacing:.5px}
.pn .t small{display:block;font-size:11px;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub{width:160px;height:160px;margin:0 auto;border-radius:50%;background:radial-gradient(circle,#fff 0 60%,#E6F3EA 61% 100%);display:grid;place-items:center;position:relative;
  box-shadow:0 0 0 12px rgba(108,224,154,.12),0 0 0 26px rgba(108,224,154,.06),0 18px 40px rgba(0,0,0,.35)}
.hub img{width:108px}
.hub::after{content:"";position:absolute;inset:-12px;border-radius:50%;border:2px solid rgba(108,224,154,.55);animation:ring 2.8s ease-out infinite}
@keyframes ring{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.32);opacity:0}}
.rj{display:block;flex:none}
@keyframes blink{0%,100%{opacity:1}45%{opacity:1}50%{opacity:.25}55%{opacity:1}70%{opacity:.4}75%{opacity:1}}
.rj .act{animation:blink 2.4s infinite}
.rj.d1 .act{animation-delay:.4s}.rj.d2 .act{animation-delay:1.1s}.rj.d3 .act{animation-delay:1.7s}

/* ═════ Settings ═════ */
.set-box{padding-bottom:22px}
.set-g{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:center;padding:18px 20px 0}
.set-ch{font-size:13px;font-weight:700;color:var(--ink2);margin-bottom:8px}
.set-hub{display:grid;place-items:center}
.set-hub span{width:110px;height:110px;border-radius:50%;background:var(--sea);display:grid;place-items:center;box-shadow:0 0 0 8px var(--pri-w)}
.set-hub img{width:70px;background:#fff;border-radius:50%;padding:6px}
.slot{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:12px;border:1px solid var(--line);background:var(--surf2);margin-bottom:8px;min-height:62px}
.slot .i{width:24px;height:24px;border-radius:50%;background:var(--surf);border:1px solid var(--line);display:grid;place-items:center;font-size:12px;color:var(--ink3);flex:none}
.slot .t{flex:1;min-width:0}
.slot .t b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot .t span{display:block;font-size:11.5px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot .x{font-size:18px;font-weight:800;color:var(--sea-2);flex:none}
html[data-mode="dark"] .slot .x{color:var(--ink)}
.slot .ops{display:flex;gap:2px;flex:none}
.slot .ops button{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--ink2)}
.slot .ops button:hover:not(:disabled){background:var(--surf);color:var(--pri-d)}
.slot .ops button.del:hover{color:var(--bad)}
.slot .ops button:disabled{opacity:.3;cursor:default}
.slot.slot-add{border-style:dashed;background:transparent;justify-content:center}
.slot.slot-add button{display:flex;align-items:center;gap:6px;color:var(--pri-d);font-size:13px;font-weight:600;padding:8px 14px;border-radius:9px}
.slot.slot-add button:hover{background:var(--pri-w)}
.nplist{max-height:320px;margin-top:8px}
.np{display:flex;align-items:center;gap:10px;width:100%;text-align:right;padding:8px 10px;border-radius:8px}
.np:hover{background:var(--surf2)}
.np .t{flex:1;min-width:0}
.np .t b{display:block;font-size:13.5px;font-weight:600}
.np .t span{display:block;font-size:11.5px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np .x{font-weight:800;color:var(--ink)}
.np.used{opacity:.45;cursor:not-allowed}

/* the directorate explorer: the directorates on the right, the chosen one's details on the left — fits small and large directorates */
.explorer{display:grid;grid-template-columns:330px 1fr;overflow:hidden;min-height:430px}
.ex-list{border-inline-end:1px solid var(--line);background:var(--surf2);padding:10px;max-height:640px}
.ex-d{display:block;width:100%;text-align:right;padding:12px 14px 11px;border-radius:12px;margin-bottom:4px;position:relative;transition:background .15s}
.ex-d:hover{background:var(--surf)}
.ex-d.on{background:var(--surf);box-shadow:0 2px 10px rgba(23,56,58,.08)}
.ex-d.on::before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:4px;border-radius:4px;background:var(--pri)}
.ex-d b{display:block;font-size:14.5px;font-weight:700;line-height:1.35}
.ex-d.on b{color:var(--pri-d)}
.ex-d .m{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:12px;color:var(--ink3)}
.ex-d .bar{flex:1;height:5px;border-radius:5px;background:var(--line);overflow:hidden}
.ex-d .bar i{display:block;height:100%;border-radius:5px;background:var(--pri-l)}
.ex-d.on .bar i{background:var(--pri)}
.ex-panel{padding:22px 26px 24px;min-width:0}
.ex-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line)}
.ex-head .t{flex:1;min-width:220px}
.ex-head h3{font-size:24px;font-weight:800;line-height:1.3}
.ex-stats{display:flex;gap:26px;margin-top:10px}
.ex-stats div b{display:block;font-size:26px;font-weight:800;line-height:1.1}
.ex-stats div span{font-size:12px;color:var(--ink3)}
.ex-head .acts{display:flex;gap:8px}
.ex-lines{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.ex-line{display:inline-flex;align-items:center;gap:10px;padding:6px 8px 6px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surf);font-size:13px;color:var(--ink2)}
.ex-line:hover{border-color:var(--pri);color:var(--pri-d)}
.ex-line .ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--sea-2);color:#fff;flex:none}
.ex-line b{font-size:17px;font-weight:800;color:var(--ink)}
.ex-sub{font-size:12.5px;color:var(--ink3);font-weight:500;margin:18px 0 10px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}
.tile{display:flex;flex-direction:column;align-items:stretch;text-align:right;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surf2);transition:.15s;min-width:0}
.tile:hover{border-color:var(--pri);background:var(--surf);transform:translateY(-1px)}
.tile .top{display:flex;align-items:baseline;gap:8px}
.tile .top b{flex:1;font-size:14px;font-weight:700;line-height:1.35}
.tile .top .num{font-size:20px;font-weight:800;color:var(--pri-d)}
.tile .cnt{font-size:12px;color:var(--ink3);margin-top:4px}
.tile .cnt b{font-size:19px;font-weight:800;color:var(--pri-d);margin-inline-end:2px}
.tile .sub{font-size:11.5px;color:var(--ink3);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .k{font-size:11px;color:var(--ink3);margin-bottom:2px}

/* ═════ The control panel (supervisor) ═════ */
.admin-hero{border-radius:20px;padding:24px 26px;margin-bottom:22px;color:#fff;background:linear-gradient(120deg,#2B2614 0%,#3D3418 50%,var(--sea-2) 100%)}
.admin-hero .row1{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.admin-hero h1{font-size:22px;font-weight:800}
.admin-hero .row1 span{color:rgba(255,255,255,.65);font-size:13px}
.admin-hero .sp{flex:1}
.admin-hero .btn.g{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#fff}

.rack-box{margin-bottom:22px;padding-bottom:22px}
.legend{display:flex;gap:16px;font-size:12.5px;color:var(--ink2);flex-wrap:wrap}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:9px;height:9px;border-radius:50%;display:block}
.legend b{color:var(--ink)}
.led-ok{background:#3FD47A;box-shadow:0 0 6px #3FD47A}
.led-p{background:#F2B33D;box-shadow:0 0 6px #F2B33D}
.led-no{background:#F0564F;box-shadow:0 0 6px #F0564F}
.lede{font-size:12.5px;color:var(--ink3);padding:2px 20px 0}
.rack{margin:16px 20px 0;border-radius:8px;padding:14px 16px;position:relative;
  background:linear-gradient(90deg,#1C2526 0,#273233 3%,#273233 97%,#1C2526 100%);box-shadow:inset 0 0 0 1px #0E1414,0 8px 20px rgba(20,30,30,.18)}
.rack::before,.rack::after{content:"";position:absolute;top:10px;bottom:10px;width:6px;border-radius:2px;background:repeating-linear-gradient(180deg,#566162 0 3px,#3A4445 3px 9px)}
.rack::before{right:5px}.rack::after{left:5px}
.ru{display:grid;grid-template-columns:290px 1fr 70px;align-items:center;gap:16px;min-height:62px;padding:8px 18px;margin:0 6px 7px;border-radius:3px;position:relative;
  background:linear-gradient(180deg,#465354 0,#3A4647 48%,#334041 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 0 rgba(0,0,0,.35)}
.ru:last-child{margin-bottom:0}
.ru .ear{position:absolute;top:50%;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#9AA3A3,#4A5455);transform:translateY(-50%)}
.ru .ear.r{right:5px}.ru .ear.l{left:5px}
.plate{background:#E9ECE6;color:#1E2B27;border-radius:3px;padding:7px 14px;font-size:14.5px;font-weight:800;line-height:1.35;text-align:right;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 1px 0 rgba(255,255,255,.12)}
.plate small{display:block;font-size:11px;font-weight:500;color:#5A6762}
.plate:hover{background:#fff}
.ports{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.port{width:30px;height:30px;position:relative;border-radius:3px;background:#1A2223;box-shadow:inset 0 2px 3px rgba(0,0,0,.7),0 1px 0 rgba(255,255,255,.07)}
.port::after{content:"";position:absolute;left:8px;right:8px;bottom:6px;height:10px;border-radius:1px;background:#0D1213;box-shadow:inset 0 -3px 0 #26302F}
.port::before{content:"";position:absolute;left:11px;right:11px;top:6px;height:4px;background:#0D1213;border-radius:1px}
.port i{position:absolute;top:-6px;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%}
.port:hover,.port:focus-visible{outline:2px solid #fff;outline-offset:1px}
.port.no i{animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.ru .cnt{font-size:12px;color:#B9C4C2;white-space:nowrap}
.ru .cnt b{color:#fff;font-size:16px}
.tip{position:fixed;z-index:80;pointer-events:none;background:var(--surf);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-sm);
  box-shadow:0 10px 30px rgba(20,30,30,.2);padding:10px 12px;font-size:12.5px;max-width:280px;opacity:0;transition:opacity .12s}
.tip.on{opacity:1}
.tip b{display:block;font-size:13.5px}
.tip .pth{color:var(--ink3);font-size:11.5px;margin-bottom:6px}
.tip .ln{display:flex;justify-content:space-between;gap:12px}
.tip .st{margin-top:6px;font-weight:700;font-size:12px}

.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px}
.need{padding:8px 12px 14px;max-height:320px}
.need button{display:flex;align-items:center;gap:10px;width:100%;text-align:right;padding:9px 8px;border-radius:var(--r-sm)}
.need button:hover{background:var(--surf2)}
.need .dot{width:8px;height:8px;border-radius:50%;flex:none}
.need .t{flex:1;min-width:0}
.need .t b{display:block;font-size:13.5px;font-weight:600}
.need .t span{display:block;font-size:11.5px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tag{display:inline-block;font-size:11.5px;color:var(--pri-d);background:var(--pri-w);border-radius:20px;padding:1px 10px;flex:none}
.tag.no{background:var(--bad-w);color:var(--bad)}
.tag.p{background:var(--gold-w);color:var(--gold)}
.plan{padding:16px 20px 20px}
.plan-g{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;align-items:end;height:130px;border-bottom:1px solid var(--line);padding-bottom:6px}
.plan-c{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.plan-c .v{font-size:11.5px;font-weight:700;color:var(--ink2);text-align:center}
.plan-c .col{width:100%;max-width:26px;background:var(--surf2);border:1px solid var(--line);border-radius:5px 5px 2px 2px;height:100%;display:flex;align-items:flex-end;overflow:hidden}
.plan-c .col i{display:block;width:100%;background:linear-gradient(0deg,var(--pri-d),var(--pri-l))}
.plan-x{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;font-size:11px;color:var(--ink3);margin-top:6px}
.plan-x span{text-align:center}
.plan-note{font-size:12.5px;color:var(--ink2);margin-top:12px}
.plan-note b{color:var(--ink)}
.hbars{padding:14px 20px 20px}
.hb{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;font-size:13px;margin-bottom:13px;cursor:pointer}
.hb .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}
.hb:hover .nm{color:var(--pri-d)}
.hb .trk{grid-column:1/-1;height:10px;border-radius:10px;background:var(--surf2);border:1px solid var(--line);overflow:hidden;display:flex}
.hb .tr{height:100%;display:flex;border-radius:10px;overflow:hidden}
.hb .tr i{display:block;height:100%}
.hb .tr i.e{background:var(--pri)}
.hb .tr i.l{background:var(--sea-2)}
html[data-mode="dark"] .hb .tr i.l{background:#8FB9AE}
.hb-key{display:flex;gap:14px;font-size:12px;color:var(--ink3);padding:12px 20px 0}
.hb-key i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:5px;vertical-align:-1px}

/* ═════ The directory ═════ */
#homeDir .dir{height:min(760px,calc(100vh - 110px))}
.dir{display:grid;grid-template-columns:var(--unitsW,290px) 1fr 330px;gap:18px;height:calc(100vh - 68px - 56px);min-height:520px}
.pane{display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}
/* a "more content" hint: a top / bottom fade, and a gently moving "more" button */
.fade-t,.fade-b{position:absolute;inset-inline:0;height:42px;pointer-events:none;opacity:0;transition:opacity .2s;z-index:3}
.fade-t{background:linear-gradient(180deg,var(--surf),transparent)}
.fade-b{bottom:0;background:linear-gradient(0deg,var(--surf) 15%,transparent)}
.pane.can-up .fade-t,.pane.can-down .fade-b{opacity:1}
.more{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:4;display:inline-flex;align-items:center;gap:5px;
  padding:4px 12px 4px 10px;border-radius:20px;background:var(--surf);border:1px solid var(--line);box-shadow:0 4px 14px rgba(23,56,58,.14);
  font-size:11.5px;color:var(--ink2);opacity:0;pointer-events:none;transition:opacity .2s}
.pane.can-down .more{opacity:1;pointer-events:auto}
.more:hover{color:var(--pri-d);border-color:var(--pri)}
.more svg{animation:nudge 1.6s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateY(-1px)}50%{transform:translateY(3px)}}
.pane-h{padding:12px 16px 11px;border-bottom:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;min-height:56px}
.pane-h h2{font-size:15px;font-weight:700}
.pane-h .sp{flex:1}
.pane-b{flex:1;min-height:0}
.tsearch{position:relative;padding:10px 12px 4px}
.tsearch input{width:100%;height:34px;border-radius:8px;border:1px solid var(--line);background:var(--surf2);padding:0 32px 0 10px;font-size:13px;color:var(--ink)}
.tsearch input::placeholder{color:var(--ink3)}
.tsearch input:focus{outline:none;border-color:var(--pri);background:var(--surf)}
.tsearch svg{position:absolute;right:23px;top:calc(50% + 3px);transform:translateY(-50%);color:var(--ink3);pointer-events:none}
.hot-list{margin:6px 10px 14px;border-top:1px dashed var(--line);padding-top:10px}
.hot-list h5{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink3);font-weight:700;margin:0 4px 6px}
.hot-list .hl{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:right;padding:6px 8px;border-radius:var(--r-sm);font-size:13px;color:var(--ink2)}
.hot-list .hl:hover{background:var(--surf2);color:var(--ink)}
.hot-list .hl.on{background:var(--pri-w);color:var(--pri-d)}
.hot-list .hl b{font-weight:800;color:var(--ink)}
.tree-none{padding:24px 14px;text-align:center;color:var(--ink3);font-size:13px}
.tree{padding:8px 8px 14px;list-style:none}
.tree ul{list-style:none;padding-inline-start:12px;margin-inline-start:10px;border-inline-start:1px dashed var(--line)}
.tn{display:flex;align-items:center;gap:4px;width:100%;text-align:right;padding:6px;border-radius:var(--r-sm);font-size:13.5px;color:var(--ink2)}
.tn:hover{background:var(--surf2);color:var(--ink)}
.tn.on{background:var(--pri-w);color:var(--pri-d);font-weight:700}
.tn .tw{width:20px;height:20px;display:grid;place-items:center;flex:none;color:var(--ink3);border-radius:5px}
.tn .tw:hover{background:var(--line)}
.tn .tw svg{transition:transform .15s}
.tn[aria-expanded="true"] .tw svg{transform:rotate(-90deg)}
.tn .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tn .ct{font-size:11px;color:var(--ink3);background:var(--surf2);border:1px solid var(--line);border-radius:20px;min-width:30px;padding:0 7px;flex:none;text-align:center}
.tn.on .ct{background:var(--surf);border-color:transparent;color:var(--pri-d)}
.tn.k-dir .nm,.tn.k-cmd .nm{font-weight:600;color:var(--ink)}
.tn.on.k-dir .nm,.tn.on.k-cmd .nm{color:var(--pri-d)}
.tn .need-dot{width:7px;height:7px;border-radius:50%;background:var(--bad);flex:none}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px;font-size:12.5px;color:var(--ink3);min-width:0;flex:1 1 100%}
.crumbs button{padding:2px 5px;border-radius:5px;color:var(--ink2)}
.crumbs button:hover{background:var(--surf2);color:var(--pri-d)}
.crumbs .cur{color:var(--ink);font-weight:700;font-size:15px;padding:2px 5px}
.filters{display:flex;gap:3px;background:var(--surf2);border:1px solid var(--line);border-radius:var(--r-sm);padding:3px;flex:none}
.filters button{font-size:12.5px;padding:4px 11px;border-radius:6px;color:var(--ink2)}
.camf{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border-radius:20px;border:1px solid var(--line);background:var(--surf);color:var(--ink2);font-size:12.5px;flex:none}
.camf svg{color:var(--cam)}
.camf .num{font-size:11px;opacity:.75}
.camf:hover{border-color:var(--cam)}
.camf[aria-pressed="true"]{background:var(--cam);border-color:var(--cam);color:#fff}
.camf[aria-pressed="true"] svg{color:#fff}
.filters button.on{background:var(--surf);color:var(--ink);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08)}
html[data-mode="dark"] .filters button.on{background:var(--line)}
.units-hit{padding:10px 18px 4px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.units-hit small{font-size:12px;color:var(--ink3);margin-inline-end:4px}
.units-hit button{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:4px 11px;border-radius:20px;background:var(--pri-w);color:var(--pri-d)}
.units-hit button:hover{background:var(--pri);color:#fff}
.grp-h{position:sticky;top:0;z-index:1;background:var(--surf);padding:12px 18px 6px;font-size:12.5px;color:var(--ink3);display:flex;align-items:center;gap:8px}
.grp-h b{color:var(--ink2);font-weight:700;font-size:13px}
.grp-h::after{content:"";flex:1;height:1px;background:var(--line)}
.grp-h .num{order:2}
/* a group counter inside a green circle, at the current font size */
.grp-h .num{min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:var(--pri-w);color:var(--pri-d);font-weight:700;font-size:11.5px;display:inline-grid;place-items:center;text-align:center}
.row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:9px 18px;cursor:pointer;border-inline-start:3px solid transparent}
.row:hover{background:var(--surf2)}
.row.on{background:var(--pri-w);border-inline-start-color:var(--pri)}
.who{min-width:0}
.who b{display:block;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who span{display:block;font-size:12px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who .sub2 b{display:inline;font-size:12px;font-weight:700;color:var(--ink2)}
.ext{font-size:21px;font-weight:800;color:var(--sea-2);letter-spacing:.5px;min-width:74px}
/* the kind of a number that is not Cisco (direct, Avaya, mobile): a small tag on its right */
.nk{display:inline-block;font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:0;line-height:1;padding:3px 6px 2px;margin-left:6px;border-radius:20px;background:var(--surf2);border:1px solid var(--line);color:var(--ink3);vertical-align:middle;transform:translateY(-1px);direction:rtl}
.pub .nk{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.75)}
/* the line card: the kind above a large number that is not Cisco */
.bigk{font-size:12px;font-weight:600;color:var(--ink3);margin:12px 0 -12px}
html[data-mode="dark"] .ext{color:var(--ink)}
.row.on .ext{color:var(--pri-d)}
.empty{padding:60px 30px;text-align:center;color:var(--ink3)}
.empty b{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}
.card{padding:20px}
.card .hd{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.card h3{font-size:15px;font-weight:700;line-height:1.35}
.card .role{color:var(--ink2);font-size:13.5px}
.big{font-size:46px;font-weight:800;line-height:1.1;color:var(--sea-2);letter-spacing:1px;margin:14px 0 16px;white-space:nowrap;overflow:hidden}
/* several Cisco numbers stay on one row: smaller as they grow */
.big.c2{font-size:40px}
.big.c3{font-size:34px;letter-spacing:.5px}
.big.c4{font-size:26px;letter-spacing:0}
html[data-mode="dark"] .big{color:var(--ink)}
.path{list-style:none;border-top:1px solid var(--line);padding-top:14px}
.path.unit-path{margin-top:14px}
.path li:last-child button{color:var(--ink);font-weight:700}
.path li{position:relative;padding:0 18px 10px 0;font-size:13px}
.path li::before{content:"";position:absolute;right:4px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--surf);border:2px solid var(--ink3)}
.path li::after{content:"";position:absolute;right:7px;top:17px;bottom:-2px;width:1px;background:var(--line)}
.path li:last-child::after{display:none}
.path li:last-child::before{background:var(--pri);border-color:var(--pri)}
.path button{color:var(--ink2);text-align:right}
.path button:hover{color:var(--pri-d);text-decoration:underline}
.nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));grid-auto-flow:dense;gap:8px;margin:-6px 0 16px}
.nums div{background:var(--surf2);border:1px solid var(--line);border-radius:var(--r-sm);padding:7px 8px;text-align:center}
.nums span{display:block;font-size:11px;color:var(--ink3)}
.nums b{display:block;font-size:15px;font-weight:800;white-space:nowrap;text-align:center}
/* two direct numbers: one under the other, a little smaller */
.nums .two{grid-row:span 2;display:flex;flex-direction:column;justify-content:center}
.nums .two b{font-size:13.5px;line-height:1.35}
/* inside windows and lists: padding within the width, so no field leaves its frame */
.modal *,.modal *::before,.modal *::after,.sxpop *,.dp-adv *,.ev-q *,#setBody *{box-sizing:border-box}
.devsec{border:1px solid var(--line);border-radius:10px;margin-top:12px;background:var(--surf2)}
.devsec summary{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;list-style:none;font-weight:700;font-size:14px}
.devsec summary::-webkit-details-marker{display:none}
.devsec summary::before{content:"";width:8px;height:8px;border-left:2px solid var(--pri);border-bottom:2px solid var(--pri);transform:rotate(45deg);transition:.15s}
.devsec[open] summary::before{transform:rotate(-45deg);margin-top:-4px}
.devsec summary small{font-weight:400;color:var(--ink3);font-size:12px;margin-inline-start:auto}
.devb{padding:4px 14px 6px;border-top:1px solid var(--line)}
.req{color:var(--bad);font-weight:700}
.lbl{font-size:12.5px;color:var(--ink3);margin:16px 0 6px;font-weight:500}
.mini{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 10px;border-radius:var(--r-sm);font-size:13px;width:100%;text-align:right}
.mini:hover{background:var(--surf2)}
.mini span:first-child{color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini b{font-weight:700;color:var(--ink);min-width:44px;white-space:nowrap;flex:none}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:14px 0 4px}
.stats.three{grid-template-columns:repeat(3,1fr)}
.stats div{background:var(--surf2);border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 11px;text-align:right}
.stats b{display:block;font-size:21px;font-weight:800}
.stats span{font-size:11.5px;color:var(--ink3)}
.stats .no b{color:var(--bad)}
.admin-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--gold)}
.admin-acts::before{content:"أدوات المشرف";flex:1 1 100%;font-size:11.5px;color:var(--gold);font-weight:700}

/* ═════ The section list with search — with branch lines ═════ */
.pk{position:relative}
.pk-btn{width:100%;min-height:42px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surf2);padding:6px 12px;display:flex;align-items:center;gap:8px;text-align:right}
.pk-btn:hover,.pk.open .pk-btn{border-color:var(--pri);background:var(--surf)}
.pk-btn .v{flex:1;min-width:0}
.pk-btn .v b{display:block;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-btn .v small{display:block;font-size:11.5px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-btn svg{color:var(--ink3);transition:transform .15s}
.pk.open .pk-btn svg{transform:rotate(180deg)}
.pk-pop{margin-top:6px;background:var(--surf);border:1px solid var(--line);border-radius:var(--r-sm);box-shadow:0 14px 34px rgba(20,30,30,.18);padding:8px}
.modal .fld .pk-q{height:38px;padding:0 34px 0 10px;background:var(--surf2)}
.fld .pk-q{width:100%;height:38px;border-radius:7px;border:1px solid var(--line);background:var(--surf2);padding:0 34px 0 10px;color:var(--ink)}
.fld .pk-q:focus{outline:none;border-color:var(--pri)}
.pk-qw{position:relative;margin-bottom:6px}
.pk-qw svg{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--ink3);pointer-events:none}
.pk-list{max-height:240px}
.pk-it{display:flex;align-items:center;gap:6px;width:100%;text-align:right;padding:6px 8px;padding-inline-start:calc(8px + var(--d,0) * 20px);border-radius:6px;font-size:13.5px}
.pk-it:hover,.pk-it.hl{background:var(--surf2)}
.pk-it.on{background:var(--pri-w);color:var(--pri-d);font-weight:700}
.pk-it .c{width:11px;height:13px;flex:none;border-inline-start:1.6px solid var(--ink3);border-bottom:1.6px solid var(--ink3);border-end-start-radius:4px;transform:translateY(-4px);opacity:.7}
.pk-it .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-it .k{font-size:11px;color:var(--ink3);flex:none}
.pk-it .pth{display:block;font-size:11px;color:var(--ink3);font-weight:400}
.pk-none{padding:14px;text-align:center;color:var(--ink3);font-size:12.5px}
.kind-row{display:flex;gap:8px}
.kind-row select{flex:1}
.kind-row .btn{width:42px;padding:0;font-size:20px;font-weight:400}

/* ═════ The user menu ═════ */
.uchip{display:flex;align-items:center;gap:9px;padding:5px 12px 5px 5px;border:1px solid var(--line);border-radius:26px;background:var(--surf);transition:.14s;cursor:pointer}
.uchip:hover,.uchip[aria-expanded="true"]{border-color:var(--pri);background:var(--pri-w)}
.uchip .av{width:32px;height:32px;border-radius:50%;background:rgba(68,158,96,.12);color:#449E60}
.uchip .n{text-align:right;line-height:1.3}
.uchip .n b{display:block;font-size:12.5px;font-weight:600}
.uchip .n span{font-size:10.5px;color:var(--ink3)}
.umenu{position:absolute;top:calc(100% + 9px);left:0;width:335px;max-width:calc(100vw - 24px);background:var(--surf);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 18px 44px rgba(38,51,44,.22);z-index:60;overflow:hidden;animation:ovrise .18s ease}
.umenu .uh{background:var(--pri);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:13px}
.umenu .uav{display:flex;flex-direction:column;align-items:center;gap:5px;flex:none}
.umenu .uh .av{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;border:2px solid rgba(255,255,255,.32)}
.umenu .unum{font-size:10.5px;background:rgba(255,255,255,.18);padding:1px 9px;border-radius:20px;white-space:nowrap;text-align:center}
.umenu .uinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.umenu .uinfo b{font-size:12px;font-weight:700;line-height:1.55;white-space:normal;overflow-wrap:anywhere}   /* the full name: a little smaller, and on two lines when long (never cut) */
.umenu .urank{font-size:11.5px;color:rgba(255,255,255,.86);line-height:1.5}   /* the rank or "employee" above the name */
.umenu .urole{font-size:11.5px;color:rgba(255,255,255,.86);line-height:1.65}
.umenu .umitems{padding:4px 0}
.umenu a{display:flex;align-items:center;gap:10px;width:100%;padding:11px 16px;font-size:13px;color:var(--ink2);cursor:pointer;transition:background .13s}
.umenu a:hover{background:var(--pri-w);color:var(--pri-d)}
.umenu a .ic{width:16px;display:grid;place-items:center;opacity:.85}
.umenu .sep{height:1px;background:var(--line);margin:4px 0}
.umenu .umfoot{padding:9px;background:var(--surf2);border-top:1px solid var(--line)}
.umenu .umlogout{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px;border:1px solid var(--bad);border-radius:var(--r-sm);
  background:var(--bad-w);color:var(--bad);font-size:13px;font-weight:700;transition:.14s}
.umenu .umlogout:hover{background:var(--bad);color:#fff}

.um{position:relative;flex:none}
.um-btn{display:flex;align-items:center;gap:9px;height:42px;padding:0 10px 0 12px;border-radius:30px;border:1px solid var(--line);background:var(--surf)}
.um-btn:hover,.um-btn[aria-expanded="true"]{border-color:var(--pri)}
.um-btn .t{text-align:right;line-height:1.2}
.um-btn .t b{display:block;font-size:13px;font-weight:700}
.um-btn .t small{display:block;font-size:11px;color:var(--gold);font-weight:700}
.um-btn > svg{color:var(--ink3)}
.av.sm{width:30px;height:30px}
.um-pop{position:absolute;top:calc(100% + 8px);left:0;min-width:230px;background:var(--surf);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(20,30,30,.18);padding:6px;z-index:40}
.um-pop button{display:flex;align-items:center;gap:10px;width:100%;text-align:right;padding:9px 10px;border-radius:8px;font-size:13.5px;color:var(--ink)}
.um-pop button:hover{background:var(--surf2)}
.um-pop button svg{color:var(--ink3)}
.um-pop button.out{color:var(--bad)}
.um-pop button.out svg{color:var(--bad)}
.um-pop hr{border:0;border-top:1px solid var(--line);margin:5px 4px}
.um-pop .hd{font-size:11.5px;color:var(--ink3);padding:6px 10px 4px}

/* ═════ The data page ═════ */
.dp-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.dp-top h2{font-size:22px;font-weight:800;line-height:1.2}
.dp-top small{color:var(--ink3);font-size:12.5px}
.dp-top .sp{flex:1}
.dp-how{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:16px 18px;margin-bottom:16px}
.how{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--ink2);line-height:1.7}
.how b{width:26px;height:26px;border-radius:50%;background:var(--pri-w);color:var(--pri-d);display:grid;place-items:center;flex:none;font-size:13px}
.how em{font-style:normal;font-weight:700;color:var(--ink)}
/* ═════ The patch panel of the data page ═════ */
.pp-box{position:relative;padding:18px 20px 20px;margin-bottom:16px;overflow:hidden;
  background:linear-gradient(160deg,var(--surf) 0%,var(--surf2) 100%);
  --pp-strip1:#E9EEEC;--pp-strip2:#CDD5D2;--pp-house1:#F4F7F6;--pp-house2:#C9D1CE;--pp-edge:#AEB8B4;--pp-txt:#68756F}
html[data-mode="dark"] .pp-box{--pp-strip1:#3B4748;--pp-strip2:#2A3435;--pp-house1:#4B5658;--pp-house2:#252C2E;--pp-edge:#161B1D;--pp-txt:#9AAAA4}
.pp-cables{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.pp-cables path{transition:opacity .2s}
.pp-strip{position:relative;z-index:2;display:flex;align-items:stretch;gap:12px;border-radius:9px;padding:9px 12px;
  background:linear-gradient(180deg,var(--pp-strip1),var(--pp-strip2));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(0,0,0,.15),0 4px 10px rgba(23,56,58,.12)}
.pp-all{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:78px;border-radius:6px;padding:4px 10px;
  background:#F2F4F1;color:#1E2B27;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);font-size:12.5px;font-weight:700;line-height:1.3}
.pp-all b{font-size:19px;font-weight:800}
.pp-all:hover{background:#fff}
.pp-all.on{background:var(--pri);color:#fff;box-shadow:none}
.pp-ports{flex:1;display:grid;grid-template-columns:repeat(24,1fr);gap:5px;align-items:end}
.pp-ports .cell{display:flex;flex-direction:column;align-items:center;gap:2px}
.pp-ports small{font-size:8.5px;color:var(--pp-txt);direction:ltr}
.pp-ports svg{width:100%;max-width:30px;height:auto;display:block}
.pp-ports .hs{fill:url(#ppHouse)}
.pp-ports svg{overflow:visible}
.pp-cards{position:relative;z-index:2;display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:78px}
.ppc{position:relative;text-align:right;background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:14px 16px 12px;box-shadow:0 6px 18px rgba(23,56,58,.07);transition:transform .15s,box-shadow .15s,border-color .15s,opacity .15s}
.ppc::before{content:"";position:absolute;top:-1px;left:16px;right:16px;height:4px;border-radius:0 0 4px 4px;background:var(--c)}
.ppc .plug{position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:22px;height:26px;border-radius:5px 5px 3px 3px;background:var(--c);box-shadow:inset 0 2px 0 rgba(255,255,255,.3)}
.ppc .h{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink2)}
.ppc .h i{width:9px;height:9px;border-radius:50%;background:var(--c)}
.ppc b{display:block;font-size:30px;font-weight:800;line-height:1.15;margin-top:4px}
.ppc:hover{transform:translateY(-2px);border-color:var(--c)}
.ppc.on{border-color:var(--c);box-shadow:0 0 0 2px var(--c),0 10px 24px rgba(23,56,58,.14)}
.pp-box.filtered .ppc:not(.on){opacity:.55}
.dp-f{font-size:12.5px;color:var(--ink2)}
.dp-f b{color:var(--ink)}
.dp-f button{color:var(--pri-d);margin-inline-start:6px;font-size:12.5px}
.dp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 16px;border-bottom:1px solid var(--line)}
.dp-q{position:relative;flex:1 1 280px;max-width:420px}
.dp-q input{width:100%;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surf2);padding:0 34px 0 10px;color:var(--ink)}
.dp-q input:focus{outline:none;border-color:var(--pri);background:var(--surf)}
.dp-q svg{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--ink3);pointer-events:none}
.dp-chips{display:flex;flex-wrap:wrap;gap:6px}
.dp-chips button{font-size:12.5px;padding:5px 11px;border-radius:20px;border:1px solid var(--line);color:var(--ink2);background:var(--surf)}
.dp-chips button:hover{border-color:var(--pri);color:var(--pri-d)}
.dp-chips button.on{background:var(--pri);border-color:var(--pri);color:#fff}
.dp-chips button .num{font-size:11px;opacity:.75;margin-inline-start:3px}
.dp-adv{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--surf2)}
.dp-adv .fld{margin:0;min-width:200px;flex:0 1 240px}
.dp-adv .fld label{font-size:12px}
.dp-adv .btn{margin-bottom:2px}
.dp-hint{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ink3);padding:8px 16px;border-bottom:1px solid var(--line)}
.ugrip{display:inline-grid;place-items:center;width:20px;height:24px;margin-inline-end:6px;color:var(--ink3);cursor:grab;vertical-align:middle;touch-action:none;border-radius:5px}
.ugrip:hover{color:var(--pri-d);background:var(--pri-w)}
.ugrip svg{width:13px;height:13px}
.dt tr.dragging td{opacity:.35}
.drop-line{position:fixed;height:3px;background:var(--pri);border-radius:2px;z-index:300;pointer-events:none;box-shadow:0 0 0 3px rgba(68,158,96,.18)}
.dp-cnt{margin-inline-start:auto;color:var(--ink3);font-size:12.5px}
.dt th button{font:inherit;color:inherit;display:inline-flex;align-items:center;gap:4px}
.dt th button:hover{color:var(--pri-d)}
.dt th .ar{font-size:10px;opacity:.35}
.dt th.sorted .ar{opacity:1;color:var(--pri)}
.dt .tg{display:inline-block;font-size:11.5px;border-radius:20px;padding:1px 9px;background:var(--surf2);border:1px solid var(--line);color:var(--ink2);white-space:nowrap}
.dt .tg.tg-person{background:var(--pri-w);border-color:transparent;color:var(--pri-d)}
.dt .tg.tg-line{background:#E6EEF6;border-color:transparent;color:#2C5C8F}
html[data-mode="dark"] .dt .tg.tg-line{background:#22384A;color:#9CC4EC}
.dt .tg.tg-hot{background:var(--bad-w);border-color:transparent;color:var(--bad)}
.dt .tg.tg-sec{background:#E2F1F0;border-color:transparent;color:#226B69}
.dt .tg.tg-off{background:#ECEFF2;border-color:transparent;color:#4F5D6B}
html[data-mode="dark"] .dt .tg.tg-sec{background:#1E3F3E;color:#8FD3D0}
html[data-mode="dark"] .dt .tg.tg-off{background:#2C3640;color:#B5C1CC}
.dt .tg.tg-main{background:var(--gold-w);border-color:transparent;color:var(--gold)}
.dt .tg.tg-sub{background:#E2F1F0;border-color:transparent;color:#226B69}
html[data-mode="dark"] .dt .tg.tg-sub{background:#1E3F3E;color:#8FD3D0}
.dt .tg.tg-cmd,.dt .tg.tg-dir{background:var(--gold-w);border-color:transparent;color:var(--gold)}
.dt mark{padding:0}
.dp-tabs{display:flex;gap:4px;padding:12px 14px 0;border-bottom:1px solid var(--line)}
.dp-tabs button{padding:8px 14px;font-size:14px;color:var(--ink2);border-bottom:3px solid transparent;margin-bottom:-1px}
.dp-tabs button.on{color:var(--pri-d);font-weight:700;border-bottom-color:var(--pri)}
.dp-tabs .num{font-size:11.5px;background:var(--surf2);border:1px solid var(--line);border-radius:20px;padding:0 7px;margin-inline-start:4px}
.dp-scroll{overflow-x:auto}
.dt th{top:68px}
.dt{width:100%;border-collapse:collapse;font-size:13px}
.dt th{position:sticky;top:0;background:var(--surf2);text-align:center;font-weight:700;color:var(--ink2);padding:9px 12px;border-bottom:1px solid var(--line);font-size:12.5px}
.dt td{padding:8px 12px;border-bottom:1px solid var(--line)}
/* the last row without a bottom line — the card border is enough */
.dt tbody tr:last-child td{border-bottom:0}
.dp-tbl{overflow:hidden}
.dt tr:hover td{background:var(--surf2)}
.dt .code{font-family:ui-monospace,Consolas,monospace;direction:ltr;unicode-bidi:isolate;color:var(--gold);font-size:12px}
.dt .pth{color:var(--ink3);font-size:12px}
.dt .x{font-weight:800}
.dt .dbtn{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:4px 10px;border:1px solid var(--line);border-radius:7px;color:var(--pri-d);background:var(--surf);white-space:nowrap}
.dt .dbtn:hover{border-color:var(--pri);background:var(--pri-w)}
.det-h{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.det-h h3{font-size:18px;font-weight:800;margin-top:3px}
.det-path{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px;color:var(--ink2);background:var(--surf2);border:1px solid var(--line);border-radius:9px;padding:8px 12px;margin-bottom:14px}
.det-path i{font-style:normal;color:var(--ink3)}
.det-s{margin-bottom:14px}
.det-s h5{font-size:13px;color:var(--pri-d);margin-bottom:8px;display:flex;align-items:center;gap:8px}
.det-s h5::after{content:"";flex:1;height:1px;background:var(--line)}
.dgs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.dg{background:var(--surf2);border:1px solid var(--line);border-radius:9px;padding:8px 12px}
.dg span{display:block;font-size:11.5px;color:var(--ink3)}
.dg b{display:block;font-size:14.5px;font-weight:700;margin-top:2px}
.dg .pill{width:max-content}
.det-lines{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 16px;font-size:13px}
.det-lines div{display:flex;justify-content:space-between;border-bottom:1px dashed var(--line);padding:4px 0}
.dt tr.unit td{background:var(--surf2);font-weight:600}
.dt td.sub{padding-inline-start:30px;position:relative}
.dt td.sub::before{content:"";position:absolute;inset-inline-start:14px;top:6px;width:9px;height:12px;border-inline-start:1.5px solid var(--ink3);border-bottom:1.5px solid var(--ink3);border-end-start-radius:3px;opacity:.6}
.dcam{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--cam);color:#fff;vertical-align:-3px;margin-inline-start:4px}
.dcam svg{width:10px;height:10px}
.dt td.c{text-align:center}

/* ═════ Administrator windows ═════ */
.users{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:16px}
.urow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}
.urow:last-child{border-bottom:0}
.urow .t{flex:1;min-width:0}
.urow .t b{display:block;font-size:14px}
.urow .t > span{display:block;font-size:12px;color:var(--ink3)}
.urow .t > span span{display:inline}
.role{font-size:11.5px;border-radius:20px;padding:1px 10px;font-weight:700}
.role{display:inline-flex;flex-direction:column;align-items:center;line-height:1.35}
.role small{font-size:10px;font-weight:500;opacity:.8}
.role.super{background:var(--gold-w);color:var(--gold)}
.role.accounts{background:#E6EEF6;color:#2C5C8F}
html[data-mode="dark"] .role.accounts{background:#22384A;color:#9CC4EC}
.role.sup{background:var(--pri-w);color:var(--pri-d)}
.uedit{padding:10px 12px 12px;background:var(--surf2);border-bottom:1px solid var(--line)}
/* the event log */
.evk{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.evc{display:flex;align-items:center;gap:14px;padding:18px 20px}
.evc .ei{width:48px;height:48px;border-radius:10px;display:grid;place-items:center;flex:none}
.evc .ei.g{background:var(--pri-w);color:var(--pri-d)}
.evc .ei.ok{background:#E3F4E9;color:#2F9A55}
.evc .ei.wr{background:var(--cam-w);color:var(--cam)}
.evc .ei.no{background:var(--bad-w);color:var(--bad)}
.evc b{display:block;font-size:26px;font-weight:800;line-height:1.1}
.evc span:not(.ei){font-size:12.5px;color:var(--ink3)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 11px;border-radius:20px;background:var(--surf2);color:var(--ink2);border:1px solid var(--line);white-space:nowrap}
.pill i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}
.pill.ok{background:#E3F4E9;color:#2F7A49;border-color:transparent}
.pill.wr{background:var(--cam-w);color:var(--cam);border-color:transparent}
.pill.no{background:var(--bad-w);color:var(--bad);border-color:transparent}
.pill.bl{background:#E6EEF6;color:#2C5C8F;border-color:transparent}
html[data-mode="dark"] .pill.ok{background:#21402D;color:#7CCB93}
html[data-mode="dark"] .pill.bl{background:#22384A;color:#9CC4EC}
.ev-t td{padding:12px}
.ev-t td b{display:block;font-weight:600}
.evr{display:block;font-size:11.5px;color:var(--ink3)}
.ev-q{display:flex;gap:10px;flex-wrap:wrap}
.ev-q > input{flex:1 1 260px;max-width:360px}
.ev-q .sx{width:180px}
.evdate{width:300px}
.ev-q .btn{height:38px}
.ev-q select{height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surf2);padding:0 10px;color:var(--ink)}
@media (max-width:860px){.evk{grid-template-columns:1fr 1fr}}
/* the settings page */
.sgrid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;align-items:start}
.sgrid > div{display:flex;flex-direction:column;gap:18px}
.scard-h{display:flex;align-items:center;gap:9px;padding:15px 20px;border-bottom:1px solid var(--line);font-size:15.5px}
.scard-h .ic{color:var(--pri);display:inline-grid}
.scard-b{padding:16px 20px 18px}
.sth{display:flex;align-items:center;gap:9px;margin:4px 0 12px;font-size:14px}
.sth .dot{width:18px;height:18px;border-radius:50%;background:var(--pri-w);position:relative;flex:none}
.sth .dot::after{content:"";position:absolute;top:5px;right:6px;border:4px solid transparent;border-right-color:var(--pri);transform:rotate(180deg)}
.sth b{font-weight:700;color:var(--pri-d)}
.sth small{color:var(--ink3);font-size:12px}
.sth::after{content:"";flex:1;height:1px;background:var(--line)}
.sth + .grid2,.sth + .grid3{margin-bottom:6px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}
.hpcnt{display:block;margin-top:8px;color:var(--ink3);font-size:12px}
#hpReg{margin-bottom:12px}
.snote{font-size:12.5px;color:var(--ink3);margin-bottom:10px}
.stbl td{padding:11px 12px}
.stbl td b{font-weight:600}
.dvn{display:block;font-size:11.5px;color:var(--ink3);margin-top:2px}
.sbar{display:flex;align-items:center;gap:10px;padding:14px 18px;margin-top:18px}
.sbar small{margin-inline-start:auto}
@media (max-width:1100px){.sgrid{grid-template-columns:1fr}.grid3{grid-template-columns:1fr}}
/* paging */
.pager{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--line);background:var(--surf2);border-radius:0 0 var(--r) var(--r)}
.pinfo{font-size:12.5px;color:var(--ink3)}
.pinfo b{color:var(--ink);font-weight:700}
.pbtns{display:flex;gap:6px;align-items:center}
.pbtns button{min-width:34px;height:34px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surf);color:var(--ink2);font-size:13px;font-weight:600;padding:0 9px;transition:.14s}
.pbtns button svg{display:block;margin:auto}
.pbtns button:hover:not(:disabled){border-color:var(--pri);color:var(--pri-d)}
.pbtns button.on{background:var(--pri);border-color:var(--pri);color:#fff}
.pbtns .pnav{color:var(--ink3)}
.pbtns button:disabled{opacity:.4;cursor:default}
/* the users page */
.ut .ut-h{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}
.ut .ut-h .ic{color:var(--pri);display:inline-grid}
.ut .ut-h b{font-size:16px}
.ut .ut-h small{color:var(--ink3);font-size:12px}
.ut .ut-h .sp{flex:1}
.ut-q{padding:12px 18px;border-bottom:1px solid var(--line)}
.ut-q input{width:100%;max-width:420px;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surf2);padding:0 12px;color:var(--ink)}
.ut-q input:focus{outline:none;border-color:var(--pri);background:var(--surf)}
.ut-t td{vertical-align:middle;padding:12px}
.ut-t td b{font-size:14px;font-weight:600}
.ut-t tr.off td{opacity:.55}
.ucs{display:flex;flex-wrap:wrap;gap:5px}
.uc{display:inline-block;font-size:11.5px;padding:2px 9px;border-radius:7px;border:1px solid var(--line);background:var(--surf);color:var(--ink2);white-space:nowrap}
.uc.g{background:var(--gold-w);border-color:transparent;color:var(--gold)}
.uc.b{background:#E6EEF6;border-color:transparent;color:#2C5C8F}
html[data-mode="dark"] .uc.b{background:#22384A;color:#9CC4EC}
.uc.r-super{background:var(--gold-w);border-color:transparent;color:var(--gold);font-weight:700}
.uc.r-accounts{background:#E6EEF6;border-color:transparent;color:#2C5C8F;font-weight:700}
.uc.r-sup{background:var(--pri-w);border-color:transparent;color:var(--pri-d);font-weight:700}
.ust{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 11px;border-radius:20px;background:var(--pri-w);color:var(--pri-d)}
.ust i{width:6px;height:6px;border-radius:50%;background:currentColor}
.ust.no{background:var(--bad-w);color:var(--bad)}
.ubtn{width:32px;height:32px;border:1px solid var(--line);border-radius:8px}
.ubtn:disabled{opacity:.35;cursor:not-allowed}
.chks{display:flex;flex-wrap:wrap;gap:8px 18px}
.chks.col{flex-direction:column;gap:8px}
.chk.dis{opacity:.4}
/* check boxes and switches inside fields — they do not take the field's width */
.fld label.chk,.modal .fld label.chk{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:13.5px;font-weight:400;color:var(--ink)}
.fld input[type="checkbox"],.modal .fld input[type="checkbox"],.fld input[type="radio"],.modal .fld input[type="radio"]{accent-color:var(--pri);width:17px;height:17px;padding:0;margin:0;flex:none}
.fld label.sw,.modal .fld label.sw{display:inline-flex;margin:0;font-weight:400}
.udel{border-top:1px dashed var(--line);padding-top:12px;margin-top:4px}
.adcard{display:flex;align-items:center;gap:10px;background:var(--pri-w);border-radius:10px;padding:10px 12px;margin-bottom:12px}
.adcard b{display:block;font-size:14px}
.adcard .adlbl{display:block;font-size:11px;color:var(--ink3)}
.adcard span{display:block;font-size:12px;color:var(--ink2)}
.adcard span span{display:inline}
.urow .ib{width:32px;height:32px}
.urow .ib.del:hover{color:var(--bad)}
.urow .ib:disabled{opacity:.3;cursor:not-allowed}
.urow .t span.lock{display:inline-flex;direction:rtl;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--gold);background:var(--gold-w);border-radius:20px;padding:0 8px;margin-inline-start:4px;vertical-align:1px}
.addu{border:1px dashed var(--line);border-radius:10px;padding:14px 14px 4px}
.addu h5{font-size:13.5px;margin-bottom:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.avcard{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:14px;background:var(--surf2)}
.avcard > small{display:block;font-size:12px;color:var(--ink3);margin-top:6px}
.avrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.avrow .avlbl{font-size:12.5px;color:var(--ink2);font-weight:500}
.avrow b{font-size:15px}
.avrow input{height:32px;width:140px;border-radius:7px;border:1px solid var(--pri);padding:0 10px;background:var(--surf);color:var(--ink)}
.avrow .sp{flex:1}
.sw{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}
.sw input{position:absolute;opacity:0;width:0;height:0}
.sw span{width:40px;height:22px;border-radius:20px;background:var(--line);position:relative;transition:.15s}
.sw span::after{content:"";position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}
.sw input:checked + span{background:var(--pri)}
.sw input:checked + span::after{right:21px}
.sw input:focus-visible + span{outline:2px solid var(--pri);outline-offset:2px}
.sw em{font-style:normal;color:var(--ink2);min-width:42px}
.avask{margin-top:10px;padding:10px 12px;border-radius:9px;background:var(--gold-w);border:1px solid var(--gold);font-size:13px}
.avask b{display:block;margin-bottom:2px}
.avask span{display:block;color:var(--ink2);font-size:12px}
.avask .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.avask.ok{background:var(--pri-w);border-color:var(--pri);color:var(--pri-d)}
.grid3s{display:grid;grid-template-columns:repeat(3,1fr);gap:0 12px}
.grid3s .fld input{width:100%!important}
.ilist{max-height:260px;overflow:auto;background:var(--bad-w);border-radius:8px;padding:8px 12px;font-size:12.5px;color:var(--bad);line-height:1.8}
.isum{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.isum div{background:var(--surf2);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.isum b{display:block;font-size:22px;font-weight:800}
.isum span{font-size:12px;color:var(--ink3)}

/* ═════ Windows ═════ */
/* pop-up windows */
@keyframes ovrise{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.modal{position:fixed;inset:0;z-index:90;background:rgba(34,41,47,.5);display:grid;place-items:center;padding:20px}
.modal .mb{background:var(--surf);border-radius:.357rem;width:100%;max-width:550px;box-shadow:0 5px 20px 0 rgba(34,41,47,.1);display:flex;flex-direction:column;max-height:92vh;animation:ovrise .2s ease}
.modal .mb.wide{max-width:680px}
.modal .mh{background:#F8F8F8;padding:.8rem 1.4rem;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:1.07rem;font-weight:500;color:var(--ink);border-radius:.357rem .357rem 0 0;line-height:1.45}
.modal .modal-title{display:flex;align-items:center;gap:9px}
.modal .modal-title .ic{color:var(--pri);display:inline-grid}
/* the close button: a 0.75rem icon inside 0.8rem padding, with negative margins then an offset so it stands out at the corner */
.modal .mx{flex:none;margin:-.4rem auto -.4rem -.7rem;padding:.8rem;box-sizing:content-box;inline-size:.75rem;block-size:.75rem;border-radius:.357rem;cursor:pointer;
  background:#FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/.75rem auto no-repeat;
  box-shadow:0 5px 20px 0 rgba(34,41,47,.1);transition:all .23s ease .1s;transform:translate(-18px,-10px)}
.modal .mx:hover,.modal .mx:focus-visible{transform:translate(-15px,-2px);box-shadow:none;outline:none}
.modal .mc{padding:.8rem 1.4rem 1.1rem;overflow:auto}
.modal .mf{padding:.8rem 1.4rem;border-top:1px solid rgba(34,41,47,.05);display:flex;flex-direction:row-reverse;justify-content:flex-start;gap:.5rem;border-radius:0 0 .357rem .357rem}
html[data-mode="dark"] .modal .mh{background:var(--bg)}
html[data-mode="dark"] .modal .mf{border-color:var(--line)}
html[data-mode="dark"] .modal .mx{background:#284546 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E4E9E7'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/.75rem auto no-repeat;box-shadow:0 3px 8px 0 rgba(11,10,25,.49)}
.modal .fld label{font-size:12.5px;font-weight:500}
.modal .fld input,.modal .fld select{height:37px;border-radius:7px;background:var(--surf);padding:0 12px}
.fld{margin-bottom:14px}
.fld label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--ink2)}
.fld input,.fld select{width:100%;height:42px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surf2);padding:0 12px;color:var(--ink)}
.fld input:focus,.fld select:focus{outline:none;border-color:var(--pri);background:var(--surf)}
.fld .row2{display:flex;gap:8px}
.fld .row2 input{flex:1}
.fld small{display:block;font-size:12px;color:var(--ink3);margin-top:5px}
.fld .err{color:var(--bad)}
.seg{display:flex;gap:4px;background:var(--surf2);border:1px solid var(--line);border-radius:var(--r-sm);padding:3px}
.seg button{flex:1;padding:7px;border-radius:6px;font-size:13px;color:var(--ink2)}
.seg button.on{background:var(--surf);color:var(--ink);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.chk{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);cursor:pointer}
.chk input{width:17px;height:17px;accent-color:var(--pri)}
.hint{font-size:12px;background:var(--gold-w);color:var(--gold);border-radius:8px;padding:8px 10px;margin-bottom:14px}

.toast{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,16px);opacity:0;background:var(--sea);color:#fff;
  padding:10px 18px;border-radius:30px;font-size:13px;transition:.2s;pointer-events:none;z-index:95}
.toast.on{opacity:1;transform:translate(-50%,0)}
.scrim{display:none}

/* ═════ The directory sheet — "official": calm white with a green font and thin dividers ═════ */
.sheet{--g:#1F5A3A;--g2:#2F7A49;--m:#5B6B62;--l:#DCE5DF;
  width:281mm;height:199mm;background:#fff;color:#1B2533;display:flex;flex-direction:column;font-family:Tajawal,"Segoe UI",Tahoma,sans-serif;
  position:relative;overflow:hidden;-webkit-print-color-adjust:exact;print-color-adjust:exact;font-size:var(--fs,8.8pt);line-height:1.35}
.sh-hd{display:flex;align-items:flex-end;gap:4mm;padding-bottom:2.4mm;border-bottom:.5mm solid var(--g2)}
.sh-hd img{width:15mm;display:block}
.sh-nm{flex:1;min-width:0}
.sh-nm span{display:block;font-size:8pt;color:var(--m);font-weight:700}
.sh-nm b{display:block;font-size:15pt;font-weight:800;color:var(--g);line-height:1.2}
.sh-dt{font-size:7pt;color:var(--m);text-align:left;white-space:nowrap}
.sh-dt b{display:block;color:var(--g);font-size:8pt}
.sh-rule{height:.25mm;background:var(--g2);opacity:.5;margin:.7mm 0 3mm}
.sh-cols{flex:1;min-height:0;column-count:4;column-gap:6mm;column-rule:.25mm solid var(--l);column-fill:balance;overflow:hidden}
.sh-card{break-inside:avoid;margin-bottom:3.2mm}
.sh-card h4{font-size:1.12em;font-weight:800;color:var(--g);margin-bottom:.9mm;display:flex;align-items:center;gap:2mm}
.sh-card h4::after{content:"";flex:1;height:.25mm;background:#9CC7AA}
.sh-card h4 span{order:3;font-size:.72em;direction:ltr;unicode-bidi:isolate;min-width:1.9em;height:1.9em;padding:0 .45em;border-radius:1em;background:#EAF5EE;color:#2F7A49;font-weight:800;display:inline-grid;place-items:center;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sh-sub{font-size:.84em;color:#6B7D73;font-weight:700;margin:.9mm 0 .2mm}
.sh-r{display:flex;align-items:baseline;gap:1.5mm;padding:.28mm 0}
.sh-r .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:74%}
.sh-r .nm.ln{font-weight:700}
.sh-r .dt{flex:1;min-width:3mm;border-bottom:.3mm dotted #B3C4BA;transform:translateY(-.8mm)}
.sh-r .x{font-weight:800;color:var(--g);direction:ltr;unicode-bidi:isolate}
/* the camera icon on the sheet: a solid shape without the dot, a little shorter than the number, centred on the line */
.sh-cam{display:inline-flex;align-items:center;flex:none;align-self:center;line-height:0;color:#E07A1F;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sh-cam svg{display:block;height:.62em;width:auto;flex:none}
.sh-x2{font-size:.78em;color:#6B7D73;padding:0 0 .3mm;margin-top:-.2mm;direction:rtl}
/* a list sheet (event log, users) — runs over several pages */
.sheet.sh-list{height:auto;overflow:visible}
.sh-ltb{width:100%;border-collapse:collapse;font-size:8.5pt}
.sh-ltb th{background:#EAF5EE;color:#1F5A3A;font-weight:800;text-align:right;padding:1.6mm 2mm;border-bottom:.4mm solid #2F7A49;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sh-ltb td{padding:1.4mm 2mm;border-bottom:.2mm solid #DCE5DF;vertical-align:top}
.sh-ltb td small{display:block;color:#6B7D73;font-size:.85em}
.sh-ltb tr{break-inside:avoid}
.sh-ltb thead{display:table-header-group}
/* the portrait details sheet */
.sheet.sh-portrait{width:186mm;height:auto;min-height:0;font-size:10.5pt;overflow:visible}
.sh-portrait .sh-nm b{font-size:17pt}
.sh-chip{display:inline-block;align-self:flex-start;background:#EAF5EE;color:#1F5A3A;font-weight:800;border-radius:20px;padding:1mm 4mm;font-size:9.5pt;margin-bottom:2mm;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sh-cpath{color:#5B6B62;font-size:9.5pt;margin-bottom:4mm}
.sh-cs{margin-bottom:5mm;break-inside:avoid}
.sh-ct{font-weight:800;color:#1F5A3A;font-size:11pt;border-bottom:.4mm solid #2F7A49;padding-bottom:1.2mm;margin-bottom:1.5mm}
.sh-ctb{width:100%;border-collapse:collapse}
.sh-ctb th{text-align:right;font-weight:500;color:#5B6B62;width:42%;padding:1.6mm 0;border-bottom:.2mm solid #DCE5DF}
.sh-ctb td{text-align:right;font-weight:700;padding:1.6mm 0;border-bottom:.2mm solid #DCE5DF}
.sh-portrait .sh-ft{margin-top:6mm}
.sh-ft{display:flex;gap:4mm;align-items:center;border-top:.25mm solid var(--g2);padding-top:1.8mm;margin-top:.8mm;font-size:7pt;color:var(--m)}
.sh-ft .q{display:flex;gap:1.6mm;align-items:center;white-space:nowrap}
.sh-ft .q b{color:var(--g);font-size:8.5pt;direction:ltr;unicode-bidi:isolate}
.sh-ft .q.em b{color:#B83A33}
.sh-ft .sp{flex:1}

@page{size:A4 landscape;margin:5mm 8mm}
@media print{
  html,body{background:#fff!important;color-scheme:light}
  body > *:not(#printHost){display:none!important}
  #printHost{display:block!important}
  #printHost .sheet{transform:none!important;box-shadow:none;break-after:page}
  #printHost .sheet:last-child{break-after:auto}
}
#printHost{display:none}
/* print sheets from the page (#printHost): the rules print.css adds to the sheet, so the printout matches it exactly */
#printHost .sh-r .x .xk{font-weight:400;font-size:.78em;color:var(--m)}
#printHost .sh-r .dt{display:flex;align-items:flex-end;justify-content:flex-end}
#printHost .sh-r .dt .sh-cam{align-self:auto;transform:translateY(calc(50% + .15mm));background:#fff;padding-inline-start:1mm}
#printHost .sh-ft .q.or b{color:#C8671B}
#printHost .sh-ft .q.bl b{color:#2C5C8F}
#printHost .sh-ft .pgn{white-space:nowrap;font-weight:700;color:var(--g)}
#printHost .sh-ft .pgn:not(:empty){margin-inline-start:4mm}

/* ═════ Small screens ═════ */
@media (max-width:1250px){
  .dir{grid-template-columns:var(--unitsW,260px) 1fr}
  .detail{position:fixed;inset:auto 0 0 0;z-index:60;max-height:80vh;border-radius:18px 18px 0 0;transform:translateY(105%);transition:transform .22s;padding-bottom:env(safe-area-inset-bottom,0px)}
  .detail.open{transform:none}
  .scrim{display:block;position:fixed;inset:0;background:rgba(10,20,18,.45);z-index:55;opacity:0;pointer-events:none;transition:.2s}
  .scrim.on{opacity:1;pointer-events:auto}
  .grid3{grid-template-columns:1fr 1fr}
  .keys{grid-template-columns:1fr 1fr}
  .hsearch{width:220px}
}
@media (max-width:1100px){
  .net{grid-template-columns:1fr;gap:20px;padding:24px 18px}
  .net-sep{width:auto;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}
  .net-g{grid-template-columns:1fr 1fr;gap:12px}
  .hub{grid-column:1/-1;grid-row:1;width:120px;height:120px;margin-bottom:6px}
  .hub img{width:80px}
  .net-col{gap:12px}
  .net-col.r .node{flex-direction:row}
  .net-lines{display:none}
  .set-g{grid-template-columns:1fr 1fr}
  .set-hub{display:none}
}
@media (max-width:1000px){
  .pp-cards{grid-template-columns:repeat(3,1fr);margin-top:14px}
  .pp-strip .pp-ports,.pp-cables,.ppc .plug{display:none}
  .pp-strip{background:none;box-shadow:none;padding:0}
  .pp-all{flex-direction:row;gap:10px;width:100%;padding:8px 14px;justify-content:space-between}
}
@media (max-width:860px){
  .dp-how{grid-template-columns:1fr 1fr}
  .uchip .n{display:none}
  .uchip{padding:4px}
  .explorer{grid-template-columns:1fr;min-height:0}
  .ex-list{display:flex;gap:6px;overflow-x:auto;border-inline-end:0;border-bottom:1px solid var(--line);max-height:none;padding:8px}
  .ex-d{flex:none;width:auto;margin:0;padding:9px 14px}
  .ex-d .m{display:none}
  .ex-d.on::before{top:auto;bottom:0;inset-inline:14px;width:auto;height:3px}
  .ex-panel{padding:16px}
  .tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .ex-head h3{font-size:20px}
  .hdr-in{height:auto;flex-wrap:wrap;padding:10px 14px 0;gap:10px}
  .brand span{display:none}
  .brand img{width:46px}
  .tabs{order:6;flex:1 1 100%;height:44px;overflow-x:auto}
  .hsearch{order:5;width:100%}
  .hsp{display:none}
  .brand{flex:1}
  .proto{display:none}
  .page{padding:14px 12px 24px}
  .key .t b{font-size:24px}
  .dir{grid-template-columns:1fr;height:auto;min-height:0}
  .units{position:fixed;inset:0 auto 0 0;width:min(86vw,320px);z-index:60;border-radius:0;transform:translateX(-105%);transition:transform .22s}
  .units.open{transform:none}
  .list-pane{min-height:62vh}
  .grid3{grid-template-columns:1fr}
  .ru{grid-template-columns:1fr;padding:10px 14px;gap:8px}
  .row{padding:9px 12px;gap:10px}
  .ext{font-size:18px;min-width:62px}
  .only-wide{display:none!important}
  .login .lbl{display:none}
}
@media (min-width:861px){.only-m{display:none!important}}
@media (max-width:520px){.pp-cards{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.pub-g{grid-template-columns:1fr}.node .t b{font-size:24px}.set-g{grid-template-columns:1fr}}
@media (max-width:520px){.dirs{grid-template-columns:1fr}.key{padding:10px 12px;gap:10px}.key .led{height:22px;width:8px}}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}

/* ═════ Text fields: white background, thin border, and a green glow on focus ═════ */
.fld input:not([type=checkbox]):not([type=radio]),.fld textarea,.modal .fld input:not([type=checkbox]):not([type=radio]),
.tsearch input,.dp-q input,.ut-q input,.ev-q > input,.sxsearch input,.avrow input,.hsearch input{
  background:var(--surf);border:1px solid var(--line);border-radius:7px;color:var(--ink);
  transition:border-color .15s,box-shadow .15s}
.fld input:not([type=checkbox]):not([type=radio]),.modal .fld input:not([type=checkbox]):not([type=radio]){height:auto;min-height:40px;padding:9px 12px}
.fld input:focus,.fld textarea:focus,.modal .fld input:focus,.tsearch input:focus,.dp-q input:focus,.ut-q input:focus,
.ev-q > input:focus,.sxsearch input:focus,.avrow input:focus,.hsearch input:focus{
  outline:none;border-color:var(--pri);background:var(--surf);box-shadow:0 0 0 3px rgba(68,158,96,.13)}
.fld input:disabled,.modal .fld input:disabled{background:var(--surf2);color:var(--ink3);cursor:not-allowed}
.hsearch input{border-radius:30px}
.modal .fld .pk-q,.fld .pk-q{min-height:38px;padding:0 34px 0 10px}
.dp-q input,.tsearch input{padding-right:34px}
.ev-q > input,.ut-q input{padding:0 12px}
/* ═════ The two date pickers (Umm al-Qura Hijri / Gregorian) ═════ */
.udp-wrap, .udp-pop{
  --udp-pri:#449E60; --udp-pri-d:#35804C; --udp-pri-w:#EAF5EE; --udp-warn:#FF9F43;
  --udp-surf:#FFFFFF; --udp-surf2:#FAFBFA; --udp-line:#E4E8E6;
  --udp-ink:#26332C; --udp-ink2:#5A6B62; --udp-ink3:#8A9891;
  --udp-r:10px; --udp-r-sm:7px;
  box-sizing:border-box; font-family:inherit; color:var(--udp-ink);
}
.udp-wrap *, .udp-pop *{box-sizing:border-box}
.udp-wrap{position:relative}

/* the field */
.udp-in{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid var(--udp-line);
  border-radius:var(--udp-r-sm);background:var(--udp-surf);cursor:pointer;transition:.14s;line-height:1.25}
.udp-in:hover,.udp-in.open{border-color:var(--udp-pri)}
.udp-in:focus-visible{outline:2px solid var(--udp-pri);outline-offset:2px}
.udp-in svg{color:var(--udp-pri);flex:none}
.udp-v{flex:1;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.udp-v.udp-ph{color:var(--udp-ink3)}

/* the window */
.udp-pop{position:fixed;z-index:2600;display:none;width:244px;padding:9px 10px;background:var(--udp-surf);
  border:1px solid var(--udp-line);border-radius:var(--udp-r);box-shadow:0 12px 34px rgba(38,51,44,.18)}
.udp-pop.on{display:block}
.udp-pop button{cursor:pointer;border:none;background:none;font-family:inherit;color:inherit;padding:0}
.udp-n{direction:ltr;unicode-bidi:isolate}

/* the head: previous · month · year · next */
.udp-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.udp-h.udp-mid{justify-content:center}
.udp-pop .udp-mn{background:var(--udp-pri);color:#fff;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:500}
.udp-pop .udp-mn:hover{background:var(--udp-pri-d)}
.udp-yr{font-weight:700;font-size:12.5px;padding:3px 8px;border-radius:20px;color:var(--udp-ink)}
.udp-pop button.udp-yr:hover{background:var(--udp-pri-w);color:var(--udp-pri-d)}
.udp-pop .udp-ar{width:26px;height:26px;border:1px solid var(--udp-line);border-radius:var(--udp-r-sm);display:grid;place-items:center;color:var(--udp-ink2)}
.udp-pop .udp-ar:hover{border-color:var(--udp-pri);color:var(--udp-pri)}
.udp-pop .udp-ar:disabled{opacity:.3;cursor:not-allowed}

/* the days */
.udp-g{display:grid;grid-template-columns:repeat(7,1fr);gap:1px}
.udp-wd{font-size:9.5px;color:var(--udp-ink3);text-align:center;padding:3px 0;font-weight:500}
.udp-g button{height:27px;border-radius:var(--udp-r-sm);font-size:11px;color:var(--udp-ink);transition:.12s}
.udp-g button:hover:not([disabled]){background:var(--udp-pri-w);color:var(--udp-pri-d)}
.udp-g button.mut{color:var(--udp-ink3)}
.udp-g button.mut[disabled]{opacity:.28;cursor:not-allowed;text-decoration:line-through}
.udp-g button.mut:empty{text-decoration:none}
.udp-g button.tdy{background:var(--udp-pri-w);color:var(--udp-pri-d);font-weight:700}
.udp-g button.sel{background:var(--udp-pri);color:#fff;font-weight:700}

/* full weekday names in the single picker's window */
.udp-wd{font-size:8.5px;white-space:nowrap;letter-spacing:-.2px}

/* months and years */
.udp-ms,.udp-ys{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.udp-ms button,.udp-ys button{padding:8px 0;border-radius:var(--udp-r-sm);font-size:12px;
  background:var(--udp-surf2);color:var(--udp-ink);border:1px solid transparent;transition:.12s}
.udp-ms button:hover:not([disabled]),.udp-ys button:hover:not([disabled]){background:var(--udp-pri-w);color:var(--udp-pri-d)}
.udp-ms button.sel,.udp-ys button.sel{background:var(--udp-pri);color:#fff;font-weight:700}
.udp-ms button.mut,.udp-ys button.mut{opacity:.3;cursor:not-allowed}

/* the foot: today · clear · done */
.udp-f{display:flex;gap:8px;justify-content:center;border-top:1px solid var(--udp-line);margin-top:8px;padding-top:8px}
.udp-f button{border:1px solid var(--udp-pri);color:var(--udp-pri);padding:4px 12px;border-radius:var(--udp-r-sm);font-size:11.5px}
.udp-f button:hover{background:var(--udp-pri);color:#fff}

/* the field and its label on the page */
.udp-field{width:100%;max-width:280px}
.udp-label{display:block;font-size:13px;color:#5A6B62;margin-bottom:6px}

.udr-wrap, .udr-pop{
  --udr-pri:#449E60; --udr-pri-d:#35804C; --udr-pri-w:#EAF5EE; --udr-warn:#FF9F43;
  --udr-surf:#FFFFFF; --udr-surf2:#FAFBFA; --udr-line:#E4E8E6;
  --udr-ink:#26332C; --udr-ink2:#5A6B62; --udr-ink3:#8A9891;
  --udr-r:10px; --udr-r-sm:7px;
  box-sizing:border-box; font-family:inherit; color:var(--udr-ink);
}
.udr-wrap *, .udr-pop *{box-sizing:border-box}
.udr-wrap{position:relative}

/* the field */
.udr-in{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid var(--udr-line);
  border-radius:var(--udr-r-sm);background:var(--udr-surf);cursor:pointer;transition:.14s;line-height:1.25}
.udr-in:hover,.udr-in.open{border-color:var(--udr-pri)}
.udr-in:focus-visible{outline:2px solid var(--udr-pri);outline-offset:2px}
.udr-in svg{color:var(--udr-pri);flex:none}
.udr-v{flex:1;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.udr-v.udr-ph{color:var(--udr-ink3)}

/* the window */
.udr-pop{position:fixed;z-index:2600;display:none;width:272px;padding:10px 11px;background:var(--udr-surf);
  border:1px solid var(--udr-line);border-radius:var(--udr-r);box-shadow:0 12px 34px rgba(38,51,44,.18)}
.udr-pop.on{display:block}
.udr-pop button{cursor:pointer;border:none;background:none;font-family:inherit;color:inherit;padding:0}
.udr-n{direction:ltr;unicode-bidi:isolate}

/* the head: previous · month · year · next */
.udr-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.udr-h.udr-mid{justify-content:center}
.udr-pop .udr-mn{background:var(--udr-pri);color:#fff;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:500}
.udr-pop .udr-mn:hover{background:var(--udr-pri-d)}
.udr-yr{font-weight:700;font-size:12.5px;padding:3px 8px;border-radius:20px;color:var(--udr-ink)}
.udr-pop button.udr-yr:hover{background:var(--udr-pri-w);color:var(--udr-pri-d)}
.udr-pop .udr-ar{width:26px;height:26px;border:1px solid var(--udr-line);border-radius:var(--udr-r-sm);display:grid;place-items:center;color:var(--udr-ink2)}
.udr-pop .udr-ar:hover{border-color:var(--udr-pri);color:var(--udr-pri)}
.udr-pop .udr-ar:disabled{opacity:.3;cursor:not-allowed}

/* the days */
.udr-g{display:grid;grid-template-columns:repeat(7,1fr);gap:1px}
.udr-wd{font-size:9.5px;color:var(--udr-ink3);text-align:center;padding:3px 0;font-weight:500}
.udr-g button{height:30px;border-radius:var(--udr-r-sm);font-size:11.5px;color:var(--udr-ink);transition:.12s}
.udr-g button:hover:not([disabled]){background:var(--udr-pri-w);color:var(--udr-pri-d)}
.udr-g button.mut{color:var(--udr-ink3)}
.udr-g button.mut[disabled]{opacity:.28;cursor:not-allowed;text-decoration:line-through}
.udr-g button.mut:empty{text-decoration:none}
.udr-g button.tdy{background:var(--udr-pri-w);color:var(--udr-pri-d);font-weight:700}
.udr-g button.sel{background:var(--udr-pri);color:#fff;font-weight:700}
.udr-g button.inr{background:var(--udr-pri-w);color:var(--udr-pri-d);border-radius:0}

/* the two ends: from / to */
.udr-chips{display:flex;gap:6px;justify-content:center;margin-bottom:8px}
.udr-chip{font-size:11px;padding:3px 10px;border-radius:20px;background:var(--udr-surf2);color:var(--udr-ink3);border:1px solid var(--udr-line)}
.udr-chip.on{background:var(--udr-pri);border-color:var(--udr-pri);color:#fff;font-weight:600}

/* months and years */
.udr-ms,.udr-ys{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.udr-ms button,.udr-ys button{padding:8px 0;border-radius:var(--udr-r-sm);font-size:12px;
  background:var(--udr-surf2);color:var(--udr-ink);border:1px solid transparent;transition:.12s}
.udr-ms button:hover:not([disabled]),.udr-ys button:hover:not([disabled]){background:var(--udr-pri-w);color:var(--udr-pri-d)}
.udr-ms button.sel,.udr-ys button.sel{background:var(--udr-pri);color:#fff;font-weight:700}
.udr-ms button.mut,.udr-ys button.mut{opacity:.3;cursor:not-allowed}

/* the foot: today · clear · done */
.udr-f{display:flex;gap:8px;justify-content:center;border-top:1px solid var(--udr-line);margin-top:8px;padding-top:8px}
.udr-f button{border:1px solid var(--udr-pri);color:var(--udr-pri);padding:4px 12px;border-radius:var(--udr-r-sm);font-size:11.5px}
.udr-f button:hover{background:var(--udr-pri);color:#fff}
.udr-f .udr-clear{border-color:var(--udr-warn);color:#C77A1C}
.udr-f .udr-clear:hover{background:var(--udr-warn);color:#fff}
.udr-f .udr-done{background:var(--udr-pri);color:#fff}

/* the field and its label on the page */
.udr-field{width:100%;max-width:320px}
.udr-label{display:block;font-size:13px;color:#5A6B62;margin-bottom:6px}

html[data-mode="dark"] .udp-wrap,html[data-mode="dark"] .udp-pop,html[data-mode="dark"] .udr-wrap,html[data-mode="dark"] .udr-pop{
  --udp-surf:var(--surf);--udp-surf2:var(--surf2);--udp-line:var(--line);--udp-ink:var(--ink);--udp-ink2:var(--ink2);--udp-ink3:var(--ink3);--udp-pri-w:var(--pri-w);
  --udr-surf:var(--surf);--udr-surf2:var(--surf2);--udr-line:var(--line);--udr-ink:var(--ink);--udr-ink2:var(--ink2);--udr-ink3:var(--ink3);--udr-pri-w:var(--pri-w)}
.fld .udp-in,.fld .udr-in{min-height:40px;background:var(--surf)}

/* ═════ Dropdown lists: a button with a green arrow and a pop-up list ═════ */
.sx{position:relative;width:100%}
.sxbtn{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surf);
  cursor:pointer;font-family:inherit;font-size:inherit;color:var(--ink);text-align:right}
.sxbtn:hover{border-color:var(--pri)}
.sxbtn.open{border-color:var(--pri);box-shadow:0 0 0 3px rgba(68,158,96,.13)}
.sxbtn span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sxbtn i{font-style:normal;color:var(--pri);font-size:11px;transition:transform .15s}
.sxbtn.open i{transform:rotate(180deg)}
.sxbtn:disabled{background:var(--surf2);color:var(--ink3);cursor:not-allowed}
.sxpop{position:fixed;background:var(--surf);border:1px solid var(--line);border-radius:var(--r-sm);box-shadow:0 12px 34px rgba(38,51,44,.18);z-index:400;padding:5px;display:none;overflow:hidden}
.sxpop.on{display:block}
.sxsearch{padding:4px 4px 7px;border-bottom:1px solid var(--line);margin-bottom:5px}
.sxsearch input{width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:var(--r-sm);font-family:inherit;font-size:13px;background:var(--surf);color:var(--ink)}
.sxsearch input:focus{border-color:var(--pri);outline:none}
.sxlist{max-height:230px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.sxempty{padding:14px;text-align:center;font-size:12.5px;color:var(--ink3)}
.sxopt{padding:8px 11px;border-radius:4px;font-size:13.5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sxopt:hover{background:var(--pri);color:#fff}
.sxopt.on{background:var(--pri-w);color:var(--pri-d);font-weight:600}
.sxopt.on:hover{background:var(--pri);color:#fff}

/* ═════ Replacements for the prototype's inline style attributes (strict CSP) ═════ */
.ta-r{text-align:right}                       /* was style="text-align:right" on ltr inputs */
.you{color:var(--ink3)}                       /* was style="color:var(--ink3)" on the "(you)" mark */
small.err.blk{display:block}                  /* was style="display:block" on the modal error line */
.hint.ok{background:var(--pri-w);color:var(--pri-d)} /* was the inline colours of the ID 1 hint */
.hsearch.off{visibility:hidden}               /* header search is for the directory page only */
.modal.static{position:static;background:none;padding:0;display:block} /* Setup: the window shown in the page itself */
.modal.static .mb{margin:40px auto;box-shadow:var(--sh)}
a.brand{color:inherit;text-decoration:none}          /* the logo is a link to the directory */
a.umlogout{text-decoration:none}
.mf a.btn{text-decoration:none}
.umitems a{text-decoration:none;color:inherit}     /* menu items are real links here (anchors without href in the prototype) */
/* replacements for inline style attributes in the directory script (strict CSP) */
.mt8{margin-top:8px}
.pdn{opacity:.65;font-size:11px}
.bad-c{color:var(--bad)}
.iso{unicode-bidi:isolate}
.sq32{width:32px;height:32px}
.svg-c{display:block;margin:auto}             /* date pickers: centred arrow icon */
/* replacements for inline style attributes in the editing windows (strict CSP) */
small.opt{display:inline;color:var(--ink3);font-weight:400}
.ta-r.up{text-transform:uppercase}
.mb10{margin-bottom:10px}
small.blk{display:block}
.ph-b{color:var(--ink3);font-weight:400}
.mc small.err{color:var(--bad)}              /* window messages outside a field (hotline, line, section) are red too */
/* data page (strict CSP replacements) */
.mt16{margin-top:16px}
.dt td.dt-empty{text-align:center;padding:30px;color:var(--ink3)}
/* the approved data-page notes (from the prototype) */
.dp-bar .camf{margin-inline-start:auto}   /* camera and "show search" sit in the upper-left corner */
.dp-adv .fld.dp-qf{flex:1 1 300px;min-width:260px}
.dp-adv .dp-q{max-width:none}
.dp-adv .dp-q input{height:42px;border-radius:var(--r-sm)}
.dp-adv .dp-q input,.dp-adv .sxbtn,.dp-adv .udr-in,.dp-adv #dAdvClr{height:42px;min-height:42px;box-sizing:border-box}   /* the search row: every field and the clear button have one height */
.dp-adv #dAdvClr{margin-bottom:0;padding:0 18px}

/* ordering window of the sections */
.ord-list{display:flex;flex-direction:column;gap:6px;max-height:52vh;overflow:auto;padding:2px}
.ord-r{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surf2)}
.ord-r .nm{flex:1;font-weight:600}
.ord-r .num{color:var(--ink3);font-size:12.5px}
.ord-r .ugrip{cursor:grab;margin:0}
.ord-r.on{border-color:var(--pri);background:var(--pri-w)}
.ord-r.dragging{opacity:.35}
.ord-r.ghost{position:fixed;z-index:400;pointer-events:none;box-shadow:var(--sh);background:var(--surf)}
.dp-tbl .ugrip{cursor:pointer}

/* the page scrolls with the mouse wheel; its side scrollbar is not shown */
html{scrollbar-width:none}
html::-webkit-scrollbar{width:0;height:0;display:none}
/* the import window (from the approved prototype) */
.idrop{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border:2px dashed var(--line);border-radius:12px;padding:30px 20px;background:var(--surf2);transition:border-color .15s,background .15s}
.idrop.over{border-color:var(--pri);background:var(--pri-w)}
.mb.idrag{outline:3px dashed var(--pri);outline-offset:-6px}
.idrop .ic{color:var(--pri)}
.idrop b{font-size:15px}
.idrop span{color:var(--ink3);font-size:12.5px}
.idrop small{color:var(--ink3);margin-top:4px}
.ifile{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin-bottom:12px;background:var(--surf2)}
.ifile .num{color:var(--ink3);font-size:12px}
.isum3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.isum3 > div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.isum3 span{color:var(--ink3);font-size:12.5px}
.isum3 b{font-size:22px}
.isum3 small{color:var(--ink3);font-size:11.5px}
.isum3.isum4{grid-template-columns:repeat(4,1fr)}
@media (max-width:700px){.isum3.isum4{grid-template-columns:1fr 1fr}}
/* the numbers of the Devices sheet that are not in the program (skipped) */
.iskip{border:1px dashed var(--line);border-radius:10px;padding:8px 12px;margin-bottom:10px;font-size:13px;color:var(--ink2)}
.iskip summary{cursor:pointer;font-weight:600}
.iskip .ilist{margin-top:6px;max-height:140px;overflow:auto;color:var(--ink3);line-height:1.8;background:none;border:0;padding:0}
.ibad,.iok{border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:13px;line-height:1.7}
.ibad{background:rgba(192,69,63,.08);border:1px solid rgba(192,69,63,.35);color:var(--ink)}
.ibad > b{display:block;color:var(--bad)}
.ibad .ilist{margin-top:6px;max-height:150px;overflow:auto}
.iok{background:var(--pri-w);border:1px solid var(--pri);color:var(--ink)}
.iok > b{display:block;color:var(--pri-d)}
.itabs{margin:0 0 8px}
.iprev{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.iprev .dt{margin:0}
.iprev thead th{position:sticky;top:0;z-index:1;background:var(--surf2)}
.iprev tr.inew td{background:rgba(68,158,96,.09)}
.iprev tr.ibadr td{background:rgba(192,69,63,.12)}
.ilegend{display:flex;gap:14px;align-items:center;margin-top:8px;color:var(--ink3)}
.ilegend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-inline-end:5px;vertical-align:-1px}
.ilegend i.inew{background:rgba(68,158,96,.35)}
.ilegend i.ibadr{background:rgba(192,69,63,.4)}
.mb.idrag{outline:3px dashed var(--pri);outline-offset:-6px}
/* grouped permissions in the grant window (from the approved prototype) */
.pgrp{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pgrp .pg{border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:var(--surf2)}.pgrp .pg > b{display:block;font-size:12.5px;color:var(--pri-d);margin-bottom:4px}
/* device types in the line window and the camera note (from the approved prototype) */
.camh{display:block;margin:4px 26px 0 0;color:var(--gold);font-size:12px;font-weight:600}
.mrow{display:flex;gap:8px;align-items:center}.mrow .sx{flex:1;min-width:0}
.mplus{width:40px;min-width:40px;height:40px;padding:0;font-size:20px;line-height:1;font-weight:700;display:inline-grid;place-items:center}   /* the + and the pencil centred in the button */
.mnew{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;padding:10px;border:1px dashed var(--pri);border-radius:9px;background:var(--pri-w)}
.mnew #dvNewMN{flex:1;min-width:170px;height:36px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:var(--surf);color:var(--ink);font:inherit}
.mnew #dvNewMN:focus{outline:0;border-color:var(--pri)}
.mnew small{flex-basis:100%}
.mmng{margin-top:8px;border:1px solid var(--line);border-radius:9px;background:var(--surf2);padding:8px 10px}
.mmng-h{display:flex;align-items:center;gap:10px;margin-bottom:6px}.mmng-h small{flex:1}
.mmng-l{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--surf)}
.mmng-l .dt{margin:0}.mmng-l td.nowrap{white-space:nowrap}
.mmng-l .m-ed{width:100%;height:30px;border:1px solid var(--pri);border-radius:6px;padding:0 8px;font:inherit;background:var(--surf);color:var(--ink)}   /* the camera mark differs from the device type */
.dt td.nowrap{white-space:nowrap}
/* search rows across the page: the text field takes the free width (users, data, event log) */
.ev-q > input,.ut-q.ev-q > input{flex:1 1 260px;max-width:none;min-width:200px}
#dAdv > input{flex:0 0 360px}                     /* the data page: a shorter name field… */
.ev-q .sx.grow{flex:1 1 220px;width:auto}         /* …and the device-type list takes the rest */
/* the event log: the date, with the time under it */
.evdt{white-space:nowrap}.evdt small.num{display:block;color:var(--ink3);font-size:12px;margin-top:2px;text-align:center}
/* the users table: the name, with the general number and user name under it */
.udet small.num{display:block;color:var(--ink3);font-size:12px;margin-top:2px}
/* the "databases" card: tabs, an add row, and a table that scrolls inside the card (from the approved prototype) */
.sdb{display:flex;flex-direction:column;margin-bottom:0}
.sdb .scard-b{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding-top:0}
.stabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:0 -18px 14px;padding:0 18px}
.stabs button{border:0;background:none;padding:10px 4px;margin-bottom:-1px;font:inherit;font-weight:700;color:var(--ink3);border-bottom:2px solid transparent;cursor:pointer;display:flex;gap:6px;align-items:center}
.stabs button.on{color:var(--pri-d);border-bottom-color:var(--pri)}
.stabs .num{background:var(--pri-w);color:var(--pri-d);border-radius:20px;padding:0 8px;font-size:12px}
.sdb-p{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.sdb-add{display:flex;gap:10px;align-items:center;margin-bottom:6px}
.sdb-add input#mNew{flex:1;height:38px;border:1px solid var(--line);border-radius:7px;padding:0 12px;background:var(--surf);color:var(--ink);font:inherit}
.sdb-add input#mNew:focus{outline:0;border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-w)}
.sdb-add .chk{white-space:nowrap}
#mMsg{display:block;min-height:16px;margin-bottom:6px}
.sdb-list{flex:1 1 auto;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:8px}
.sdb-list .stbl{margin:0}
.sdb-list thead th{position:sticky;top:0;z-index:1;background:var(--surf2)}
.sdb-list .m-ed{width:100%;height:32px;border:1px solid var(--pri);border-radius:6px;padding:0 10px;font:inherit;background:var(--surf);color:var(--ink)}
.sdb-list td.nowrap{white-space:nowrap}
/* the idle window and the "session and security" card */
.kmidle{position:fixed;inset:0;z-index:2100;display:none;align-items:center;justify-content:center;background:rgba(34,41,47,.55);padding:24px}
.kmidle.on{display:flex}
.kmidle-card{background:var(--surf);border-radius:var(--r);max-width:430px;width:100%;padding:34px 30px;text-align:center;box-shadow:0 18px 50px rgba(38,51,44,.3)}
.kmidle-card svg{margin-bottom:18px}
.kmidle-card h3{font-size:17px;font-weight:700;margin-bottom:8px}
.kmidle-card p{font-size:12.5px;color:var(--ink3);line-height:1.9;margin-bottom:20px}
.kmidle-btns{display:flex;gap:10px;justify-content:center}
.kmidle .btn{min-width:130px}
.sg2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.note{font-size:12px;color:var(--ink3)}
.mt6{margin-top:6px}
.banner{border-radius:var(--r);padding:13px 16px;margin-bottom:16px;display:flex;gap:11px;align-items:flex-start}
.banner b{display:block;font-size:13px;margin-bottom:2px}
.banner p b,.banner p strong{display:inline}
.banner.p{background:var(--pri-w);color:var(--pri-d)}
.banner.w{background:var(--gold-w);color:#8A5A12}
html[data-mode="dark"] .banner.w{color:var(--gold)}
.banner .bi{font-size:17px;flex:none;line-height:1.4}
.idle-bn{margin:14px 0 10px}
.idle-acts{display:flex;gap:9px;flex-wrap:wrap}
.scard-h .clk{font-size:16px;line-height:1}
/* settings: style-attribute replacements (strict CSP) */
.w110{width:110px}.w70{width:70px;border-color:var(--line)}.mt10{margin-top:10px}
.kmidle-arc{transition:stroke-dashoffset 1s linear}.kmidle-num{fill:var(--ink)}
/* the "needs a line" trail: the dot to the right of the counter (tree and card) */
.tn .need-dot + .ct{margin-inline-start:5px}
.mini .need-dot{width:7px;height:7px;border-radius:50%;background:var(--bad);flex:none;display:inline-block;margin-inline-start:auto;margin-inline-end:6px}
/* the import window: section names that will be corrected (before ← after) */

.unsaved-acts{margin-top:12px}
/* the sign-in window: one red box above the fields (local checks and the AD service response) */
.lerr{display:flex;gap:9px;align-items:flex-start;margin:0 0 14px;padding:10px 12px;border:1px solid var(--bad);border-radius:9px;background:var(--bad-w);color:var(--bad);font-size:13px;font-weight:600;line-height:1.7}
.lerr[hidden]{display:none}
.lerr-ic{flex:none;width:20px;height:20px;border-radius:50%;background:var(--bad);color:#fff;display:inline-grid;place-items:center;font-size:12px;font-weight:800;line-height:1;margin-top:2px}
/* ═══ the error pages (403, 404, 500 ...) ═══ */
.errpg{display:flex;justify-content:center;align-items:flex-start;padding-top:56px}
.errbox{width:100%;max-width:520px;text-align:center;padding:38px 32px 34px}
.err-ic{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--pri-w);color:var(--pri);margin-bottom:6px}
.err-ic-alert{background:var(--bad-w);color:var(--bad)}
.err-ic-lock{background:var(--gold-w);color:var(--gold)}
.err-code{display:block;text-align:center;font-size:64px;font-weight:800;line-height:1.1;color:var(--pri-d);letter-spacing:2px}
.err-title{margin:6px 0 8px;font-size:21px;color:var(--ink)}
.err-text{margin:0 auto 22px;max-width:400px;color:var(--ink2);font-size:14.5px;line-height:1.9}
.err-home{display:inline-flex;align-items:center;gap:8px}
/* the import in progress: the window locked, a moving bar and the seconds */
.modal.busy .mf, .modal.busy [data-x]{pointer-events:none;opacity:.45}
.iprog{position:sticky;bottom:0;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surf);box-shadow:0 -6px 18px rgba(0,0,0,.06);text-align:center}
.iprog b{display:block;margin-top:10px;font-size:14px;color:var(--ink)}.iprog small{display:block;margin-top:2px;color:var(--ink3);font-size:12.5px}
.iprog-bar{height:8px;border-radius:99px;background:var(--pri-w);overflow:hidden;position:relative}
.iprog-bar span{position:absolute;inset:0 auto 0 0;width:35%;border-radius:99px;background:var(--pri);animation:iprog 1.3s ease-in-out infinite}
@keyframes iprog{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
/* a field in error: a red border (and a soft red glow) until it is changed */
.fld-bad, .fld-bad:focus, .fld-bad:hover{border-color:var(--bad)!important;box-shadow:0 0 0 3px var(--bad-w)!important}
.seg.fld-bad, .stbtns.fld-bad{border:1px solid var(--bad);border-radius:10px;padding:2px}
/* renaming a section by double-click on the data page */
.dt tr.unit:has(td.ren){cursor:text}
.dt input.renin{width:100%;box-sizing:border-box;height:34px;border:1px solid var(--pri);border-radius:8px;padding:0 10px;font:inherit;font-weight:700;box-shadow:0 0 0 3px var(--pri-w);background:var(--surf);color:var(--ink)}
/* ═════ the user guide: the button stuck to the screen edge, the panel and the minimized bar ═════ */
.guidefab{position:fixed;top:50%;transform:translateY(-50%);inset-inline-end:0;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 2px;width:20px;box-sizing:border-box;background:var(--pri);color:#fff;border:none;border-radius:0 8px 8px 0;cursor:pointer;box-shadow:3px 0 12px rgba(68,158,96,.28);z-index:120;transition:background .15s}
.guidefab:hover{background:var(--pri-d)}
.guidefab svg{width:13px;height:13px}
.guidefab span{writing-mode:vertical-rl;font-size:9px;font-weight:600;letter-spacing:.01em;line-height:1}
@media(max-width:900px){.guidefab{display:none}}
.hlp{position:fixed;top:0;bottom:0;inset-inline-end:0;width:440px;max-width:100vw;background:var(--surf);box-shadow:8px 0 32px rgba(0,0,0,.18);z-index:130;display:flex;flex-direction:column;transform:translateX(-105%);transition:transform .22s ease}
.hlp.on{transform:none}
.hlp-hd{background:var(--pri-d);color:#fff;padding:16px 18px 14px;display:flex;flex-direction:column;gap:10px}
.hlp-row{display:flex;align-items:center;gap:10px}
.hlp-row h2{margin:0;font-size:18px;font-weight:800;flex:1}
.hlp-ib{width:34px;height:34px;border-radius:8px;border:0;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}
.hlp-ib:hover{background:rgba(255,255,255,.26)}
.hlp-chip{background:rgba(255,255,255,.18);padding:2px 10px;border-radius:999px;font-weight:700;font-size:12.5px}
.hlp-sub{font-size:13px;opacity:.95;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hlp-q{display:flex;align-items:center;gap:8px;background:var(--surf);border:1px solid var(--line);border-radius:10px;padding:0 12px;height:40px;color:var(--ink2)}   /* follows the light and dark modes */
.hlp-q input{border:0;outline:0;flex:1;font:inherit;font-size:14px;background:transparent;color:var(--ink)}
.hlp-q input::placeholder{color:var(--ink3)}
.hlp-q:focus-within{border-color:var(--pri)}
.hlp-bd{flex:1;overflow:auto;padding:4px 0 18px}
.hlp-g{padding:14px 18px 6px;font-size:12.5px;font-weight:800;color:var(--pri-d)}
.hlp-it{display:flex;align-items:center;gap:12px;padding:10px 18px;width:100%;border:0;background:none;text-align:start;font:inherit;color:var(--ink);cursor:pointer}
.hlp-it:hover{background:var(--pri-w)}
.hlp-ic{width:32px;height:32px;border-radius:8px;background:var(--pri-w);color:var(--pri-d);display:grid;place-items:center;flex:none;font-weight:800}
.hlp-it b{display:block;font-size:14.5px}.hlp-it small{color:var(--ink3);font-size:12.5px}
.hlp-it .hlp-tx{flex:1}
.hlp-desc{margin:0;font-size:13.5px;line-height:1.7;opacity:.95}
.hlp-steps{list-style:none;margin:0;padding:16px 18px 10px;display:flex;flex-direction:column;gap:22px}
.hlp-st{display:flex;flex-direction:column;gap:9px;cursor:pointer;border-radius:10px;padding:6px;margin:-6px}
.hlp-st.cur{background:var(--pri-w)}
.hlp-st .hlp-sr{display:flex;gap:10px;align-items:flex-start}
.hlp-n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--pri-d);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13.5px}
.hlp-st p{margin:0;font-size:14.5px;line-height:1.75}
.hlp-st img{display:block;max-width:calc(100% - 38px);max-height:420px;margin-inline-start:38px;border-radius:10px;border:1px solid var(--line);object-fit:contain;object-position:top right;background:#fff}
.hlp-tip{margin:6px 18px 18px;padding:12px 14px;border-radius:12px;background:var(--gold-w);color:#6B4E12;display:flex;gap:10px;font-size:13.5px;line-height:1.7}
.hlp-none{padding:30px 18px;color:var(--ink3);text-align:center}
.hlp-mini{position:fixed;inset-inline-end:0;bottom:24px;width:400px;max-width:calc(100vw - 24px);box-sizing:border-box;background:var(--surf);border:1px solid var(--line);border-inline-end:0;border-radius:0 14px 14px 0;box-shadow:0 12px 36px rgba(0,0,0,.22);z-index:130;overflow:hidden}
.hlp-mini .hlp-row{background:var(--pri-d);color:#fff;padding:10px 12px}
.hlp-mini .hlp-row b{flex:1;font-size:14.5px}
.hlp-mini .hlp-ib{width:30px;height:30px}
.hlp-mb{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px}
.hlp-bar{height:6px;border-radius:999px;background:var(--pri-w);overflow:hidden}.hlp-bar span{display:block;height:6px;background:var(--pri);border-radius:999px}
.hlp-nav{display:flex;gap:8px}.hlp-nav .btn{flex:1;justify-content:center}
.hlp-mb .hlp-sr{display:flex;gap:10px}.hlp-mb .hlp-sr p{margin:0;font-size:14px;line-height:1.7}
.guidefab[hidden], .hlp[hidden], .hlp-mini[hidden]{display:none}
@media print{.guidefab, .hlp, .hlp-mini{display:none!important}}
/* small icon buttons (device types: edit, done, delete) */
.mib{width:30px;height:30px;padding:0;border-radius:8px;border:1px solid var(--line);background:var(--surf);color:var(--ink2);display:inline-grid;place-items:center;cursor:pointer;vertical-align:middle}
.mib:hover{border-color:var(--pri);color:var(--pri-d)}
.mib.ok{background:var(--pri);border-color:var(--pri);color:#fff}
.mib.del:hover{border-color:var(--bad);color:var(--bad)}
.mib:disabled{opacity:.4;cursor:not-allowed}
/* the data page search row: a wide name search; the type list as wide as its longest name (set by data.js) */
#dAdv > input{flex:2 1 380px;max-width:640px}
/* the users page: the edit button in the middle of its column */
td.c > .ubtn{margin-inline:auto}
/* the sign-out confirmation text */
.lo-txt{margin:0;font-size:15px;line-height:1.8;color:var(--ink)}
/* the users page: the region and permission chips in the middle of their columns */
td.c .ucs{justify-content:center}
/* ordering by dragging on the home page (editors): lines in the list, sections in the tree */
body.ord-on{user-select:none;cursor:grabbing}
.ord-drag{opacity:.35}
.ord-ghost{position:fixed;z-index:400;pointer-events:none;box-shadow:var(--sh);background:var(--surf);border-radius:var(--r-sm);list-style:none}
.ord-ghost.row,.ord-ghost.tn{margin:0}
/* a card's numbers sit at its far left */
html[dir=rtl] .mini>b{margin-right:auto;text-align:left}
html[dir=ltr] .mini>b{margin-left:auto;text-align:right}
html[dir=rtl] .mini .need-dot+b{margin-right:0}
html[dir=ltr] .mini .need-dot+b{margin-left:0}
.mini .need-dot+b{min-width:0}
.mini .need-dot{margin-inline-end:0}
/* import window: the choice between "devices only" and the whole region, and the old value under a changed one */
.imode{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;font-size:13px;color:var(--ink2)}
.iold{display:block;font-size:11px;color:var(--ink3);text-decoration:line-through}
.imode .seg button{white-space:nowrap;padding:7px 14px}
/* the "back to top" button: at the bottom of the left edge (the right edge in English), above the page, below the windows and the user guide */
.totop{position:fixed;inset-inline-end:18px;bottom:22px;width:42px;height:42px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--pri);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.22);cursor:pointer;z-index:50;transition:background .15s,transform .15s}
.totop:hover{background:var(--pri-d);transform:translateY(-2px)}
.totop[hidden], .scrim.on ~ .totop{display:none}   /* also hidden under the side panels of small screens */
@media print{.totop{display:none!important}}
/* the line window: wider (three numbers on a row), and the Cisco system's numbers in one group */
.modal .mb.mb-line{max-width:650px}
.fgrp{border:1px solid var(--line);border-radius:10px;padding:6px 12px 2px;margin:0 0 12px;background:var(--surf2)}
.fgrp legend{padding:0 6px;font-size:12.5px;font-weight:700;color:var(--pri-d)}
