:root{--bg:#f4f6f8;--panel:#fff;--ink:#182b40;--muted:#7b8898;--line:#e7ecf1;--accent:#1e6f65;--soft:#e8f4ef;--nav:#142b43;--danger:#b44e45;--shadow:0 5px 22px #142b4305}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}body.dark{--bg:#101b28;--panel:#192939;--ink:#edf3f9;--muted:#a4b2c2;--line:#304253;--soft:#193c36}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:11px 16px;background:var(--panel);color:var(--ink);font-weight:600}button:hover{border-color:#9bb3c3}button.primary{background:var(--nav);color:#fff;border-color:var(--nav)}button.green{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{color:var(--danger)}button:disabled{opacity:.5;cursor:default}a{color:var(--accent)}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}aside{background:var(--nav);color:#fff;padding:32px 22px;position:fixed;inset-block:0;width:238px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;margin-bottom:42px}.monogram{display:grid;place-items:center;width:43px;height:43px;border:1px solid #64758a;border-radius:12px;letter-spacing:-2px;font:bold 21px Georgia}.brand strong{font-size:17px;letter-spacing:1px}.brand small{display:block;font-size:10px;color:#a2b4c6;margin-top:6px;letter-spacing:2px}.navlabel{color:#8ea2b7;font-size:10px;letter-spacing:2px;margin:0 10px 16px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:none;border:0;color:#abbccd;text-align:start;font-weight:500;display:flex;align-items:center;gap:12px;padding:13px}.nav button.active{background:#ffffff12;color:white}.nav .ico{font-size:19px;width:24px;display:inline-block}.asidefoot{margin-top:auto;font-size:12px;color:#91a7bb;padding-top:25px;line-height:1.8}.online{display:inline-block;width:6px;height:6px;background:#65b89f;border-radius:100%;margin-inline-end:7px}.main{grid-column:2;padding:0 42px 40px;min-width:0}header{height:94px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:31px}.breadcrumb{color:var(--muted);font-size:12px}header .actions{display:flex;align-items:center;gap:8px}header button{padding:8px 11px;background:transparent}.avatar{width:34px;height:34px;background:#e5eaf0;color:#213b54;display:grid;place-items:center;border-radius:50%;font-weight:700}.title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:27px}h1{font-size:29px;letter-spacing:-1px;margin:0 0 8px;font-weight:650}p{color:var(--muted);line-height:1.6;margin:5px 0}h2{font-size:17px;margin:0 0 18px}h3{font-size:14px;margin:0 0 12px}.eyebrow{font-size:10px;font-weight:bold;letter-spacing:1.6px;color:var(--accent);margin-bottom:10px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.card{padding:22px}.card label{font-size:12px;color:var(--muted)}.card strong{display:block;font-size:31px;font-weight:600;margin:14px 0 6px;letter-spacing:-1px}.card small{color:var(--muted);font-size:11px}.panel{padding:25px;margin-bottom:22px}.panelhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.panelhead h2{margin:0}.grid2{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.tag{display:inline-block;padding:5px 9px;border-radius:6px;background:var(--soft);color:var(--accent);font-size:11px;font-weight:600}.tag.pending,.tag.new,.tag.planned{background:#fff4df;color:#a0762e}.tag.rejected,.tag.lost{background:#fbece9;color:#b44e45}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{text-align:start;font-weight:500;color:var(--muted);padding:13px 12px;border-bottom:1px solid var(--line);background:var(--bg)}td{padding:15px 12px;border-bottom:1px solid var(--line)}tr:last-child td{border:0}td small{display:block;color:var(--muted);margin-top:5px}td button{padding:6px 9px;font-size:11px}.empty{text-align:center;padding:48px 15px;color:var(--muted)}.empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:8px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;align-items:center}.filters input,.filters select{width:auto;min-width:140px}.filters .grow{flex:1}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px}.field.wide{grid-column:1/-1}input,select,textarea{border:1px solid var(--line);border-radius:9px;padding:12px;background:var(--bg);color:var(--ink);width:100%;min-width:0}textarea{resize:vertical;min-height:85px}.check{display:flex;gap:9px;align-items:center;padding:10px 0;line-height:1.5}.check input{width:auto}.formactions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.notice{padding:13px 17px;background:#fff5dd;color:#896426;border-radius:10px;font-size:12px;line-height:1.6;margin-bottom:22px}.notice.info{background:var(--soft);color:var(--accent)}.bars{height:185px;display:flex;align-items:flex-end;gap:18px;padding-top:20px;border-bottom:1px solid var(--line)}.barwrap{flex:1;text-align:center;min-width:0;position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end}.bar{background:#7da9a0;border-radius:5px 5px 0 0;min-height:2px}.barwrap:nth-child(even) .bar{background:#223f5b}.barwrap span{font-size:10px;color:var(--muted);margin-top:8px;height:20px;overflow:hidden}.barwrap small{font-size:10px;margin-bottom:6px}.ring{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;margin:20px auto;background:conic-gradient(var(--accent) var(--pct),var(--line) 0)}.ring div{background:var(--panel);border-radius:50%;width:116px;height:116px;display:flex;flex-direction:column;justify-content:center;text-align:center}.ring strong{font-size:30px}.ring small{font-size:10px;color:var(--muted);margin-top:4px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}.row small{color:var(--muted);display:block;margin-top:5px}.account{display:flex;align-items:center;gap:10px}.time{font-size:48px;letter-spacing:-2px;font-weight:600;margin:20px 0}.attendance{max-width:720px}.attendance .buttons{display:flex;gap:12px;margin-top:25px}.attendance .buttons button{flex:1}.location{border:1px dashed #b9c9c5;border-radius:12px;padding:20px;background:var(--soft);color:var(--accent);line-height:1.8}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.loginhero{background:var(--nav);padding:70px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}.loginhero h1{font-size:48px;max-width:450px;line-height:1.15}.loginhero p{color:#a8bdce;max-width:400px}.loginbody{display:flex;align-items:center;justify-content:center;padding:40px}.loginform{width:100%;max-width:380px}.loginform h1{font-size:28px;margin-bottom:12px}.loginform .field{margin-top:19px}.loginform button{margin-top:22px;width:100%}.loginform p{font-size:12px}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;background:var(--panel);color:var(--ink);width:min(620px,94vw);max-height:90vh;overflow:auto}dialog::backdrop{background:#10243888;backdrop-filter:blur(4px)}dialog h2{font-size:21px}.error{color:var(--danger);font-size:12px;line-height:1.5;margin-top:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--nav);color:#fff;padding:13px 23px;border-radius:10px;z-index:100;display:none;max-width:90vw}.mobilebrand{display:none}.subtle{font-size:11px;color:var(--muted)}.pipeline{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.leadcard{padding:20px}.leadcard h3{margin:15px 0 7px}.leadcard button{margin-top:18px;font-size:11px}body[dir=rtl] aside{right:0}body[dir=rtl] .main{grid-column:2}body[dir=rtl] .shell{direction:rtl}.audit{font:11px monospace;white-space:normal}.printheading{display:none}@media(max-width:1100px){.main{padding:0 22px 30px}.cards{gap:10px}.card{padding:17px}.grid2{grid-template-columns:1fr}.shell{grid-template-columns:205px 1fr}aside{width:205px}}@media(max-width:760px){.shell{display:block}.main{padding:0 18px 105px}aside{position:fixed;top:auto;bottom:0;width:100%;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.brand,.navlabel,.asidefoot{display:none}.nav{flex-direction:row;overflow-x:auto;gap:2px}.nav button{flex-direction:column;padding:8px;gap:5px;font-size:9px;min-width:58px}.nav .ico{font-size:18px;width:auto}header{height:74px;margin-bottom:23px}.breadcrumb{font-size:10px}.account .username{display:none}h1{font-size:24px}.title{align-items:flex-start}.title p{font-size:12px}.title button{padding:10px;font-size:11px}.cards{grid-template-columns:repeat(2,1fr)}.card strong{font-size:27px}.panel{padding:18px}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.filters input,.filters select{min-width:100px;flex:1}.login{display:block}.loginhero{padding:30px}.loginhero .brand{display:flex;margin-bottom:30px}.loginhero h1{font-size:31px}.loginhero .herofooter{display:none}.loginbody{padding:30px 24px}.pipeline{grid-template-columns:1fr}.attendance .buttons{flex-direction:column}header .actions{gap:5px}header button{padding:7px}.grid2{gap:0}}@media print{aside,header,.filters,button,.notice,dialog,#toast{display:none!important}.shell{display:block}.main{padding:0}.panel,.card{box-shadow:none;break-inside:avoid}.printheading{display:block}.cards{grid-template-columns:repeat(4,1fr)}body{background:white;color:black}.tablewrap{overflow:visible}}
.location-toolbar{display:flex;justify-content:flex-end;margin-bottom:18px}.filtergrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.filterpanel .field{min-width:0}.chartgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.chartgrid .panel{min-width:0}.donutlayout{display:flex;flex-direction:column;align-items:center;gap:22px;padding:12px 0}.donutchart{width:170px;height:170px;border-radius:50%;display:grid;place-items:center}.donutchart>div{width:120px;height:120px;border-radius:50%;background:var(--panel);display:flex;flex-direction:column;align-items:center;justify-content:center}.donutchart strong{font-size:28px}.donutchart small{color:var(--muted)}.legend{display:flex;gap:10px;align-items:center;margin:8px 0;font-size:12px}.legend b{margin-inline-start:auto;padding-inline-start:20px}.legend i,.chartlegend i{width:9px;height:9px;display:inline-block;border-radius:50%;margin-inline-end:6px}.stackchart{height:215px;display:flex;gap:12px;overflow-x:auto;align-items:end;padding:0 4px 10px;direction:ltr}.stackcol{flex:1;min-width:27px;text-align:center}.stackbar{height:165px;display:flex;flex-direction:column-reverse;justify-content:start;border-bottom:1px solid var(--line)}.stackbar>div{min-height:1px}.stackcol small{display:block;margin-top:10px;font-size:10px;color:var(--muted);white-space:nowrap}.chartlegend{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;font-size:11px}.arrivalchart{width:100%;height:210px}.ranking h2{margin:12px 0}.ranking .panel{border-top:3px solid var(--accent)}.ranking .panel+ .panel{border-top-color:#d5a54d}.zonepreview{margin:20px 0;background:var(--soft);border-radius:14px;overflow:hidden;text-align:center}.zonepreview svg{width:100%;height:260px;display:block}.zonepreview>span{display:block;font-size:11px;padding:8px;color:var(--muted)}.sliderfield{display:flex;align-items:center;gap:20px;margin:22px 0}.sliderfield label{flex:1}.sliderfield output{font-weight:bold;min-width:55px}.sliderfield input{accent-color:var(--accent);padding:0;width:100%;margin-top:14px}.zonepanel .buttons{margin:20px 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reportactions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}@media(max-width:1100px){.chartgrid{grid-template-columns:1fr}.donutlayout{flex-direction:row;justify-content:center}.filtergrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.filtergrid{grid-template-columns:1fr}.donutlayout{flex-direction:column}.zonepreview svg{height:210px}.zonepanel{padding:18px}.reportactions button{flex:1}.filterpanel .panelhead{align-items:start;gap:10px}}@media print{.filterpanel,.reportactions,.location-toolbar{display:none!important}.chartgrid{grid-template-columns:repeat(3,1fr)}.stackchart{overflow:visible}.panel{break-inside:avoid}}
#office-map{height:360px;isolation:isolate;border:1px solid var(--line);border-radius:14px;margin:18px 0;z-index:0;background:#e8eef0}.office-pin{background:var(--accent);color:white;border:3px solid white;border-radius:50%;box-shadow:0 2px 10px #142b4360;text-align:center;line-height:24px}.leaflet-container{font:12px Arial,sans-serif}.leaflet-control-attribution{font-size:10px!important}.maptools .buttons{margin:12px 0}.leaflet-control-zoom a{color:#182b40!important}.leaflet-container a{color:#1e6f65}.maptools{margin-top:22px}@media(max-width:600px){#office-map{height:300px}}

/* Nested reporting tree; logical spacing also supports Arabic and dark mode. */
.org-tree{overflow-x:auto}.org-tree ul{list-style:none;margin:0;padding:0}.org-tree li{position:relative;margin:14px 0}.org-tree li>ul{margin-inline-start:25px;padding-inline-start:26px;border-inline-start:1px solid var(--line)}.org-tree li>ul>li:before{content:"";position:absolute;inset-inline-start:-26px;top:32px;width:26px;border-top:1px solid var(--line)}.org-card{max-width:760px;min-width:280px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.org-manager{border-inline-start:4px solid var(--accent);background:var(--soft)}.org-person{display:flex;gap:12px;align-items:center}.org-person>div{flex:1;min-width:0}.org-person strong{display:block;overflow-wrap:anywhere}.org-person small{display:block;color:var(--muted);margin-top:5px}.org-person>.tag{align-self:start}.org-counts{display:flex;gap:24px;color:var(--muted);font-size:12px;margin:14px 0}.org-counts b{color:var(--ink)}.org-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.org-actions button{font-size:12px;padding:8px 12px}@media(max-width:600px){.org-tree{padding:12px}.org-tree li>ul{margin-inline-start:7px;padding-inline-start:10px}.org-tree li>ul>li:before{inset-inline-start:-10px;width:10px}.org-card{min-width:230px;padding:12px}.org-person{gap:8px}.org-person>.tag{display:none}.org-counts{gap:12px}}

/* Keep Overview activity reports stacked and constrain wide employee charts. */
.overview-reports{display:grid;grid-template-columns:minmax(0,1fr)}
.overview-reports>.panel{min-width:0;overflow-x:auto}

.overview-reports .bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(124px,1fr);align-items:stretch;height:auto;width:max-content;min-width:100%;padding-bottom:12px}
.overview-reports .barwrap{display:grid;grid-template-rows:20px 140px auto;align-items:end;height:auto;min-width:124px}
.overview-reports .barwrap span{height:auto;min-height:54px;overflow:visible;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:var(--ink);align-self:start}
.attendance-print{display:none}@media print{body:has(.attendance-print)>.shell,body:has(.attendance-print)>#app{display:none!important}.attendance-print{display:block;color:#000;background:#fff}.attendance-print table{white-space:normal;font-size:10px}.attendance-print th,.attendance-print td{padding:7px;color:#000}.attendance-print .tablewrap{overflow:visible}}

/* Compact dashboard, accessible native disclosure panels. */
.disclosure{padding:0;overflow:hidden}.disclosure>summary{cursor:pointer;padding:19px 24px;font-weight:650;font-size:16px;list-style:none;display:flex;gap:16px;align-items:center}.disclosure>summary::-webkit-details-marker{display:none}.disclosure>summary:before{content:'＋';color:var(--accent);font-size:20px}.disclosure[open]>summary:before{content:'−'}.disclosure>summary small{margin-inline-start:auto;font-size:12px;font-weight:400;color:var(--muted)}.disclosure-body{padding:0 24px 24px}.filter-disclosure .filterpanel{border:0;box-shadow:none;padding:8px 0;margin:0}.filter-disclosure .panelhead h2{display:none}.filter-disclosure .panelhead{justify-content:flex-end;margin-bottom:12px}.compact-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(30px,1fr));gap:5px;max-width:100%;padding-top:12px}.compact-column{min-width:0;display:flex;align-items:center;flex-direction:column;gap:9px}.compact-track{height:154px;width:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.compact-track small{font-size:11px}.compact-bar{width:80%;max-width:34px;background:#7da9a0;border-radius:4px 4px 0 0;flex-shrink:0}.compact-column:nth-child(even) .compact-bar{background:#355a78}.compact-column>span{writing-mode:vertical-rl;transform:rotate(180deg);height:100px;font-size:12px;white-space:nowrap;text-align:end;color:var(--muted)}.overview-reports,.overview-reports>.panel{min-width:0;max-width:100%}.attendance-status-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 24px}.attendance-status-cards>div{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--bg)}.attendance-status-cards span{font-size:12px;color:var(--muted)}.attendance-status-cards strong{display:block;font-size:26px;margin-top:8px}.attendance-current .tablewrap{border:1px solid var(--line);border-radius:12px}.attendance-current td{padding:16px 12px}.attendance-current tbody tr:hover{background:var(--soft)}@media(max-width:650px){.attendance-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.disclosure>summary{flex-wrap:wrap}.disclosure>summary small{margin-inline-start:0}.compact-bars{grid-template-columns:repeat(auto-fit,minmax(30px,1fr))}}
/* Account menu and personal profile */
.account-menu{position:relative}.account-menu>summary{cursor:pointer;list-style:none;padding:4px 8px;border-radius:12px}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary:focus-visible{outline:2px solid #7caaa0;outline-offset:3px}.account-popup{position:absolute;inset-inline-end:0;top:calc(100% + 12px);z-index:50;min-width:190px;padding:8px;background:var(--panel,#fff);border:1px solid #8194a344;border-radius:14px;box-shadow:0 14px 36px #0003;display:grid;gap:5px}.dark .account-popup{background:#192d3b}.account-popup button{text-align:start;border:0;width:100%}.reload-icon{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px}.profile-panel{max-width:900px}.profile-heading{display:flex;gap:20px;align-items:center;padding-bottom:24px;border-bottom:1px solid #8194a333}.profile-heading h2{margin:0}.profile-heading p{margin:8px 0 0}.profile-avatar{width:72px;height:72px;font-size:28px;flex-shrink:0}.profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:28px 0 0}.profile-details dt{font-size:14px;opacity:.65;margin-bottom:8px}.profile-details dd{margin:0;font-size:18px;font-weight:600;overflow-wrap:anywhere;text-align:start}@media(max-width:600px){.profile-details{grid-template-columns:1fr}.account-popup{min-width:170px}}
.employee-day-link{border:0;background:transparent;padding:4px 0;color:inherit;text-align:start;font-weight:600;white-space:normal}.employee-day-link span{color:#7caaa0;font-size:13px}.employee-day-link:hover{text-decoration:underline;color:#7caaa0}dialog:has(.daily-summary){width:min(720px,calc(100vw - 32px));max-height:85vh;overflow:auto}.daily-summary h2{margin:8px 0}.daily-summary section{padding:18px 0;border-top:1px solid #8194a333}.daily-summary h3{margin:0 0 16px}.day-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 0}.day-summary-grid dt{font-size:13px;opacity:.7}.day-summary-grid dd{margin:7px 0 0;font-size:19px;font-weight:600}.day-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border-radius:10px;background:#8194a312}.day-status{display:flex;align-items:center;gap:12px;font-size:14px}@media(max-width:540px){.day-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.employee-day-link{padding:0}.employee-day-link span{display:none}}

#modal.workspace-permissions-modal{width:min(960px,94vw);max-width:94vw}

.partner-totals{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.partner-totals .card strong{font-size:clamp(1.25rem,2.4vw,1.9rem);overflow-wrap:anywhere}

/* Business partner directory and read-only financial disclosures. */
.partner-name{font-weight:700;text-decoration:underline;text-underline-offset:.18em}
.partner-name[aria-pressed="true"]{outline:1px solid currentColor}
.partner-signal{display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap}
.partner-signal::before{content:"";width:.48rem;height:.48rem;border-radius:50%;background:currentColor;opacity:.45}
.partner-signal.recent::before{background:#16875e;opacity:1}
.partner-disclosure{margin-block:.25rem}
.partner-disclosure>summary{cursor:pointer;font-weight:600;padding-block:.25rem}
.partner-disclosure[open]>summary{margin-bottom:.25rem}
.partner-activity-notice{margin-block:.5rem 1rem}

/* Keep Egyptian pound amounts grouped and the currency visually secondary. */
.finance-money{font-variant-numeric:tabular-nums}
.finance-money bdi{white-space:nowrap}
.finance-money-currency{white-space:nowrap}
.card strong .finance-money-currency{font-size:.55em;font-weight:650}
