/* it — نظام الموظفين */

:root{
  --navy:#0C2340;
  --navy-2:#123A61;
  --navy-3:#0A1C33;
  --brand:#1F62E0;
  --brand-600:#1A53BE;
  --brand-soft:#EAF1FE;
  --ink:#0E1B2A;
  --ink-2:#33455A;
  --muted:#6B7C90;
  --muted-2:#8A99AA;
  --line:#E4E9F0;
  --line-2:#EDF1F6;
  --bg:#F4F6FA;
  --card:#FFFFFF;
  --green:#0E9F6E;
  --green-soft:#E6F6EF;
  --amber:#B76E00;
  --amber-soft:#FFF3DE;
  --red:#D92D20;
  --red-soft:#FDECEA;
  --radius:18px;
  --radius-sm:12px;
  --radius-xs:9px;
  --shadow-sm:0 1px 2px rgba(12,35,64,.05), 0 1px 3px rgba(12,35,64,.04);
  --shadow:0 6px 20px rgba(12,35,64,.07), 0 1px 3px rgba(12,35,64,.05);
  --shadow-lg:0 18px 44px rgba(12,35,64,.16);
  --ff:"IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--ff);
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overscroll-behavior-y:none;
}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:var(--brand);text-decoration:none}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0;list-style:none}
img{max-width:100%;display:block}
svg{width:20px;height:20px;flex:0 0 auto}
::selection{background:#CFE0FF}

/* ============ shell ============ */
.app-root{min-height:100vh}
.shell{min-height:100vh;display:flex;flex-direction:column}

.sidenav{display:none}
.main{flex:1;min-width:0;padding-bottom:86px}
.view{padding:0 16px 8px;max-width:1180px;margin:0 auto;animation:viewIn .22s ease both}
@keyframes viewIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* topbar (mobile) */
.topbar{
  position:sticky;top:0;z-index:40;
  background:linear-gradient(180deg,#0C2340 0%,#0E2A4C 100%);
  color:#fff;
  padding-top:env(safe-area-inset-top);
}
.topbar-in{display:flex;align-items:center;gap:10px;padding:12px 16px 14px;max-width:1180px;margin:0 auto}
.topbar .brand{gap:8px}
.topbar-actions{margin-inline-start:auto;display:flex;align-items:center;gap:6px}
.icon-btn svg{width:22px;height:22px}
.icon-btn{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  color:#fff;background:rgba(255,255,255,.09);transition:background .15s,transform .12s;
}
.icon-btn:active{transform:scale(.94)}
.icon-btn:hover{background:rgba(255,255,255,.16)}
.icon-btn{position:relative}
.icon-btn .dot{position:absolute;top:7px;inset-inline-end:7px;width:7px;height:7px;border-radius:50%;background:#FF8A3D;box-shadow:0 0 0 2px #0E2A4C}
.avatar-btn{padding:0;background:none}

/* brand */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand-mark{
  width:38px;height:38px;border-radius:11px;
  background:#fff;display:grid;place-items:center;overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.6);
  position:relative;flex:0 0 auto;
}
.brand-mark img{width:100%;height:100%;object-fit:contain;display:block}
.brand-name{font-weight:600;font-size:15px;letter-spacing:.1px;color:#fff}
.brand-name small{display:block;font-size:11px;font-weight:400;color:rgba(255,255,255,.62);letter-spacing:0;margin-top:-2px}

/* tabbar (mobile) */
.tabbar{
  position:fixed;bottom:0;left:0;right:0;z-index:45;
  display:flex;justify-content:space-around;align-items:stretch;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  padding:6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab-item{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:6px 2px 4px;border-radius:12px;color:var(--muted-2);
  font-size:11px;font-weight:500;transition:color .15s,background .15s;
}
.tab-item svg{width:23px;height:23px;stroke-width:1.7}
.tab-item.active{color:var(--brand);background:var(--brand-soft)}
.tab-item.active svg{stroke-width:2}

/* ============ typography ============ */
.page-head{padding:18px 2px 12px}
.page-title{font-size:21px;font-weight:600;letter-spacing:-.2px;color:var(--ink)}
.page-sub{font-size:13px;color:var(--muted);margin-top:2px}
.section{margin-top:20px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-title{font-size:15px;font-weight:600;color:var(--ink)}
.section-link{font-size:13px;font-weight:500;color:var(--brand);display:inline-flex;align-items:center;gap:4px}
.section-link svg{width:15px;height:15px}

/* ============ cards ============ */
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.card-pad{padding:16px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 0}
.card-title{font-size:15px;font-weight:600}
.card-sub{font-size:12.5px;color:var(--muted);margin-top:2px}

/* hero */
.hero{
  position:relative;overflow:hidden;border-radius:22px;color:#fff;
  background:linear-gradient(135deg,#0B2140 0%,#123A61 58%,#1A5583 100%);
  box-shadow:0 12px 30px rgba(12,35,64,.22);
  padding:18px;
}
.hero::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(160deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 38%,rgba(0,0,0,.10) 100%);
  pointer-events:none;
}
.hero > *{position:relative;z-index:1}
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.hero-greet{font-size:19px;font-weight:600;letter-spacing:-.2px}
.hero-date{font-size:12.5px;color:rgba(255,255,255,.68);margin-top:2px}
.hero-times{display:flex;gap:10px;margin-top:16px}
.hero-time{
  flex:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);
  border-radius:14px;padding:10px 12px;
}
.hero-time span{display:block;font-size:11.5px;color:rgba(255,255,255,.65)}
.hero-time strong{font-size:19px;font-weight:600;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.hero-time .muted-val{color:rgba(255,255,255,.45);font-weight:500;font-size:15px}
.hero-main{display:flex;flex-direction:column}
.hero-foot{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:16px}
.hero-foot .btn{width:100%}
.hero-note{text-align:center}
.hero-note{font-size:12px;color:rgba(255,255,255,.62)}

/* status pill */
.pill{
  display:inline-flex;align-items:center;gap:6px;border-radius:999px;
  padding:4px 10px;font-size:11.5px;font-weight:600;white-space:nowrap;
}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.9}
.pill-green{background:var(--green-soft);color:#0B7A55}
.pill-amber{background:var(--amber-soft);color:var(--amber)}
.pill-red{background:var(--red-soft);color:var(--red)}
.pill-blue{background:var(--brand-soft);color:var(--brand-600)}
.pill-grey{background:#EEF1F5;color:#5A6B7F}
.pill-dark{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.16)}
.pill-dark::before{opacity:1}
.pill-green.pill-dark{background:rgba(14,159,110,.22);color:#7BE3BE;border-color:rgba(123,227,190,.25)}

/* stats */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:13px 14px;box-shadow:var(--shadow-sm)}
.stat-top{display:flex;align-items:center;justify-content:space-between}
.stat-label{font-size:12px;color:var(--muted)}
.stat-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.stat-icon svg{width:16px;height:16px}
.stat-icon.g{background:var(--green-soft);color:var(--green)}
.stat-icon.a{background:var(--amber-soft);color:var(--amber)}
.stat-icon.r{background:var(--red-soft);color:var(--red)}
.stat-value{font-size:22px;font-weight:600;letter-spacing:-.4px;margin-top:6px;font-variant-numeric:tabular-nums}
.stat-value small{font-size:12px;font-weight:500;color:var(--muted-2);margin-inline-start:3px;letter-spacing:0}

/* quick actions */
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.quick{
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:7px;
  box-shadow:var(--shadow-sm);transition:transform .14s,box-shadow .14s,border-color .14s;
}
.quick:active{transform:scale(.96)}
.quick:hover{border-color:#D3DCE8;box-shadow:var(--shadow)}
.quick-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.quick-icon svg{width:19px;height:19px}
.quick-icon.g{background:var(--green-soft);color:var(--green)}
.quick-icon.a{background:var(--amber-soft);color:var(--amber)}
.quick-icon.p{background:#F1ECFE;color:#6D45D9}
.quick span{font-size:11.5px;font-weight:500;color:var(--ink-2);text-align:center}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:46px;padding:0 18px;border-radius:13px;font-size:14px;font-weight:600;
  border:1px solid transparent;transition:transform .12s,background .15s,box-shadow .15s,border-color .15s;
  white-space:nowrap;
}
.btn:active{transform:scale(.98)}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 6px 16px rgba(31,98,224,.28)}
.btn-primary:hover{background:var(--brand-600)}
.btn-dark{background:var(--navy);color:#fff}
.btn-light{background:#fff;color:var(--navy);box-shadow:0 4px 14px rgba(0,0,0,.14)}
.btn-outline{background:#fff;border-color:#D6DEE9;color:var(--ink-2)}
.btn-outline:hover{border-color:#BCC9D9;background:#FAFBFD}
.btn-ghost{background:var(--brand-soft);color:var(--brand-600)}
.btn-danger{background:var(--red-soft);color:var(--red)}
.btn-green{background:var(--green);color:#fff;box-shadow:0 6px 16px rgba(14,159,110,.25)}
.btn-block{width:100%}
.btn-sm{height:36px;padding:0 12px;font-size:12.5px;border-radius:10px;gap:6px}
.btn-sm svg{width:15px;height:15px}
.btn-lg{height:52px;font-size:15px;border-radius:15px}
.btn[disabled]{opacity:.55;pointer-events:none}
.btn .spin{width:17px;height:17px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* fields */
.field{margin-bottom:14px}
.field > label{display:block;font-size:12.5px;font-weight:500;color:var(--ink-2);margin-bottom:6px}
.input-wrap{position:relative;display:flex;align-items:center}
.input-wrap > svg{position:absolute;inset-inline-start:14px;width:18px;height:18px;color:var(--muted-2);pointer-events:none}
.input{
  width:100%;height:48px;border-radius:12px;border:1px solid #DDE4ED;background:#FBFCFE;
  padding:0 14px;font-size:14.5px;transition:border-color .15s,box-shadow .15s,background .15s;
  color:var(--ink);
}
.input-wrap .input{padding-inline-start:44px}
.input::placeholder{color:#9AA8B8}
.input:hover{border-color:#CBD5E2}
.input:focus{outline:none;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px rgba(31,98,224,.11)}
textarea.input{height:auto;min-height:88px;padding:12px 14px;resize:vertical;line-height:1.6}
select.input{appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7C90' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center;padding-inline-start:38px}
.input-eye{position:absolute;inset-inline-end:8px;width:34px;height:34px;display:grid;place-items:center;color:var(--muted-2);border-radius:9px}
.input-eye:hover{background:#F1F4F8}
.field-hint{font-size:11.5px;color:var(--muted-2);margin-top:5px}
.field-error{display:none;font-size:12px;color:var(--red);margin-top:6px}
.field-error.show{display:block}
.check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 18px}
.check{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2);cursor:pointer;user-select:none}
.check input{appearance:none;width:18px;height:18px;border-radius:6px;border:1.5px solid #C9D3E0;background:#fff;display:grid;place-items:center;transition:background .15s,border-color .15s;cursor:pointer}
.check input:checked{background:var(--brand);border-color:var(--brand)}
.check input:checked::after{content:"";width:10px;height:10px;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.link-btn{font-size:12.5px;color:var(--brand);font-weight:500}
.link-btn:hover{text-decoration:underline}

/* ============ login ============ */
.auth{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.auth-visual{
  position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(150deg,#081A30 0%,#0C2340 45%,#123A61 100%);
  padding:26px 22px 30px;padding-top:calc(26px + env(safe-area-inset-top));
}
.auth-visual::before{
  content:"";position:absolute;width:420px;height:420px;border-radius:50%;top:-180px;left:-120px;
  background:radial-gradient(circle,rgba(31,98,224,.30),rgba(31,98,224,0) 72%);
}
.auth-visual::after{
  content:"";position:absolute;width:340px;height:340px;border-radius:50%;bottom:-190px;right:-110px;
  background:radial-gradient(circle,rgba(255,138,61,.16),rgba(255,138,61,0) 72%);
}
.auth-visual-in{position:relative;z-index:1;max-width:1100px;margin:0 auto;width:100%}
.auth-tag{font-size:12.5px;color:rgba(255,255,255,.6);margin-top:22px;letter-spacing:.2px}
.auth-h1{font-size:24px;font-weight:600;line-height:1.45;margin-top:6px;letter-spacing:-.3px}
.auth-h1 em{font-style:normal;color:#FFB37A}
.auth-features{display:none;margin-top:26px;gap:14px}
.auth-feature{display:flex;align-items:flex-start;gap:11px}
.auth-feature .fi{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);display:grid;place-items:center;flex:0 0 auto}
.auth-feature .fi svg{width:18px;height:18px;color:#CFE0FF}
.auth-feature b{display:block;font-size:13.5px;font-weight:600}
.auth-feature span{font-size:12px;color:rgba(255,255,255,.6);line-height:1.5}
.auth-panel{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:0 16px 34px;margin-top:-18px;position:relative;z-index:2}
.auth-card{
  width:100%;max-width:430px;background:#fff;border-radius:20px;border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(12,35,64,.13);padding:22px;
}
.auth-card h2{font-size:19px;font-weight:600;letter-spacing:-.2px}
.auth-card .sub{font-size:12.5px;color:var(--muted);margin-top:4px;margin-bottom:20px}
.auth-alert{
  display:none;gap:9px;align-items:flex-start;background:var(--red-soft);border:1px solid #F6CFCA;color:#9B2318;
  border-radius:12px;padding:10px 12px;font-size:12.5px;margin-bottom:14px;line-height:1.5;
}
.auth-alert.show{display:flex}
.auth-alert svg{width:16px;height:16px;flex:0 0 auto;margin-top:2px}
.auth-foot{margin-top:18px;text-align:center;font-size:11.5px;color:var(--muted-2);line-height:1.7}
.shake{animation:shake .34s}
@keyframes shake{10%,90%{transform:translateX(-2px)}30%,70%{transform:translateX(4px)}50%{transform:translateX(-5px)}}

/* ============ list rows ============ */
.list{display:flex;flex-direction:column;gap:10px}
.li{
  display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);
  border-radius:15px;padding:12px 14px;box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s,transform .12s;
}
.li.tap:active{transform:scale(.995)}
.li.tap:hover{border-color:#D3DCE8;box-shadow:var(--shadow)}
.li-main{min-width:0;flex:1}
.li-title{font-size:14px;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.li-sub{font-size:12px;color:var(--muted);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li-end{margin-inline-start:auto;text-align:left;flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px}

.avatar{
  width:42px;height:42px;border-radius:13px;flex:0 0 auto;display:grid;place-items:center;
  font-size:14px;font-weight:600;color:#fff;background:var(--navy);letter-spacing:.2px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
.avatar.sm{width:34px;height:34px;border-radius:11px;font-size:12px}
.avatar.lg{width:68px;height:68px;border-radius:20px;font-size:23px}
.c0{background:linear-gradient(140deg,#123A61,#1F62E0)}
.c1{background:linear-gradient(140deg,#0B6B5B,#12A38A)}
.c2{background:linear-gradient(140deg,#7A3E12,#D97A2B)}
.c3{background:linear-gradient(140deg,#4A2C86,#7C5AD6)}
.c4{background:linear-gradient(140deg,#8A2436,#D9506A)}
.c5{background:linear-gradient(140deg,#1B4E6B,#2E8FB8)}
.c6{background:linear-gradient(140deg,#3E4C59,#6B7C90)}
.c7{background:linear-gradient(140deg,#1D5B33,#3FA35C)}

/* request card */
.req{padding:14px}
.req-top{display:flex;align-items:flex-start;gap:12px}
.req-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:var(--brand-soft);color:var(--brand)}
.req-icon svg{width:19px;height:19px}
.req-icon.g{background:var(--green-soft);color:var(--green)}
.req-icon.a{background:var(--amber-soft);color:var(--amber)}
.req-title{font-size:14px;font-weight:600}
.req-sub{font-size:12px;color:var(--muted);margin-top:2px}
.req-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:11.5px;color:var(--muted-2)}
.req-meta .dot-sep{width:3px;height:3px;border-radius:50%;background:#C6D0DC}
.req-reason{margin-top:10px;font-size:12.5px;color:var(--ink-2);background:#FAFBFD;border:1px dashed #E1E7EF;border-radius:10px;padding:8px 10px;line-height:1.6}
.req-actions{display:flex;gap:8px;margin-top:12px}
.req-actions .btn{flex:1}

/* segmented */
.segmented{display:flex;gap:4px;background:#EDF1F6;padding:4px;border-radius:13px;overflow-x:auto;scrollbar-width:none}
.segmented::-webkit-scrollbar{display:none}
.seg{flex:1;min-width:74px;height:36px;border-radius:10px;font-size:12.5px;font-weight:500;color:var(--ink-2);white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.seg.active{background:#fff;color:var(--navy);font-weight:600;box-shadow:0 1px 3px rgba(12,35,64,.12)}

/* calendar */
.cal{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow-sm)}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cal-month{font-size:13.5px;font-weight:600}
.cal-nav{display:flex;gap:4px}
.cal-nav button{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:var(--muted);background:#F4F6FA}
.cal-nav button:hover{background:#E9EEF5}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.cal-dow{font-size:10.5px;color:var(--muted-2);text-align:center;padding-bottom:4px;font-weight:500}
.cal-cell{
  aspect-ratio:1;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:12px;color:var(--ink-2);background:#F7F9FC;font-variant-numeric:tabular-nums;position:relative;
}
.cal-cell.empty{background:transparent}
.cal-cell.today{box-shadow:inset 0 0 0 1.5px var(--brand);color:var(--brand);font-weight:600;background:#fff}
.cal-cell.present{background:var(--green-soft);color:#0B7A55}
.cal-cell.late{background:var(--amber-soft);color:var(--amber)}
.cal-cell.absent{background:var(--red-soft);color:var(--red)}
.cal-cell.leave{background:var(--brand-soft);color:var(--brand-600)}
.cal-cell .d{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.55}
.cal-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:11px;color:var(--muted)}
.cal-legend i{width:8px;height:8px;border-radius:3px;display:inline-block;margin-inline-end:4px;vertical-align:middle}

/* timeline */
.timeline{position:relative;padding-inline-start:22px}
.timeline::before{content:"";position:absolute;inset-inline-start:6px;top:6px;bottom:6px;width:2px;background:var(--line);border-radius:2px}
.tl{position:relative;padding-bottom:16px}
.tl:last-child{padding-bottom:0}
.tl::before{content:"";position:absolute;inset-inline-start:-21px;top:4px;width:10px;height:10px;border-radius:50%;background:#fff;border:2.5px solid var(--brand)}
.tl.g::before{border-color:var(--green)}
.tl.a::before{border-color:#E0A23A}
.tl-time{font-size:11.5px;color:var(--muted-2);font-variant-numeric:tabular-nums}
.tl-title{font-size:13px;font-weight:500;margin-top:1px}

/* kpi */
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--shadow-sm)}
.kpi-label{font-size:11.5px;color:var(--muted)}
.kpi-val{font-size:24px;font-weight:600;letter-spacing:-.5px;margin-top:4px;font-variant-numeric:tabular-nums}
.kpi-foot{font-size:11px;color:var(--muted-2);margin-top:2px}
.bar{height:6px;border-radius:99px;background:#EDF1F6;overflow:hidden;margin-top:10px}
.bar > i{display:block;height:100%;border-radius:99px;background:var(--brand)}

/* table-ish rows */
.rows{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.rows .li{border:0;border-bottom:1px solid var(--line-2);border-radius:0;box-shadow:none;background:transparent}
.rows .li:last-child{border-bottom:0}
.rows .li:hover{background:#FAFBFD;box-shadow:none}

/* info rows */
.info-rows{display:flex;flex-direction:column}
.info-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line-2);font-size:13px}
.info-row:last-child{border-bottom:0}
.info-row span{color:var(--muted)}
.info-row b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;text-align:left}
.info-row b.num{font-weight:600}

/* banner */
.banner{
  display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #D9E4F5;
  border-radius:15px;padding:12px 14px;box-shadow:var(--shadow-sm);
}
.banner-ic{width:36px;height:36px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:0 0 auto}
.banner-ic svg{width:18px;height:18px}
.banner-txt{flex:1;min-width:0}
.banner-txt b{display:block;font-size:13px;font-weight:600}
.banner-txt span{font-size:11.5px;color:var(--muted)}
.banner .close{color:var(--muted-2);width:28px;height:28px;display:grid;place-items:center;border-radius:8px}
.banner .close:hover{background:#F1F4F8}

/* empty */
.empty{text-align:center;padding:30px 16px;color:var(--muted)}
.empty-ic{width:56px;height:56px;border-radius:18px;background:#F1F5FA;display:grid;place-items:center;margin:0 auto 12px;color:#A9B7C6}
.empty-ic svg{width:26px;height:26px}
.empty b{display:block;font-size:14px;color:var(--ink-2);font-weight:600;margin-bottom:3px}
.empty span{font-size:12.5px}

/* toast */
.toast-root{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:0;right:0;z-index:120;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{
  display:flex;align-items:center;gap:9px;background:#0E1B2A;color:#fff;border-radius:13px;
  padding:11px 15px;font-size:13px;box-shadow:0 12px 30px rgba(12,35,64,.28);max-width:420px;
  animation:toastIn .22s ease both;
}
.toast svg{width:17px;height:17px;flex:0 0 auto}
.toast.ok svg{color:#5BE0AE}
.toast.err svg{color:#FF9B90}
.toast.out{animation:toastOut .2s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(10px)}}

/* sheet / modal */
.sheet-backdrop{
  position:fixed;inset:0;z-index:100;background:rgba(8,20,35,.42);backdrop-filter:blur(2px);
  display:flex;align-items:flex-end;justify-content:center;animation:fade .18s ease both;
}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sheet{
  width:100%;max-width:520px;max-height:92vh;overflow:auto;background:#fff;
  border-radius:22px 22px 0 0;padding:8px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow:var(--shadow-lg);animation:sheetUp .24s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheetUp{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet-grab{width:42px;height:4px;border-radius:99px;background:#DDE4ED;margin:6px auto 14px}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:16px}
.sheet-title{font-size:17px;font-weight:600}
.sheet-sub{font-size:12.5px;color:var(--muted);margin-top:2px}
.sheet-close{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--muted);background:#F3F6FA}
.sheet-close:hover{background:#E9EEF5}
.sheet-actions{display:flex;gap:10px;margin-top:18px}
.sheet-actions .btn{flex:1}
.sheet-note{font-size:11.5px;color:var(--muted-2);text-align:center;margin-top:12px;line-height:1.6}

/* biometric block */
.bio{
  display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;
  background:linear-gradient(135deg,#0C2340,#164C77);color:#fff;border:0;
  box-shadow:0 10px 24px rgba(12,35,64,.2);width:100%;text-align:right;
}
.bio:active{transform:scale(.99)}
.bio-ic{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:0 0 auto;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);
}
.bio-ic svg{width:26px;height:26px;color:#fff}
.bio-txt b{display:block;font-size:14.5px;font-weight:600}
.bio-txt span{font-size:11.5px;color:rgba(255,255,255,.65);line-height:1.5;display:block;margin-top:2px}
.bio-go{margin-inline-start:auto;color:rgba(255,255,255,.7);display:grid;place-items:center}
.bio-go svg{width:20px;height:20px}
.avatar svg{width:17px;height:17px}
.sheet-close svg{width:18px;height:18px}
.input-eye svg{width:19px;height:19px}
.cal-nav svg{width:16px;height:16px}
.pill svg{width:12px;height:12px}
.bio.pulse .bio-ic{animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.18)}50%{box-shadow:0 0 0 12px rgba(255,255,255,0)}}

/* auth/attendance day list */
.day-row{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--line-2);font-size:13px}
.day-row:last-child{border-bottom:0}
.day-date{width:64px;flex:0 0 auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.day-times{display:flex;gap:14px;font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--ink-2)}
.day-times i{color:var(--muted-2);font-style:normal;font-size:11px;display:block}

/* misc */
.mt-8{margin-top:8px}.mt-10{margin-top:10px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}
.mb-10{margin-bottom:10px}
.muted{color:var(--muted)}
.tnum{font-variant-numeric:tabular-nums}
.hide{display:none !important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.fade-in{animation:fade .25s ease both}
.search{position:relative;margin-bottom:12px}
.search svg{position:absolute;inset-inline-start:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted-2)}
.search .input{height:44px;padding-inline-start:40px;background:#fff}

/* ============ desktop ============ */
@media (min-width:900px){
  .shell{flex-direction:row}
  .topbar{display:none}
  .tabbar{display:none}
  .sidenav{
    display:flex;flex-direction:column;width:258px;flex:0 0 258px;position:sticky;top:0;height:100vh;
    background:linear-gradient(180deg,#0A1C33 0%,#0C2340 55%,#0E2A4C 100%);
    color:#fff;padding:22px 14px;gap:6px;
  }
  .side-brand{padding:0 8px 22px;display:flex;align-items:center;gap:10px}
  .side-label{font-size:10.5px;color:rgba(255,255,255,.38);letter-spacing:.6px;padding:14px 12px 6px;font-weight:500}
  .side-item{
    display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;
    color:rgba(255,255,255,.72);font-size:13.5px;font-weight:500;transition:background .15s,color .15s;
  }
  .side-item svg{width:19px;height:19px;stroke-width:1.7;flex:0 0 auto}
  .side-item:hover{background:rgba(255,255,255,.06);color:#fff}
  .side-item.active{background:rgba(31,98,224,.22);color:#fff;box-shadow:inset 0 0 0 1px rgba(120,170,255,.22)}
  .side-item .badge{margin-inline-start:auto;background:#FF8A3D;color:#231000;font-size:10.5px;font-weight:700;border-radius:99px;padding:1px 7px}
  .side-foot{margin-top:auto;padding:12px 6px 0;border-top:1px solid rgba(255,255,255,.08)}
  .side-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px}
  .side-user:hover{background:rgba(255,255,255,.06)}
  .side-user .avatar{width:36px;height:36px;border-radius:11px;font-size:12px}
  .side-user b{display:block;font-size:12.5px;font-weight:600;color:#fff}
  .side-user span{display:block;font-size:11px;color:rgba(255,255,255,.5)}
  .main{padding:0 0 30px}
  .view{padding:0 30px}
  .page-head{padding:30px 0 14px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
  .page-title{font-size:25px}
  .page-sub{font-size:13.5px}
  .stats{grid-template-columns:repeat(4,1fr);gap:14px}
  .quick-grid{grid-template-columns:repeat(4,1fr);gap:14px}
  .quick{padding:16px 10px;gap:9px}
  .quick-icon{width:44px;height:44px;border-radius:14px}
  .quick-icon svg{width:21px;height:21px}
  .quick span{font-size:12.5px}
  .hero{padding:24px 26px;border-radius:24px}
  .hero-greet{font-size:23px}
  .hero-main{flex-direction:row;align-items:center;gap:26px;margin-top:22px}
  .hero-times{margin-top:0;max-width:none;flex:1 1 auto}
  .hero-foot{flex:0 0 250px;margin-top:0;align-items:stretch}
  .hero-foot .btn{width:100%}
  .hero-note{text-align:center}
  .kpis{grid-template-columns:repeat(4,1fr);gap:14px}
  .grid-2{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}
  .grid-2b{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
  .auth{flex-direction:row}
  .auth-visual{flex:0 0 46%;display:flex;align-items:center;padding:48px 46px}
  .auth-features{display:flex;flex-direction:column}
  .auth-h1{font-size:32px;margin-top:10px;line-height:1.4}
  .auth-tag{margin-top:0}
  .auth-panel{align-items:center;margin-top:0;padding:40px}
  .auth-card{padding:30px;max-width:420px}
  .sheet-backdrop{align-items:center}
  .sheet{border-radius:22px;max-height:88vh;padding:10px 24px 22px;animation:sheetPop .2s ease both}
  @keyframes sheetPop{from{transform:translateY(12px) scale(.98);opacity:.5}to{transform:none;opacity:1}}
}
@media (min-width:1180px){
  .auth-visual{flex:0 0 50%}
}
@media (max-width:360px){
  .quick-grid{grid-template-columns:repeat(2,1fr)}
  .stat-value{font-size:19px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}
/* ---------------- v1.1: fingerprint sheet, success overlay, notifications, work hours ---------------- */

/* fingerprint sheet */
.finger-wrap{display:flex;flex-direction:column;align-items:center;padding:6px 0 2px}
.finger-btn{
  position:relative;width:126px;height:126px;border-radius:50%;border:0;cursor:pointer;
  background:linear-gradient(135deg,#0C2340,#164C77);color:#fff;display:grid;place-items:center;
  box-shadow:0 14px 30px rgba(12,35,64,.28);transition:transform .15s ease;
}
.finger-btn svg{width:58px;height:58px;stroke-width:1.5}
.finger-btn:active{transform:scale(.96)}
.finger-btn.busy{opacity:.65}
.finger-ring{position:absolute;inset:-10px;border-radius:50%;border:2px solid rgba(31,98,224,.3);animation:ringPulse 1.7s ease-out infinite}
@keyframes ringPulse{0%{transform:scale(.9);opacity:.85}70%{transform:scale(1.08);opacity:0}100%{opacity:0}}
.finger-hint{font-size:14px;font-weight:600;color:var(--ink);margin-top:18px;text-align:center;line-height:1.5}
.finger-sub{font-size:11.5px;color:var(--muted-2);margin-top:4px;text-align:center}
.finger-time{display:flex;align-items:center;justify-content:space-between;background:#F5F8FC;border:1px solid var(--line);border-radius:12px;padding:11px 14px;margin-top:18px;font-size:12.5px;color:var(--muted)}
.finger-time b{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}

/* success overlay */
.ok-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:22px;background:rgba(8,20,36,.55);animation:fade .16s ease both}
.ok-card{
  width:100%;max-width:342px;background:#fff;border-radius:26px;padding:26px 22px 20px;text-align:center;
  box-shadow:0 26px 64px rgba(8,20,36,.38);animation:okPop .32s cubic-bezier(.2,.9,.25,1.08) both;
}
@keyframes okPop{from{transform:scale(.92) translateY(12px);opacity:0}to{transform:none;opacity:1}}
.ok-badge{
  width:78px;height:78px;border-radius:50%;margin:0 auto;display:grid;place-items:center;
  background:var(--green-soft);color:var(--green);box-shadow:0 0 0 10px rgba(14,159,110,.08);
}
.ok-badge svg{width:40px;height:40px;stroke-width:2.4}
.ok-title{font-size:19px;font-weight:600;color:var(--ink);margin-top:16px;letter-spacing:-.2px}
.ok-sub{font-size:13.5px;color:var(--muted);margin-top:5px}
.ok-time{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:9px 16px;border-radius:12px;background:#F5F8FC;border:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.ok-time b{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}
.ok-note{display:flex;align-items:center;gap:8px;justify-content:center;margin-top:14px;padding:10px 12px;border-radius:12px;background:var(--amber-soft);color:var(--amber);font-size:12px;text-align:right}
.ok-note svg{width:16px;height:16px;flex:0 0 auto}
.ok-method{font-size:11px;color:var(--muted-2);margin-top:12px}
.ok-card .btn{margin-top:18px}
.ok-card .link-btn{margin-top:10px;font-size:12px}

/* manager notifications */
.grp-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 9px}
.grp-head b{color:var(--ink);font-size:13.5px;font-weight:600}
.grp-head .cnt{background:#EEF1F5;color:#5A6B7F;border-radius:20px;padding:2px 10px;font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}
.grp-head .cnt.ok{background:var(--green-soft);color:#0B7A55}
.grp-head .cnt.warn{background:var(--amber-soft);color:var(--amber)}
.n-ic{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;background:var(--brand-soft);color:var(--brand)}
.n-ic svg{width:18px;height:18px}
.n-ic.g{background:var(--green-soft);color:var(--green)}
.n-ic.a{background:var(--amber-soft);color:var(--amber)}
.n-ic.r{background:var(--red-soft);color:var(--red)}

/* work hours */
.hours-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
@media(min-width:560px){.hours-grid{grid-template-columns:repeat(3,1fr)}}
.hours-grid .field{margin-bottom:0}
.hours-grid label{display:block;font-size:12.5px;font-weight:500;color:var(--ink-2);margin-bottom:6px}
.hours-grid .input{font-variant-numeric:tabular-nums;font-size:15px;height:46px}
.hours-sum{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 14px;border-radius:12px;background:#F5F8FC;border:1px solid var(--line);font-size:12.5px;color:var(--ink-2);line-height:1.7}
.hours-sum svg{width:17px;height:17px;color:var(--brand);flex:0 0 auto}
