:root{--ink:#15201C;--muted:#4A5752;--line:#DFE3DE;--bg:#F3F4F1;--card:#FFFFFF;--side:#12201B;--side-ink:#C9D3CE;--danger:#9A3324;--warn:#7A4509;--radius:14px}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;-webkit-text-size-adjust:100%}
a{color:var(--accent)}
.muted{color:var(--muted)}
.h1{font-size:26px;margin:0 0 6px}
.h2{font-size:18px;margin:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:10px;border:1px solid transparent;font:inherit;font-weight:600;font-size:16px;cursor:pointer;text-decoration:none}
.btn-primary{background:var(--accent);color:#fff}
.btn-outline{border-color:var(--line);background:#fff;color:var(--ink)}
.btn-block{width:100%}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.field input,.field select{height:48px;border:1px solid #C9CFCA;border-radius:10px;padding:0 14px;font:inherit;font-weight:400;font-size:16px;background:#fff;color:var(--ink)}
.field textarea{border:1px solid #C9CFCA;border-radius:10px;padding:12px 14px;font:inherit;font-weight:400;font-size:16px;line-height:1.7;background:#fff;color:var(--ink);resize:vertical;min-height:110px}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.field input[type=color]{padding:4px;height:48px}
.alert{padding:12px 14px;border-radius:10px;background:#FBF1EF;color:var(--danger);font-weight:600}
.alert.ok{background:#E3F0EA;color:#1E5E4E}
.icon-btn{width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.pill-btn{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
.pill-btn.light{background:transparent;color:#fff;border-color:#3A4A44}
.link-btn{background:none;border:0;color:var(--side-ink);font:inherit;font-size:13px;cursor:pointer;padding:6px 0;text-decoration:underline}
.row-gap{display:flex;gap:8px;align-items:center}

/* Login */
.login{display:grid;grid-template-columns:1fr;min-height:100vh}
.login-brand{background:var(--accent);color:#fff;padding:32px 24px;display:flex;align-items:center}
.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:32px 20px}
.login-form{width:100%;max-width:400px;display:flex;flex-direction:column;gap:18px}
.login-form h1{margin:0;font-size:28px}
.form-head p{margin:4px 0 0}
.lang-link{text-align:center;font-size:15px}
.brand-row{display:flex;align-items:center;gap:12px}
.logo,.logo-lg{display:flex;align-items:center;justify-content:center;font-weight:700;border-radius:12px;background:var(--accent);color:#fff;object-fit:cover;flex-shrink:0}
.logo{width:44px;height:44px;font-size:20px}
.logo.dark{background:#fff;color:var(--side)}
.logo-lg{width:64px;height:64px;font-size:28px;background:#fff;color:var(--accent)}
.brand-name{font-weight:700;font-size:17px}
.brand-sub{font-size:13px;opacity:.85}
@media (min-width:900px){.login{grid-template-columns:1fr 1fr}.login-brand{padding:64px}}

/* App shell */
.side{position:fixed;top:0;bottom:0;inset-inline-start:0;width:272px;background:var(--side);color:var(--side-ink);display:flex;flex-direction:column;padding:16px 12px;z-index:30;overflow-y:auto;transform:translateX(100%);transition:transform .25s ease}
[dir=ltr] .side{transform:translateX(-100%)}
.side.open{transform:none!important}
.scrim{position:fixed;inset:0;background:rgba(10,18,15,.45);z-index:20}
.side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px 14px;border-bottom:1px solid #23332D}
.side .brand-name{color:#fff}
.side .icon-btn{background:#1C2C26;border-color:#23332D;color:#DCE4E0}
nav{display:flex;flex-direction:column;gap:4px}
.nav-group{font-size:12px;color:#7F928A;padding:14px 10px 4px}
.nav-item{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 12px;border-radius:10px;color:var(--side-ink);text-decoration:none;font-weight:600;font-size:15px}
.nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.nav-item.active{background:var(--accent);color:#fff}
.nav-item.disabled{opacity:.55;cursor:default}
.nav-item em{margin-inline-start:auto;font-style:normal;font-size:11px;padding:2px 8px;border-radius:999px;background:#23332D}
a.nav-item:hover{background:#1C2C26;color:#fff}
a.nav-item.active:hover{background:var(--accent)}
.side-foot{margin-top:auto;padding:14px 8px 4px;border-top:1px solid #23332D;display:flex;flex-direction:column;gap:6px}
.me{display:flex;align-items:center;gap:10px}
.avatar{width:36px;height:36px;border-radius:50%;background:#2A3B35;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.me-name{color:#fff;font-weight:600;font-size:14px}
.me-role{font-size:12px;color:#9FB0A8}
.topbar{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:10px 16px}
.page-title{font-weight:700;font-size:18px;flex-grow:1}
.content{max-width:1200px;margin:0 auto;padding:20px 16px 48px;display:flex;flex-direction:column;gap:16px}
.content.wide{max-width:1100px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.kpi{padding:16px;display:flex;flex-direction:column;gap:6px}
.kpi strong{font-size:26px}
@media (min-width:1000px){.side{transform:none!important}.main{margin-inline-start:272px}.scrim{display:none!important}.only-mobile{display:none!important}}

/* Owner */
.owner-bar{background:var(--side);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;flex-wrap:wrap}
.table-card{overflow:hidden}
.table-scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
th{background:#F7F8F6;color:var(--muted);font-weight:600;text-align:start;padding:12px 16px}
td{padding:12px 16px;border-top:1px solid #F0F2EF}
.dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-inline-end:8px;vertical-align:middle}
.badge{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.badge.active{background:#E3F0EA;color:#1E5E4E}
.badge.trial{background:#E3EAF3;color:#1F4E79}
.badge.suspended{background:#F5E1DD;color:var(--danger)}
.pad{padding:16px;margin:0}
.form-grid{padding:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}

/* Error */
.center-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.narrow{max-width:380px;padding:28px;text-align:center}
.big-code{font-size:48px;font-weight:700;color:var(--accent)}

/* Employees */
.small{font-size:13px}
.strong{font-weight:600}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.page-head p{margin:0}
.alert.info{background:#E3EAF3;color:#1F4E79}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filters input,.filters select{height:44px;border:1px solid #C9CFCA;border-radius:10px;padding:0 12px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.filters input{flex:1 1 220px}
.filters .btn{min-height:44px}
.person{display:flex;align-items:center;gap:10px}
.avatar-sm{width:36px;height:36px;border-radius:50%;background:#E3F0EA;color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.num{text-align:end;white-space:nowrap}
.row-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.row-actions form{margin:0}
.badge.method-face{background:#E3EAF3;color:#1F4E79}
.badge.method-finger{background:#F6EBD9;color:#7A4509}
.badge.method-both{background:#E3F0EA;color:#1E5E4E}
.choice{border:0;padding:0;margin:0}
.choice legend{font-weight:600;font-size:14px;padding:0}
.choice p{margin:2px 0 8px}
.choices{display:flex;gap:8px;flex-wrap:wrap}
.choice-item{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #C9CFCA;border-radius:10px;background:#fff;font-weight:600;cursor:pointer}
.choice-item input{accent-color:var(--accent);width:18px;height:18px}
.choice-item:has(input:checked){border-color:var(--accent);background:#F1F7F4}

/* Owner view */
.btn-sm{min-height:40px;padding:0 14px;font-size:14px}
.owner-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#FBF4E8;color:#7A4509;border-bottom:1px solid #EBD5AE;padding:10px 16px;font-size:14px;font-weight:600}
.owner-banner a{color:#7A4509}

/* Owner panel */
.owner-theme{--accent:#3949AB;--side:#161A2B;--side-ink:#CDD2E6}
.owner-theme .side-head,.owner-theme .side-foot{border-color:#262B42}
.owner-theme .side .icon-btn{background:#22273D;border-color:#262B42}
.owner-theme a.nav-item:hover{background:#22273D}
.owner-theme .nav-item em{background:#262B42}
.owner-theme .logo{background:#fff;color:#161A2B}
.topbar .btn-sm{white-space:nowrap}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:start}
.three-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}
.stack{display:flex;flex-direction:column;gap:12px}
.stack-sm{display:flex;flex-direction:column;gap:4px}
.pad-lg{padding:18px}
.grow{flex-grow:1;min-width:0}
.wrap{flex-wrap:wrap}
.tight{margin:0}
.accent{color:var(--accent)}
.warn{color:#7A4509}
.danger{color:#9A3324}
.ok-text{color:#1E5E4E}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;color:#3A4060;word-break:break-word}
.kv{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
.back{align-self:flex-start}
.btn-danger{background:#fff;border-color:#E8C4BE;color:#9A3324}
.check{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;min-height:44px}
.check input{width:20px;height:20px;accent-color:var(--accent)}
.alert-row{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:12px;font-size:14px;line-height:1.7;color:var(--ink);text-decoration:none}
.alert-row .tag{flex-shrink:0;padding:2px 10px;border-radius:999px;background:#fff;font-size:12px;font-weight:700}
.tone-renewSoon{background:#FBF4E8}.tone-renewSoon .tag{color:#7A4509}
.tone-trialEnding{background:#EEF1F8}.tone-trialEnding .tag{color:#1F4E79}
.tone-overdue,.tone-suspended{background:#FBF1EF}.tone-overdue .tag,.tone-suspended .tag{color:#9A3324}
.tone-nearLimit{background:#EEF1F8}.tone-nearLimit .tag{color:#3949AB}
.tone-zeroSalary{background:#FBF4E8}.tone-zeroSalary .tag{color:#7A4509}
.bar-row{display:flex;flex-direction:column;gap:6px}
.bar-label{display:flex;justify-content:space-between;font-size:14px;gap:8px}
.bar{height:8px;border-radius:999px;background:#ECEEF4;overflow:hidden}
.bar.thin{height:6px}
.bar-fill{height:100%;border-radius:999px;background:var(--accent)}
.bar-fill.muted-fill{background:#B8BDD3}
.bar-fill.warn-fill{background:#C98A3A}
.use{display:flex;flex-direction:column;gap:4px;min-width:100px}
.avatar-sq{width:36px;height:36px;border-radius:10px;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.avatar-sq.lg{width:56px;height:56px;border-radius:14px;font-size:24px}
.company-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.badge.big{padding:6px 14px;font-size:13px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;align-items:start}
.dashed{border-style:dashed;border-width:2px;background:#FAFBFD}
.faded{opacity:.7}
.form-grid.tight{padding:18px}
.seg{display:flex;gap:4px;background:#ECEEF4;padding:4px;border-radius:10px}
.seg a{min-height:36px;display:flex;align-items:center;padding:0 12px;border-radius:8px;font-size:13px;color:var(--ink);text-decoration:none}
.seg a.on{background:#fff;font-weight:700}
.issue{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-top:1px solid #F1F2F7}
.lvl{flex-shrink:0;min-width:60px;text-align:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.lvl-critical{background:#F5E1DD;color:#9A3324}
.lvl-error{background:#EEF1F8;color:#3949AB}
.lvl-warning{background:#F6EBD9;color:#7A4509}
.dot-status{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:8px;vertical-align:middle}
.dot-status.ok{background:#2E9E6B}.dot-status.bad{background:#D0473C}.dot-status.idle{background:#B8BDD3}
.kpi strong{line-height:1.15}
.kpi strong .cur-line{display:block;white-space:nowrap;font-size:20px}
.card h2.pad{margin:0}
.cred{max-width:640px}
.cred input[readonly]{background:#F7F8FB;font-weight:600}
.send-row{display:flex;gap:8px;flex-wrap:wrap}
.send-row .btn{flex:1 1 160px}
.btn-wa{background:#1F7A4A;color:#fff}
.preview summary{cursor:pointer;font-weight:600;font-size:14px;min-height:44px;display:flex;align-items:center}
.preview pre{white-space:pre-wrap;font-family:inherit;font-size:14px;background:#F7F8FB;border-radius:10px;padding:12px;margin:0}
.login-form .stack{gap:18px}
/* Public pages */
.public-brand{align-items:flex-start}
.pub-pitch{font-size:18px;line-height:1.8;margin:8px 0 0;max-width:460px}
.pub-points{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px;opacity:.92}
.login-form.wide{max-width:640px}
.form-grid.bare{padding:0;border:0}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nav-item .count{margin-inline-start:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#D0473C;color:#fff;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.tone-pending{background:#EEF1F8}.tone-pending .tag{color:#3949AB}
.badge.pending{background:#EEF1F8;color:#3949AB}
.badge.rejected{background:#F5E1DD;color:#9A3324}
/* ===== Sign-in pages (new design) ===== */
.auth{display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh;background:#fff}
.auth-brand{display:none;position:relative;overflow:hidden;background:var(--brand);color:#fff;flex-direction:column;justify-content:space-between;padding:56px 56px 40px}
.auth-arcs{position:absolute;width:720px;height:720px;bottom:-220px;left:-230px;opacity:.16}
.auth-brand-logo{position:relative;display:flex}
.auth-tagline{position:relative;display:flex;flex-direction:column;gap:16px;max-width:380px}
.auth-tagline p{margin:0;font-size:18px;line-height:1.9;font-weight:500;color:#E3F1EB;text-align:right}
.auth-dash{width:40px;height:3px;border-radius:999px;background:#7FD1B3}
.auth-copy{position:relative;font-size:13px;color:#A9C9BC}
.auth-mhead{display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--brand);color:#fff;padding:18px 18px 64px;min-height:200px;box-sizing:border-box}
.auth-arcs-m{position:absolute;width:420px;height:420px;top:-40px;left:-150px;opacity:.22}
.auth-wave{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:48px}
.auth-mrow{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px}
.auth-initial{display:inline-flex;align-items:center;justify-content:center;border-radius:15px;font-weight:700;font-size:24px}
.auth-logo-img{border-radius:15px;object-fit:cover;background:#fff}
.auth-side{display:flex;flex-direction:column;min-width:0;padding:16px 16px 24px;background:#fff}
.auth-top{display:none;justify-content:space-between;align-items:center;gap:12px}
.auth-main{flex-grow:1;display:flex;align-items:center;justify-content:center;padding:0 0 24px;min-width:0}
.auth-card{width:100%;max-width:460px;min-width:0;box-sizing:border-box;padding:4px 4px 8px;display:flex;flex-direction:column;gap:20px;background:#fff;color:var(--ink)}
.auth-card.wide{max-width:660px}
.auth-head{display:flex;flex-direction:column;gap:6px}
.auth-head h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.3px}
.auth-head p{margin:0;font-size:15px;color:#4A5752;line-height:1.7}
.auth-form{display:flex;flex-direction:column;gap:18px}
.fgroup{display:flex;flex-direction:column;gap:7px;min-width:0}
.fgroup label{font-size:14px;font-weight:600}
.frow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.frow a{font-size:14px;font-weight:600;color:var(--brand);text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.fld{display:flex;align-items:center;gap:10px;height:52px;border:1.5px solid transparent;border-radius:14px;padding:0 14px;background:#EEF4F1;transition:border-color .15s,box-shadow .15s}
.fld:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px rgba(15,61,51,.12);background:#fff}
.fld.err{border-color:#B4412F;box-shadow:0 0 0 4px rgba(180,65,47,.10)}
.fld input{flex-grow:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--ink)}
.fld input[readonly]{color:#4A5752}
.eye{width:40px;height:40px;flex-shrink:0;border:0;border-radius:10px;background:transparent;color:#4A5752;display:flex;align-items:center;justify-content:center;cursor:pointer}
.auth .check{min-height:40px;font-weight:500;color:#3A4743}
.auth .check input{accent-color:var(--brand)}
.btn-auth{min-height:54px;border:0;border-radius:14px;background:var(--brand);color:#fff;font:inherit;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;text-decoration:none;padding:0 20px}
.btn-auth.ghost{background:#fff;color:var(--ink);border:1.5px solid #CDD6D1}
.btn-auth[disabled]{opacity:.75;cursor:wait}
.btn-auth .spin{width:20px;height:20px;border:2.4px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.btn-social{min-height:50px;border:1.5px solid #DCE3DF;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:15px;color:var(--ink);text-decoration:none}
.or-row{display:flex;align-items:center;gap:12px;font-size:13px;color:#6B7A73}
.or-row b{font-weight:500}.or-row span{flex:1;height:1px;background:#E1E7E3}
.auth-alt{margin:0;text-align:center;font-size:14px;color:#4A5752}
.auth-alt a{font-weight:700;color:var(--brand)}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;border-radius:14px;background:#F0F3F1}
.tabs a{min-height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;color:#4A5752;text-decoration:none}
.tabs a.on{background:#fff;color:#12201B;box-shadow:0 1px 3px rgba(18,32,27,.12)}
.lang-seg{display:flex;align-items:center;gap:3px;padding:3px;border-radius:12px;background:rgba(255,255,255,.12)}
.lang-seg a{min-height:38px;padding:0 12px;border-radius:9px;display:inline-flex;align-items:center;font-size:13px;font-weight:700;color:#fff;text-decoration:none}
.lang-seg a.on{background:#fff;color:var(--brand)}
.lang-seg.light{background:#fff;border:1px solid #DCE3DF;padding:4px;border-radius:14px}
.lang-seg.light a{color:#12201B;min-height:40px;padding:0 14px;border-radius:10px;font-size:14px}
.lang-seg.light a.on{background:var(--brand);color:#fff}
.lang-seg .globe{margin:0 6px}
.back-pill{align-self:flex-start;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid #DCE3DF;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}
.auth-done{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;padding:12px 0}
.auth-done h1{margin:0;font-size:26px}
.auth-done p{margin:0;font-size:15px;color:#4A5752;line-height:1.8;max-width:380px}
.done-ic{width:64px;height:64px;border-radius:50%;background:#E3F0EA;color:#1E5E4E;display:flex;align-items:center;justify-content:center}
.done-ic svg{stroke:#1E5E4E}
.step-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.step-count{flex-shrink:0;font-size:13px;font-weight:700;color:#4A5752}
.steps-bar{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.steps-bar span{height:5px;border-radius:999px;background:#E1E7E3}
.steps-bar span.on{background:var(--brand)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:16px}
.grid2 .full{grid-column:1/-1}
.note{margin:0;padding:12px 14px;border-radius:12px;background:#EEF4F1;font-size:14px;color:#1E4F42;line-height:1.7}
.step-actions{display:flex;gap:10px}
.step-actions .btn-auth{flex-grow:1}
.step-actions [data-prev]{flex-grow:0}
[data-step-title="2"],.steps-bar,.step-count,[data-prev],[data-next]{display:none}
form.stepping .steps-bar,form.stepping .step-count{display:grid}
form.stepping .step-count{display:inline}
form.stepping.s1 [data-step="2"],form.stepping.s1 [data-submit],form.stepping.s2 [data-step="1"],form.stepping.s2 [data-step-title="1"]{display:none}
form.stepping.s1 [data-next],form.stepping.s2 [data-prev]{display:flex}
form.stepping.s2 [data-step-title="2"]{display:block}
.auth-foot{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;font-size:13px;color:#4A5752}
.auth-foot a{color:var(--brand);font-weight:600}
.auth .alert{border-radius:12px}
.arc{stroke-dasharray:900;stroke-dashoffset:900;animation:draw 2.4s ease-out forwards}
.arc2{animation-delay:.25s}.arc3{animation-delay:.5s}.arc4{animation-delay:.75s}
@keyframes draw{to{stroke-dashoffset:0}}
.rise{animation:rise .5s ease-out both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.arc,.rise{animation:none;stroke-dashoffset:0}}
@media (min-width:600px){.auth-side{padding:20px 20px 28px}}
@media (min-width:980px){
  .auth{grid-template-columns:minmax(0,9fr) minmax(0,11fr)}
  .auth-brand{display:flex}.auth-mhead{display:none}.auth-top{display:flex}
  .auth-side{background:#F3F5F3}.auth-main{padding-top:24px}
  .auth-card{border:1px solid #E1E7E3;border-radius:24px;padding:36px 32px;box-shadow:0 1px 2px rgba(18,32,27,.04),0 24px 48px -24px rgba(18,32,27,.18)}
  .fld{background:#fff;border-color:#CDD6D1}
}
.remember-box{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.forgot-link{font-size:14px;font-weight:600;color:var(--brand);text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.remember-box{align-items:stretch!important;gap:0!important}
.remember-box .check,.remember-box .forgot-link{min-height:36px;margin:0;font-size:14px;font-weight:500;line-height:1.4;display:flex;align-items:center;gap:10px}
.remember-box .check{color:#3A4743}
.remember-box .forgot-link{padding-inline-start:30px;color:var(--brand);justify-content:flex-start}
.estimate{margin:2px 0 0;padding:10px 12px;border-radius:12px;background:#EEF4F1;color:#1E4F42;font-size:14px;font-weight:600}
.fld.select{padding:0 10px}
.fld select{flex-grow:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--ink)}
.weekdays{display:flex;flex-wrap:wrap;gap:6px 16px;border:0;padding:0;margin:0}
.weekdays legend{font-size:13px;font-weight:600;margin-bottom:6px;padding:0}
.cf-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px}
.cf-row input,.cf-row select{min-height:44px}
/* ===== Dawam identity sign-in (v2) ===== */
.dw{display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh;background:#fff;color:#10231B}
.dw-side{display:flex;flex-direction:column;min-width:0;background:#fff}
.dw-mtop{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 18px 0}
.dw-brandrow{display:flex;align-items:center;gap:8px}
.dw-word{display:flex;flex-direction:column;line-height:1.05}
.dw-word b{font-weight:700;font-size:22px}
.dw-word i{font-style:normal;font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-weight:800;font-size:8px;letter-spacing:4px;color:#5B6E66}
.dw-word.lg b{font-size:48px;color:#fff}.dw-word.lg i{font-size:13px;letter-spacing:9px;color:#BFE3D2}
.dw-initial{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:var(--brand);color:#fff;font-weight:700;font-size:20px}
.dw-initial.big{width:76px;height:76px;font-size:34px;background:#fff;color:var(--brand);border-radius:20px}
.dw-logo-img{border-radius:14px;object-fit:cover;background:#fff}
.dw-lang{display:flex;gap:3px;padding:3px;border-radius:12px;background:#EEF4F0}
.dw-lang a{min-height:38px;padding:0 11px;border-radius:9px;display:inline-flex;align-items:center;font-size:13px;font-weight:700;color:#33463E;text-decoration:none}
.dw-lang a.on{background:var(--brand);color:#fff}
.dw-main{flex-grow:1;display:flex;justify-content:center;padding:6px 16px 8px;min-width:0}
.dw-card{width:100%;max-width:440px;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;gap:18px;padding:8px 6px}
.dw-card.wide{max-width:660px}
.dw-ctop{display:none;justify-content:flex-end}
.dw-hero{display:flex;justify-content:center;order:2}
.dw-content{order:3;display:flex;flex-direction:column;gap:18px}
.dw-card.wide .dw-hero{display:none}
.dw-halo{fill:#3DDC97;opacity:.14}
.dw-copy{order:4;margin:0;text-align:center;font-size:12px;color:#8A9A93}
.dw-copy a{color:var(--brand);font-weight:600}
.dw-wave{height:110px;position:relative;margin-top:8px}
.dw-wave svg{position:absolute;inset:0;width:100%;height:100%}
.dw .auth-head{text-align:center}
.dw .auth-head h1{font-size:30px}
.dw .fld{background:#F7FAF8;border-color:#D5E2DB;height:54px}
.dw .fld:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px rgba(15,74,55,.14);background:#fff}
.dw .btn-auth{background:var(--brand);border-radius:16px;min-height:56px;font-size:17px;box-shadow:0 12px 26px -12px rgba(15,74,55,.6)}
.dw .btn-auth.ghost{background:#fff;color:#10231B;box-shadow:none}
.dw .btn-social{border-radius:16px;min-height:52px}
.dw .auth-alt a,.dw .forgot-link,.dw .frow a{color:var(--brand)}
.dw .check input{accent-color:var(--brand)}
.dw-brand{display:none}
.ring{animation:ring 2.6s ease-out infinite;transform-origin:center;transform-box:fill-box}
.ring2{animation-delay:1.3s}
@keyframes ring{0%{transform:scale(.85);opacity:.55}100%{transform:scale(1.35);opacity:0}}
.glow{animation:glow 2.8s ease-in-out infinite}
@keyframes glow{0%,100%{opacity:.55}50%{opacity:1}}
.st{opacity:0;animation:cyc 9s infinite}.st1{animation-delay:0s}.st2{animation-delay:3s}.st3{animation-delay:6s}
@keyframes cyc{0%{opacity:0}3%{opacity:1}30%{opacity:1}34%{opacity:0}100%{opacity:0}}
.scanline{animation:scan 1.6s ease-in-out infinite alternate}
@keyframes scan{from{transform:translateY(0)}to{transform:translateY(64px)}}
.sensor{animation:sense 9s infinite}
@keyframes sense{0%,4%{opacity:.35}8%,26%{opacity:1}33%,100%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.ring,.glow,.scanline,.sensor{animation:none}.st{animation:none}.st1{opacity:1}}
@media (min-width:1000px){
  .dw{grid-template-columns:minmax(0,9fr) minmax(0,11fr);background:#F2F6F3}
  .dw-side{background:#F2F6F3}
  .dw-mtop,.dw-hero,.dw-wave{display:none}
  .dw-main{align-items:center;padding:40px}
  .dw-card{background:#fff;border:1px solid #DCE7E1;border-radius:26px;padding:36px 34px;box-shadow:0 1px 2px rgba(16,35,27,.04),0 30px 60px -30px rgba(16,35,27,.28)}
  .dw-ctop{display:flex;order:1}
  .dw-brand{display:flex;flex-direction:column;gap:30px;position:relative;overflow:hidden;background:#0F4A37;color:#fff;padding:64px 64px 44px}
  .dw-arcs{position:absolute;width:760px;height:760px;top:-180px;left:-260px;opacity:.12}
  .dw-blogo{position:relative;display:flex;align-items:center;gap:18px}
  .dw-tag{position:relative;margin:0;font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-size:30px;font-weight:800;letter-spacing:-.5px;text-align:right;color:#fff}
  .dw-tag span{color:#5EE6A8}
  .dw-tiles{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:640px}
  .dw-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:112px;padding:18px 10px 16px;border-radius:18px;text-align:center;border:1px solid rgba(255,255,255,.18);background:linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.04));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 16px 30px -18px rgba(0,0,0,.6)}
  .dw-tile svg{filter:drop-shadow(0 0 6px rgba(61,220,151,.55))}
  .dw-tile strong{font-size:15px;font-weight:600;color:#fff}
  .dw-tile.hi{border-color:rgba(127,240,190,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 28px -4px rgba(61,220,151,.45)}
  .dw-tile.hi::after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:2px;border-radius:2px;background:#7FF0BE;box-shadow:0 0 12px 2px rgba(127,240,190,.7)}
  .dw-device{position:relative;margin-top:auto;max-width:560px;filter:drop-shadow(0 24px 30px rgba(0,0,0,.35))}
}
/* Phone: compact sign-in, language link and green base at the bottom */
@media (max-width:999px){
  .dw-side{min-height:100vh}
  .dw-mtop{padding:12px 16px 0}
  .dw-mtop .dw-lang{display:none}
  .dw-hero svg{width:108px;height:108px}
  .dw-card{gap:12px;padding:4px 4px 0}
  .dw-content{gap:12px}
  .dw .auth-head h1{font-size:24px}
  .dw .auth-form{gap:12px}
  .dw .fgroup{gap:5px}
  .dw .fgroup label{font-size:13px}
  .dw .fld{height:48px;border-radius:13px}
  .dw .btn-auth{min-height:50px;font-size:16px;border-radius:14px}
  .dw .btn-social{min-height:46px;border-radius:14px}
  .dw .remember-box .check,.dw .remember-box .forgot-link{min-height:32px;font-size:13px}
  .dw .auth-alt{font-size:13px}
  .dw .alert{padding:10px 12px;font-size:13px}
  .dw-copy{display:none}
  .dw-wave{position:relative;flex-grow:1;min-height:104px;margin-top:14px;height:auto;background:linear-gradient(to bottom,transparent 46px,#0F4A37 46px);display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;padding:0 16px 14px}
  .dw-wave svg{position:absolute;top:0;left:0;right:0;width:100%;height:48px;inset:auto}
  .dw-wlang{position:relative;min-height:40px;display:inline-flex;align-items:center;padding:0 14px;border-radius:12px;color:#FFFFFF;font-weight:700;font-size:14px;text-decoration:none;background:rgba(255,255,255,.1)}
  .dw-wcopy{position:relative;font-size:12px;color:#BFE3D2}
}
/* Phone: glass card on the circuit background */
.dw-mlang{display:none}
.dw-bgc{display:none}
@media (max-width:999px){
  .dw-side{position:relative;background:#04211A;color:#fff;overflow:hidden}
  .dw-bgc{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0}
  .dw-side::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 55%,rgba(4,33,26,.05),rgba(4,33,26,.45))}
  .dw-mtop,.dw-main,.dw-wave{position:relative;z-index:1}
  .dw-mtop{padding:16px 18px 0}
  .dw-mtop .dw-word b{color:#fff}.dw-mtop .dw-word i{color:#BFE3D2}
  .dw-mlang{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:700;text-decoration:none}
  .dw-main{align-items:center;padding:20px 30px}
  .dw-card{max-width:340px;gap:10px;padding:18px 16px 16px;border-radius:24px;color:#fff;background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.24);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 30px 60px -20px rgba(0,0,0,.6)}
  .dw-card.wide{max-width:420px}
  .dw-content{gap:10px}
  .dw-hero svg{width:72px;height:72px}
  .dw-halo{opacity:0}
  .dw .auth-head h1{font-size:21px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
  .dw .auth-head p,.dw .step-count{color:rgba(255,255,255,.75)}
  .dw .auth-form{gap:10px}
  .dw .fgroup label{color:rgba(255,255,255,.88)}
  .dw .fld{height:44px;background:rgba(255,255,255,.04);border:1.4px solid rgba(255,255,255,.45)}
  .dw .fld:focus-within{background:rgba(255,255,255,.08);border-color:#7FF0BE;box-shadow:0 0 0 4px rgba(127,240,190,.18)}
  .dw .fld input,.dw .fld select{color:#fff}
  .dw .fld input::placeholder{color:rgba(255,255,255,.45)}
  .dw .fld select option{color:#10231B}
  .dw .fld svg{stroke:rgba(255,255,255,.7)}
  .dw .eye{color:rgba(255,255,255,.75)}
  .dw .remember-box .check{color:rgba(255,255,255,.88)}
  .dw .check input{accent-color:#2FBF84}
  .dw .forgot-link,.dw .frow a{color:#7FF0BE}
  .dw .btn-auth{min-height:46px;font-size:16px;border-radius:13px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(180deg,#34C98C,#138A5C);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 12px 26px -10px rgba(47,191,132,.65)}
  .dw .btn-auth.ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.3)}
  .dw .or-row,.dw .btn-social{display:none}
  .dw .auth-alt{color:rgba(255,255,255,.8)}
  .dw .auth-alt a{color:#fff}
  .dw .note,.dw .estimate{background:rgba(255,255,255,.08);color:#D4FBE8}
  .dw .steps-bar span{background:rgba(255,255,255,.2)}.dw .steps-bar span.on{background:#7FF0BE}
  .dw .back-pill{color:#fff;border-color:rgba(255,255,255,.3)}
  .dw .auth-done p{color:rgba(255,255,255,.8)}
  .dw-wave{flex-grow:0;min-height:0;margin:0;padding:0 0 14px;background:none}
  .dw-wave svg,.dw-wlang{display:none}
  .dw-wcopy{color:rgba(255,255,255,.6)}
}
.dw-word{align-items:center}
.dw-word i{font-size:10.5px;letter-spacing:3.5px;margin-top:2px;white-space:nowrap}
.dw-word.lg i{font-size:14px;letter-spacing:8px}
@media (max-width:999px){.dw-mtop .dw-word i{color:#E6FFF4;text-shadow:0 1px 6px rgba(0,0,0,.45)}}
@media (max-width:999px){
  .dw-mlang{width:44px;height:44px;min-height:0;padding:0;justify-content:center;border-radius:50%;border:1.5px solid rgba(255,255,255,.45);background:rgba(255,255,255,.08);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-size:13px;font-weight:800;letter-spacing:.5px}
  .dw-card{background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.01));border-color:rgba(255,255,255,.22);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%)}
}
@media (max-width:999px){.dw-hero svg{width:104px;height:104px}}
@media (max-width:999px){
  html:has(.dw),body:has(.dw){background:#0E3326}
  .dw-main{align-items:flex-start;padding-top:34px}
  .dw-wave{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .dw .check input{accent-color:#1FA36F}
  .dw .auth-alt{white-space:nowrap}
}
@media (max-width:999px){.dw-main{padding-top:64px}}
@media (max-width:999px){.dw-main{padding-top:96px}}
@media (max-width:999px){.dw-wave{padding-bottom:calc(52px + env(safe-area-inset-bottom,0px))}}
@media (max-width:999px){.dw-wave{padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))}}
@media (max-width:999px){html:has(.dw),body:has(.dw){background:#21463A}}
@media (max-width:999px){
  .dw-side{min-height:100vh;min-height:100dvh}
  .dw-main{flex:1 1 auto;align-items:center;padding:6px 30px}
  .dw-hero svg{width:92px;height:92px}
  .dw-wave{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:999px){
  html:has(.dw),body:has(.dw){background:#0F362A}
  .dw{min-height:100vh;min-height:100dvh}
}
@media (max-width:999px) and (max-height:700px){
  .dw-hero svg{width:72px;height:72px}
  .dw-card{gap:8px;padding:14px 14px 12px}
  .dw-content,.dw .auth-form{gap:8px}
  .dw .auth-head h1{font-size:19px}
  .dw .fld{height:42px}
  .dw .btn-auth{min-height:44px}
  .dw-mtop{padding-top:10px}
  .dw-wave{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:999px){
  .dw-side::after{background:linear-gradient(to bottom,#0F362A 0,rgba(15,54,42,0) 90px),radial-gradient(ellipse at 50% 80%,rgba(4,33,26,0),rgba(4,33,26,.35))}
  .dw-main{padding:70px 30px 0}
  .dw-wave{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:999px) and (max-height:700px){
  .dw-main{padding-top:40px}
  .dw-wave{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:999px){
  html:has(.dw){background-color:#0F362A;background-image:linear-gradient(to bottom,#0F362A 0,#0F362A 50%,#021610 50%,#021610 100%)}
  body:has(.dw){background-color:#0F362A}
  .dw-main{padding-top:36px}
}
@media (max-width:999px) and (max-height:700px){.dw-main{padding-top:20px}}
/* ===== Laptop: blended green background, glass card (phone stays as is) ===== */
.dw-dbg{display:none}
@media (min-width:1000px){
  .dw{position:relative;background:#0F362A;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .dw-dbg{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0}
  .dw-side,.dw-brand{position:relative;z-index:1;background:transparent}
  .dw-mtop{display:flex;position:absolute;top:28px;left:48px;right:48px;z-index:3;padding:0}
  .dw-mtop .dw-lang{display:none}
  .dw-mtop svg{width:46px;height:46px}
  .dw-mtop .dw-word b{font-size:26px;color:#fff;text-shadow:0 2px 10px rgba(15,54,42,.45)}
  .dw-mtop .dw-word i{color:#fff;font-size:9px;letter-spacing:5px;text-shadow:0 2px 8px rgba(15,54,42,.45)}
  .dw-mlang{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#0F4A37;color:#fff;font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 8px 18px -8px rgba(15,74,55,.7)}
  .dw-ctop{display:none}
  .dw-main{align-items:center;padding:40px}
  .dw-hero{display:flex}
  .dw-hero svg{width:88px;height:88px}
  .dw-halo{opacity:0}
  .dw-card{max-width:440px;gap:12px;padding:22px 22px 20px;border-radius:24px;color:#fff;background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 30px 60px -20px rgba(0,0,0,.6)}
  .dw-card.wide{max-width:560px}
  .dw-content{gap:12px}
  .dw .auth-head h1{font-size:24px;color:#fff}
  .dw .auth-head p,.dw .step-count{color:rgba(255,255,255,.75)}
  .dw .auth-form{gap:12px}
  .dw .fgroup label{color:rgba(255,255,255,.88)}
  .dw .fld{height:48px;background:rgba(255,255,255,.04);border:1.4px solid rgba(255,255,255,.45)}
  .dw .fld:focus-within{background:rgba(255,255,255,.08);border-color:#7FF0BE;box-shadow:0 0 0 4px rgba(127,240,190,.18)}
  .dw .fld input,.dw .fld select{color:#fff}
  .dw .fld input::placeholder{color:rgba(255,255,255,.45)}
  .dw .fld select option{color:#10231B}
  .dw .fld svg{stroke:rgba(255,255,255,.7)}
  .dw .eye{color:rgba(255,255,255,.75)}
  .dw .remember-box .check{color:rgba(255,255,255,.88)}
  .dw .check input{accent-color:#1FA36F}
  .dw .forgot-link,.dw .frow a{color:#7FF0BE}
  .dw .btn-auth{min-height:50px;font-size:16px;border-radius:13px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(180deg,#34C98C,#138A5C);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 12px 26px -10px rgba(47,191,132,.65)}
  .dw .btn-auth.ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.3)}
  .dw .or-row,.dw .btn-social{display:none}
  .dw .auth-alt{color:rgba(255,255,255,.8)}
  .dw .auth-alt a{color:#fff}
  .dw .note,.dw .estimate{background:rgba(255,255,255,.08);color:#D4FBE8}
  .dw .steps-bar span{background:rgba(255,255,255,.2)}.dw .steps-bar span.on{background:#7FF0BE}
  .dw .back-pill{color:#fff;border-color:rgba(255,255,255,.3)}
  .dw .auth-done p{color:rgba(255,255,255,.8)}
  .dw-copy{display:none}
  .dw-wave{display:flex;position:absolute;left:0;right:0;bottom:14px;height:auto;margin:0;padding:0;background:none;justify-content:center}
  .dw-wave svg,.dw-wlang{display:none}
  .dw-wcopy{color:rgba(255,255,255,.6);font-size:12px}
  .dw-brand{background:transparent;color:#10231B;justify-content:center;gap:26px;padding:96px 70px 30px 60px;overflow:visible}
  .dw-blogo{display:none}
  .dw-arcs{top:-430px;left:-420px;opacity:.2;stroke:#16A06A}
  .dw-tag{font-size:30px;white-space:nowrap;color:#10231B;text-align:left}
  .dw-tag span{color:#10231B}
  .dw-tiles{max-width:none;gap:14px}
  .dw-tile{min-height:100px;background:linear-gradient(160deg,#15604A,#0F4A37);border-color:rgba(127,240,190,.25);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 14px 28px -16px rgba(15,74,55,.75)}
  .dw-tile.hi{border:1.5px solid #7FF0BE;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 26px -6px rgba(61,220,151,.6)}
  .dw-tile.hi::after{display:none}
  .dw-tile strong{font-size:14px}
  .dw-device{margin-top:6px;max-width:540px;width:100%;align-self:center;filter:drop-shadow(0 30px 34px rgba(16,35,27,.4))}
}
@media (min-width:1000px){.dw-side{position:static}.dw-main{position:relative;z-index:1}.dw-wave{z-index:1}}

/* ===== Subscription: warning banner and ended page ===== */
.sub-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 16px 0;padding:12px 16px;border-radius:12px;background:#FBF4E8;color:#7A4509;font-size:14px;font-weight:600;line-height:1.6}
.sub-banner a{flex-shrink:0;padding:7px 14px;border-radius:999px;background:#7A4509;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.sub-end{align-items:flex-start}
.sub-ic{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#FBF1EF;color:#9A3324;margin-bottom:4px}
.sub-out{width:100%}

/* ===== Owner notifications feed ===== */
.act{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-top:1px solid #F1F2F7}
.act.new{background:#F4FAF7}
.act-kind{flex-shrink:0;display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#ECEEF4;color:#3A4060}
.act-kind.k-signup{background:#EEF1F8;color:#3949AB}
.act-kind.k-approved{background:#E3EAF3;color:#1F4E79}
.act-kind.k-login{background:#E3F0EA;color:#1E5E4E}
.act-kind.k-expired_login{background:#F5E1DD;color:#9A3324}
.act-info{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#4A5752}
.act-mini{padding-top:6px;border-top:1px solid #F1F2F7}
.seg.wrap{flex-wrap:wrap}
@media (max-width:640px){.act{flex-direction:column;gap:8px}}

/* ===== Owner sign-in: clearly separate from company sign-in ===== */
.owner-tag{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#12201B;color:#7FF0BE;font-size:12px;font-weight:700;letter-spacing:.2px}
.act-kind.k-owner_login{background:#12201B;color:#7FF0BE}

/* ===== Dashboard (approved design) ===== */
.num{font-family:Manrope,'IBM Plex Sans Arabic',sans-serif;font-variant-numeric:tabular-nums}
.db-hello h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.2px}
.db-hello p{margin:2px 0 0;font-size:14px;color:#6A7771}
.db-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:stretch}
.db-grid > *{grid-column:1 / -1;min-width:0}
.db-grid .card{border:0;border-radius:18px;box-shadow:0 1px 2px rgba(16,36,28,.06),0 0 0 1px rgba(16,36,28,.05)}
.db-pad{padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.db-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.db-head h2{margin:0;font-size:16px;font-weight:700}
.db-head a{font-size:13px;font-weight:600;color:#0F4A37;text-decoration:none}
.db-sub2{display:block;font-size:12px;color:#6A7771}
.db-today{padding:22px;display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.db-ring{position:relative;width:132px;height:132px;flex-shrink:0}
.db-ring svg{width:132px;height:132px;transform:rotate(-90deg)}
.db-ring .trk{fill:none;stroke:#EAF2EE;stroke-width:12}
.db-ring .val{fill:none;stroke:#1E7A55;stroke-width:12;stroke-linecap:round}
.db-ring-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.db-ring-in strong{font-size:32px;font-weight:800;line-height:1.1}
.db-ring-in span{font-size:12px;color:#6A7771}
.db-today-body{flex:1 1 280px;display:flex;flex-direction:column;gap:14px;min-width:0}
.db-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.db-stat{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:14px;text-decoration:none}
.db-stat span{font-size:12px;font-weight:600}
.db-stat strong{font-size:24px;font-weight:800;line-height:1.1}
.db-stat.late{background:#FFF6E8;color:#7A4509}
.db-stat.absent{background:#FDEEEA;color:#9A3324}
.db-stat.leave{background:#EAF0F8;color:#1F4E79}
.db-note{margin:0;font-size:13px;color:#6A7771}
.db-sub{padding:22px;border-radius:18px;background:#0E3327;color:#fff;display:flex;flex-direction:column;gap:12px}
.db-sub-l{font-size:13px;color:#8FB5A4}
.db-chip{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:rgba(242,184,75,.16);color:#F2B84B;font-size:12px;font-weight:600}
.db-sub-days{display:flex;align-items:baseline;gap:8px}
.db-sub-days strong{font-size:38px;font-weight:800;line-height:1}
.db-sub-days span{font-size:15px;color:#C9DDD3}
.db-sub-use{display:flex;justify-content:space-between;font-size:12px;color:#8FB5A4}
.db-bar{height:6px;border-radius:999px;background:rgba(255,255,255,.12)}
.db-bar div{height:6px;border-radius:999px;background:#3DDC97}
.db-sub-btn{margin-top:auto;min-height:44px;border-radius:12px;background:#3DDC97;color:#0B2B21;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;text-decoration:none}
.db-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:30px 12px;border-radius:14px;background:#F6F8F5;color:#6A7771;flex-grow:1}
.db-empty.small{padding:20px 12px}
.db-empty svg{width:26px;height:26px;fill:none;stroke:#8FA89C;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.db-empty p{margin:0;font-size:13px;max-width:340px;line-height:1.7}
.db-live{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:#EAF2EE;color:#0F4A37;font-size:12px;font-weight:600}
.db-live i{width:7px;height:7px;border-radius:50%;background:#1E7A55}
.db-count{font-size:12px;font-weight:700;color:#6A7771}
.db-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #EFF1EE;text-decoration:none;color:var(--ink)}
.db-ic{width:38px;height:38px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.db-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.db-ic.zeroSalary{background:#EAF0F8;color:#1F4E79}
.db-ic.nearLimit{background:#FFF6E8;color:#7A4509}
.db-ic.noEmployees{background:#EAF2EE;color:#0F4A37}
.db-ic.contractsEnding,.db-ic.probationEnding{background:#FFF6E8;color:#7A4509}
.db-ic.contractsEnded,.db-ic.docsExpired{background:#F5E1DD;color:#9A3324}
.db-ic.docsExpiring{background:#FFF6E8;color:#7A4509}
.db-row-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.db-row-t b{font-size:14px;font-weight:600}
.db-row-t small{font-size:12px;color:#6A7771}
@media (min-width:1000px){
  .db-span8{grid-column:span 8}.db-span4{grid-column:span 4}.db-span7{grid-column:span 7}.db-span5{grid-column:span 5}
}
@media (max-width:520px){.db-today{flex-direction:column;align-items:stretch}.db-ring{align-self:center}}

/* ===== Sidebar refresh (approved design) ===== */
.side{background:#0E3327}
.side-head{border-bottom-color:rgba(255,255,255,.08)}
.nav-group{color:#6F978A;font-weight:600;font-size:11px;padding:14px 12px 6px}
.nav-item{min-height:42px;font-weight:500;font-size:14px;color:#B7CEC2}
.nav-item:hover{background:rgba(255,255,255,.05);color:#fff}
.nav-item.active{background:rgba(61,220,151,.14);color:#fff;font-weight:600;box-shadow:inset -3px 0 0 #3DDC97}
[dir="ltr"] .nav-item.active{box-shadow:inset 3px 0 0 #3DDC97}
.side-foot{border-top-color:rgba(255,255,255,.08)}
.side .icon-btn{background:rgba(255,255,255,.08);border-color:transparent;color:#fff}
.main{background:#F4F5F2}

/* ===== Owner's test company bar ===== */
.demo-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#12201B;color:#DDEBE4;font-size:13px}
.demo-bar b{color:#3DDC97}
.demo-bar a{flex-shrink:0;padding:7px 14px;border-radius:999px;background:#3DDC97;color:#0B2B21;font-weight:700;text-decoration:none}

/* ===== Company system health (owner) ===== */
.hl-state{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:700}
.hl-state i,.hl-dot{display:inline-block;width:9px;height:9px;border-radius:50%}
.hl-dot{margin-inline-end:7px;vertical-align:middle}
.hl-active{background:#E3F0EA;color:#1E5E4E}.hl-active i,.hl-dot.hl-active{background:#1E7A55}
.hl-quiet,.hl-neverUsed,.hl-notStarted{background:#FFF4DF;color:#7A4509}.hl-quiet i,.hl-neverUsed i,.hl-notStarted i,.hl-dot.hl-quiet,.hl-dot.hl-neverUsed,.hl-dot.hl-notStarted{background:#D98A14}
.hl-stopped,.hl-issues{background:#FBEDEA;color:#9A3324}.hl-stopped i,.hl-issues i,.hl-dot.hl-stopped,.hl-dot.hl-issues{background:#C2412D}
span.hl-dot{background-clip:content-box}
.hl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.hl-box{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;background:#F6F8F5}
.hl-box strong{font-size:15px}
.hl-box strong.num{font-size:22px;font-weight:800}
.hl-issue{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--ink);text-decoration:none;font-size:14px}

/* ---------- Users and permissions ---------- */
.use-box{display:flex;flex-direction:column;gap:8px;padding:12px 16px;min-width:230px}
.use-top{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#5F6B66}
.use-top b{color:var(--ink)}
.use-box .btn{align-self:stretch;justify-content:center}
.u-tabs{max-width:560px;margin:4px 0 14px;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr}
.u-tabs .num{font-size:12px;margin-inline-start:6px}
.u-note{display:flex;align-items:center;gap:8px;padding:12px 16px;font-size:13px;font-weight:600;color:#1E5E4E;background:#F1F7F4;border-bottom:1px solid var(--line)}
.u-note svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}
.badge.u-role{background:#F1F3F0;color:var(--ink);font-weight:600;white-space:nowrap}
.u-roles{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}
.u-role-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink)}
.u-role-item span:first-child{display:flex;flex-direction:column;gap:2px}
.u-role-item.on{background:#F1F7F4;border-color:#A9D9C2}
.u-new-role{display:flex;gap:8px;margin-top:4px}
.u-new-role input{flex:1;min-width:0;min-height:40px;padding:0 12px;border:1px dashed #B9C7BF;border-radius:10px;font:inherit}
.u-role-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.u-scope{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.u-rname{font:inherit;font-size:18px;font-weight:700;border:1px solid var(--line);border-radius:10px;padding:6px 10px;max-width:280px}
.perm-table{width:100%;border-collapse:collapse}
.perm-table th,.perm-table td{padding:10px 8px;border-bottom:1px solid #F0F2EF;text-align:center;font-size:14px}
.perm-table thead th{font-size:12px;color:#5F6B66;font-weight:600}
.perm-table th[scope=row],.perm-table thead th:first-child{text-align:start;font-weight:500}
.perm-table input{width:22px;height:22px;accent-color:#1E7A55;cursor:pointer}
.perm-table input:disabled{cursor:default;opacity:.6}
.perm-na{display:inline-block;width:14px;height:2px;border-radius:2px;background:#D9DED9;vertical-align:middle}
.u-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.u-del{display:flex;justify-content:flex-end;grid-column:2}
@media (max-width:900px){
  .u-roles{grid-template-columns:1fr}
  .u-del{grid-column:auto}
  .use-box{width:100%;box-sizing:border-box}
  .u-tabs{max-width:none}
}

.us-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.us-grid .small-h{font-size:15px}
@media (max-width:900px){.us-grid{grid-template-columns:1fr}}
.unit-input{display:flex;align-items:center;gap:8px}
.unit-input input{flex:1;min-width:0}
.field.weekdays{flex-direction:row;flex-wrap:wrap;gap:4px 16px}
.field.weekdays input{height:20px;width:20px;padding:0}
.field.weekdays .check{min-height:40px}
.gr-list{display:flex;flex-direction:column;gap:6px}
.gr-group{font-size:13px;font-weight:700;margin:12px 0 2px;padding:8px 10px;background:#F6F8F6;border-radius:8px}
.gr-row{border-bottom:1px solid #F0F2EF;padding:8px 2px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.gr-name{font-size:14px;font-weight:600}
.gr-acts{display:flex;flex-wrap:wrap;gap:6px}
.gr-chip{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid #C9CFCA;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;background:#fff}
.gr-chip input{width:16px;height:16px;accent-color:var(--accent)}
.gr-chip:has(input:checked){border-color:var(--accent);background:#F1F7F4}
/* Grid and flex columns may shrink below their content, so wide tables scroll inside their card on phones */
.card,.table-scroll{min-width:0;max-width:100%}
/* Hidden screen-reader labels inside a table stay inside its scroll box */
.table-scroll{position:relative}
.sh-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.sh-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sh-time{font-size:22px;font-weight:700;text-align:start}
.sh-actions{flex-wrap:wrap}
.sh-steps{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.sh-step-list{gap:8px;border:0;padding:0;margin:0}
.sh-step-list legend{font-weight:600;font-size:14px;padding:0;margin-bottom:4px}
.sh-step{display:grid;grid-template-columns:16px minmax(0,1fr) 92px;gap:6px;align-items:center}
.sh-step select{padding:0 8px}
.pill-btn.danger{color:#B42318;border-color:#F3C9C4}
.at-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}
.at-kpis .kpi strong{font-size:22px}
.at-month{font-size:16px;padding:0 8px}
.at-steps{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.at-today-row td{background:#F6FAF8}
.at-bad td{background:#FDF3F2}
.badge.at-present{background:#E6F4EE;color:#14674F}
.badge.at-late{background:#FFF4E0;color:#8A5300}
.badge.at-absent,.badge.at-missingOut{background:#FDE8E6;color:#A3271B}
.badge.at-off,.badge.at-upcoming,.badge.at-notHired,.badge.at-noShift,.badge.at-notYet{background:#F0F2EF;color:#5F6B66}
.badge.at-offWorked{background:#E8EEFB;color:#2C47A3}
.badge[class*="at-"]{white-space:nowrap}
.db-trend{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;align-items:end;height:150px;margin-top:10px}
.db-trend-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px;min-width:0}
.db-trend-bar{width:100%;max-width:22px;border-radius:6px 6px 2px 2px;background:var(--accent);min-height:4px}
.db-trend-bar.off{background:#E3E7E4}
.db-trend-pct{font-size:9px;color:#5F6B66;white-space:nowrap}
.db-trend-day{font-size:10px;color:#5F6B66}
.rq-tabs{grid-template-columns:repeat(4,1fr);max-width:620px;margin:4px 0 14px}
.rq-tabs a{font-size:13px}
.badge.rq-pending{background:#FFF4E0;color:#8A5300}
.badge.rq-approved{background:#E6F4EE;color:#14674F}
.badge.rq-rejected,.badge.rq-cancelled{background:#F0F2EF;color:#5F6B66}
.badge.at-leave{background:#E8EEFB;color:#2C47A3}
.badge.at-leaveUnpaid{background:#F3E8FB;color:#6B2CA3}
.badge.at-holiday{background:#F0F2EF;color:#5F6B66}
.badge.at-holidayWorked{background:#E8EEFB;color:#2C47A3}
.hd-row{flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #F0F2EF}
.hd-covers{color:#5F6B66}
.hd-groups{display:flex;flex-wrap:wrap;gap:4px 16px}
.hd-group-add input{flex:1;min-width:0;height:44px;border:1px solid #C9CFCA;border-radius:10px;padding:0 12px;font:inherit}
.al-assign{border-top:1px solid #F0F2EF;padding-top:8px;margin-top:4px}
.al-details summary{list-style:none;cursor:pointer;display:inline-flex}
.al-details summary::-webkit-details-marker{display:none}
.al-details[open] summary{margin-bottom:8px}
.al-form{padding:10px 0}
.adv-card{color:inherit;text-decoration:none}
.vi-step{display:grid;grid-template-columns:70px minmax(0,1fr) 90px;gap:6px;align-items:center}
.vi-step select,.vi-step input,.vi-approve select,.vi-approve input{height:42px;border:1px solid #C9CFCA;border-radius:10px;padding:0 8px;font:inherit;background:#fff;min-width:0}
.vi-approve .row-gap{flex-wrap:wrap}
.vi-approve select{flex:1}
.vi-approve input{width:90px}
/* payroll */
.badge.pr-draft{background:#F6EBD9;color:#7A4509}
.badge.pr-approved{background:#E3EAF3;color:#1F4E79}
.badge.pr-paid{background:#E3F0EA;color:#1E5E4E}
.slip{max-width:760px}
.slip-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line,#E4E7E2)}
.slip-who{text-align:end}
.slip-total{border-top:1px solid var(--line,#E4E7E2);padding-top:10px;display:flex;flex-direction:column;gap:6px}
.slip .kv{gap:12px}
@media print{
  .side,.topbar,.scrim,.no-print,[data-open-menu]{display:none!important}
  body,.main,.content{background:#fff!important;margin:0!important;padding:0!important}
  .slip{box-shadow:none!important;border:0!important;max-width:none}
}
/* employee profile */
.avatar-lg{width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#E3F0EA;color:#1E5E4E;font-weight:800;font-size:22px;flex:none}
.emp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.emp-grid .kv{gap:12px}
.emp-grid .kv>span:last-child{text-align:end;overflow-wrap:anywhere}
a.card.kpi{color:inherit;text-decoration:none}
/* branches and departments */
.org-branch-head,.org-dept-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.org-depts{display:flex;flex-direction:column;gap:8px}
.org-dept{border:1px solid var(--line,#E4E7E2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.org-hidden{opacity:.7}
.org-dept-add input{flex:1;min-width:0;height:44px;border:1px solid #C9CFCA;border-radius:10px;padding:0 12px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.org-add summary{cursor:pointer}
/* contracts */
.badge.ct-active{background:#E3F0EA;color:#1E5E4E}
.badge.ct-ending{background:#F6EBD9;color:#7A4509}
.badge.ct-upcoming{background:#E3EAF3;color:#1F4E79}
.badge.ct-ended,.badge.ct-terminated{background:#F5E1DD;color:#9A3324}
details.card>summary{cursor:pointer}
/* employee file (print / PDF) */
.emp-file{max-width:820px;display:flex;flex-direction:column;gap:10px}
.emp-file .h2{margin-top:8px;padding-bottom:4px;border-bottom:2px solid var(--accent)}
.file-table{width:100%;border-collapse:collapse;font-size:14px}
.file-table{table-layout:fixed;min-width:0}
.file-table th,.file-table td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top;overflow-wrap:anywhere;word-break:break-word}
.emp-file{min-width:0}
.file-grid th,.file-grid td{font-size:12px;padding:6px 4px}
.file-table tbody th{width:38%;color:var(--muted);font-weight:500}
.file-grid thead th{background:#F4F6F3;font-size:13px}
.file-sign{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px}
.file-line{border-bottom:1px solid var(--ink);height:40px}
@media print{
  .emp-file{max-width:none;padding:0!important}
  .emp-file .h2{break-after:avoid}
  .file-table{break-inside:auto}
  .file-table tr{break-inside:avoid}
  .page-head,.no-print{display:none!important}
}
/* documents */
.badge.doc-valid{background:#E3F0EA;color:#1E5E4E}
.badge.doc-expiring{background:#F6EBD9;color:#7A4509}
.badge.doc-expired{background:#F5E1DD;color:#9A3324}
.badge.doc-none{background:#F1F3F0;color:var(--ink)}
/* backups */
.badge.bk-daily{background:#E3EAF3;color:#1F4E79}
.badge.bk-manual{background:#E3F0EA;color:#1E5E4E}
.badge.bk-before_restore{background:#F6EBD9;color:#7A4509}
/* end of service */
.badge.eos-approved{background:#E3EAF3;color:#1F4E79}
.badge.eos-paid{background:#E3F0EA;color:#1E5E4E}
.badge.at-left{background:#F1F3F0;color:var(--muted)}
.page-head .row-gap{flex-wrap:wrap;min-width:0;max-width:100%}
/* reports */
.rp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.rp-card{color:inherit;text-decoration:none}
.rp-card.rp-main{border:2px solid var(--accent)}
.rp-table td,.rp-table th{white-space:nowrap}
.rp-over{margin-bottom:18px}
.sb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-bottom:12px}
.sb-bar{height:6px;border-radius:999px;background:var(--line)}
.sb-bar div{height:6px;border-radius:999px;background:var(--accent);max-width:100%}
.sb-list{margin:0;padding-inline-start:18px;display:grid;gap:4px}
.rp-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rp-tile{display:flex;flex-direction:column;gap:2px;padding:14px;color:inherit;text-decoration:none;border-inline-start:4px solid var(--line)}
.rp-num{font-size:1.5rem;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.rp-tile.rp-good{border-inline-start-color:var(--accent)}
.rp-tile.rp-warn{border-inline-start-color:var(--warn)}
.rp-tile.rp-warn .rp-num{color:var(--warn)}
.rp-tile.rp-bad{border-inline-start-color:var(--danger)}
.rp-tile.rp-bad .rp-num{color:var(--danger)}
.rp-strong td{font-weight:700;background:#F4F6F3}
@media print{
  .rp-sheet{box-shadow:none!important;border:0!important;padding:0!important}
  .rp-sheet .table-scroll{overflow:visible}
  .rp-table{min-width:0;font-size:11px}
  .rp-table td,.rp-table th{padding:4px 6px;white-space:normal}
}

.dw-links{display:flex;flex-direction:row;gap:18px;justify-content:center;flex-wrap:wrap}.dw-links a{color:inherit;text-decoration:none;font-weight:600}.dw-links a:hover{text-decoration:underline}
.dw{overflow-x:clip}
.doc-page{min-height:100vh;background:#fff;color:var(--ink)}
.doc-top{display:flex;justify-content:space-between;align-items:center;padding:18px max(16px,calc((100% - 828px) / 2));border-bottom:1px solid var(--line)}
.doc-brand{display:inline-flex;align-items:center;gap:10px;color:#0F4A37;text-decoration:none;font-size:20px}
.doc-lang{color:#0F4A37;font-weight:700;text-decoration:none;padding:8px 14px;border-radius:12px;border:1px solid var(--line)}
.doc-main{max-width:860px;margin:0 auto;padding:24px 16px 40px}
.doc-card{line-height:1.8}
.doc-card h1{margin:0 0 4px;font-size:26px}
.doc-card h2{font-size:17px;margin:22px 0 6px}
.doc-card p,.doc-card li{color:var(--muted);margin:0 0 6px}
.doc-card ul{margin:0;padding-inline-start:20px}
.doc-updated{font-size:13px}
.doc-intro{font-size:15px}
.doc-contact{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.doc-faq{border-top:1px solid var(--line);padding:12px 0}
.doc-faq summary{cursor:pointer;font-weight:700;color:var(--ink)}
.doc-faq p{margin:8px 0 0}
.doc-links{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
@media (max-width:600px){.doc-card h1{font-size:22px}}

.step-head2{gap:4px}
.step-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.step-head2 p{margin:0}
.dw .step-count{color:rgba(255,255,255,.75)}
.step-head2,.step-head2 p{text-align:start}
.step-head2 p{font-size:14px;line-height:1.6}
.br-count{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1.5px dashed #C9CFCA}
.br-count[hidden]{display:none}
.br-count label{font-weight:600;font-size:14px}
.br-stepper{display:flex;align-items:center;border:1.5px solid #C9CFCA;border-radius:12px;overflow:hidden;background:#fff}
.br-stepper input{width:64px;height:42px;border:0;text-align:center;font-size:17px;font-weight:700;background:transparent;color:inherit;-moz-appearance:textfield;appearance:textfield}
.br-stepper input::-webkit-outer-spin-button,.br-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.br-step{width:42px;height:42px;border:0;background:#EEF4F1;color:#1E5E4E;font-size:20px;font-weight:700;cursor:pointer}
.dw .br-count{border-color:rgba(127,240,190,.45);background:rgba(61,220,151,.06)}
.dw .br-stepper{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}
.dw .br-stepper input{color:#fff}
.dw .br-step{background:rgba(127,240,190,.14);color:#7FF0BE}
.br-box2{border:1.5px solid #C9CFCA;border-radius:14px;background:#fff;overflow:hidden}
.br-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer}
.br-q{display:flex;flex-direction:column;gap:2px;min-width:0}
.br-q b{font-size:14px}
.br-q small{font-size:12.5px;color:#4A5752}
.switch{position:relative;flex-shrink:0;width:48px;height:28px}
.switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.switch-ui{position:absolute;inset:0;border-radius:999px;background:#C9CFCA;transition:background .15s}
.switch-ui::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch input:checked+.switch-ui{background:var(--accent)}
.switch input:checked+.switch-ui::after{transform:translateX(20px)}
.switch input:checked+.switch-ui:dir(rtl)::after{transform:translateX(-20px)}
.switch input:focus-visible+.switch-ui{outline:2px solid var(--accent);outline-offset:2px}
.br-box2 .br-count{border:0;border-top:1px dashed #C9CFCA;border-radius:0;padding:10px 14px;background:transparent}
.dw .br-box2{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22)}
.dw .br-q b{color:#fff}
.dw .br-q small{color:rgba(255,255,255,.7)}
.dw .switch-ui{background:rgba(255,255,255,.25)}
.dw .switch input:checked+.switch-ui{background:#2FBF84}
.dw .br-box2 .br-count{border-top-color:rgba(255,255,255,.2);background:transparent}
.dw .br-count label{color:#fff}
.back-ic{flex-shrink:0;width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid #DCE3DF;color:var(--ink);text-decoration:none}
.back-ic svg:dir(rtl){transform:scaleX(-1)}
.step-title h1{flex-grow:1;margin:0;text-align:start}
.dw .back-ic{color:#fff;border-color:rgba(255,255,255,.3)}
.br-count label{white-space:nowrap}
.dw .dw-links a{color:#fff;opacity:1;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.dw .dw-links a:hover{text-decoration:underline}
.sub-req textarea{width:100%;box-sizing:border-box;min-height:64px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;font:inherit;resize:vertical}
.dw .sub-req textarea{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.28);color:#fff}
.dw .sub-req textarea::placeholder{color:rgba(255,255,255,.55)}
/* letters */
.lr-text{width:100%;min-height:220px;border:1px solid #C9CFCA;border-radius:10px;padding:12px;font:inherit;font-size:15px;line-height:1.9;background:#fff;color:var(--ink);resize:vertical}
.lr-fields{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#F7F9F7}
.lr-group{display:flex;flex-direction:column;gap:4px}
.lr-chips{display:flex;flex-wrap:wrap;gap:6px}
.lr-chip{font-size:13px;padding:4px 10px;min-height:32px}
.lr-lang+.lr-lang{border-top:1px solid var(--line);padding-top:16px}
.letter{max-width:800px;display:flex;flex-direction:column;gap:14px;line-height:1.9;font-size:15px}
.letter-head{display:flex;align-items:center;gap:14px;padding-bottom:12px;border-bottom:2px solid var(--accent)}
.letter-logo{width:64px;height:64px;object-fit:contain;flex:none}
.letter-company{font-size:20px;font-weight:800;overflow-wrap:anywhere}
.letter-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.letter-title{text-align:center;font-size:19px;font-weight:800;margin:10px 0 4px;text-decoration:underline;text-underline-offset:6px}
.letter-body p{margin:0 0 12px;overflow-wrap:anywhere;white-space:pre-wrap}
.letter-sign{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
@media print{
  .letter{max-width:none;box-shadow:none!important;border:0!important;padding:0!important;font-size:14pt}
  .page-head,.no-print{display:none!important}
}
/* the sections of a menu entry, as tabs at the top of the page (underlined, unlike the tabs inside a page) */
.subnav{display:flex;flex-direction:row;gap:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;margin:-4px 0 18px;padding:4px;border-radius:14px;background:#EEF2EF;max-width:100%;-webkit-overflow-scrolling:touch;scroll-padding-inline:12px}
.subnav::-webkit-scrollbar{display:none}
.subnav a{flex:none;min-height:42px;padding:0 16px;display:flex;align-items:center;border-radius:10px;font-weight:700;font-size:15px;color:#5E6B66;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.subnav a.on{background:#fff;color:var(--accent);box-shadow:0 1px 3px rgba(18,32,27,.14)}
.subnav a:not(.on):hover{color:#12201B;background:rgba(255,255,255,.55)}
@media (min-width:901px){.subnav{display:inline-flex}}
/* notifications */
.top-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.icon-btn.bell{position:relative;text-decoration:none}
.icon-btn.bell svg{stroke-linejoin:round}
.bell-count{position:absolute;top:-6px;inset-inline-end:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger,#B42318);color:#fff;font-size:11px;font-weight:800;line-height:20px;text-align:center;border:2px solid #fff}
.nav-item em.nav-count{background:var(--danger,#B42318);color:#fff;font-weight:800}
.nt-list{padding:0;overflow:hidden}
.nt-item{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.nt-item:last-child{border-bottom:0}
.nt-item:hover{background:#F7F9F7}
.nt-dot{width:10px;height:10px;border-radius:50%;margin-top:7px;flex:none;background:transparent}
.nt-item.unread{background:#F2F8F5}
.nt-item.unread .nt-dot{background:var(--accent)}
.nt-body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;overflow-wrap:anywhere}
.nt-title{font-weight:600}
.nt-item.unread .nt-title{font-weight:800}
.nt-when{flex:none;white-space:nowrap}
/* employee portal (phone first) */
.pt{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:92px}
.pt-top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:10px 16px}
.pt-logo{width:40px;height:40px;border-radius:11px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none;object-fit:contain}
img.pt-logo{background:#fff;border:1px solid var(--line)}
.pt-co{flex:1;min-width:0;line-height:1.3}.pt-co b{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pt-co span{font-size:12px;color:var(--muted)}
.pt-bell{position:relative;width:44px;height:44px;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--ink);flex:none}
.pt-bell svg,.pt-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pt-bell i{position:absolute;top:-6px;inset-inline-end:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px;font-weight:800;font-style:normal;line-height:20px;text-align:center;border:2px solid #fff}
.pt-body{padding:16px;display:flex;flex-direction:column;gap:14px}
.pt-hello{font-size:22px;font-weight:800;margin:0}.pt-sub{color:var(--muted);font-size:14px;margin:0}
.pt-today{background:linear-gradient(135deg,var(--accent),#2A7A64);color:#fff;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px}
.pt-today .st{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:18px;opacity:1;animation:none}
.pt-today .st:before{content:"";width:10px;height:10px;border-radius:50%;background:#7FF0BE}
.pt-today .st-absent:before,.pt-today .st-missingOut:before{background:#FFB4A6}.pt-today .st-late:before{background:#FFD38A}
.pt-today .st-off:before,.pt-today .st-holiday:before,.pt-today .st-leave:before,.pt-today .st-upcoming:before,.pt-today .st-notYet:before{background:#C9D3CE}
.pt-today .row{display:flex;justify-content:space-between;gap:10px;font-size:14px;opacity:.95;flex-wrap:wrap}
.pt-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pt-tile{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pt-tile b{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.pt-tile span{font-size:13px;color:var(--muted)}
.pt .ok{color:#1E5E4E}.pt .warn{color:var(--warn)}.pt .bad{color:var(--danger)}
.pt-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.pt-card h2{font-size:16px;margin:0;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.pt-card h2 a{font-size:13px;font-weight:700;text-decoration:none}
.pt-sub-h{font-size:14px;margin:6px 0 0;color:var(--muted)}
.pt-card>p{margin:0}
.pt .bar{height:8px;border-radius:999px;background:#E6EBE7}.pt .bar div{height:8px;border-radius:999px;background:var(--accent)}
.pt .big{font-size:24px;font-weight:800}
.pt-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pt-act{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;font-weight:700;font-size:14px;display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.pt-act span{width:34px;height:34px;border-radius:10px;background:#E3F0EA;color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;flex:none}
.pt-nav{position:fixed;bottom:0;left:0;right:0;z-index:6;background:#fff;border-top:1px solid var(--line);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:6px 4px calc(10px + env(safe-area-inset-bottom))}
.pt-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;font-weight:700;color:#6B7A74;text-decoration:none;padding:4px 0;min-height:48px}
.pt-nav a.on{color:var(--accent)}
.pt-nav a.on svg{background:#E3F0EA;border-radius:999px;padding:3px 14px;width:52px;height:28px;box-sizing:border-box}
.pt .month{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 10px;font-weight:800}
.pt .month a,.pt .month .m-off{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--ink);font-size:20px}
.pt .month .m-off{visibility:hidden}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}
.cal .h{font-size:11px;color:var(--muted);font-weight:700}
.cal .d{aspect-ratio:1;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;background:#fff;border:1px solid var(--line)}
.cal .d.p{background:#E3F0EA;border-color:#CFE5DA;color:#1E5E4E}.cal .d.l{background:#F6EBD9;border-color:#EBD8B6;color:#7A4509}.cal .d.a{background:#F5E1DD;border-color:#EBC9C2;color:#9A3324}
.cal .d.v{background:#E3EAF3;border-color:#C9D6E8;color:#1F4E79}.cal .d.o{background:#F1F3F0;color:#9AA59F}.cal .d.f{color:#B5BEB9}.cal .d.n{color:var(--muted)}.cal .d.e{visibility:hidden}
.legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted)}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:4px;vertical-align:middle}
.lg-p{background:#CFE5DA}.lg-l{background:#EBD8B6}.lg-a{background:#EBC9C2}.lg-v{background:#C9D6E8}.lg-o{background:#E4E7E2}
.pt .day{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;color:inherit;text-decoration:none}.pt .day:last-child{border:0}
.pt .badge{white-space:nowrap}
.b-p{background:#E3F0EA;color:#1E5E4E}.b-l{background:#F6EBD9;color:#7A4509}.b-a{background:#F5E1DD;color:#9A3324}.b-v{background:#E3EAF3;color:#1F4E79}.b-o,.b-n{background:#F1F3F0;color:var(--muted)}.b-ok{background:#E3F0EA;color:#1E5E4E}.b-blue{background:#E3EAF3;color:#1F4E79}
.stack-xs{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.pt .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pt .field input,.pt .field select{width:100%;min-width:0}
.pt-center{text-align:center;display:block}
.pt .net{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--accent);color:#fff;border-radius:12px;padding:14px 16px;font-weight:800}
.pt-me{flex-direction:row;align-items:center;gap:12px}
.pt-avatar{width:52px;height:52px;border-radius:50%;font-size:22px}
.pt .nt{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.pt .nt:last-child{border:0}
.pt .nt i{width:10px;height:10px;border-radius:50%;background:var(--accent);margin-top:8px;flex:none}.pt .nt.r i{background:transparent}
.pt-link{width:100%;padding:10px 0;color:inherit;text-decoration:none;border-bottom:1px solid var(--line);background:none;border-left:0;border-right:0;border-top:0;font:inherit;cursor:pointer}
form:last-child .pt-link{border-bottom:0}
.pt-link.bad b{color:var(--danger)}
.pt [hidden]{display:none!important}
/* «طلباتي»: leave / advance / letter */
.pt-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;background:#E6EBE7;padding:4px;border-radius:12px}
.pt-seg a{text-align:center;font-weight:700;font-size:14px;padding:9px 0;border-radius:9px;color:#4A5752;text-decoration:none;min-height:40px}
.pt-seg a.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.pt-calc{background:#E3F0EA;color:#1E5E4E;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:700;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pt .back{align-self:flex-start}
.pt-letter-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.pt-letter .letter{padding:18px 16px;font-size:14px}
@media print{.pt-top,.pt-nav{display:none!important}.pt{padding:0}.pt-letter .letter{border:0;padding:0}}
/* employee portal sign-in sheets */
.pa-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.pa-card{padding:16px;display:flex;flex-direction:column;gap:10px;break-inside:avoid}
.pa-card header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-bottom:2px solid var(--accent);padding-bottom:6px}
.pa-qr{width:150px;height:150px;margin:0 auto}.pa-qr svg{width:100%;height:100%}
.pa-rows{display:flex;flex-direction:column;gap:6px}
.pa-pass{font-size:18px;letter-spacing:2px;font-family:Manrope,monospace}
.pa-link span:last-child{font-size:12px;overflow-wrap:anywhere;text-align:end}
@media print{.pa-sheet{grid-template-columns:1fr 1fr}.pa-card{border:1px dashed #999!important;box-shadow:none!important}}
.pt-more summary{margin:10px auto 0;display:flex;justify-content:center;cursor:pointer;list-style:none}.pt-more summary::-webkit-details-marker{display:none}.pt-more[open] summary{display:none}
.pt .two>*{min-width:0}.pt .field input[type=date],.pt .field input[type=time]{width:100%;min-width:0;padding:0 10px}.pt .stack-xs .link-btn{color:var(--danger);font-weight:700;opacity:1}
/* employee portal page (company side) */
.pa-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.pa-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pa-tile{padding:14px;display:flex;flex-direction:column;gap:2px;color:inherit;text-decoration:none;min-width:0}
.pa-tile b{font-size:26px;line-height:1.2}.pa-tile.on{outline:2px solid var(--accent)}
.pa-share{padding:14px;display:flex;gap:14px;align-items:center;min-width:0}
.small-qr{width:96px;height:96px;flex:none;margin:0}
.pa-url{font-size:12px;overflow-wrap:anywhere;color:var(--muted)}
.pa-list{padding:0;overflow:hidden}
.pa-row{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.pa-row:last-child{border-bottom:0}
.pa-who{display:flex;flex-direction:column;min-width:0}.pa-who a{color:inherit;text-decoration:none}
.pa-state{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.pa-acts{grid-column:1/-1}
.pa-feats{margin:0;padding-inline-start:20px;display:grid;gap:6px}
.pa-poster{max-width:560px;margin:0 auto;padding:28px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.pa-poster h2{margin:0;font-size:24px}.pa-poster-title{margin:0;font-size:18px;color:var(--accent);font-weight:800}
.pa-poster-logo{width:72px;height:72px;object-fit:contain}
.big-qr{width:240px;height:240px}
.pa-poster-steps{text-align:start;display:grid;gap:6px;margin:6px 0}
@media print{.pa-poster{border:0!important;box-shadow:none!important;max-width:none}}
.act-kind.k-shared_login{background:#F6EBD9;color:#7A4509}
/* portal: the way into the company's pages for an employee with a role or a team */
.pt-admin{display:flex;align-items:center;gap:12px;background:var(--side);color:#fff;border-radius:14px;padding:12px 14px;text-decoration:none}
.pt-admin svg{width:34px;height:34px;padding:7px;border-radius:10px;background:rgba(255,255,255,.12);fill:none;stroke:currentColor;stroke-width:1.9;flex:none}
.pt-admin span{flex:1;display:flex;flex-direction:column;line-height:1.35}.pt-admin b{font-size:15px}.pt-admin small{font-size:12.5px;color:var(--side-ink)}
.pt-admin i{font-style:normal;font-size:22px;opacity:.8}
[dir=ltr] .pt-admin i{transform:scaleX(-1)}
.pt-admin-wait{opacity:.75}
.inv-email{display:flex;flex-direction:column;gap:2px;background:#F3F6F4;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:14px;font-size:14px}
.inv-email span{color:var(--muted);font-size:13px}
.inv-rule{font-size:13px;color:var(--muted);margin:0}
/* the permissions page: partners, employees with a role, people from outside, the direct manager */
.u-tabs{max-width:620px}
.u-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-inline-start:6px;vertical-align:middle}
.u-sec{padding:18px;display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.u-sec-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.u-sec-head p{margin:4px 0 0}
.u-list{display:flex;flex-direction:column}
.u-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #F0F2EF}
.u-row:first-child{border-top:0}
.u-row .person>div{min-width:0}.u-row .person .small{overflow-wrap:anywhere}
.u-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.u-row .row-actions{flex-wrap:wrap}
.u-grant{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px;align-items:end;background:#F7F9F7;border:1px solid var(--line);border-radius:12px;padding:12px}
.u-grant select{width:100%;min-width:0}
.u-grant-note{margin:-4px 0 0}
.u-empty{padding:16px;border:1px dashed #CDD5CF;border-radius:12px;color:var(--muted);font-size:14px;text-align:center}
.u-foot-note{margin:0}
.switch-row{display:inline-flex;align-items:center;gap:10px;font-weight:700;background:#F1F7F4;border:1px solid #CFE5DA;border-radius:999px;padding:8px 16px;cursor:pointer}
.switch-row input{width:22px;height:22px;accent-color:#1E7A55}
.u-points{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px}
.inv-link{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inv-link input{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-size:14px;background:#F7F9F7}
@media (max-width:760px){
  .u-row{grid-template-columns:1fr;gap:8px}
  .u-row .row-actions{justify-content:flex-start}
  .u-grant{grid-template-columns:1fr}
}
/* punching from the phone (portal home) */
.mp-punch{display:flex;flex-direction:column;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 16px;text-align:center}
.mp-fp{width:148px;height:148px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;
  background:radial-gradient(circle at 50% 38%,#2F8A6F,var(--accent));box-shadow:0 0 0 10px #E3F0EA,0 12px 24px rgba(30,94,78,.3);position:relative;-webkit-tap-highlight-color:transparent}
.mp-fp.out{background:radial-gradient(circle at 50% 38%,#B4503E,var(--danger));box-shadow:0 0 0 10px #F5E1DD,0 12px 24px rgba(154,51,36,.28)}
.mp-fp svg{width:80px;height:80px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.mp-fp:active{transform:scale(.97)}
.mp-fp:focus-visible{outline:3px solid #7FC9A9;outline-offset:6px}
.mp-lbl{font-size:19px}
.mp-hint{font-size:13px;color:var(--muted)}
.mp-reg .btn{align-self:stretch}
.mp-new{margin:10px auto 0;max-width:420px;text-align:center}
.mp-new summary{cursor:pointer;padding:6px}
.mp-new>div{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.mp-msg{margin:0;font-size:14px;font-weight:600;color:var(--danger)}.mp-msg.ok{color:#1E5E4E}
.mp-sheet{position:fixed;inset:0;z-index:20;background:#F3F4F1;display:flex;align-items:center;justify-content:center;padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
.mp-step{width:100%;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.mp-spin{width:54px;height:54px;border-radius:50%;border:5px solid #DCE8E2;border-top-color:var(--accent);animation:mpspin 1s linear infinite}
@keyframes mpspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mp-spin{animation-duration:3s}}
.mp-cam{color:var(--ink)}
.mp-view{position:relative;width:100%;max-width:340px;aspect-ratio:3/4;border-radius:22px;overflow:hidden;background:#0C110F}
.mp-view video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.mp-oval{position:absolute;inset:12% 18%;border:3px dashed rgba(255,255,255,.75);border-radius:50%}
.mp-shutter{width:72px;height:72px;border-radius:50%;background:#fff;border:6px solid var(--accent);cursor:pointer}
.mp-file{color:var(--accent)}
.mp-ic{width:86px;height:86px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.mp-ic.ok{background:#E3F0EA;color:var(--accent)}.mp-ic.no{background:#F5E1DD;color:var(--danger)}
.mp-ic svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.mp-r-title{font-size:20px}
.mp-time{font-size:40px;font-weight:800;font-variant-numeric:tabular-nums}
.mp-pill{font-size:13px;font-weight:700;padding:4px 12px;border-radius:999px;background:#E3F0EA;color:#1E5E4E}
.mp-pill.warn{background:#F6EBD9;color:var(--warn)}.mp-pill.bad{background:#F5E1DD;color:var(--danger)}
.mp-sheet .btn{min-width:180px}
body.mp-open{overflow:hidden}
/* punching from the phone (company side) */
.u-count{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:11.5px;font-weight:800;line-height:20px;text-align:center;margin-inline-start:4px}
.mp-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #F0F2EF}
.mp-row:first-child{border-top:0}
.mp-group{border-top:1px solid #F0F2EF}.mp-group:first-child{border-top:0}.mp-group>summary{cursor:pointer;list-style:none;border-top:0}.mp-group>summary::-webkit-details-marker{display:none}.mp-group>summary .mp-meta{display:flex;flex-direction:column;gap:2px}.mp-group-act{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 8px}.mp-group>.mp-row{padding-inline-start:16px}
.mp-photo{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#E3F0EA;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--accent);font-size:22px}
.mp-photo img{width:100%;height:100%;object-fit:cover}
.mp-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.mp-meta .mp-pill{align-self:flex-start}
.mp-act{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.mp-act form{margin:0}
.danger-text{color:var(--danger)}
.mp-link{color:var(--accent);font-size:13px}
.mp-place{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;align-items:end}
.mp-place [data-use-location]{grid-column:1/-1;justify-self:start}
.mp-place .row-gap{grid-column:1/-1}
.set{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.set legend{font-weight:700;margin-bottom:6px}
.opt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:#fff}
.opt input{width:20px;height:20px;accent-color:#1E7A55;margin-top:3px;flex:none}
.opt small{display:block;color:var(--muted)}
@media (max-width:760px){.mp-row{grid-template-columns:56px minmax(0,1fr)}.mp-act{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.mp-place{grid-template-columns:1fr}}
.pill-select{min-height:40px;border:1px solid var(--line);border-radius:999px;padding:0 14px;font:inherit;font-size:14px;background:#fff;color:var(--ink);max-width:100%}
.mp-precise{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;font-weight:500}
.mp-precise p{margin:0;font-size:14px}
.mp-precise[hidden]{display:none}

.login-note{margin:0;font-size:13.5px;color:inherit;opacity:.8;text-align:center;line-height:1.7}
.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:rgba(127,140,134,.16)}
.auth-switch a{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:9px;font-weight:700;font-size:15px;color:inherit;text-decoration:none;opacity:.85}
.auth-switch a.on{background:#fff;color:#12352B;opacity:1;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.auth-form[hidden]{display:none}
.mp-done{gap:8px}
.mp-done-ic{width:96px;height:96px;border-radius:50%;background:#E3F0EA;color:var(--accent);display:flex;align-items:center;justify-content:center}
.mp-done-ic svg{width:50px;height:50px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.mp-time-sm{font-size:30px;font-weight:800;font-variant-numeric:tabular-nums}
/* a punch's photo: a small square, large on tap (same page) */
.punch-row{justify-content:flex-start;align-items:center;gap:12px}
.punch-row .punch-txt{flex:1;min-width:0}
.punch-thumb{width:56px;height:56px;flex:none;border:0;padding:0;border-radius:12px;overflow:hidden;background:#E3F0EA;cursor:zoom-in}
.punch-thumb img,.mp-photo img{width:100%;height:100%;object-fit:cover;display:block}
button.mp-photo{border:0;padding:0;cursor:zoom-in}
.zoom-box{position:fixed;inset:0;z-index:50;background:rgba(8,14,12,.88);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.zoom-box img{max-width:100%;max-height:100%;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.zoom-x{position:absolute;top:calc(14px + env(safe-area-inset-top));inset-inline-end:14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#15201C;font-size:26px;line-height:1;cursor:pointer}

/* reviewing what employees sent from the portal */
.rq-reject summary{list-style:none}.rq-reject summary::-webkit-details-marker{display:none}
.rq-reject[open]{flex-basis:100%}
.rq-reject form{margin-top:8px}
.rq-reject .input{flex:1;min-width:180px;min-height:40px;border:1px solid #C9CFCA;border-radius:10px;padding:0 12px;font:inherit;font-size:14px}
.pr-old{font-weight:400}
/* attendance devices */
.dv-steps{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:8px;font-size:14.5px}
.dv-code{background:#F1F4F2;border:1px solid var(--line);border-radius:8px;padding:1px 8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px;unicode-bidi:isolate}
/* portal: today's work count and «إحصائياتي» */
.pt-timer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;border-top:1px solid rgba(255,255,255,.25);padding-top:10px}
.pt-timer b{font-size:18px}
.pt-timer .muted{color:inherit;opacity:.85}
.pt-stats{display:flex;flex-direction:column;gap:14px}
.pt-tiles-3{grid-template-columns:repeat(3,1fr)}
.pt-tiles-3 .pt-tile b{font-size:17px}
.pt-tiles-3 .pt-tile span{font-size:12px}
.pt-range summary{cursor:pointer;font-weight:700}
.pt-range-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;align-items:end}
.pt-range-form .muted{grid-column:1/-1}
.pt-stats-table{width:100%;font-size:13px;border-collapse:collapse}
.pt-stats-table th,.pt-stats-table td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:start;white-space:nowrap}
.pt-stats-link{margin:0}
.print-only{display:none!important}
@media print{
  .pt-top,.pt-nav,.pt-admin,.no-print{display:none!important}
  .print-only{display:flex!important}
  .pt,.pt-body{background:#fff!important;padding:0!important;max-width:none!important}
  .pt-card,.pt-tile{box-shadow:none!important;break-inside:avoid}
  .pt-stats-table tr{break-inside:avoid}
  .pt-stats-table th,.pt-stats-table td{white-space:normal}
  .table-scroll{overflow:visible!important}
}
.pt-stats-head{display:flex;flex-direction:column;gap:6px}
/* announcements */
.an-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;flex-wrap:wrap}
.an-row:last-child{border-bottom:0}
.an-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.an-side{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.an-bar{width:90px;height:6px;border-radius:4px;background:#E7ECE9;overflow:hidden;display:inline-block}
.an-bar i{display:block;height:100%;background:var(--accent)}
.an-body{white-space:pre-line;line-height:1.8}
.pt-news{border-inline-start:4px solid var(--accent)}
.pt-news p{white-space:pre-line;margin:6px 0 10px;line-height:1.8}
.pt-news form{display:flex;justify-content:flex-end}
.pt-news-list .pt-card{gap:4px}
.pt-news-list .unread{border-inline-start:4px solid var(--accent)}
.mp-break{margin-top:6px}
.pt-today .pt-timer.muted{color:inherit;opacity:.85}
/* Phones (iPhone Safari) zoom into any field written smaller than 16px: none is. */
@media (max-width:900px){input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important}}
.ex-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.ex-row:last-child{border-bottom:0}
.ex-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.ex-people{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px 12px;display:grid;gap:4px}
[data-ex-people][hidden]{display:none!important}
fieldset[data-ex-people]{border:0;padding:0;margin:0;min-width:0}
fieldset[data-ex-people] legend{font-weight:600;font-size:14px;padding:0;margin-bottom:6px}
.push-box[hidden]{display:none!important}.push-box h2{margin:0 0 6px}.push-ok{color:var(--accent);font-weight:700}
.mp-surprise{border:2px solid #E9A23B;background:#FFF8EC}.mp-surprise h2{display:flex;justify-content:space-between;align-items:center}.sp-left{font-size:22px;color:#9A5B00}.mp-surprise .btn{width:100%}
.sum-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px}.sum-tiles .kpi b{font-size:26px}

/* The look: light, dark or auto (views/partials/theme-pick.ejs) */
.theme-pick{display:flex;gap:4px;padding:4px;border-radius:12px}
.theme-pick button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 8px;border:0;border-radius:9px;background:transparent;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.theme-pick svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.theme-pick.on-side{background:rgba(255,255,255,.06);margin:4px 0}
.theme-pick.on-side button{color:var(--side-ink)}
.theme-pick.on-side button.on{background:var(--accent);color:#fff}
.theme-pick.in-portal{background:#F0F2EF;margin:6px 0 8px}
.theme-pick.in-portal button{color:var(--muted);min-height:44px}
.theme-pick.in-portal button.on{background:#FFFFFF;color:var(--ink);box-shadow:0 1px 3px rgba(15,30,25,.14)}

/* Registration links (views/employees/join.ejs, views/join/page.ejs) */
.jn-link{display:flex;flex-direction:column;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.jn-url{display:block;padding:10px 12px;border-radius:10px;background:#F0F4F2;font-size:13px;word-break:break-all;text-align:left}
.jn-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0;pointer-events:none}
.jn-done{align-items:center;text-align:center;padding:32px 16px}
.jn-ok{width:64px;height:64px;border-radius:50%;background:#E3F0EA;color:#1E5E4E;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700}
.badge-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;margin-inline-start:6px;border-radius:999px;background:var(--accent);color:#fff;font-size:12px}

/* Dashboard (views/app.ejs, DECISIONS.md 9.42): equal boxes in a grid; long lists scroll inside their box. */
:root{--dx-ok:#1E7A55;--dx-warn:#A86500;--dx-bad:#B42318;--dx-info:#2C47A3}
.dx-hero{position:relative;overflow:hidden;border-radius:20px;padding:22px 24px;color:#fff;background:linear-gradient(135deg,#0F3A2E 0%,var(--accent) 58%,#2B7B63 100%);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;box-shadow:0 16px 32px -20px rgba(10,50,38,.75)}
/* A clean banner: the gradient with a soft light behind the greeting. */
.dx-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 30%,rgba(255,255,255,.12),transparent 45%);pointer-events:none}
.dx-hero > *{position:relative;min-width:0}
.dx-logo{width:64px;height:64px;border-radius:17px;background:#fff;color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:28px;object-fit:contain;box-shadow:0 8px 20px -10px rgba(0,0,0,.45)}
.dx-hmain{display:flex;flex-direction:column;gap:4px}
.dx-co{font-size:12.5px;font-weight:700;letter-spacing:.03em;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-hi{margin:0;font-size:27px;line-height:1.3;color:#fff}
.dx-note{display:flex;align-items:flex-start;gap:8px;font-size:14px;opacity:.94}
.dx-note i{font-style:normal;color:#9FF0C9;font-weight:800}
.dx-note.bad i{color:#FFC9B8}
.dx-hside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:end}
.dx-clock{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em;line-height:1.1}
.dx-date{font-size:13px;opacity:.85}
.dx-hchips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.dx-live{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;white-space:nowrap}
.dx-live b{width:8px;height:8px;border-radius:50%;background:#6EF0B6;animation:dx-pulse 2s infinite}
@keyframes dx-pulse{0%{box-shadow:0 0 0 0 rgba(110,240,182,.6)}70%{box-shadow:0 0 0 8px rgba(110,240,182,0)}100%{box-shadow:0 0 0 0 rgba(110,240,182,0)}}
@media (prefers-reduced-motion:reduce){.dx-live b{animation:none}}
.dx-tbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dx-tools{display:flex;gap:8px;flex-wrap:wrap}
.dx-branch select{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-size:14px;font-weight:600;background:#fff;color:var(--ink)}
.dx-ghost{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.dx-ghost svg,.dx-qi svg,.dx-exp svg,.dx-ab svg,.dx-empty svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dx-quick{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap}
.dx-qa{display:inline-flex;align-items:center;gap:9px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 14px;font-weight:600;font-size:14px;color:var(--ink);text-decoration:none;white-space:nowrap;transition:transform .15s,box-shadow .15s}
.dx-qa:hover{transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(15,30,25,.25)}
.dx-qi{width:26px;height:26px;border-radius:8px;background:#E3F0EA;color:#1E5E4E;display:flex;align-items:center;justify-content:center;flex:none}
.dx-qa.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dx-qa.primary .dx-qi{background:rgba(255,255,255,.18);color:#fff}
.dx-tabs{display:flex;flex-direction:row;gap:4px;border-bottom:1px solid var(--line)}
.dx-tabs a{padding:9px 16px;font-weight:700;font-size:15px;color:var(--muted);text-decoration:none;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.dx-tabs a.on{color:var(--ink);border-bottom-color:var(--accent)}
.dx-start{padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.dx-start h2{margin:0;font-size:18px}.dx-start p{margin:0}
.dx-kpis{display:grid;grid-template-columns:1.35fr repeat(4,minmax(0,1fr));gap:12px}
.dx-kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px;text-align:start;position:relative;font:inherit;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.dx-kpi span{font-size:13px;color:var(--muted);font-weight:600}
.dx-kpi b{font-size:28px;line-height:1.25;font-weight:800}
.dx-kpi small{font-size:12px;color:var(--muted)}
button.dx-kpi:hover{border-color:var(--accent)}
.dx-kpi[aria-expanded="true"]{border-color:var(--accent);box-shadow:0 0 0 3px #E3F0EA}
.dx-dot{position:absolute;inset-inline-end:14px;top:16px;width:9px;height:9px;border-radius:50%;background:var(--c)}
.dx-rate{flex-direction:row;align-items:center;gap:14px;cursor:default}
.dx-rate > div{display:flex;flex-direction:column;gap:1px;min-width:0}
.dx-rate .trk{fill:none;stroke:#E6EBE7;stroke-width:7}
.dx-rate .val{fill:none;stroke:var(--accent);stroke-width:7;stroke-linecap:round}
.dx-rate text{font-size:15px;font-weight:800;fill:var(--ink);font-family:inherit}
.dx-drawer{background:#fff;border:1px solid var(--accent);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.dx-dlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2px 20px;max-height:320px;overflow-y:auto}
.dx-attn{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#FFF4E0;color:#7A4509;border-radius:12px;padding:10px 14px;font-size:13.5px;font-weight:600}
.dx-attn a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.dx-sep{opacity:.45}
.dx-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:380px}
.dx-card{height:100%;padding:14px 16px 0;display:flex;flex-direction:column;gap:10px;overflow:hidden;min-width:0;border-radius:16px}
.dx-card.span2{grid-column:span 2}
.dx-ch{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dx-ch h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.dx-ch a{font-size:13px;font-weight:600;color:#1E5E4E;text-decoration:none}
.dx-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--accent);color:#fff;font-size:12px;font-weight:700}
.dx-exp{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.dx-body{flex:1;min-height:0;overflow-y:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:thin;scrollbar-color:#DFE3DE transparent;-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);padding-bottom:16px}
.dx-chartbody{-webkit-mask-image:none;mask-image:none;display:flex;flex-direction:column;gap:8px;justify-content:center}
.dx-foot{border:0;border-top:1px solid var(--line);background:none;margin-inline:-16px;padding:12px 16px;font:inherit;font-size:13.5px;font-weight:700;color:#1E5E4E;display:flex;justify-content:space-between;align-items:center;text-decoration:none;cursor:pointer;flex:none}
.dx-foot:hover{background:#F6F8F5}
.dx-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #EEF1EE;color:var(--ink);text-decoration:none;font-size:14px}
.dx-row:last-child{border-bottom:0}
.dx-x{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4;color:var(--ink);text-decoration:none}
.dx-x b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-x small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx-who{display:flex;align-items:center;gap:10px;padding:7px 0;color:var(--ink);text-decoration:none;font-size:14px}
.dx-av{width:32px;height:32px;border-radius:50%;background:#E3F0EA;color:#1E5E4E;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
.dx-t,.dx-tm{color:var(--muted);font-size:12.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.dx-tm{min-width:44px;display:flex;flex-direction:column;line-height:1.3}
.dx-tm small{font-size:10.5px}
.dx-ab{display:flex;gap:5px;flex:none}
.dx-ab form{margin:0}
.dx-yes,.dx-no{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.dx-yes{background:var(--accent);border-color:var(--accent);color:#fff}
.dx-no{color:#B42318}
.dx-chip{font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;white-space:nowrap;text-decoration:none;flex:none}
.dx-chip.ok{background:#E3F0EA;color:#1E5E4E}.dx-chip.warn{background:#FFF4E0;color:#8A5300}.dx-chip.bad{background:#FDE8E6;color:#A3271B}.dx-chip.info{background:#EAF0F8;color:#2C47A3}.dx-chip.mute{background:#F1F3F0;color:#4A5752}
.dx-ptabs{display:flex;gap:6px;flex-wrap:wrap}
.dx-ptabs button{font:inherit;font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer}
.dx-ptabs button.on{background:var(--accent);border-color:var(--accent);color:#fff}
.dx-stack{display:flex;flex:none}
.dx-stack .dx-av{width:28px;height:28px;font-size:11.5px;border:2px solid #fff;margin-inline-start:-9px}
.dx-stack .dx-av:first-child{margin-inline-start:0}
.dx-stack .dx-av.more{background:#F1F3F0;color:#4A5752}
.dx-day{min-width:48px;text-align:center;border-radius:10px;background:#F4F6F3;padding:4px 0;font-size:11px;color:var(--muted);line-height:1.3;flex:none}
.dx-day b{display:block;font-size:17px;color:var(--ink)}
.dx-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;height:100%;min-height:120px;color:var(--muted);padding:16px}
.dx-empty p{margin:0;font-size:13.5px}
.dx-empty svg{width:24px;height:24px;color:#8FA89C}
.dx-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.dx-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:5px;vertical-align:-1px}
.dx-legend .end{margin-inline-start:auto}
.dx-bar{fill:var(--accent);opacity:.55}.dx-bar.now{opacity:1}.dx-bar.soft{opacity:.45}
.dx-off{fill:#E6EBE7}
.dx-avg{stroke:#8A9590;stroke-dasharray:4 4}
.dx-val{font-size:11px;font-weight:700;fill:var(--ink);font-family:inherit}
.dx-lab{font-size:10.5px;fill:var(--muted);font-family:inherit}.dx-lab.now{fill:var(--ink);font-weight:700}
.dx-grid-l{stroke:#E6EBE7}
.dx-s-ok{fill:var(--accent);background:var(--accent)}.dx-s-warn{fill:#C27C0E;background:#C27C0E}.dx-s-bad{fill:#C2412F;background:#C2412F}
.dx-hb{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.dx-hb .dx-row{border:0;padding:0}
.dx-track{height:9px;border-radius:9px;background:#E6EBE7;overflow:hidden}
.dx-track i{display:block;height:100%;border-radius:9px;background:var(--accent)}
.dx-tot{border-top:1px solid var(--line);font-size:15.5px}
.dx-layer{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.dx-scrim{position:absolute;inset:0;background:rgba(10,18,15,.45)}
.dx-modal{position:relative;width:100%;max-width:720px;max-height:min(760px,calc(100vh - 48px));background:#fff;border-radius:18px;box-shadow:0 30px 60px -20px rgba(0,0,0,.35);display:flex;flex-direction:column;padding:18px 20px;gap:12px}
.dx-panel{max-width:440px;overflow-y:auto}
.dx-search{height:46px;border:1px solid #C9CFCA;border-radius:10px;padding:0 14px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.dx-mlist{overflow-y:auto;min-height:0;display:flex;flex-direction:column}
.dx-mlist [hidden]{display:none!important}
.dx-sw{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #EEF1EE;font-size:14.5px;font-weight:600;cursor:pointer}
.dx-sw small{display:block;font-weight:400;color:var(--muted);font-size:12.5px}
.dx-sw input{width:22px;height:22px;accent-color:var(--accent);flex:none}
@media (max-width:1100px){.dx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-rate{grid-column:1 / -1}}
@media (max-width:700px){
  .dx-hero{grid-template-columns:auto minmax(0,1fr);padding:18px 16px;gap:12px 14px}
  .dx-logo{width:52px;height:52px;font-size:23px;border-radius:14px}
  .dx-hi{font-size:22px}
  .dx-hside{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.15);padding-top:10px;text-align:start}
  .dx-clock{font-size:25px}
  .dx-quick{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .dx-quick::-webkit-scrollbar{display:none}
  .dx-grid{grid-template-columns:1fr;grid-auto-rows:360px}
  .dx-card.span2{grid-column:auto}
  .dx-kpi b{font-size:24px}
  .dx-layer{align-items:flex-end;padding:0}
  .dx-modal{max-width:none;border-radius:20px 20px 0 0;max-height:88vh}
}
.dx-layer[hidden],.dx-modal[hidden],.dx-drawer[hidden],.dx-body[hidden],.dx-mlist [hidden],[data-dx-mnone][hidden]{display:none!important}
/* Owner: subscriptions list keeps each date on one line (the table scrolls on a phone). */
.subs-table td,.subs-table th{white-space:nowrap}
.sup-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sup-bar form{margin:0}
/* Punching from the phone: a dark sheet with a scan, the checks ticked one by one, and the tick drawn
   when the punch is recorded (DECISIONS.md 9.72). */
.mp-sheet{background:#12201B;color:#fff}
.mp-sheet .muted{color:#C9D3CE}
.mp-sheet .btn-outline{background:#1A2A24;border-color:#2C3B35;color:#fff}
.mp-sheet .link-btn{color:#7FF0BE}
.mp-scan{position:relative;width:220px;height:236px;border-radius:26px;background:#1A2A24;overflow:hidden;display:flex;align-items:center;justify-content:center}
.mp-scan svg{width:104px;height:104px;fill:none;stroke:#C9D3CE;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.mp-scan i{position:absolute;width:30px;height:30px;border:0 solid #7FF0BE}
.mp-scan .c1{top:14px;right:14px;border-top-width:3px;border-right-width:3px;border-top-right-radius:10px}
.mp-scan .c2{top:14px;left:14px;border-top-width:3px;border-left-width:3px;border-top-left-radius:10px}
.mp-scan .c3{bottom:14px;right:14px;border-bottom-width:3px;border-right-width:3px;border-bottom-right-radius:10px}
.mp-scan .c4{bottom:14px;left:14px;border-bottom-width:3px;border-left-width:3px;border-bottom-left-radius:10px}
.mp-scan-line{position:absolute;left:10%;right:10%;top:8%;height:3px;border-radius:3px;background:#7FF0BE;box-shadow:0 0 18px 4px rgba(127,240,190,.55);animation:mpscan 2s ease-in-out infinite}
@keyframes mpscan{0%,100%{top:8%}50%{top:88%}}
.mp-checks{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:8px}
.mp-checks li{display:flex;align-items:center;gap:12px;background:#1A2A24;border-radius:14px;padding:10px 14px;font-size:14px;text-align:start}
.mp-checks .mk{width:24px;height:24px;border-radius:50%;border:2px solid #4A5752;flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.mp-checks .mk svg{width:14px;height:14px;fill:none;stroke:#12201B;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.mp-checks li.now .mk{border-color:#7FF0BE;animation:glow 1s ease-in-out infinite}
.mp-checks li.ok .mk{background:#7FF0BE;border-color:#7FF0BE}
.mp-checks li.ok .mk svg{opacity:1}
.mp-sheet .mp-ic.ok{background:#7FF0BE;color:#12201B;animation:mppop .45s cubic-bezier(.2,.9,.3,1.2) both}
.mp-sheet .mp-ic.ok path{stroke-dasharray:30;stroke-dashoffset:30;animation:draw .4s .25s ease-out forwards}
@keyframes mppop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){.mp-scan-line,.mp-checks li.now .mk,.mp-sheet .mp-ic.ok,.mp-sheet .mp-ic.ok path{animation:none;stroke-dashoffset:0}}
/* Employee home: the work time inside a ring that fills towards the end of the day, and the quick
   actions as icons (DECISIONS.md 9.72, part 2). */
.pt-ringbox{display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:nowrap}
.pt-ring{position:relative;width:76px;height:76px;flex:none}
.pt-ring svg{width:76px;height:76px;transform:rotate(-90deg)}
.pt-ring circle{fill:none;stroke:rgba(255,255,255,.22);stroke-width:10}
.pt-ring circle.fg{stroke:#7FF0BE;stroke-linecap:round;transition:stroke-dashoffset .8s ease}
.pt-ring-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.pt-ring-txt b{font-size:22px;font-variant-numeric:tabular-nums}
.pt-quick{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px}
.pt-quick .pt-act{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:10px 4px;font-size:11px;line-height:1.3;border:0;box-shadow:0 2px 8px rgba(18,32,27,.06);min-height:44px}
.pt-quick .pt-act span{width:44px;height:44px;border-radius:14px}
.pt-quick .pt-act svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion: reduce){.pt-ring circle.fg{transition:none}}
/* Employee profile: the month day by day, one small square per day (DECISIONS.md 9.72, part 3). */
.em-month{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:6px}
.em-sq{display:flex;align-items:center;justify-content:center;min-height:34px;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:#fff;font-variant-numeric:tabular-nums}
.em-legend{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted)}
.em-legend span{display:inline-flex;align-items:center;gap:5px}
.em-legend .em-sq{min-height:10px;width:10px;height:10px;border-radius:3px}
.em-ok{background:#1E5E4E}
.em-warn{background:#8A5A12}
.em-bad{background:#9A3324}
.em-info{background:#1F4E79}
.em-off{background:#C9CFCA;color:#15201C}
.em-none{background:#E3E7E3;color:#4A5752}
.em-future{background:transparent;border:1px dashed #C9CFCA;color:#8A948F}
a.em-sq:hover{filter:brightness(1.12)}
/* Sign-up: a free trial or a subscription (DECISIONS.md 9.73). */
.want{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.want legend{font-weight:700;font-size:14px;padding:0;margin-bottom:8px}
.want-opt{display:flex;gap:10px;align-items:flex-start;border:1.5px solid #C9CFCA;border-radius:14px;padding:12px;background:#fff;cursor:pointer;min-height:44px}
.want-opt input{margin-top:4px;accent-color:#1E5E4E;flex:none}
.want-opt span{display:flex;flex-direction:column;gap:2px}
.want-opt small{color:var(--muted);font-size:12px;line-height:1.5}
.want-opt:has(input:checked){border-color:#1E5E4E;background:#E3F0EA}
@media (max-width:520px){.want{grid-template-columns:1fr}}

/* Naskon name (Oct 2026): the white N and the NASKON word in Cinzel, in place of the old D and «دوام / DAWAM». */
.dw-word.ns b,.ns-word{font-family:'Cinzel',Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:.12em;line-height:1;white-space:nowrap}
.dw-word.ns b{color:#fff}
.ns-mark{display:block;flex-shrink:0}
.doc-brand .ns-word{font-size:19px}
.dw .auth-head h1.ns-title,.auth-head h1.ns-title{font-size:24px;font-weight:600;letter-spacing:.12em;font-family:'Cinzel',Georgia,'Times New Roman',serif}
