@font-face{font-family:"Manarat Arabic";src:url("assets/arabic.ttf") format("truetype");font-display:swap}
:root{color-scheme:light;--ink:#152440;--muted:#55657e;--line:#e4eaf2;--blue:#2554cf;--nav:#101d36;--bg:#f5f7fb;--green:#087b65;--shadow:0 2px 4px #10203a04;--radius:15px;font:14px/1.5 "Inter",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}html:lang(ar){font-family:"Manarat Arabic",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5b89ff;outline-offset:2px}.skip{position:fixed;inset-inline-start:12px;top:-60px;z-index:9;background:white;padding:8px 12px}.skip:focus{top:8px}
.shell{min-height:100dvh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--nav);color:#c1cce1;padding:25px 17px 16px;min-width:0;z-index:3;overflow:auto}.brand{display:flex;align-items:center;gap:11px;padding:0 6px 23px;color:white;border-bottom:1px solid #ffffff1c}.brandmark{width:42px;height:42px;flex:none;border-radius:11px;overflow:hidden;background:#fff;display:grid;place-items:center}.brandmark img{width:40px;height:30px;object-fit:contain}.brand strong{font-size:13px;letter-spacing:.025em;display:block;white-space:nowrap}.brand small{display:block;color:#a9b6ce;font-size:11px;margin-top:1px}.side-label{margin:24px 10px 10px;color:#98a9c7;text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:750}.navlist{display:grid;gap:3px}.navbtn{background:transparent;color:#c1cce1;text-align:start;border:0;border-radius:8px;padding:11px 11px;display:flex;align-items:center;gap:11px;font-weight:550;font-size:13px;min-height:43px}.navbtn:hover{background:#ffffff10;color:#fff}.navbtn.current{background:#233962;color:#fff;box-shadow:inset 0 0 0 1px #4768a13b}.navbtn.current svg{color:#94b8ff}.sidebottom{margin-top:auto;padding-top:22px}.portal-box{display:flex;gap:9px;align-items:center;border-top:1px solid #ffffff1c;padding:15px 4px 3px}.portal-box>span{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#243859;color:#aec3ed;flex:none}.portal-box div{flex:1;min-width:0}.portal-box label{color:#a6b5cf;font-size:10px;display:block}.portal-box select{width:100%;border:0;background:transparent;color:#fff;padding:0;display:block;font-size:12px;font-weight:650}.portal-box option{color:var(--ink);background:white}
.workspace{min-width:0}.top{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 30px;background:#fff;border-bottom:1px solid var(--line)}.top-left,.top-right{display:flex;align-items:center;gap:12px}.top-title{font-weight:700;font-size:14px}.divider{height:30px;width:1px;background:var(--line)}.tag-demo{display:inline-flex;align-items:center;gap:6px;background:#fff7e2;color:#75541a;border:1px solid #f7e9bd;border-radius:100px;padding:4px 9px;font-size:10.5px;font-weight:750;white-space:nowrap}.tag-demo i,.status i,.pulse{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;flex:none}.tag-demo i{background:#c58c13}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e8efff;color:#2248a5;font-weight:750;font-size:12px}.top-user strong,.top-user small{display:block;line-height:1.35}.top-user small{color:var(--muted);font-size:11px;margin-top:2px}.top-user strong{font-size:12px}.iconbutton{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#3c4e6a;border:1px solid var(--line);border-radius:9px;width:36px;height:36px;flex:none;position:relative}.iconbutton:hover,.btn.secondary:hover{background:#f0f4fb}.language{width:auto;gap:6px;padding-inline:8px;font-weight:650;font-size:12px}.notice-dot{position:absolute;top:5px;inset-inline-end:5px;width:7px;height:7px;border:1px solid white;border-radius:50%;background:#d68f19}.mobile-toggle,.mobile-scrim{display:none}
.content{max-width:1500px;margin:auto;padding:25px 30px 38px}.hero{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:0 0 22px}.eyeline{color:#315698;font-weight:750;font-size:11px;letter-spacing:.11em;text-transform:uppercase;margin-bottom:5px}.hero h1{font-size:clamp(25px,3vw,36px);line-height:1.16;letter-spacing:-.035em;font-weight:760}.hero p{color:var(--muted);margin-top:7px;font-size:13px}.hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;gap:7px;align-items:center;justify-content:center;text-decoration:none;border:1px solid transparent;border-radius:9px;padding:9px 13px;min-height:37px;background:#edf2fd;color:#2046a3;font-size:12px;font-weight:700;white-space:nowrap}.btn:hover{background:#e1ebff}.btn.primary{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 2px 4px #254bb231}.btn.primary:hover{background:#1745b9}.btn.secondary{color:#394d6c;background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.btn.link{padding:4px 2px;min-height:31px;background:transparent;color:#234fbf}.btn.link:hover{text-decoration:underline}.btn.small{padding:5px 9px;min-height:30px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}.kpi,.card{background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);min-width:0}.kpi{display:grid;gap:3px;padding:15px 16px 13px}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:3px}.glyph{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#2756c5;background:#eaf0ff;flex:none}.glyph.green{color:#087b65;background:#e5f6ef}.glyph.gold{color:#966018;background:#fff2d9}.glyph.violet{color:#6647b5;background:#f0eaff}.kpi strong{font-size:27px;line-height:1.14;letter-spacing:-.04em}.kpi-label{color:#42536f;font-size:12px;font-weight:650}.kpi small{color:var(--muted);font-size:11px;margin-top:3px;line-height:1.3}.kpi small b{color:var(--green)}.card-head{padding:16px 17px 13px;display:flex;justify-content:space-between;align-items:center;gap:9px}.card-head h2,.card-head h3{font-weight:750;font-size:16px;line-height:1.2;letter-spacing:-.015em}.card-head p{color:var(--muted);font-size:11.75px;margin-top:4px}.grid-main{display:grid;grid-template-columns:1.15fr 1fr;gap:15px;margin-bottom:17px}.card-body{padding:6px 17px 17px}.card+.section-gap,.section-gap{margin-top:16px}
.chart-content{padding:0 17px 14px}.chart-legend{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center;margin:0 0 2px}.chart-legend i{height:7px;width:7px;border-radius:50%;background:#3a64d4}.chart-plot{display:grid;grid-template-columns:30px 1fr;grid-template-rows:151px 20px;gap:3px}.axis{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#61718a;text-align:start;line-height:1;grid-row:1}.bars{position:relative;display:flex;align-items:end;justify-content:space-around;gap:8px;padding:0 8px;background:repeating-linear-gradient(to top,#e9edf3 0 1px,transparent 1px 25%);border-top:1px solid #e9edf3;border-bottom:1px solid #e9edf3;grid-column:2}.bar{width:min(28px,65%);background:linear-gradient(#5180f1,#3260d2);border-radius:6px 6px 0 0;min-height:2px}.bar:last-child{background:#1b46ba}.bar:hover{filter:brightness(1.15)}.chart-days{grid-column:2;display:flex;justify-content:space-around;font-size:10px;color:var(--muted);gap:4px}.chart-days span,.bars>div{flex:1;text-align:center}.bars>div{height:100%;display:flex;justify-content:center;align-items:end}.chart-select,.field-select{color:#425471;background:#fff;border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:11px;font-weight:650}
.map-wrap{position:relative;background:#edf2ef;overflow:hidden;isolation:isolate}.map-wrap canvas{width:100%;height:177px;display:block}.map-full canvas{height:380px}.map-stamp{position:absolute;bottom:8px;inset-inline-end:8px;padding:3px 6px;border-radius:4px;background:#ffffffef;color:#33445d;font-size:10px;box-shadow:var(--shadow)}.map-tools{position:absolute;top:9px;inset-inline-end:9px;display:grid;gap:4px}.map-tools button{width:30px;height:28px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:16px;line-height:1}.map-key{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 16px;color:#42536d;font-size:11px}.map-key span:first-child{display:flex;align-items:center;gap:6px}.map-key .pulse{color:#0c9c80;box-shadow:0 0 0 3px #e1f7f0}.tablewrap{overflow:auto;max-width:100%}.tablewrap table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap;font-size:12px}.tablewrap th{text-align:start;background:#f6f8fc;font-size:10px;letter-spacing:.055em;text-transform:uppercase;color:#566681;font-weight:720}.tablewrap td,.tablewrap th{padding:11px 16px;border-bottom:1px solid #edf0f5}.tablewrap tr:last-child td{border-bottom:0}.tablewrap tr:hover td{background:#fcfdff}.tablewrap td strong{font-weight:700}.row-icon{display:inline-flex;align-items:center;gap:8px}.row-icon .glyph{width:30px;height:30px;border-radius:8px}.status{display:inline-flex;align-items:center;gap:5px;border-radius:100px;padding:4px 7px;font-size:10.5px;font-weight:700;color:#2b4a9c;background:#ecf1ff}.status.good{background:#e7f6ef;color:#087b65}.status.warn{background:#fff4df;color:#895718}.status.gray{background:#eef1f5;color:#53637d}.status.bad{background:#ffeded;color:#9b393c}.status i{height:6px;width:6px}.muted{color:var(--muted)}.empty{padding:26px 17px;text-align:center;color:var(--muted)}.search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 8px;min-width:0;color:var(--muted)}.search input{min-width:0;width:160px;border:0;background:none;padding:8px 1px;outline-offset:-1px;color:var(--ink);font-size:12px}.stack{display:grid;gap:12px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-cell{background:#f7f9fd;border:1px solid #edf1f8;padding:11px 12px;border-radius:9px;overflow-wrap:anywhere}.detail-cell small{color:var(--muted);display:block}.detail-cell strong{display:block;margin-top:3px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.banner{padding:11px 13px;border:1px solid #e3ebfd;background:#f0f5ff;border-radius:9px;color:#314975;font-size:12px;margin-bottom:13px}.notification{display:flex;align-items:start;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.notification:last-child{border:0}.notification p{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.notification .glyph{width:32px;height:32px}.notification>div{flex:1;min-width:0}.filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-bottom:13px}.filters label{min-width:124px;flex:0 1 auto}
dialog{color:var(--ink);border:1px solid var(--line);width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 34px);border-radius:15px;padding:0;box-shadow:0 16px 64px #15244050;overscroll-behavior:contain}dialog::backdrop{background:#101d3670}dialog .modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 19px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1;gap:10px}.modal-head h2{font-size:19px;line-height:1.25}.modal-body{padding:16px 19px 19px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:4px;color:#374a67;font-size:12px;font-weight:650;min-width:0}.field input,.field select,.field textarea{color:var(--ink);border:1px solid #d9e2ee;border-radius:8px;min-height:38px;background:#fff;padding:7px 9px;width:100%}.field textarea{min-height:92px;resize:vertical}.field .hint{font-weight:400;color:var(--muted);font-size:11px}.wide{grid-column:1/-1}.form-footer{display:flex;justify-content:end;gap:8px;flex-wrap:wrap;margin-top:17px}.error{color:#9b393c;font-size:12px;margin-top:9px}.pdf-frame{display:block;width:100%;height:58vh;border:1px solid var(--line);border-radius:8px;margin-block:10px}.pdf-dialog{width:min(810px,calc(100vw - 24px))}
#toast{position:fixed;inset-inline-end:18px;bottom:18px;background:#112240;color:#fff;z-index:8;padding:10px 14px;border-radius:9px;box-shadow:0 4px 16px #10203a40;max-width:min(390px,calc(100vw - 36px));display:none}#toast.show{display:block}[dir=rtl] .hero h1,[dir=rtl] .card-head h2,[dir=rtl] .eyeline,[dir=rtl] .brand strong{letter-spacing:0}[dir=rtl] .btn svg[orientation=forward]{transform:scaleX(-1)}
@media(max-width:1110px){.shell{grid-template-columns:215px minmax(0,1fr)}.top,.content{padding-inline:21px}.sidebar{padding-inline:13px}.kpis,.grid-main{gap:11px}.kpi{padding:13px}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{display:none;position:fixed;inset-block:0;inset-inline-start:0;width:248px}.sidebar.open{display:flex}.mobile-toggle{display:inline-flex}.mobile-scrim.visible{display:block;position:fixed;inset:0;z-index:2;background:#101d3670;border:0}.top{height:61px}.content{padding-top:19px}}
@media(max-width:600px){.top,.content{padding-inline:13px}.top-left,.top-right{gap:7px}.top-title,.top-user,.top-right .divider{display:none}.content{padding-bottom:26px}.hero{align-items:start;flex-direction:column;margin-bottom:15px;gap:10px}.hero-actions{gap:6px}.hero h1{font-size:27px}.hero p{font-size:12px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.kpi{padding:11px}.kpi strong{font-size:23px}.grid-main{grid-template-columns:1fr;gap:10px;margin-bottom:12px}.card-head{padding:14px 12px 10px;flex-wrap:wrap}.card-body,.chart-content{padding-inline:12px}.tablewrap th,.tablewrap td{padding-inline:11px}.map-full canvas{height:265px}.form-grid{grid-template-columns:1fr}.detail-grid{gap:7px}.detail-cell{padding:8px}.modal-body,.modal-head{padding-inline:13px}.search input{width:130px}.filters label{flex:1;min-width:110px}.language{font-size:11px}}
.mobile-brand{display:none}
@media(max-width:600px){
  .top{gap:8px}
  .top-left,.top-right{gap:6px}
  .top-left{min-width:0}
  .top-left .mobile-toggle,.top-right{flex:none}
  .top-right .avatar,.top .workspace-status{display:none}
  .mobile-brand{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750;font-size:12px}
}
@media(max-width:345px){.top,.content{padding-inline:8px}.top{gap:6px}.top-left,.top-right{gap:5px}.top .iconbutton:not(.language){width:34px}.top .language,.tag-demo{padding-inline:6px}}
.portal-box a{display:block;color:#c1cce1;font-size:11px;margin-top:7px}.portal-email{display:block;font-size:12px;color:white;overflow:hidden;text-overflow:ellipsis}.workspace-gate{min-height:100vh;display:grid;place-items:center;padding:16px}.workspace-gate .card{width:min(460px,100%);padding:28px}.workspace-gate img{width:65px}.workspace-gate p{margin:9px 0 18px}

.workspace-gate .gate-identity{padding:9px 11px;border-radius:8px;background:#eef3fc;overflow-wrap:anywhere}
.portal-box .portal-signout{margin-top:7px;padding:0;border:0;background:transparent;color:#c1cce1;font-size:11px;text-decoration:underline;text-align:start}.workspace-gate input[name=code]{letter-spacing:.22em}
.workspace-gate .gate-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gate-choices{display:grid;gap:10px;margin-top:18px}
.gate-choice.btn{display:grid;justify-content:stretch;gap:2px;padding:12px 14px;white-space:normal;text-align:start}
.gate-choice strong{font-size:14px}
.gate-choice span{font-weight:500}
.gate-section-title{font-size:16px;margin-top:14px}
.gate-switch{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:16px;font-size:12px}
.agreement-terms{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f7f9fd}
.agreement-terms [lang=ar]{font-family:"Manarat Arabic",sans-serif;line-height:1.8}
.agreement-terms h4{margin:12px 0 3px}
.agreement-consent{padding:10px;border:1px solid var(--line);border-radius:8px}
.gmail-steps{margin:0 0 16px;padding-inline-start:23px;overflow-wrap:anywhere}.gmail-steps li+li{margin-top:9px}
.consent{display:flex;align-items:flex-start;gap:8px;color:#374a67;font-size:12px;line-height:1.5}.consent input{flex:none;margin-top:3px}.profile-photo{margin-bottom:14px}.profile-photo img{width:68px;height:68px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}.workspace-gate .registration-card{width:min(630px,100%)}.workspace-gate .registration-card .card{width:100%;padding:0}
.gps-routes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:12px}
.gps-route{border:1px solid var(--line);border-radius:10px;padding:13px;min-width:0}
.gps-route-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.gps-route-heading h3{font-size:14px;margin:0}
.gps-meta{display:flex;flex-wrap:wrap;gap:5px 10px;margin-block:5px 9px;color:var(--muted)}
.gps-note{color:var(--muted);margin:0 0 10px}
.gps-status{color:var(--muted);margin:0}
.gps-map{height:clamp(260px,49vh,500px);border:1px solid var(--line);border-radius:9px;background:#eef3f8;isolation:isolate;direction:ltr}
.gps-stop{white-space:nowrap}
.gps-stop[hidden]{display:none}
[data-gps-map-error]{font-size:12px;color:var(--muted);margin-top:7px}
.upload-control{position:relative;display:flex;align-items:center;gap:9px;min-width:0}
.upload-control .btn{pointer-events:none;white-space:nowrap}
.upload-control input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;z-index:1}
.upload-control:focus-within .btn{outline:2px solid #2756c5;outline-offset:2px}
.upload-filename{color:var(--muted);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[dir=rtl] .field input:is([type=email],[type=tel],[type=url],[type=number],[name=code]){direction:ltr;text-align:start}
.driver-log-body{padding-block:14px}
.driver-log-body p{margin-bottom:10px}
.driver-profile-email{color:var(--muted);overflow-wrap:anywhere;margin-bottom:8px}
.driver-profile-meta:not(:empty){margin-bottom:12px}
.driver-picker{min-width:min(290px,100%)}
.driver-entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,246px),1fr));gap:12px}
.driver-entry{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:10px;padding:13px;min-width:0}
.driver-entry-title{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}
.driver-entry h3{font-size:14px}
.driver-entry p,.driver-entry dt{color:var(--muted);overflow-wrap:anywhere}
.driver-entry dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:7px;margin:3px 0}
.driver-entry dt{font-size:11px}
.driver-entry dd{margin:0;font-weight:750}
.driver-entry-note{white-space:pre-wrap}
.driver-entry .actions{margin-top:auto}
#dialog .form-grid>p.hint{font-size:11px;color:var(--muted)}
