/* Masarsense Repair — "modern" interface theme. © 2026 Masarsense.
   Active only when <body> carries .ui-modern; the classic look is untouched otherwise.
   Font: IBM Plex Sans Arabic (SIL Open Font License, see fonts/OFL-IBM-Plex.txt). */
@font-face{font-family:"IBM Plex Sans Arabic";src:url("/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2");font-weight:700;font-display:swap}

body.ui-modern{
  --bg:#F4F6F8; --surface:#FFFFFF; --surface2:#F7F9FA; --ink:#0F1E26; --muted:#56666E; --line:#E1E7EA;
  --mat:#1F5466; --mat2:#1F5466; --mat-ink:#FFFFFF; --side:#0F2F3A; --side-ink:#D5E3E8; --side-muted:#8FAAB4;
  --cta:#F2B233; --cta-ink:#0F1E26;
  --ok:#15803D; --ok-bg:#DCFCE7; --res:#B45309; --res-bg:#FEF3C7; --bad:#B91C1C; --bad-bg:#FEE2E2; --iss:#1D4ED8; --iss-bg:#DBEAFE;
  font-family:"IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif; font-size:15px; background:var(--bg);
}
@media (prefers-color-scheme: dark){body.ui-modern{
  --bg:#0E171C; --surface:#152229; --surface2:#1A2A32; --ink:#E8EFF2; --muted:#9FB0B8; --line:#26363F;
  --mat:#2A7A93; --mat2:#2A7A93; --side:#0A1F27; --side-ink:#C9D9DF; --side-muted:#7F99A3;
  --ok:#6CCB90; --ok-bg:#163423; --res:#F0B847; --res-bg:#3A2D10; --bad:#F08A7A; --bad-bg:#3D1C17; --iss:#93B4F5; --iss-bg:#1C2A47;
}}
body.ui-modern h1{font-size:26px;font-weight:700}
body.ui-modern h2{font-weight:700}

/* ---------- shell: side menu on the start side, content beside it ---------- */
body.ui-modern #appScreen:not([hidden]){display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh;align-items:start}
body.ui-modern #appScreen>header{grid-column:1;grid-row:1/span 20;position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--side);color:var(--side-ink);
  display:flex;flex-direction:column;gap:6px;padding:18px 12px 14px;scrollbar-width:thin}
body.ui-modern #appScreen>:not(header){grid-column:2}
body.ui-modern header .bar{display:contents}
body.ui-modern header .brand{order:0;margin:0 0 10px;padding:4px 8px;color:#FFFFFF;font-size:15px}
body.ui-modern header .brand small{color:var(--side-muted);font-weight:400}
body.ui-modern header .hsel{order:1;margin:0 4px 6px;color:var(--side-muted);font-size:12px}
body.ui-modern header .hsel select{width:100%;background:#163F4D;color:#FFFFFF;border:1px solid #24576A;border-radius:10px;padding:8px 10px}
body.ui-modern header #nav{order:2;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;overflow:visible}
body.ui-modern #nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border-radius:10px;background:transparent;color:var(--side-ink);opacity:1;font-size:14.5px;text-align:start}
body.ui-modern #nav button::before{content:"";width:18px;height:18px;flex:none;background:currentColor;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
body.ui-modern #nav button:hover{background:rgba(255,255,255,.07)}
body.ui-modern #nav button[aria-current="page"]{background:var(--mat);color:#FFFFFF;font-weight:600}
body.ui-modern #nav .ct{margin-inline-start:auto;opacity:1;font-size:12px;font-weight:700;background:var(--cta);color:var(--cta-ink);border-radius:999px;padding:0 8px;line-height:20px}
body.ui-modern #nav .ct:empty{display:none}
body.ui-modern #nav button[data-v="tasks"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 11l3 3L22 4%22/%3E%3Cpath d=%22M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 11l3 3L22 4%22/%3E%3Cpath d=%22M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="search"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="intake"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14%22/%3E%3Cpath d=%22M5 12h14%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14%22/%3E%3Cpath d=%22M5 12h14%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="tickets"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z%22/%3E%3Cpath d=%22M13 5v2%22/%3E%3Cpath d=%22M13 17v2%22/%3E%3Cpath d=%22M13 11v2%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z%22/%3E%3Cpath d=%22M13 5v2%22/%3E%3Cpath d=%22M13 17v2%22/%3E%3Cpath d=%22M13 11v2%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="stock"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z%22/%3E%3Cpath d=%22m3.3 7 8.7 5 8.7-5%22/%3E%3Cpath d=%22M12 22V12%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z%22/%3E%3Cpath d=%22m3.3 7 8.7 5 8.7-5%22/%3E%3Cpath d=%22M12 22V12%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="damaged"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h18%22/%3E%3Cpath d=%22M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6%22/%3E%3Cpath d=%22M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h18%22/%3E%3Cpath d=%22M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6%22/%3E%3Cpath d=%22M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="devices"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%2214%22 height=%2220%22 x=%225%22 y=%222%22 rx=%222%22/%3E%3Cpath d=%22M12 18h.01%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%2214%22 height=%2220%22 x=%225%22 y=%222%22 rx=%222%22/%3E%3Cpath d=%22M12 18h.01%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="log"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6h13%22/%3E%3Cpath d=%22M8 12h13%22/%3E%3Cpath d=%22M8 18h13%22/%3E%3Cpath d=%22M3 6h.01%22/%3E%3Cpath d=%22M3 12h.01%22/%3E%3Cpath d=%22M3 18h.01%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6h13%22/%3E%3Cpath d=%22M8 12h13%22/%3E%3Cpath d=%22M8 18h13%22/%3E%3Cpath d=%22M3 6h.01%22/%3E%3Cpath d=%22M3 12h.01%22/%3E%3Cpath d=%22M3 18h.01%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-v="approvals"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-g="reports"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3v18h18%22/%3E%3Cpath d=%22m19 9-5 5-4-4-3 3%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3v18h18%22/%3E%3Cpath d=%22m19 9-5 5-4-4-3 3%22/%3E%3C/svg%3E")}
body.ui-modern #nav button[data-g="settings"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 2v3%22/%3E%3Cpath d=%22M12 19v3%22/%3E%3Cpath d=%22m4.9 4.9 2.1 2.1%22/%3E%3Cpath d=%22m17 17 2.1 2.1%22/%3E%3Cpath d=%22M2 12h3%22/%3E%3Cpath d=%22M19 12h3%22/%3E%3Cpath d=%22m4.9 19.1 2.1-2.1%22/%3E%3Cpath d=%22m17 7 2.1-2.1%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M12 2v3%22/%3E%3Cpath d=%22M12 19v3%22/%3E%3Cpath d=%22m4.9 4.9 2.1 2.1%22/%3E%3Cpath d=%22m17 17 2.1 2.1%22/%3E%3Cpath d=%22M2 12h3%22/%3E%3Cpath d=%22M19 12h3%22/%3E%3Cpath d=%22m4.9 19.1 2.1-2.1%22/%3E%3Cpath d=%22m17 7 2.1-2.1%22/%3E%3C/svg%3E")}
body.ui-modern header .who{order:3;margin-top:auto;text-align:start;background:#163F4D;border-radius:12px;padding:10px 12px;color:#FFFFFF}
body.ui-modern header .who small{color:var(--side-muted)}
body.ui-modern header .hbtn{order:4;width:100%;min-height:40px;text-align:start;border:0;border-radius:10px;background:transparent;color:var(--side-ink);padding:0 12px;font-size:13.5px}
body.ui-modern header .hbtn:hover{background:rgba(255,255,255,.07)}
body.ui-modern header .hbtn b{inset-inline-start:auto;inset-inline-end:10px;top:10px}
body.ui-modern main{max-width:1260px;margin:0;padding:24px 28px 60px}
body.ui-modern .banner,body.ui-modern .notices{margin:12px 28px 0}

/* ---------- surfaces ---------- */
body.ui-modern .panel,body.ui-modern .tag,body.ui-modern .taskbox,body.ui-modern .setnav{border-radius:16px;border-color:var(--line);box-shadow:0 1px 2px rgba(15,30,38,.04)}
body.ui-modern .tag-head{background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line)}
body.ui-modern .tag-head .hole{display:none}
body.ui-modern .action{background:var(--surface);border:2px solid var(--mat);border-radius:16px}
body.ui-modern .btn{border-radius:11px;font-weight:600;min-height:42px}
body.ui-modern .btn.sm{min-height:34px}
body.ui-modern .btn.ghost{background:var(--surface)}
/* the main action of a form is the warm colour */
body.ui-modern #intakeForm [type=submit],body.ui-modern .action .btn:not(.ghost):not(.danger):first-of-type{background:var(--cta);color:var(--cta-ink)}
body.ui-modern .f input,body.ui-modern .f select,body.ui-modern .f textarea,body.ui-modern .inp{background:var(--surface);border-color:#D3DCE0;border-radius:10px;min-height:44px}
body.ui-modern .pill{font-weight:600;padding:3px 10px}
body.ui-modern .chips label,body.ui-modern .chip{background:var(--surface);min-height:38px}
body.ui-modern .rp-kpis div{border-radius:14px}
body.ui-modern .rp-kpis b{font-weight:700}

/* ---------- my tasks: section boxes as columns ---------- */
body.ui-modern .taskbox{border-top-width:1px;background:var(--surface2)}
body.ui-modern .taskhead>b{font-size:26px}
body.ui-modern .tasklist button{background:var(--surface);border-radius:12px;padding:10px 12px}

/* ---------- side menu of a group (settings, reports) ---------- */
body.ui-modern .setnav button[aria-current="page"]{background:var(--mat)}

/* ---------- login ---------- */
body.ui-modern .screen-center{background:var(--side)}
body.ui-modern .lcard{border-radius:20px}

/* ---------- phones and narrow windows: the side menu becomes a top bar ---------- */
@media (max-width: 860px){
  body.ui-modern #appScreen:not([hidden]){display:block}
  body.ui-modern #appScreen>header{position:sticky;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px}
  body.ui-modern header .brand{margin:0 0 0 auto}
  body.ui-modern header .who,body.ui-modern header .hsel{display:none}
  body.ui-modern header .hbtn{width:auto;min-height:38px;padding:0 10px;font-size:12.5px;background:#163F4D}
  body.ui-modern header #nav{order:9;flex-direction:row;width:100%;overflow-x:auto;scrollbar-width:none;gap:4px}
  body.ui-modern #nav button{width:auto;flex:none;white-space:nowrap;min-height:40px}
  body.ui-modern main{padding:16px 14px 50px}
}
@media print{body.ui-modern #appScreen>header{display:none!important}body.ui-modern #appScreen:not([hidden]){display:block}}
