/* SHABAB BIO CLOUD 1.0 — look. Same layout as SHABAB TIME ATTENDANCE (side menu with sections, top bar, cards), colours from the BIO CLOUD icon.
   NIGHT (default): deep navy, glass cards, teal / emerald accent, gold highlights · DAY: white / light grey, slate side menu, emerald accent. */
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/NotoKufiArabic-Regular.woff2") format("woff2"); font-weight: 100 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/NotoKufiArabic-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
:root, [data-theme="night"] {
  --bg1: #06121f; --bg2: #0a1b2e; --side: #07182a; --sideText: #cfe6ee; --sideMute: #6f93a6; --sideLine: rgba(31, 209, 179, .35);
  --card: rgba(14, 34, 56, .78); --cardSolid: #0e2238; --card2: rgba(18, 44, 70, .65); --line: rgba(31, 209, 179, .22); --line2: rgba(143, 177, 194, .16);
  --text: #e8f3f8; --muted: #8fb1c2; --faint: #5f8396;
  --accent: #1fd1b3; --accent2: #10b981; --accentText: #04261f; --gold: #e3b552; --gold2: #f3d38a;
  --ok: #12a372; --info: #2f8fd0; --warn: #cc810a; --violet: #9a7cf0; --bad: #ef4466; --off: #6b7d90;
  --okBg: rgba(18, 163, 114, .16); --warnBg: rgba(204, 129, 10, .18); --badBg: rgba(239, 68, 102, .16); --infoBg: rgba(47, 143, 208, .16); --violetBg: rgba(154, 124, 240, .16);
  --input: rgba(7, 24, 42, .7); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --glow: 0 0 18px rgba(31, 209, 179, .28); --radius: 16px;
  --pageBg: radial-gradient(1200px 700px at 85% -10%, rgba(31, 209, 179, .08), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(227, 181, 82, .05), transparent 60%), linear-gradient(160deg, var(--bg1), var(--bg2));
  color-scheme: dark;
}
[data-theme="day"] {
  --bg1: #f5f7fa; --bg2: #ffffff; --side: #3d4650; --sideText: #ffffff; --sideMute: #b8c3cd; --sideLine: rgba(255, 255, 255, .12);
  --card: #ffffff; --cardSolid: #ffffff; --card2: #f5f7fa; --line: #e2e8f0; --line2: #edf1f5;
  --text: #0f172a; --muted: #5b6878; --faint: #8794a3;
  --accent: #0fa58a; --accent2: #0c8a73; --accentText: #ffffff; --gold: #c9a14a; --gold2: #a9842f;
  --ok: #0f9d77; --info: #0284c7; --warn: #d97706; --violet: #7c3aed; --bad: #e11d48; --off: #64748b;
  --okBg: #e6f6f0; --warnBg: #fdf2e1; --badBg: #fde8ec; --infoBg: #e2f1fa; --violetBg: #efe8fd;
  --input: #ffffff; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .07); --glow: none;
  --pageBg: #f5f7fa; color-scheme: light;
}
/* 1.1.3 THEME STUDIO SKINS (company-wide, same family as SHABAB NEXUS / AZAN): NEXUS Night (default) · NEXUS Light · Lavender Night.
   data-theme stays the mode (night / day: every older night / day rule keeps working), data-skin sets the colours. */
[data-skin="nexus"] {
  --bg1: #06122b; --bg2: #0a1d44; --side: #040d22; --sideText: #e3e8ee; --sideMute: #aab8c5; --sideLine: rgba(217, 174, 78, .3);
  --card: rgba(15, 28, 56, .92); --cardSolid: #0f1c38; --card2: rgba(20, 38, 78, .72); --line: rgba(217, 174, 78, .22); --line2: rgba(174, 187, 199, .16);
  --text: #eef2fb; --muted: #a7b6d3; --faint: #8e9fbf;
  --accent: #d9ae4e; --accent2: #e8c56b; --accentText: #1c1300; --gold: #d9ae4e; --gold2: #e8c56b;
  --input: rgba(6, 18, 43, .75); --glow: 0 0 18px rgba(217, 174, 78, .22);
  --pageBg: radial-gradient(1200px 700px at 85% -10%, rgba(217, 174, 78, .07), transparent 60%), linear-gradient(160deg, #06122b, #0a1d44);
}
[data-skin="lavender"] {
  --bg1: #14112a; --bg2: #1c1838; --side: #0f0c22; --sideText: #efe9ff; --sideMute: #b3a9dc; --sideLine: rgba(185, 162, 255, .3);
  --card: rgba(34, 29, 66, .92); --cardSolid: #221d42; --card2: rgba(44, 38, 84, .72); --line: rgba(185, 162, 255, .22); --line2: rgba(194, 185, 230, .14);
  --text: #f5f2ff; --muted: #c2b9e6; --faint: #a49bcc;
  --accent: #b9a2ff; --accent2: #d7c8ff; --accentText: #160f33; --gold: #ff8fb8; --gold2: #ffc1d8;
  --input: rgba(15, 12, 34, .75); --glow: 0 0 18px rgba(185, 162, 255, .25);
  --pageBg: radial-gradient(1100px 650px at 100% -10%, rgba(232, 64, 127, .10), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(43, 179, 168, .08), transparent 60%), linear-gradient(160deg, #14112a, #1c1838);
}
[data-skin="nexuslight"] {
  --bg1: #f4f1ea; --bg2: #ffffff; --side: #0b1f4a; --sideText: #ffffff; --sideMute: #aab8c5; --sideLine: rgba(217, 174, 78, .25);
  --card: #ffffff; --cardSolid: #ffffff; --card2: #f7f4ee; --line: #dcd6c9; --line2: #ebe6db;
  --text: #0b1f4a; --muted: #5a6785; --faint: #5f6b87;
  --accent: #0b1f4a; --accent2: #16306b; --accentText: #ffffff; --gold: #8a6a1f; --gold2: #6d5418;
  --input: #ffffff; --pageBg: #f4f1ea;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--pageBg); background-attachment: fixed; color: var(--text); font: 14.5px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Kufi Arabic", Tahoma, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
a { color: var(--accent); } [data-theme="day"] a { color: var(--accent2); }
h1, h2, h3 { margin: 0; line-height: 1.25; } h2 { font-size: 21px; } h3 { font-size: 15.5px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); } .okc { color: var(--ok); } .badc { color: var(--bad); } .warnc { color: var(--warn); }
.hide { display: none !important; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout (TIME ATTENDANCE) */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; } .app > main { min-width: 0; }
.side { background: var(--side); color: var(--sideText); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; border-inline-end: 1px solid var(--sideLine); }
[data-theme="night"] .side { box-shadow: inset -1px 0 0 rgba(31, 209, 179, .25), 4px 0 30px rgba(31, 209, 179, .05); }
[dir="rtl"][data-theme="night"] .side { box-shadow: inset 1px 0 0 rgba(31, 209, 179, .25); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; text-decoration: none; color: inherit; }
.side .brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(227, 181, 82, .55), 0 0 16px rgba(227, 181, 82, .18); }
.side .brand b { display: block; font-size: 14px; letter-spacing: .5px; color: var(--gold); } .side .brand span { display: block; font-size: 10.5px; letter-spacing: 1.4px; color: var(--sideMute); }
.side .sec { font-size: 10.5px; letter-spacing: 1.6px; color: var(--sideMute); font-weight: 800; margin: 14px 10px 6px; text-transform: uppercase; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--sideText); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 2px; position: relative; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); }
.side a.nav.on { background: linear-gradient(90deg, rgba(31, 209, 179, .22), rgba(16, 185, 129, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--gold), var(--glow); }
[dir="rtl"] .side a.nav.on { box-shadow: inset -3px 0 0 var(--gold), var(--glow); }
[data-theme="day"] .side a.nav.on { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 var(--gold); }
.side a.nav svg { width: 19px; height: 19px; flex: none; opacity: .95; } .side a.nav .cnt { margin-inline-start: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.side a.nav .soon { margin-inline-start: auto; font-size: 10px; border: 1px solid var(--sideMute); color: var(--sideMute); border-radius: 99px; padding: 0 6px; }
.side .foot { margin-top: auto; padding: 14px 8px 0; font-size: 11px; color: var(--sideMute); }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cardSolid) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .clogo { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--gold); flex: none; }
.top h1 { font-size: 17px; } .top .sub { font-size: 12px; color: var(--muted); } .top .grow { flex: 1; min-width: 0; } .top .grow > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .topq { width: 250px; } @media (max-width: 900px) { .top .topq { display: none !important; } }
.content { padding: 20px 24px 48px; max-width: 1560px; }
.menu-btn { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .lang button { border: 0; background: transparent; color: var(--muted); padding: 7px 11px; font-weight: 800; cursor: pointer; font-family: inherit; } .lang button.on { background: var(--accent); color: var(--accentText); }
.trial { background: linear-gradient(90deg, rgba(227, 181, 82, .2), rgba(227, 181, 82, .06)); color: var(--text); padding: 6px 24px; font-size: 12.5px; border-bottom: 1px solid rgba(227, 181, 82, .35); }
.demo-bar { background: rgba(47, 143, 208, .14); border-bottom: 1px solid rgba(47, 143, 208, .35); padding: 7px 24px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--text); padding: 8px 14px; border-radius: 12px; font: 700 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; min-height: 38px; }
.btn:hover { border-color: var(--accent); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: default; }
.btn.pri { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: var(--accentText); box-shadow: var(--glow); }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: transparent; color: #2a1c00; }
.btn.bad { color: var(--bad); } .btn.bad:hover { border-color: var(--bad); } .btn.sm { padding: 5px 10px; font-size: 12.5px; min-height: 30px; border-radius: 10px; } .btn.icon { padding: 7px; min-width: 38px; } .btn svg { width: 17px; height: 17px; }
.btn.ghost { background: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; min-height: 38px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 209, 179, .18); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
label.f { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .fgrid .full { grid-column: 1 / -1; } @media (max-width: 600px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; } .switch span { position: absolute; inset: 0; background: var(--line2); border: 1px solid var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span:before { content: ""; position: absolute; width: 18px; height: 18px; top: 2px; inset-inline-start: 2px; background: #fff; border-radius: 50%; transition: .2s; } .switch input:checked + span { background: var(--accent); } .switch input:checked + span:before { transform: translateX(20px); } [dir="rtl"] .switch input:checked + span:before { transform: translateX(-20px); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; } .toolbar h2 { flex: 1; min-width: 180px; } .toolbar .flt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .toolbar .flt > * { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; } .chip.on { background: var(--accent); color: var(--accentText); border-color: transparent; }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
[data-theme="night"] .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card > .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card > .hd h3 { flex: 1; } .card > .hd .muted { font-size: 12px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1150px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 760px) { .g2e { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; } @media (max-width: 1250px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi { position: relative; overflow: hidden; cursor: pointer; padding: 14px 14px 10px; } .kpi .l { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .3px; display: flex; align-items: center; gap: 7px; }
.kpi .l i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); flex: none; } .kpi .n { font-size: 32px; font-weight: 800; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
[data-theme="night"] .kpi .n { text-shadow: 0 0 14px color-mix(in srgb, var(--k) 45%, transparent); } .kpi svg.sp { display: block; width: 100%; height: 30px; margin-top: 4px; } .kpi:hover { border-color: var(--k); }
.kpi .bar { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--k); opacity: .8; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.b-ok { background: var(--okBg); color: var(--ok); } .b-warn { background: var(--warnBg); color: var(--warn); } .b-bad { background: var(--badBg); color: var(--bad); } .b-info { background: var(--infoBg); color: var(--info); } .b-vio { background: var(--violetBg); color: var(--violet); } .b-off { background: var(--line2); color: var(--muted); } .b-gold { background: rgba(227, 181, 82, .16); color: var(--gold); } .b-demo { background: rgba(47, 143, 208, .16); color: var(--info); border-color: rgba(47, 143, 208, .4); }
[data-theme="night"] .b-ok { color: #4ade9e; } [data-theme="night"] .b-bad { color: #ff7d97; } [data-theme="night"] .b-warn { color: #f6b44a; } [data-theme="night"] .b-info { color: #72b9ec; } [data-theme="night"] .b-vio { color: #b9a5f7; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; } .dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--okBg); } .dot.off { background: var(--bad); box-shadow: 0 0 0 3px var(--badBg); } .dot.wait { background: var(--warn); }
[hidden] { display: none !important; } .pth { border: 0; padding: 0; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; cursor: zoom-in; flex: none; background: var(--card2); vertical-align: middle; display: inline-block; } .pth img { width: 100%; height: 100%; object-fit: cover; display: block; } .pbig { width: 100%; max-width: 480px; border-radius: 12px; display: block; margin: 0 auto 10px; } /* 1.1.1 punch photo */
.av.ph { padding: 0; overflow: hidden; background: var(--card2); } .av.ph img { width: 100%; height: 100%; object-fit: cover; display: block; } /* 1.1.1 staff photo */
.av.xs { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; } .av.xl { width: 96px; height: 96px; border-radius: 50%; font-size: 30px; } .ph-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .ph-box .btns { display: flex; gap: 6px; flex-wrap: wrap; } .camv { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #000; transform: scaleX(-1); }
.av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accentText); background: linear-gradient(135deg, var(--accent), var(--info)); flex: none; }
.src { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); color: var(--accent); flex: none; } .src svg { width: 15px; height: 15px; }

/* ---------- tables */
.tw { overflow: auto; border-radius: 12px; border: 1px solid var(--line2); max-height: calc(100vh - 240px); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.t th { text-align: start; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 9px 10px; position: sticky; top: 0; background: var(--cardSolid); z-index: 2; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; } table.t tr:hover td { background: rgba(31, 209, 179, .04); } table.t td.n, table.t th.n { text-align: end; font-variant-numeric: tabular-nums; } table.t tr.tot td { font-weight: 800; color: var(--gold); border-top: 1px solid var(--line); }
table.t tr.click { cursor: pointer; }
.mgrid td, .mgrid th { padding: 5px 3px !important; text-align: center !important; font-size: 12px; } .mgrid td.nm, .mgrid th.nm { text-align: start !important; white-space: nowrap; padding-inline: 10px !important; position: sticky; inset-inline-start: 0; background: var(--cardSolid); z-index: 1; }
.mc { display: inline-flex; width: 26px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; }
.mc.P { background: var(--okBg); color: var(--ok); } .mc.L { background: var(--warnBg); color: var(--warn); } .mc.A { background: var(--badBg); color: var(--bad); } .mc.M { background: var(--warnBg); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); } .mc.O, .mc.H { background: var(--line2); color: var(--muted); } .mc.LV { background: var(--violetBg); color: var(--violet); } .mc.OW { background: var(--infoBg); color: var(--info); } .mc.HD { background: var(--warnBg); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); } /* 1.1.9 half day */

/* ---------- dashboard pieces */
.live { height: 430px; overflow: auto; overscroll-behavior: contain; contain: layout; } /* 1.1.1: fixed height — new punches never push the page */ @media (max-width: 700px) { .live { height: 320px; } } .lrow { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--line2); } .lrow:last-child { border-bottom: 0; } .lrow .g { flex: 1; min-width: 0; } .lrow .g b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow.new { animation: flash 1.6s ease-out, fadein .5s ease-out; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes flash { from { background: rgba(31, 209, 179, .22); } to { background: transparent; } }
.mstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .mcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card2); display: flex; flex-direction: column; gap: 4px; cursor: pointer; } .mcard:hover { border-color: var(--accent); }
.mcard .nm { display: flex; align-items: center; gap: 8px; font-weight: 800; } .mcard .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl { position: relative; } .tlrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; } .tlrow .nm { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tltrack { position: relative; height: 18px; border-radius: 6px; background: var(--line2); } .tlseg { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 35%, transparent); border: 1px solid var(--accent); }
.tlseg.ok { background: color-mix(in srgb, var(--ok) 55%, transparent); border-color: var(--ok); } .tlseg.miss { background: color-mix(in srgb, var(--bad) 35%, transparent); border-color: var(--bad); } .tlseg.duty { background: color-mix(in srgb, var(--info) 45%, transparent); border-color: var(--info); }
.tlnow { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); z-index: 3; } .tlaxis { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; font-size: 10.5px; color: var(--faint); } .tlaxis div:last-child { position: relative; height: 14px; } .tlaxis span { position: absolute; transform: translateX(-50%); }
[dir="rtl"] .tlaxis span { transform: translateX(50%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.alist { display: flex; flex-direction: column; gap: 8px; } .aitem { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); } .aitem .g { flex: 1; min-width: 0; }
.livedots { position: relative; } .livedots:before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: radial-gradient(rgba(31, 209, 179, .35) 1px, transparent 1.2px); background-size: 22px 22px; opacity: .25; animation: drift 18s linear infinite; }
[data-theme="day"] .livedots:before { display: none; } @keyframes drift { to { background-position: 22px 44px; } }
.pulse { animation: pulse 2.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .45; } }
.chart svg { display: block; width: 100%; overflow: visible; } .tip { position: fixed; z-index: 3000; pointer-events: none; background: var(--cardSolid); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* ---------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .cal .wd { font-size: 11px; color: var(--muted); font-weight: 800; text-align: center; }
.cday { border-radius: 12px; border: 1px solid var(--line2); padding: 7px; min-height: 74px; cursor: pointer; background: var(--card2); display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; } .cday .d { font-weight: 800; font-size: 13px; display: flex; justify-content: space-between; }
.cday.g { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 13%, transparent); } .cday.y { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 13%, transparent); } .cday.r { border-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.cday.o { opacity: .7; } .cday.sel { box-shadow: 0 0 0 2px var(--gold); } .cday.blank { visibility: hidden; } @media (max-width: 560px) { .cday { min-height: 54px; padding: 4px; font-size: 10px; } .cday .x { display: none; } }
.segline { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); margin-bottom: 8px; flex-wrap: wrap; }

/* ---------- reports centre */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } .tile { cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 18px; text-decoration: none; color: var(--text); }
.tile .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31, 209, 179, .22), rgba(227, 181, 82, .14)); color: var(--accent); border: 1px solid var(--line); } .tile .ic svg { width: 22px; height: 22px; }
.tile b { font-size: 15px; } .tile:hover { border-color: var(--accent); box-shadow: var(--glow), var(--shadow); transform: translateY(-1px); } .tile { transition: transform .12s, box-shadow .2s; }
.soon-card { opacity: .92; } .soon-card .badge { align-self: flex-start; }

/* ---------- maps */
.map { height: 420px; border-radius: 14px; overflow: hidden; background: var(--card2); z-index: 1; } .map.sm { height: 260px; }
.leaflet-container { font-family: inherit; } [data-theme="night"] .leaflet-tile-pane { filter: brightness(.72) contrast(1.1) saturate(.75) hue-rotate(160deg) invert(.9); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); } .pin b { transform: rotate(45deg); color: #fff; font-size: 11px; }

/* ---------- modal, toast */
.modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 10, 18, .62); display: flex; align-items: center; justify-content: center; padding: 14px; backdrop-filter: blur(3px); }
.modal { background: var(--cardSolid); border: 1px solid var(--line); border-radius: 18px; width: 560px; max-width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal .mh h3 { flex: 1; } .modal .mh .x { border: 0; background: var(--card2); color: var(--text); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.modal .mb { padding: 16px 18px; overflow: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; } /* 1.1.2: the body scrolls, the footer stays inside the window */ .modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--cardSolid); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); max-width: 360px; font-weight: 600; }
.toast.bad { border-inline-start-color: var(--bad); } .toast.ok { border-inline-start-color: var(--ok); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; } .tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 12px; font: 700 13.5px inherit; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; } .tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.setrow { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line2); } .setrow:last-child { border-bottom: 0; } .setrow .grow { flex: 1; min-width: 0; } .setrow .grow b { display: block; font-size: 14px; } .setrow .grow span { font-size: 12.5px; color: var(--muted); }
.steps div > * { min-width: 0; } .steps div { overflow-wrap: anywhere; min-width: 0; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 8px; } .steps div { display: flex; gap: 10px; align-items: flex-start; } .steps div:before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accentText); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
code, .mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; } code { background: var(--card2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login .art { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; overflow: hidden; background: radial-gradient(900px 600px at 70% 10%, rgba(31, 209, 179, .14), transparent 60%), linear-gradient(160deg, #06121f, #0a1b2e); color: #e8f3f8; }
.login .art img { width: min(320px, 70%); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 24px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); } .login .art p { max-width: 470px; opacity: .88; font-size: 15px; }
.login .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; max-width: 480px; } .login .feat div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(31, 209, 179, .22); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 28px; } .login .form .card { width: 410px; max-width: 100%; padding: 24px; }

/* ---------- phone */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); } .side { position: fixed; z-index: 300; width: 276px; transform: translateX(-105%); transition: transform .2s; } .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  [dir="rtl"] .side { right: 0; transform: translateX(105%); } [dir="rtl"] .side.open { transform: none; }
  .menu-btn { display: inline-flex; } .content { padding: 14px 12px 44px; } .top { padding: 10px 12px; gap: 8px; } .top .hide-s { display: none; } .trial, .demo-bar { padding: 6px 12px; }
  .login { grid-template-columns: minmax(0, 1fr); } .login { min-height: 100dvh; align-content: start; } .login .art { padding: 18px 16px 6px; align-items: center; text-align: center; } .login .art img { width: 132px; border-radius: 20px; } .login .art p { font-size: 13px; line-height: 1.45; margin: 8px 0 0; max-width: 360px; } .login .feat { display: none; }
  .login .form { padding: 10px 14px 24px; align-items: flex-start; } .login .form .card { padding: 18px; } .login .form .card > div:first-child { flex-wrap: wrap; } .login .lang { flex: none; }
  .tlrow, .tlaxis { grid-template-columns: 92px minmax(0, 1fr); } .kpi .n { font-size: 26px; } .map { height: 320px; } .modal { border-radius: 16px; }
}
@media (max-width: 560px) { .top .hide-xs, .top .clogo { display: none; } .side .only-s { display: flex !important; } .tlaxis span.odd { display: none; } .top h1 { font-size: 15px; } }
/* 1.0.1: Preview scrolls the result just below the sticky top bar; a button that is loading looks busy */
#out { scroll-margin-top: 84px; } .btn:disabled { opacity: .6; cursor: progress; }
/* 1.1 360° search (top bar button + palette), gold pulse on the found setting */
.top .topq { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); font: 600 13px inherit; font-family: inherit; cursor: text; }
.top .topq svg { width: 16px; height: 16px; } .top .topq span { flex: 1; text-align: start; } .top .topq kbd, .spal kbd { font: 700 10.5px/1 inherit; font-family: inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--faint); }
.top .sq { display: none; } @media (max-width: 900px) { .top .sq { display: inline-flex; } }
.spal-back { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 10, 20, .55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 12px 12px; }
.spal { width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--cardSolid); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.spal .sbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); } .spal .sbar svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.spal .sbar input { border: 0; background: transparent; font-size: 16px; padding: 6px 2px; min-height: 0; box-shadow: none; } .spal .sbar input:focus { outline: none; box-shadow: none; }
.spal .slist { overflow: auto; padding: 6px; } .spal .sgrp { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.spal .sitem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; } .spal .sitem .g { flex: 1; min-width: 0; display: flex; flex-direction: column; } .spal .sitem .g b { font-size: 14px; } .spal .sitem .g span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spal .sitem.on { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.spal .sfoot { padding: 8px 14px; border-top: 1px solid var(--line2); }
@keyframes sfpulse { 0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, .95); background-color: rgba(212, 160, 23, .22); } 60% { box-shadow: 0 0 0 10px rgba(212, 160, 23, 0); background-color: rgba(212, 160, 23, .14); } 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); } }
.sfpulse { animation: sfpulse .75s ease-out 3; outline: 2px solid #d4a017; outline-offset: 3px; border-radius: 12px; position: relative; z-index: 2; }
/* 1.1 pages: approvals, requests, documents, import wizard, site QR */
.reason { display: inline-flex; gap: 4px; flex-wrap: wrap; } .bstep { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .bstep span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); } .bstep span.on { background: var(--accent); color: var(--accentText); border-color: var(--accent); }
.src-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; } .src-tiles .tile.on { outline: 2px solid var(--accent); }
.qrbox { background: #fff; border-radius: 18px; padding: 18px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: #0b2a3f; } .qrbox svg { width: min(320px, 70vw); height: auto; } .qrbox .code { font: 800 34px/1 inherit; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.beta { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; } .flags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
/* 1.1: a setting row with a wide control (weekday chips, two times) wraps under its text instead of squeezing it */
.setrow { flex-wrap: wrap; } .setrow .grow { min-width: min(220px, 100%); }
@media print { .side, .top, .noprint, .toasts, .trial, .demo-bar, .spal-back { display: none !important; } .app { display: block; } .content { padding: 0; max-width: none; } body { background: #fff; color: #000; } .card { box-shadow: none; border: 0; background: #fff; } .tw { max-height: none; overflow: visible; border: 0; } table.t th { background: #eee; color: #000; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }

/* 1.1.1 help hints (js/help.js): (i) only when "Hints" is ON; tooltip / popover */
.hi { display: none; width: 17px; height: 17px; min-width: 17px; padding: 0; margin-inline-start: 6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; color: var(--accent); font: italic 700 11px/15px Georgia, serif; cursor: help; vertical-align: middle; }
body.hints .hi { display: inline-block; } .hi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.hints [data-hk]:not(input):not(select):not(textarea):not(button):not(.chips) { cursor: help; }
.hpop { position: fixed; z-index: 3500; display: none; max-width: 320px; padding: 9px 12px; border-radius: 11px; background: var(--cardSolid); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line2)); box-shadow: 0 12px 32px rgba(0,0,0,.35); font-size: 12.8px; line-height: 1.5; white-space: pre-line; pointer-events: auto; }
.hpop.sticky { border-color: var(--accent); }
.hintsbtn.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border-color: var(--accent); }
.leaflet-control-layers { font: 12.5px/1.4 inherit; color: #1b2733; } .leaflet-control-layers-expanded { padding: 8px 10px; max-height: 300px; overflow: auto; } /* 1.1.1 map switcher */
.leaflet-control-layers label { display: flex; align-items: center; gap: 7px; margin: 3px 0; cursor: pointer; color: #1b2733; } .leaflet-control-layers label > span, .leaflet-control-layers label > div { display: flex; align-items: center; gap: 7px; }
.leaflet-control-layers input[type="radio"], .leaflet-control-layers input[type="checkbox"] { appearance: auto; -webkit-appearance: radio; width: 14px; height: 14px; min-width: 14px; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
/* 1.1.2 eye (show / hide) on every password / PIN field — RTL: the eye sits at the left (inset-inline-end) */
.pwrap { position: relative; display: block; width: 100%; } .pwrap > input { padding-inline-end: 44px; }
.pwrap > .eye { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pwrap > .eye svg { width: 20px; height: 20px; } .pwrap > .eye:hover, .pwrap > .eye.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); } .pwrap > .eye:focus-visible { outline: 2px solid var(--accent); }
/* 1.1.2 staff window: the footer (Cancel / Save) must not sit on the last fields — room at the end of the scroll */
.modal .mb { scroll-padding-bottom: 72px; } .modal .mb > .fgrid:last-child, .modal .mb > :last-child { padding-bottom: 14px; }
/* 1.1.2 phone PIN box inside the staff window */
.pinbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px dashed var(--line); }
.pinbox .pinv { font: 800 24px/1 Consolas, Menlo, monospace; letter-spacing: 3px; color: var(--accent); }
/* 1.1.2 WHERE IS EVERYONE — TIME ATTENDANCE style live map: avatar pin + name label, groups, cards, list */
.wmap { height: 540px; } @media (max-width: 700px) { .wmap { height: 400px; } } .wlist { max-height: 560px; height: auto; } .wgrid { align-items: start; }
.wpin { position: relative; width: 0; height: 0; } .wpin .wav { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--info)); color: #fff; display: grid; place-items: center; font: 800 13px/1 inherit; border: 3px solid var(--pc, var(--ok)); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); overflow: hidden; }
.wpin .wav.ph { background: #0e2238; } .wpin .wav img { width: 100%; height: 100%; object-fit: cover; display: block; } .wpin .wav.sq { border-radius: 12px; background: var(--pc); font-size: 18px; } .wpin .wav.sq svg { width: 20px; height: 20px; }
.wpin > .wk { position: absolute; left: 8px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--pc); color: #fff; border: 2px solid #fff; font: 800 11px/13px monospace; text-align: center; font-style: normal; z-index: 2; }
.wpin.mach .wav, .wpin.veh .wav { border-color: #fff; }
.wpin .wlab { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #0f172a; border-radius: 9px; padding: 2px 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font-size: 11.5px; line-height: 1.25; text-align: center; border-top: 2px solid var(--pc, var(--ok)); direction: inherit; }
.wpin .wlab b { display: block; font-weight: 800; } .wpin .wlab span { color: #475569; font-size: 10.5px; }
.wclu { position: relative; width: 0; height: 0; cursor: pointer; } .wclu .wstack { position: absolute; left: -22px; top: -22px; display: flex; } .wclu .wav.sm { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--pc, var(--ok)); margin-inline-end: -12px; background: linear-gradient(135deg, var(--accent), var(--info)); display: grid; place-items: center; color: #fff; font-size: 11px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.wclu .wav.sm img { width: 100%; height: 100%; object-fit: cover; } .wclu > b { position: absolute; left: 10px; top: -30px; min-width: 24px; height: 24px; border-radius: 12px; background: #0f172a; color: #fff; border: 2px solid #fff; font: 800 12px/20px inherit; text-align: center; padding: 0 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--cardSolid); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); } .leaflet-popup-tip { background: var(--cardSolid); } .leaflet-popup-content { margin: 12px 14px; font: inherit; line-height: 1.4; } .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.wcard { min-width: 230px; } .wcard .wtop { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .wcard .wrows { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; } .wcard .wrows > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line2); padding: 2px 0; } .wcard .wrows span { color: var(--muted); }
.wcard .wselfie { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-top: 8px; } .wcard .wbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wlist .lrow { border-inline-start: 3px solid var(--pc, transparent); padding-inline-start: 8px; border-radius: 8px; } .wlist .lrow.click { cursor: pointer; } .wlist .lrow.click:hover { background: var(--card2); }
.wpin.mach .wlab { top: auto; bottom: 22px; border-top: 0; border-bottom: 2px solid var(--pc); } /* machine name above its pin (people stand on the machine) */
/* 1.1.2 eSSL-style Monthly Status Report on the screen */
.essl .ehead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .essl .ehead .clogo { height: 44px; width: auto; max-width: 140px; object-fit: contain; } .essl .erow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.essl .edept { font-weight: 800; margin: 12px 0 6px; color: var(--gold); } .essl .eblock { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--card2); }
.essl .etop { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-direction: row-reverse; } .essl .etop .grow { text-align: start; } .essl .av.eph { width: 56px; height: 56px; font-size: 18px; border-radius: 10px; }
.essl table.egrid th, .essl table.egrid td { padding: 3px 4px; font-size: 11px; white-space: nowrap; } .essl table.egrid tbody th { text-align: start; font-weight: 700; color: var(--muted); } .essl table.egrid td.tiny { font-size: 9.5px; }
/* 1.1.2 vehicles */
.vdot { color: #fff; border: 2px solid #fff; border-radius: 14px; padding: 2px 8px; font: 700 11px/1.3 inherit; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); display: inline-block; transform: translate(-50%, -50%); }
ol.steps { padding-inline-start: 18px; line-height: 1.7; margin: 0; } code.mono { font-family: Consolas, Menlo, monospace; background: var(--card2); padding: 1px 6px; border-radius: 6px; display: inline-block; margin: 2px 0; max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.wmapcard.map-full { position: fixed; inset: 0; z-index: 1500; border-radius: 0; padding: 8px; overflow: auto; } .wmapcard.map-full .wmap { height: calc(100vh - 60px); height: calc(100dvh - 60px); } body.map-full-open { overflow: hidden; }

/* 1.1.3 THEME STUDIO: text size + dashboard layouts (Classic cards = as before, Compact list, Today focus) */
html[data-fs="2"] body { zoom: 1.1; } html[data-fs="3"] body { zoom: 1.22; }
html[data-layout="compact"] .kpis { gap: 8px; } html[data-layout="compact"] .kpi { padding: 10px 12px; } html[data-layout="compact"] .kpi .n { font-size: 20px; } html[data-layout="compact"] .card { padding: 12px 14px; }
.lk-focus { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 0 0 14px; padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(135deg, #0d2c43, #081d2e); color: #fff; box-shadow: var(--shadow); }
[data-skin="lavender"] .lk-focus { background: linear-gradient(135deg, #3b2a7a, #120e28); }
.lk-focus .lk-t { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; } .lk-focus .lk-d { font-size: 18px; font-weight: 700; } .lk-focus .lk-s { font-size: 14px; opacity: .9; margin-top: 4px; }
@media (max-width: 600px) { .lk-focus { grid-template-columns: 1fr; text-align: center; } .lk-focus .lk-t { font-size: 44px; } }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lk-card { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--cardSolid); text-align: start; padding: 0; color: var(--text); font: inherit; }
.lk-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.lk-card .pv { height: 86px; display: flex; } .lk-card .pv i { width: 30%; } .lk-card .pv b { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; } .lk-card .pv b span { height: 8px; border-radius: 4px; display: block; }
.lk-card .n { padding: 8px 10px; font-weight: 800; font-size: 14px; }
.lk-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; } .lk-seg button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.lk-seg button.on { background: var(--accent); color: var(--accentText); }
/* 1.1.3 THEME STUDIO SKINS — readable badges / buttons (WCAG AA, checked by tests/ui-v113.mjs) */
:is([data-skin="nexus"], [data-skin="lavender"]) { --faint: #a9b8c6; }
[data-skin="lavender"] { --faint: #b9b0dd; }
:is([data-skin="nexus"], [data-skin="lavender"]) .b-demo { color: #9fd6ff; }
:is([data-skin="nexus"], [data-skin="lavender"]) .btn.bad { color: #ff9aae; }
:is([data-skin="nexus"], [data-skin="lavender"]) .badge.pulse { animation: none; }
[data-skin="nexuslight"] { --gold: #765a16; --gold2: #6d5418; --faint: #56657a; }
[data-skin="nexuslight"] .side .brand b, [data-skin="nexuslight"] .side .gold { color: #e8c56b; }
[data-skin="nexuslight"] .b-bad, [data-skin="nexuslight"] .btn.bad { color: #a8123b; }
[data-skin="nexuslight"] :is(.b-demo, .b-info) { color: #075985; }
[data-skin="nexuslight"] .b-ok { color: #0b6b50; } [data-skin="nexuslight"] .b-warn { color: #8a5200; } [data-skin="nexuslight"] .b-gold { color: #6d5418; }
[data-skin="nexuslight"] .btn.gold { background: linear-gradient(135deg, #8e6e22, #765a16); color: #ffffff; }
[data-skin="nexuslight"] .badge.pulse { animation: none; }
:is([data-skin="nexus"], [data-skin="lavender"]) .okc { color: #34d399; }
[data-skin="nexuslight"] .okc { color: #0b7a55; }
/* 1.1.4 NFC: "hold the card" window, tick, NFC points grid, verify page, kiosk */
.nfcmsg { text-align: center; padding: 6px 4px 2px; } .nfcmsg .nfch { font-size: 16px; margin: 10px 0 4px; } .nfcbig { font-size: 46px; }
.nfcwave { position: relative; width: 110px; height: 110px; margin: 6px auto 0; display: grid; place-items: center; color: var(--accent); }
.nfcwave svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.nfcwave span { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; animation: nfcw 1.8s ease-out infinite; }
.nfcwave span:nth-child(2) { animation-delay: .6s; } .nfcwave span:nth-child(3) { animation-delay: 1.2s; }
@keyframes nfcw { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nfcwave span { animation: none; opacity: .35; } }
.nfctick { width: 86px; height: 86px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 50px; font-weight: 900; color: #fff; background: var(--ok, #1fa971); box-shadow: 0 0 30px rgba(31, 209, 179, .45); }
.nfcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nfcpt { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card2); } .nfcpt.off { opacity: .6; } .nfcpt > .hd { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.nfcn { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accentText, #fff); font-size: 12.5px; margin-inline-end: 8px; }
.nfcwarn { border-color: var(--warn, #e3b552); font-weight: 700; font-size: 13px; }
.vfy { max-width: 440px; margin: 0 auto; padding: 18px 14px 40px; } .vfy .vcard { text-align: center; padding: 22px 16px; }
.vfy .vph { width: 150px; height: 150px; border-radius: 22px; object-fit: cover; margin: 6px auto 10px; display: block; background: var(--card2); border: 3px solid var(--line); }
.vfy .vok { font-size: 30px; font-weight: 900; letter-spacing: .04em; padding: 10px 14px; border-radius: 16px; margin: 14px 0 6px; }
.vfy .vok.y { background: rgba(31, 169, 113, .16); color: var(--ok, #1fa971); border: 2px solid var(--ok, #1fa971); } .vfy .vok.n { background: rgba(229, 72, 77, .14); color: var(--bad, #e5484d); border: 2px solid var(--bad, #e5484d); }
.vfy .vlogo { width: 54px; height: 54px; border-radius: 14px; object-fit: contain; background: #fff; }
.kio { max-width: 560px; margin: 0 auto; padding: 16px 14px 40px; text-align: center; } .kio .kclock { font-size: 54px; font-weight: 900; margin: 6px 0; }
.kio .kwho img { width: 140px; height: 140px; border-radius: 22px; object-fit: cover; }

/* 1.1.5 duty rules (roster) + holidays */
.mgrid td.rclash { background: rgba(239, 68, 102, .08); } .mgrid select.rc { outline: 2px solid var(--bad); outline-offset: 1px; border-color: var(--bad) !important; }
.mgrid td { position: relative; } .rok { position: absolute; top: 1px; inset-inline-end: 2px; font-size: 11px; color: var(--warn); pointer-events: auto; cursor: help; z-index: 1; }
.rlegend { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; } .rc-sw { display: inline-block; width: 14px; height: 10px; border: 2px solid var(--bad); border-radius: 3px; }
ul.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } ul.dlist li { padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); font-size: 13px; line-height: 1.5; }
#omt input { min-height: 30px; padding: 3px 6px; font-size: 12.5px; } #omt input[type=date] { width: 140px; } #omt td { vertical-align: middle; }

/* 1.1.6 SHABAB MAP loading: thin gold bar (real progress) at the bottom of the map + "slow connection" note after 6 s */
.leaflet-container[data-sbmap="loading"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--sbp, 8%); z-index: 1000; pointer-events: none; background: linear-gradient(90deg, #b8861f, #f6d47a 70%, #fff3c4); box-shadow: 0 0 8px rgba(246, 212, 122, .7); border-radius: 0 3px 3px 0; transition: width .25s ease-out; }
.leaflet-container[data-sbslow]::before { content: attr(data-sbslow); position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 1000; pointer-events: none; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 46, 92, .88); color: #f3d38a; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .leaflet-container[data-sbmap="loading"]::after { transition: none; } }
/* 1.1.7 BIO with AI: NEXA BIO chat, smart alerts, roster suggest */
.askcard { display: flex; flex-direction: column; gap: 10px; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: calc(100vh - 330px); overflow: auto; padding: 4px 2px; }
.msg { display: flex; } .msg.me { justify-content: flex-end; }
.msg .bub { max-width: min(760px, 92%); padding: 10px 13px; border-radius: 14px; background: var(--card2, rgba(255,255,255,.05)); border: 1px solid var(--line2); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.msg.me .bub { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ask-tw { max-height: 300px; width: 100%; } .ask-tw table.t { font-size: 12.5px; } .ask-tw table.t td { padding: 6px 8px; }
.askform { display: flex; gap: 8px; } .askform input { flex: 1; min-width: 0; }
.askchips { flex-wrap: wrap; }
.aitem.dim { opacity: .55; }
td.rs-chg { outline: 2px solid var(--gold); outline-offset: -2px; font-weight: 700; } td.rs-fix { color: var(--muted); }
@media (max-width: 640px) { .chat { max-height: calc(100vh - 380px); } .msg .bub { max-width: 100%; } }
.aitem.smi { align-items: flex-start; } .aitem.smi .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .aitem.smi .btn { flex: none; }
@media (max-width: 640px) { .askchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .askchips .chip { flex: none; } }
@media (max-width: 560px) { #smartcard .hd .hide-xs { display: none; } }

/* 1.1.8 HR PRO look for companies LINKED with SHABAB HR PRO: white page + white glass cards + navy text / menu + gold buttons (BIO-only: unchanged) */
[data-hrpro="1"][data-skin="nexuslight"] { --bg1: #ffffff; --bg2: #ffffff; --pageBg: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%); --card: rgba(255, 255, 255, .86); --card2: #f6f8fc; --line: #e2e6ef; --line2: #eef1f6; --side: #0b1f4a; --accent: #b8892b; --accent2: #0b1f4a; --accentText: #0b1f4a; --gold: #8a6a1f; }
[data-hrpro="1"][data-skin="nexuslight"] .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(11, 31, 74, .07); }
[data-hrpro="1"][data-skin="nexuslight"] .btn.pri { background: linear-gradient(180deg, #e3b552, #c99a35); color: #0b1f4a; border-color: #c99a35; }
