/* NextUp — app styles. Moved out of index.html (stage 1c). */
:root{
  color-scheme: light;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #161a23;
  --ink-2: #4b5165;
  --ink-muted: #8b90a0;
  --border: #e6e8f0;
  --border-strong: #d7dae5;
  /* App-wide accent rebrand: was indigo/purple (#4f46e5), now the same sky
     blue as the "Up" half of the NextUp wordmark (--wm-up-ink below) —
     unifies every primary button, link, focus ring and tinted badge across
     the whole app with the brand color, instead of the logo and the UI
     chrome competing on two different colors. .btn-primary and the active
     sidebar nav-item go a step further with the sky→indigo signature
     gradient also used on the login screen's CTA (see #btn-google-login
     near .login-tos, and .nav-item.active below) — everything else that
     reads var(--accent) (links, badges, focus rings, hours-preview, etc.)
     just gets the flat sky color. */
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-ink: #ffffff;
  --accent-wash: #e0f2fe;
  /* Mockup round 5 — a dedicated, lighter sibling to --accent-wash, used only
     by the selected employee-list row's background (.pss-row.sel below).
     --accent-wash itself is already used in ~32 places app-wide (badges,
     avatars, focus rings, etc.) so it's too risky to soften globally just
     for this one row; this new token is scoped to that single purpose and
     follows the same 3-block light/dark token-triad pattern as every other
     color token here. Per the office's explicit ask + reference screenshot:
     "הרקע גם כחול עדין יותר" — a paler wash than the badge/avatar tint. */
  --accent-wash-soft: #f0f9ff;
  --good: #059669;
  --good-wash: #d1fae5;
  --warning: #d97706;
  --serious: #d97706;
  --critical: #e11d48;
  --danger-wash: #fde7ec;
  /* payroll-summary status system (סיכום שכר משרדי redesign, Sept 2026):
     "requires review" rows need a light tinted wash the same way --danger-wash
     already exists for --critical — this is the matching one for --warning. */
  --warning-wash: #fdf1de;
  /* "דורש בדיקה" status (Sept 2026 red→amber pass): was --critical/red, which
     read as too alarming for "this month's numbers might still change" and
     collided visually with actually-destructive actions (delete). Now its
     own orange tier — distinct from --warning (used by the "warn"/"נערך
     ידנית" tier) so the two review statuses stay visually distinguishable —
     while --critical itself is untouched and still reserved for delete
     actions and genuinely critical system warnings. */
  --issue: #c2410c;
  --issue-wash: #fff1e6;
  /* "סיכום שכר משרדי" input-field surface — light theme (Sept 2026 v3, UI
     refactor pass): softened once more per the office's "flatter" request —
     a super-subtle slate-50 fill with an almost-transparent slate-200
     border, so the field barely reads as a bordered box until you actually
     focus it; .pss-f:focus-within below is what supplies the colored ring
     on focus/click. (v2's slightly firmer slate-300 border is still in the
     history above for reference.) Dark theme is untouched (--surface-2/
     --border already read fine there), so this stays its own pair of vars
     rather than a hardcoded color on .pss-f. */
  --pss-input-bg: #f8fafc;
  --pss-input-border: #e2e8f0;
  --pss-input-bg-focus: #ffffff;
  --shadow: 0 1px 2px rgba(20,22,35,.05), 0 10px 28px -14px rgba(20,22,35,.16);
  --cat-1: #2563eb; --cat-2: #ea580c; --cat-3: #059669; --cat-4: #d97706;
  --cat-5: #db2777; --cat-6: #16a34a; --cat-7: #7c3aed; --cat-8: #e11d48;
  /* CRM/tasks used to have their OWN separate emerald-green brand identity,
     kept deliberately apart from the app's --accent. That distinction is
     gone now — --brand-accent(-solid) are the same sky family as --accent,
     so the client board and task board read as the same app as everything
     else instead of a green sub-brand. Status/semantic greens elsewhere
     (--good, task "done" checkmarks that use --good directly) are untouched. */
  --brand-accent: #0284c7;
  --brand-accent-solid: #0284c7;
  --brand-accent-solid-hover: #0369a1;
  --brand-accent-solid-ink: #ffffff;
  /* Sept 2026 (header-unification fix) — .topbar/.topnav-bar are, like the
     brand colors above, fixed-dark regardless of the app's light/dark theme
     (see their own rules' comments), so this lives here as a single plain
     value rather than in the light/dark token triad. One shared flat color
     for both bars — replacing the two independent 3-stop gradients each
     bar used to render (same gradient, but recomputed per-element against
     each bar's own height, so the color at the boundary never actually
     lined up — that mismatch, plus a border+shadow sitting right on that
     boundary, was the "two different dark shades with a seam" the office
     reported). #0f172a is the app's own existing brand-dark tone (also the
     topbar gradient's own first stop, and the favicon's fill). */
  --topbar-bg: #0f172a;
  /* NextUp wordmark ink — THEME-ADAPTIVE, for the two surfaces the
     wordmark sits on that themselves change with light/dark theme (the
     topbar and the login card): "Next" is near-black slate on light theme,
     white on dark theme; "Up" (and the attached chevron glyph, which
     inherits via currentColor) is a saturated sky blue tuned separately per
     theme for contrast — sky-600 reads clearly on a light surface but goes
     muddy on a dark one, so dark theme switches to the brighter sky-400
     instead. The login HERO panel is a fixed dark-navy surface regardless
     of app theme, so its wordmark uses its own hardcoded override (see
     .login-hero-wordmark .wm-next/.wm-up) rather than these vars. */
  --wm-next-ink: #0f172a;
  --wm-up-ink: #0284c7;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --paper: #0b0d13;
    --surface: #12141d;
    --surface-2: #181b26;
    --ink: #eef0f6;
    --ink-2: #b7bccb;
    --ink-muted: #6c7185;
    --border: #232734;
    --border-strong: #2e3342;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-ink: #0b0d13;
    --accent-wash: rgba(56,189,248,.16);
    --accent-wash-soft: rgba(56,189,248,.08);
    --good: #34d399;
    --good-wash: rgba(52,211,153,.16);
    --warning: #fbbf24;
    --serious: #fbbf24;
    --critical: #fb7185;
    --danger-wash: rgba(251,113,133,.14);
    --warning-wash: rgba(251,191,36,.14);
    --issue: #fb923c;
    --issue-wash: rgba(251,146,60,.16);
    --pss-input-bg: var(--surface-2);
    --pss-input-border: var(--border);
    --pss-input-bg-focus: var(--surface-2);
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px -14px rgba(0,0,0,.55);
    --cat-1: #60a5fa; --cat-2: #fb923c; --cat-3: #34d399; --cat-4: #fbbf24;
    --cat-5: #f472b6; --cat-6: #4ade80; --cat-7: #a78bfa; --cat-8: #fb7185;
    --brand-accent: #38bdf8;
    --brand-accent-solid: #38bdf8;
    --brand-accent-solid-hover: #7dd3fc;
    --brand-accent-solid-ink: #0b0d13;
    --wm-next-ink: #ffffff;
    --wm-up-ink: #38bdf8;
  }
}
:root[data-theme="dark"]{
  color-scheme: dark;
  --paper: #0b0d13;
  --surface: #12141d;
  --surface-2: #181b26;
  --ink: #eef0f6;
  --ink-2: #b7bccb;
  --ink-muted: #6c7185;
  --border: #232734;
  --border-strong: #2e3342;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-ink: #0b0d13;
  --accent-wash: rgba(56,189,248,.16);
  --accent-wash-soft: rgba(56,189,248,.08);
  --good: #34d399;
  --good-wash: rgba(52,211,153,.16);
  --warning: #fbbf24;
  --serious: #fbbf24;
  --critical: #fb7185;
  --danger-wash: rgba(251,113,133,.14);
  --warning-wash: rgba(251,191,36,.14);
  --issue: #fb923c;
  --issue-wash: rgba(251,146,60,.16);
  --pss-input-bg: var(--surface-2);
  --pss-input-border: var(--border);
  --pss-input-bg-focus: var(--surface-2);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px -14px rgba(0,0,0,.55);
  --cat-1: #60a5fa; --cat-2: #fb923c; --cat-3: #34d399; --cat-4: #fbbf24;
  --cat-5: #f472b6; --cat-6: #4ade80; --cat-7: #a78bfa; --cat-8: #fb7185;
  --brand-accent: #38bdf8;
  --brand-accent-solid: #38bdf8;
  --brand-accent-solid-hover: #7dd3fc;
  --brand-accent-solid-ink: #0b0d13;
  --wm-next-ink: #ffffff;
  --wm-up-ink: #38bdf8;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper); color:var(--ink);
  font-family:"Heebo",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
  /* Sept 2026 (Quiet UI design-system pass) — tabular figures everywhere by
     default (not just inside .num), so any number anywhere in the app lines
     up in a fixed-width column instead of drifting with proportional digit
     widths. Harmless on non-numeric text. */
  font-variant-numeric:tabular-nums;
}
h1,h2,h3,.brand{font-family:"Heebo",system-ui,sans-serif;}
h1,h2,h3{text-wrap:balance; margin:0 0 4px; font-weight:700;}
button,input,select,textarea{font-family:inherit; font-size:inherit; color:inherit;}
a{color:var(--accent);}
::selection{background:var(--accent); color:var(--accent-ink);}
.num{font-variant-numeric:tabular-nums; font-family:"Heebo",ui-monospace,sans-serif;}

/* ---------- layout ---------- */
.app-shell{min-height:100vh; display:flex; flex-direction:column;}
/* Top header (Sept 2026): deliberately a FIXED dark-navy surface regardless
   of the app's light/dark theme — same rationale and same gradient as
   .login-hero below (brand chrome that should read as "NextUp" at a glance,
   not a themed content surface), so it isn't wired to --surface/--border
   the way ordinary cards are, and doesn't need a dark-theme counterpart. */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 24px; min-height:56px;
  background:var(--topbar-bg);
  position:sticky; top:0; z-index:20; overflow:hidden;
}
/* same soft radial glow as .login-hero::before (identical position/alpha) —
   previously the topbar only borrowed the flat gradient, not this glow, so
   it read as "close but not quite" the login screen's dark surface. No
   dropdowns/menus live inside .topbar, so the overflow:hidden this needs is
   safe. */
.topbar::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 88% 8%, rgba(56,189,248,.14), transparent 55%);
}
.topbar > *{position:relative; z-index:1;}
/* wordmark + user-area overrides so they read correctly on the fixed dark
   bar above, instead of inheriting the light/dark-theme-adaptive colors
   (--wm-next-ink etc.) meant for surfaces that actually change with theme —
   mirrors .login-hero-wordmark's own hardcoded override further down. */
.topbar .wm-next{color:#fff;}
.topbar .wm-up{color:#38bdf8;}
.topbar .userchip .who b{color:#f1f5f9;}
.topbar .userchip .who .who-firm{color:#94a3b8;}
.topbar .role-badge.manager{background:rgba(56,189,248,.14); color:#7dd3fc; border:1px solid rgba(56,189,248,.35);}
.topbar .role-badge.super_admin{background:linear-gradient(90deg,#0ea5e9,#6366f1); color:#fff; border:1px solid rgba(199,210,254,.45);}
.topbar .role-badge.employee{background:rgba(255,255,255,.08); color:#cbd5e1; border:1px solid rgba(255,255,255,.14);}
.topbar .btn-ghost{color:#cbd5e1;}
.topbar .btn-ghost:hover{color:#fff; background:rgba(255,255,255,.1);}
.brand{font-size:16px; font-weight:700; letter-spacing:.1px; display:flex; align-items:center; gap:10px;}
.brand-word{display:flex; flex-direction:column; line-height:1.1;}
/* "Next" + "Up" are the whole logo now — no separate icon badge next to
   them in the app UI (the chevron glyph lives INSIDE .wm-up instead, see
   .wm-chevrons below) — so .brand-mark/.mark (the old boxed-icon wrapper)
   were removed from every in-app wordmark site. The formal PDF export
   header keeps the boxed nextUpMarkSvg() icon as its own standalone mark
   (.pspdf-brand-mark) since that's a different, more traditional
   "letterhead" context, not touched by this pass. */
.brand-name{font-size:24px; letter-spacing:-.02em; direction:ltr; unicode-bidi:isolate;}
.brand-accent{color:var(--brand-accent);}
/* NextUp wordmark — both words now the same heavy weight (font-extrabold),
   distinguished purely by color: "Next" in --wm-next-ink, "Up" (with the
   chevron glyph glued to its end) in --wm-up-ink. Both vars are
   THEME-ADAPTIVE (see their :root definitions) because the topbar and the
   login card are themselves theme-adaptive surfaces; the login hero panel
   is a fixed dark surface regardless of theme, so it gets its own
   hardcoded override further down (.login-hero-wordmark .wm-next/.wm-up). */
.wm-next{font-weight:800; letter-spacing:-.02em; color:var(--wm-next-ink);}
.wm-up{font-weight:800; letter-spacing:-.02em; color:var(--wm-up-ink);}
/* the bare chevron glyph (nextUpChevronsSvg) sits inside .wm-up as its
   trailing character, sized/aligned to the text via em units + a small
   negative vertical-align rather than flex layout, so it behaves as an
   ordinary inline glyph and never breaks baseline alignment with "Next". */
.wm-chevrons{width:.6em; height:.6em; display:inline-block; vertical-align:-.05em; margin-inline-start:1px;}
.brand small{display:block; font-family:"Heebo",sans-serif; font-size:12px; font-weight:400; color:#94a3b8; letter-spacing:.2px;}
/* Sept 2026 (Enterprise Quiet UI, bold-nav pivot) — the app's whole nav,
   flattened out of the old vertical .nav-rail sidebar into one row of pills.
   Its own full-width bar (.topnav-bar, directly under .topbar) rather than
   squeezed inside .topbar alongside the wordmark/user chip — a super_admin
   sees up to 8 items, and sharing the row with brand+userchip meant the
   last pill(s) silently scrolled out of view with no visible cue at
   ordinary laptop widths. overflow-x:auto (no wrap) is still the fallback
   for very narrow viewports. Colors are hardcoded (not var(--side-*)) for
   the same reason .topbar's own brand/userchip overrides are: this bar is
   fixed-dark regardless of the app's light/dark theme. */
.topnav-bar{
  background:var(--topbar-bg);
  box-shadow:0 4px 14px -10px rgba(2,6,23,.5);
  position:sticky; top:56px; z-index:19;
}
.topnav-pills{
  display:flex; align-items:center; justify-content:center; gap:4px;
  padding:6px 24px; overflow-x:auto; scrollbar-width:none;
}
.topnav-pills::-webkit-scrollbar{display:none;}
.topnav-pill{
  display:flex; align-items:center; gap:7px; flex-shrink:0;
  padding:8px 15px; border-radius:99px; border:1px solid transparent;
  background:transparent; color:#cbd5e1; font-weight:600; font-size:13px;
  font-family:inherit; cursor:pointer; white-space:nowrap; transition:background .12s, color .12s;
}
.topnav-pill:hover{background:rgba(255,255,255,.08); color:#fff;}
.topnav-pill.active{background:linear-gradient(90deg,#0ea5e9,#6366f1); color:#fff; font-weight:700; box-shadow:0 4px 14px -6px rgba(14,165,233,.6);}
.topnav-pill .ic{width:16px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; opacity:.92;}
.topnav-pill .ic .crm-icon{width:15px; height:15px;}
@media (max-width:760px){ .topnav-pill-label{display:none;} .topnav-pill{padding:9px; gap:0;} .topnav-pills{justify-content:flex-start;} }
@media (max-width:640px){ .brand small{display:none;} }
.userchip{display:flex; align-items:center; gap:10px;}
.userchip .who{text-align:start; line-height:1.25;}
.userchip .who b{display:block; font-size:13.5px;}
.userchip .who span{font-size:11.5px; color:var(--ink-muted);}
/* Firm/office name, shown above the user's own name in the topbar so the
   account's identity is visible at a glance — matters more once more than
   one firm exists in the system (multi-tenant), but harmless and clarifying
   even with a single office today. */
.userchip .who .who-firm{display:block; font-size:10px; font-weight:700; color:var(--ink-muted); letter-spacing:.02em; margin-bottom:2px; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.role-badge{display:inline-block; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:99px; letter-spacing:.3px;}
.role-badge.manager{background:var(--accent-wash); color:var(--accent);}
/* super_admin used to be a hardcoded green (#059669), unrelated to any
   brand variable — now the same sky→indigo gradient as every primary
   button, as a solid pill (rather than manager's soft wash) so the two
   roles still read as visually distinct, just both in the new palette. */
.role-badge.super_admin{background:linear-gradient(90deg,#0ea5e9,#6366f1); color:#fff;}
.role-badge.employee{background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border);}
.avatar{width:34px; height:34px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex-shrink:0;}

.body-row{display:flex; flex:1; min-height:0;}

.main{flex:1; min-width:0; padding:26px; overflow-x:hidden; background:var(--paper);}
.main-inner{max-width:1180px; margin-inline:auto; display:flex; flex-direction:column; gap:18px;}
/* Wide-table views (tasks board, CRM client board) use this instead of the
   1180px default — that width is comfortable for the app's forms and
   single-column reports (attendance entry, payroll, employee management),
   but on those two specifically it left dead space on both sides AND, on a
   standard 1280–1366px laptop screen, still forced the tasks table (9
   columns, min-width 940px) into horizontal scroll once nav-rail (232px)
   and .main's own padding were subtracted. Kept as an opt-in modifier
   (applied per-view in renderShell) rather than raising the default, so
   narrow content doesn't stretch into uncomfortably long form rows. */
.main-inner-wide{max-width:1800px;}
/* Mockup round 6 — a THIRD width tier, specifically for "מרכז בקרת שכר".
   Per the office's explicit request: not the full-bleed 1800px used by
   tasks/CRM (they said "לא על כל העמוד"), just "קצת יותר" than the default
   1180px — enough to let the standing-terms tiles and the recurring pay-
   component/sick-day badges merge onto one shared row (see termsRow's call
   site) without forcing the icons off entirely. 1400px picked as a modest,
   deliberate middle value between the two existing tiers. */
.main-inner-payroll{max-width:1400px;}
.view-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.view-head h1{font-size:22px; font-weight:700; letter-spacing:-.2px;}
.view-head p{margin:2px 0 0; color:var(--ink-muted); font-size:13.5px;}

@media (max-width:800px){
  .body-row{flex-direction:column;}
  .main{padding:16px;}
}

/* ---------- primitives ---------- */
.card{background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow);}
.card-pad{padding:20px 22px;}
.card-title{font-size:14.5px; font-weight:700; margin:0; font-family:"Heebo";}
.card-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px 22px; border-bottom:1px solid var(--border); flex-wrap:wrap;}
.card-head .sub{font-size:12px; color:var(--ink-muted); margin-top:1px;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 16px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--ink); font-weight:600; font-size:13.5px;
  cursor:pointer; transition:transform .08s, background .12s, border-color .12s; box-shadow:var(--shadow);
}
.btn:hover{background:var(--surface-2);}
.btn:active{transform:translateY(1px);}
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}
/* Every primary button in the app (every board, not just the login
   screen) — the same sky→indigo signature gradient as the login CTA
   (#btn-google-login) and the active sidebar nav-item, fixed hex so it
   reads the same in light and dark theme rather than following
   var(--accent)'s per-theme flat color. */
.btn-primary{background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 100%); border-color:transparent; color:#fff;}
.btn-primary:hover{background:linear-gradient(135deg,#0284c7 0%,#4f46e5 100%); border-color:transparent;}
.btn-ghost{background:transparent; border-color:transparent; color:var(--ink-2); box-shadow:none;}
.btn-ghost:hover{background:var(--surface-2);}
.btn-danger{background:transparent; border-color:var(--critical); color:var(--critical); box-shadow:none;}
.btn-danger:hover{background:var(--critical); color:#fff;}
.btn-success{background:#059669; border-color:#059669; color:#fff;}
.btn-success:hover{background:#047857; border-color:#047857;}
.btn-sm{padding:6px 11px; font-size:12.5px; border-radius:8px;}
.btn[disabled]{opacity:.45; cursor:not-allowed;}
.btn-block{width:100%;}

.field{display:flex; flex-direction:column; gap:5px;}
.field label{font-size:12.5px; font-weight:700; color:var(--ink-2);}
.crm-view-value{font-size:13.5px; color:var(--ink); line-height:1.5;}
.field .hint{font-size:11.5px; color:var(--ink-muted); font-weight:500;}
.field .field-err{font-size:11.5px; color:var(--issue); font-weight:600; margin-top:3px; display:block;}
.field input[aria-invalid="true"], .auth-form .field input[aria-invalid="true"]{border-color:var(--issue); box-shadow:0 0 0 3px var(--issue-wash);}
.field .req{color:var(--issue); font-weight:800; margin-inline-start:2px;}
.nocard-banner{display:flex; gap:10px; align-items:flex-start; margin-top:12px; padding:12px 14px; border-radius:12px; background:var(--warning-wash); border:1px solid var(--warning); font-size:13px; line-height:1.6; color:var(--ink);}
.nocard-banner .ic{width:22px; height:22px; border-radius:50%; background:var(--warning); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0; font-size:13px;}
.status-banner.profile{background:var(--warning-wash); border-color:var(--warning);}
.status-banner.profile .sb-ic{background:var(--warning); color:#fff;}
input[type=text],input[type=date],input[type=time],input[type=password],input[type=number],select,textarea{
  border:1px solid var(--border-strong); background:var(--surface); color:var(--ink);
  border-radius:10px; padding:9px 12px; width:100%; appearance:none;
}
/* Sept 2026 (Quiet UI design-system pass) — a plain generic field like this
   had no focus state at all before (only specific components — .pss-metric-
   input, .pss-sidebar-search, etc — defined their own ring); this closes
   that gap with one consistent accent-colored focus ring app-wide. A more
   specific selector elsewhere (e.g. .pss-metric-input:focus) still wins
   over this by CSS specificity, so nothing already-styled changes look. */
input[type=text]:focus,input[type=date]:focus,input[type=time]:focus,input[type=password]:focus,input[type=number]:focus,select:focus,textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);
}
/* The chevron is drawn with background-position, which — unlike padding/
   margin/border — has no logical inline-start/inline-end form in CSS: a
   percentage or length there is always resolved against the box's PHYSICAL
   left edge, regardless of dir="rtl". calc(100% - Npx) anchors it to the
   physical right edge instead — exactly where this whole app's RTL text
   starts (right-aligned), so the arrow used to sit under/behind the text.
   Fixed by anchoring it to the physical left with a plain left offset, and
   reserving room for it with a matching physical padding-left (this app is
   always RTL, so there's no direction to keep this logical for). */
select{background-image:linear-gradient(45deg,transparent 50%,var(--ink-muted) 50%),linear-gradient(135deg,var(--ink-muted) 50%,transparent 50%); background-position:14px calc(1em + 2px), 19px calc(1em + 2px); background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-left:32px;}
textarea{resize:vertical; min-height:56px;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width:520px){.form-grid{grid-template-columns:1fr;}}

/* horizontal "דיווח חדש" row on נוכחות ודיווחי שעות (Sept 2026, UI/UX 2nd
   pass) — see the compact branch of renderEntryFormHtml. Sept 2026 2nd pass:
   dropped the old nested gray panel (background/border/padding) — the
   fields now sit directly on the card's own white surface, so the form no
   longer reads as "a card inside a card". Fields wrap to multiple lines on
   a narrow viewport; the bottom action row (total + save button) always
   sits on its own full-width line below them, separated by a hairline. */
.time-range-compact{display:flex; align-items:center; gap:6px;}
.time-range-compact input{width:104px;}
.time-range-compact .sep{color:var(--ink-muted); font-weight:600;}
/* bottom action row (Sept 2026 2nd pass) — total on the right, save button
   on the left: in this RTL page a flex row's first child sits on the right,
   so hours-preview-inline (first) and entry-form-inline-submit (second)
   land exactly there with no row-reverse needed. */
.hours-preview-inline{font-size:12.5px; font-weight:700; color:var(--accent); background:var(--accent-wash); padding:4px 10px; border-radius:8px; transition:opacity .15s;}

.grid-2{display:grid; grid-template-columns:360px 1fr; gap:18px; align-items:start;}
@media (max-width:900px){.grid-2{grid-template-columns:1fr;}}
/* נוכחות ודיווחי שעות top banner — "sapphire split" (Sept 2026, mockup B,
   approved direction): a dark clock panel (same gradient+glow recipe as
   .login-hero/.topbar, for one consistent brand surface across the app)
   beside a light content panel with two sections — today's punch sessions,
   and the period reconciliation (moved in here from the old standalone
   .entry-gap-widget strip, see entryGapSummaryHtml) — plus an absence chip
   row along the bottom. Replaces the earlier flat-card 3-column flex
   layout entirely. */
.att-banner{display:grid; grid-template-columns:300px 1fr; align-items:stretch; border-radius:16px; overflow:hidden; box-shadow:var(--shadow); margin-bottom:18px;}
@media (max-width:860px){ .att-banner{grid-template-columns:1fr;} }

.att-banner-clock{background:linear-gradient(165deg,#0f172a 0%,#1e293b 55%,#0b1220 100%); color:#fff; padding:20px 22px; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; overflow:hidden;}
.att-banner-clock::before{content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 30% 10%, rgba(56,189,248,.18), transparent 55%);}
.att-banner-clock>*{position:relative; z-index:1;}

/* status pill — doubles as the live running-shift timer while clocked in
   (id="liveShiftElapsed", ticked by startLiveClockTicker alongside the
   wall clock) with a small pulsing dot, so the "you're mid-shift, time is
   accruing" state is legible before the eye even reaches the button below
   it — approved as "כיוון 1" for strengthening the muted יציאה button's
   clarity without reintroducing red. */
.punch-status{display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:12.5px; padding:6px 14px; border-radius:999px; background:rgba(255,255,255,.08); color:#cbd5e1; margin-bottom:12px;}
.punch-status.in{background:rgba(56,189,248,.16); color:#7dd3fc;}
@keyframes attLiveDotPulse{0%,100%{opacity:1; box-shadow:0 0 0 0 rgba(56,189,248,.55);} 50%{opacity:.75; box-shadow:0 0 0 4px rgba(56,189,248,0);}}

/* single dynamic action button (approved "אופציה ראשונה") — one button
   whose color+label+icon carry the state, never a permanently-disabled
   second button sitting beside it, and no red anywhere in this panel. */
.punch-buttons{width:100%;}
.btn-punch-single{width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px 0; border-radius:12px; border:none; font-weight:700; font-size:14.5px; cursor:pointer; font-family:inherit; transition:transform .1s;}
.btn-punch-single:active{transform:scale(.98);}
.btn-punch-single svg{width:15px; height:15px; flex-shrink:0;}
.btn-punch-single[disabled]{opacity:.55; cursor:default;}
.btn-punch-single.start{background:linear-gradient(90deg,#0ea5e9,#6366f1); color:#fff; box-shadow:0 8px 20px -8px rgba(14,165,233,.55);}
/* elegant solid dark fill (Sept 2026) — was a near-invisible tinted outline
   that read as "just a border" against the panel's own dark gradient; now a
   deliberately lighter, more opaque slate fill + a visibly distinct border
   so the button reads as a real, present control at a glance. */
.btn-punch-single.end{background:rgba(30,41,59,.92); color:#f1f5f9; font-weight:500; border:1px solid #334155; box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px -8px rgba(0,0,0,.5);}
.btn-punch-single.end:hover{background:#334155; border-color:#475569;}

.att-clock-today-mini{margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); width:100%; display:flex; justify-content:space-between; font-size:12px; color:#cbd5e1;}
.att-clock-today-mini b{color:#fff; font-family:"Heebo",sans-serif;}

.att-banner-content{background:var(--surface); padding:16px 22px; display:flex; flex-direction:column; gap:12px;}
.att-sec-label{display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px;}
.att-sec-label .dot{width:6px; height:6px; border-radius:50%; background:var(--accent);}

/* Sept 2026 2nd pass (per explicit request) — single centered "סה״כ שעות
   נוכחות היום" KPI, replacing the old "רישומי היום" block (per-punch chips
   + its own edit button): that in/out detail already lives in the dark
   clock panel next door, so this side only needs the one number that
   wasn't shown there — today's total. */
.today-hours-hero{display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:4px 0 2px;}
.today-hours-hero .v{font-size:30px; font-weight:800; color:var(--ink); line-height:1;}
.today-hours-hero .l{font-size:12.5px; font-weight:600; color:var(--ink-muted); margin-top:6px;}

/* "התאמה ללקוחות" compact KPI card (Sept 2026 2nd pass) — replaces the old
   long .att-recon-strip pill row: one "דווח X מתוך Y שעות נוכחות" line, a
   progress bar, and a single status badge, instead of 3 separate pills. */
.gap-kpi-card{background:var(--surface-2); border-radius:14px; padding:14px 16px;}
.gap-kpi-nums{font-size:13px; color:var(--ink-2); font-weight:600;}
.gap-kpi-nums .big{font-size:18px; font-weight:800; color:var(--ink); margin-inline:4px;}
.gap-kpi-nums .of{color:var(--ink-muted); font-weight:600;}
.gap-kpi-bar-track{width:100%; height:8px; border-radius:99px; background:var(--border); margin-top:10px; overflow:hidden;}
.gap-kpi-bar-fill{height:100%; border-radius:99px; background:linear-gradient(90deg,var(--accent-hover),var(--accent));}
.gap-kpi-badge{display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:99px; background:var(--warning-wash); color:var(--warning); margin-top:10px;}
.gap-kpi-badge.ok{background:var(--good-wash); color:var(--good);}
.gap-kpi-period{font-size:11px; font-weight:600; color:var(--ink-muted); margin-top:8px;}

/* absence chip row — replaces the old table-in-a-scrollbox (reported as
   "looks broken" — Sept 2026): chips simply wrap onto more lines as the
   list grows, so there is never an internal scrollbar here. */
.att-absence-row{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding-top:16px; border-top:1px solid var(--border);}
.abs-chip-list{display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.abs-chip{display:inline-flex; align-items:center; gap:4px; padding-block:5px; padding-inline-start:12px; padding-inline-end:5px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); font-size:12px; font-weight:600; color:var(--ink-2);}
.abs-chip-x{width:18px; height:18px; border-radius:50%; border:none; background:transparent; color:var(--ink-muted); font-size:14px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; font-family:inherit;}
.abs-chip-x:hover{background:var(--border); color:var(--ink);}
.abs-chip-x .crm-icon{width:11px; height:11px;}
/* Sept 2026 2nd pass — grouped absence chip ("🏖️ חופשה: 10 ימים החודש ▾"),
   one per type instead of one per day (see renderMyAbsencesList). Reuses
   .abs-chip's pill look but as a real <button> (needs its own UA-style
   reset) with normal end-padding — there's no ✕ crowding this one, that
   lives on each date row inside the popover instead. */
.abs-group-wrap{position:relative;}
.abs-chip-group{padding-inline-end:12px; border:1px solid var(--border); cursor:pointer; font-family:inherit;}
.abs-chip-group:hover{background:var(--border);}
.abs-chip-caret{font-size:9px; color:var(--ink-muted); margin-inline-start:2px;}
.abs-group-popover{position:absolute; top:calc(100% + 6px); right:0; z-index:20; min-width:170px; max-height:220px; overflow-y:auto; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 10px 28px -12px rgba(15,23,42,.28); padding:6px;}
.abs-group-row{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 8px; border-radius:7px; font-size:12px; color:var(--ink-2);}
.abs-group-row:hover{background:var(--surface-2);}
/* generic thin section separator, reused wherever a card stacks a few
   loosely-related blocks (first used by the merged attendance/entry board) */
.side-divider{margin-top:14px; padding-top:12px; border-top:1px solid var(--border);}

/* MOCKUP — "נוכחות ודיווחי שעות" top banner, compact pass: unifies the 3
   absence-type chips (previously .abs-chip-group pills with a popover) and
   the gap-report's leftover "לא מדווחות" number into ONE 4-tile row, same
   visual family as .stat-tile elsewhere in the app but denser (smaller
   padding/radius, made for 4-across). The 4th tile (gap) is NOT a button —
   no chevron, no click — it is a status readout only; the other 3 stay
   real buttons (data-abs-group-toggle) so the existing popover/date-list/
   remove-x mechanism keeps working unchanged, just wrapped in the new shape. */
.att-kpi-tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px;}
.att-kpi-tile{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:10px 13px; text-align:start; font-family:inherit; cursor:pointer; transition:background .12s, border-color .12s; position:relative;}
.att-kpi-tile:hover{background:var(--border);}
.att-kpi-tile .lbl{display:flex; align-items:center; gap:4px; font-size:11.5px; font-weight:700; color:var(--ink-muted);}
.att-kpi-tile .lbl .caret{font-size:9px; color:var(--ink-muted);}
.att-kpi-tile .val{font-size:19px; font-weight:800; color:var(--ink); margin-top:4px; font-family:"Heebo";}
.att-kpi-tile.gap{background:var(--warning-wash); border-color:transparent; cursor:default;}
.att-kpi-tile.gap .lbl{color:var(--warning);}
.att-kpi-tile.gap .val{color:var(--warning);}
.att-kpi-tile.gap .val small{font-size:12px; font-weight:700; margin-inline-start:3px;}
@media (max-width:640px){ .att-kpi-tiles{grid-template-columns:repeat(2,1fr);} }

/* MOCKUP — restyled "reported vs attended" progress line: was a "דווח X
   מתוך Y" sentence + status badge (.gap-kpi-badge, removed here per
   request — the same information now lives in the "לא מדווחות" tile
   above), now just the two numbers (muted total, bold actual) + bar. */
/* MOCKUP — Sept 2026 4th pass (per explicit request): was justify-
   content:flex-end (pushed to the LEFT, the far edge of the light content
   panel, away from the dark clock panel). Now flex-start — in this RTL
   layout that's the panel's RIGHT edge, the one touching the dark clock
   panel — so the headline numbers read as "close to" the check-in banner
   instead of sitting a whole card-width away from it. */
.att-progress-nums{display:flex; align-items:baseline; gap:6px; justify-content:flex-start; font-size:13px; color:var(--ink-muted); font-weight:600;}
.att-progress-nums .big{font-size:26px; font-weight:800; color:var(--ink); font-family:"Heebo";}
.att-summary-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:2px;}
.att-clock-today-mini2{margin-top:12px; padding-top:10px; border-top:1px solid rgba(255,255,255,.12); width:100%; display:flex; flex-direction:column; gap:6px; font-size:12px; color:#cbd5e1;}
.att-clock-today-mini2 .row{display:flex; align-items:center; justify-content:space-between;}
.att-clock-today-mini2 b{color:#fff; font-weight:700; display:inline-flex; align-items:center; gap:6px;}
.att-banner-clock-label{display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}

/* ========================= home dashboard (בית) — Sept 2026 =========================
   Landing screen: dark hero banner (same gradient+glow recipe as
   .login-hero/.topbar — one consistent brand surface) with greeting/KPIs/
   punch status, then a pixel-aligned 2×2 grid below (Sept 2026 alignment
   pass): row 1 = weekly chart + smart alert, row 2 = new tasks + recent
   entries — paired by ROW rather than stacked by column, so
   align-items:stretch (the grid default) makes each row's two cards match
   height exactly, the shorter one stretching to the taller one's height.
   Four flat sibling .card children in DOM order (chart, alert, tasks,
   entries) is all that's needed — with only 2 columns defined, the browser
   wraps them into 2 rows on its own. Deliberately reuses the plain
   .card/.card-pad/.card-title/.sub building blocks the rest of the app
   already has rather than inventing a parallel card system. */
.home-hero{display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap;
  background:linear-gradient(160deg,#0f172a 0%,#111c34 55%,#0b1220 100%); color:#fff;
  border-radius:18px; padding:22px 28px; margin-bottom:18px; position:relative; overflow:hidden;}
.home-hero::before{content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 88% 12%, rgba(56,189,248,.16), transparent 55%);}
.home-hero>*{position:relative; z-index:1;}
.home-hero-greet h1{font-family:"Heebo",sans-serif; font-size:22px; font-weight:700; color:#fff; margin:0;}
.home-hero-date{font-size:12.5px; color:#94a3b8; margin-top:4px;}
/* Single headline "X% החודש" metric + glowing progress bar (Sept 2026,
   replacing the old 3-tile .home-hero-kpis row — see homeHeroCenterHtml).
   Text stays white/neutral throughout (per the office's explicit request —
   no extra color palette here); the gradient bar is the only accent. */
.home-hero-center{display:flex; flex-direction:column; align-items:center; flex:1; min-width:280px; max-width:480px;}
.home-hero-center .v{font-size:34px; font-weight:800; font-family:"Heebo",sans-serif; color:#fff; line-height:1;}
.home-hero-center .l{font-size:12px; color:#cbd5e1; font-weight:600; margin-top:3px;}
/* "X / Y ימים/שעות" breakdown under the headline % (Sept 2026 2nd pass) —
   or, with no monthly quota yet, "X ימים/שעות שנצברו" instead (see
   homeHeroCenterHtml). Small and muted: a supporting detail, not a second
   headline number. */
.home-hero-breakdown{font-size:11.5px; color:#94a3b8; font-weight:600; margin-top:4px;}
.home-progress-wrap{position:relative; width:100%; margin-top:14px;}
.home-progress-track{width:100%; height:12px; border-radius:9999px; background:rgba(30,41,59,.9); border:1px solid rgba(51,65,85,.5); overflow:hidden;}
.home-progress-fill{position:relative; height:100%; border-radius:9999px; background:linear-gradient(90deg,#3b82f6,#6366f1,#22d3ee); box-shadow:0 0 12px rgba(59,130,246,.4); overflow:hidden;}
/* slow shimmer sweep across the fill — the only "motion" cue, no static label on the bar itself */
.home-progress-fill::after{content:""; position:absolute; inset:0; width:40%; background:linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation:homeProgShimmer 2.6s ease-in-out infinite;}
@keyframes homeProgShimmer{0%{transform:translateX(-120%);} 100%{transform:translateX(280%);}}
/* hover/focus tooltip ("X% מהתקן החודשי") — neutral dark chip, white text */
.home-progress-tip{
  position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(4px);
  background:#1e293b; color:#f1f5f9; font-size:11px; font-weight:600; white-space:nowrap;
  padding:5px 10px; border-radius:7px; border:1px solid rgba(148,163,184,.3);
  opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease;
}
.home-progress-tip::after{content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color:#1e293b;}
.home-progress-wrap:hover .home-progress-tip, .home-progress-wrap:focus-visible .home-progress-tip{opacity:1; transform:translateX(-50%) translateY(0);}
/* Pacing caption (Sept 2026, per explicit request — see homePacingHtml): a
   plain status line under the bar, deliberately NOT styled like a second %
   — no bar/ring of its own, just a small colored dot + text, so it never
   competes visually with the headline number above it. */
.home-pacing-line{display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; font-weight:600; margin-top:10px;}
.home-pacing-line::before{content:""; width:6px; height:6px; border-radius:50%; flex-shrink:0;}
.home-pacing-line.ok{color:#6ee7b7;}
.home-pacing-line.ok::before{background:#34d399;}
/* Sept 2026 (Quiet UI pass) — text softened from a bright/alarming amber
   (#fcd34d) to a neutral blue-gray, per the office's explicit "לא צהוב
   זרחני" request: the small colored dot (unchanged, still amber) is now the
   ONLY color cue here, so the line reads as a quiet status caption rather
   than a warning. */
.home-pacing-line.behind{color:#a8b3c7;}
.home-pacing-line.behind::before{background:#fbbf24;}
.home-hero-punch{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:150px;}
.home-livecock .hm{color:#fff; font-size:26px;}
.home-livecock .ss{color:#94a3b8;}
.home-punch-btn{display:flex; align-items:center; justify-content:center; gap:7px; padding:9px 20px; border-radius:10px; border:none; font-weight:700; font-size:13px; cursor:pointer; font-family:inherit; white-space:nowrap;}
.home-punch-btn svg{width:14px; height:14px;}
.home-punch-btn[disabled]{opacity:.55; cursor:default;}
.home-punch-btn.start{background:linear-gradient(90deg,#0ea5e9,#6366f1); color:#fff; box-shadow:0 8px 20px -8px rgba(14,165,233,.55);}
.home-punch-btn.end{background:rgba(30,41,59,.92); color:#f1f5f9; font-weight:500; border:1px solid #334155;}
.home-punch-btn.end:hover{background:#334155; border-color:#475569;}
.home-punch-elapsed{display:flex; align-items:center; gap:6px; font-size:11.5px; color:#7dd3fc; font-weight:700;}
@media (max-width:760px){.home-hero{flex-direction:column; align-items:stretch; text-align:center;} .home-hero-center{max-width:none;}}

.home-grid{display:grid; grid-template-columns:1.6fr 1fr; gap:18px; align-items:stretch;}
@media (max-width:980px){.home-grid{grid-template-columns:1fr;}}
/* Every direct .card child stretches to its row's full height (the grid's
   align-items:stretch above) and becomes a column flexbox itself so its OWN
   content can fill that height sensibly — .card-pad grows to fill the card,
   and each widget decides internally whether its content should center in
   the extra space (the alert card, see below) or just stay top-aligned
   (chart/tasks/entries, whose content is what usually DEFINES the row's
   height in the first place). */
.home-grid > .card{height:100%; display:flex; flex-direction:column;}
.home-grid > .card > .card-pad{flex:1; display:flex; flex-direction:column; min-height:0;}

/* unified card header (all 4 cards): title on the right, a small "לכל ה-X
   ←" text link on the left — same structure everywhere so the eye doesn't
   have to re-learn each card's layout. */
.home-card-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; flex-shrink:0;}
.home-card-head .card-title{margin:0;}
.home-link-btn{background:none; border:none; padding:0; margin:0; font-family:inherit; font-size:11.5px; font-weight:600; color:var(--accent); cursor:pointer; white-space:nowrap;}
.home-link-btn:hover{text-decoration:underline;}

/* weekly chart — "test tube" bars (Sept 2026): each bar now sits inside a
   visible rounded track (like a graduated cylinder) instead of floating on
   bare background, with the daily-standard line drawn ON TOP of the fill
   (z-index above it) so it stays a crisp legible mark instead of getting
   visually buried under a tall bar — ported from the approved concept-2
   "Executive Workstation" mockup's own .ew-bar-track/.ew-bar-target. */
.home-chart-row{display:flex; align-items:flex-end; gap:16px; height:110px; padding-inline-start:2px; flex:1;}
.home-bar-col{display:flex; flex-direction:column; align-items:center; gap:8px; flex:1;}
.home-bar-track{position:relative; width:26px; height:110px; display:flex; align-items:flex-end; background:var(--surface-2); border-radius:6px 6px 2px 2px;}
.home-bar-fill{width:100%; border-radius:6px 6px 2px 2px; transition:height .2s;}
.home-bar-target{position:absolute; inset-inline:-4px; height:2px; background:var(--ink); opacity:.55; z-index:2;}
.home-bar-day{font-size:11px; color:var(--ink-muted); font-weight:700;}
.home-bar-day.today{color:var(--accent);}
.home-chart-legend{display:flex; gap:16px; margin-top:14px; font-size:11.5px; color:var(--ink-muted); flex-wrap:wrap; flex-shrink:0;}
.home-chart-legend span{display:inline-flex; align-items:center; gap:5px;}
.home-chart-legend i{width:9px; height:9px; border-radius:2px; display:inline-block;}

/* "משימות חדשות שיוחסו אליי" */
.home-task-list{display:flex; flex-direction:column;}
.home-task-row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 4px; border-bottom:1px solid var(--border); cursor:pointer;}
.home-task-row:last-child{border-bottom:none;}
.home-task-row:hover{background:var(--surface-2);}
.home-task-title{font-size:13px; font-weight:700; color:var(--ink);}
.home-task-client{font-size:11.5px; color:var(--ink-muted); margin-top:1px;}
.home-task-tag{font-size:11px; font-weight:700; padding:4px 11px; border-radius:99px; white-space:nowrap; background:var(--surface-2); color:var(--ink-2);}
.home-task-tag.urgent{background:var(--danger-wash); color:var(--critical);}
.home-task-tag.late{background:var(--danger-wash); color:var(--critical);}
.home-task-tag.progress{background:var(--accent-wash); color:var(--accent);}

/* smart alert card — untouched from the approved design: warm amber
   left-stripe (border-inline-start = the READING-START side, i.e. visually
   the RIGHT edge in this RTL app) + amber bell icon. Its own head keeps the
   bell grouped with the title (not the plain .home-card-head used
   elsewhere) so that pairing stays intact, with the new "לנוכחות ←" link
   simply added alongside it via the same space-between structure. Its
   card-pad centers vertically when the row stretches it taller than its
   own short content needs (see .home-grid > .card > .card-pad above). */
.home-alert-card{border-inline-start:4px solid var(--warning);}
.home-alert-card.ok{border-inline-start-color:var(--good);}
.home-alert-card > .card-pad{justify-content:center;}
.home-alert-head{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; flex-shrink:0;}
.home-alert-head-main{display:flex; align-items:center; gap:8px;}
.home-alert-head svg{width:17px; height:17px; color:var(--warning); flex-shrink:0;}
.home-alert-card.ok .home-alert-head svg{color:var(--good);}
.home-alert-head b{font-size:13px; color:var(--ink);}
.home-alert-msg{font-size:12.5px; color:var(--ink-2); line-height:1.6;}
/* Sept 2026 (Quiet UI pass) — was a solid filled amber button
   (background:var(--warning)); replaced with a bold text link in the brand
   accent color per the office's explicit spec, no background/border, same
   "clean" style already used by .home-link-btn elsewhere on this screen but
   its own class since this one is bold (700) and slightly larger (12.5px)
   as the card's one remaining call-to-action, not a small header nav link. */
.home-alert-link{margin-top:12px; padding:0; border:none; background:none; color:var(--accent); font-weight:700; font-size:12.5px; cursor:pointer; font-family:inherit; align-self:flex-start;}
.home-alert-link:hover{text-decoration:underline;}

/* "הדיווחים האחרונים שלי" — enriched rows (Sept 2026): small date, bold
   client name, muted service type, and a clean rectangular hours tag
   (bg-slate-100-style, not a pill) instead of the old bare number — now
   carrying 5-6 rows so the column reads as rich as the paired tasks list
   beside it. */
.home-entry-list{display:flex; flex-direction:column;}
.home-entry-row{display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid var(--border);}
.home-entry-row:last-child{border-bottom:none;}
.home-entry-date{font-size:10.5px; color:var(--ink-muted); font-family:"Heebo",sans-serif; font-weight:700; width:34px; flex-shrink:0;}
.home-entry-main{flex:1; min-width:0;}
.home-entry-client{font-size:12.5px; font-weight:700; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.home-entry-type{font-size:11px; color:var(--ink-muted); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.home-entry-hours{font-size:11.5px; font-weight:700; color:var(--ink-2); white-space:nowrap; background:var(--surface-2); padding:4px 9px; border-radius:7px; flex-shrink:0;}

.table-wrap{overflow-x:auto; border-radius:14px;}
/* Small 2-column summary tables (e.g. the CRM client drawer's "סיכום שעות"
   tab) sit inside a 440px-wide drawer, far narrower than the app's main
   content tables. The generic table{min-width:560px} rule above is meant
   for those wide multi-column tables and forces this compact table to
   overflow and clip instead of simply fitting — so it's reset here. */
.table-wrap-compact table{min-width:0;}
/* "roomy" full-width variant for a page's one hero table (e.g. "הדיווחים
   שלי" on נוכחות ודיווחי שעות, Sept 2026 horizontal-layout pass) — a bit
   more breathing room than the default dense table, without a new
   typeface. */
.table-wrap-roomy th{padding:14px 18px; font-size:11px;}
.table-wrap-roomy td{padding:14px 18px; font-size:14px;}
table{width:100%; border-collapse:collapse; min-width:560px;}
th{text-align:start; font-size:10.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--ink-muted); font-weight:700; padding:11px 14px; background:var(--surface-2); border-bottom:1px solid var(--border); white-space:nowrap;}
th:first-child{border-start-start-radius:14px;}
th:last-child{border-start-end-radius:14px;}
td{padding:10px 14px; border-bottom:1px solid var(--border); font-size:13.5px; vertical-align:middle;}
tbody tr:hover{background:var(--surface-2);}
tbody tr:last-child td{border-bottom:none;}
td.num,th.num{text-align:start;}
.row-actions{display:flex; gap:6px; justify-content:flex-start;}
.empty-row td{text-align:center; color:var(--ink-muted); padding:26px; font-size:13px;}
tfoot td{border-top:2px solid var(--border-strong); border-bottom:none; font-weight:700;}
/* "סה״כ שעות" summary row on "הדיווחים שלי" (Sept 2026 2nd pass) — the
   generic tfoot rule above already gives every tfoot its bold text + heavy
   top border; this just adds a subtle tint so the row reads as distinct
   from the ordinary rows above it at a glance, not just on close reading. */
.total-row td{background:var(--surface-2);}

.dot{width:9px; height:9px; border-radius:50%; display:inline-block; flex-shrink:0;}
.tagline{display:flex; align-items:center; gap:7px;}

.badge{display:inline-flex; align-items:center; gap:5px; padding:2px 9px; border-radius:99px; font-size:11.5px; font-weight:700;}
/* Sept 2026 (Enterprise Quiet UI, bold-badge pivot per explicit office
   request) — "on"/positive badges (active clients, profitable accounts,
   completed tasks) are now a solid saturated fill instead of a soft wash,
   matching the reference design. "off"/neutral badges deliberately stay
   muted — an inactive/neutral state reading quieter than an active one is
   its own useful signal, not the thing the office asked to change. */
.badge.on{background:var(--good); color:#fff;}
.badge.off{background:var(--surface-2); color:var(--ink-muted); border:1px solid var(--border);}

.confirm-strip{display:flex; align-items:center; gap:8px; background:var(--danger-wash); border:1px solid var(--critical); border-radius:8px; padding:6px 10px;}
.confirm-strip span{font-size:12.5px; font-weight:600;}

.tabs{display:flex; gap:4px; border-bottom:1px solid var(--border); padding:0 22px;}
.tab-btn{padding:13px 6px; border:none; background:none; font-weight:700; font-size:13.5px; color:var(--ink-muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:"Heebo";}
.tab-btn.active{color:var(--accent); border-color:var(--accent);}

/* MOCKUP — segmented pill tabs for "ניהול נתונים" only (scoped to
   .segctrl, does not touch the shared .tabs/.tab-btn used elsewhere in the
   app — the client-board tabs and the "הגדרות שכר" sub-tabs keep their
   current underline style unless/until asked to change too). */

.pill-group{display:inline-flex; background:var(--surface-2); border:1px solid var(--border); border-radius:11px; padding:3px; gap:2px;}
.pill{padding:7px 14px; border-radius:8px; border:none; background:transparent; font-weight:600; font-size:12.5px; color:var(--ink-2); cursor:pointer; transition:background .12s, color .12s;}
.pill.active{background:var(--surface); color:var(--accent); box-shadow:var(--shadow);}
/* the tasks board's "דשבורד מנהלים / אנליטיקה" pill only (scoped via
   .taskdash-view-tabs, not the base .pill used by every other pill-group
   in the app) — used to be visually identical to plain text next to
   "תצוגת טבלה", easy to miss as a clickable tab. Gets its own resting tint
   + icon so it reads as a distinct, clickable feature even before it's
   selected, plus its own hover and a stronger active state (gradient,
   matching the rest of the app's primary-action color) than the plain
   .pill.active treatment. */
.taskdash-view-tabs .pill[data-taskview-tab="dashboard"]{display:inline-flex; align-items:center; gap:6px; color:#0284c7; font-weight:700;}
.taskdash-view-tabs .pill[data-taskview-tab="dashboard"]:hover{background:rgba(2,132,199,.12); color:#0369a1;}
.taskdash-view-tabs .pill[data-taskview-tab="dashboard"].active{background:linear-gradient(135deg,#0ea5e9,#6366f1); color:#fff; box-shadow:0 4px 14px -5px rgba(99,102,241,.55);}
.range-nav{display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.range-label{font-weight:700; font-size:14px; min-width:180px;}
.icon-btn{width:32px; height:32px; border-radius:9px; border:1px solid var(--border-strong); background:var(--surface); cursor:pointer; display:flex; align-items:center; justify-content:center; font-weight:700; box-shadow:var(--shadow);}
.icon-btn:hover{background:var(--surface-2);}

.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
@media (max-width:820px){.stat-grid{grid-template-columns:repeat(2,1fr);}}
/* the monthly report's single KPI row (Sept 2026 UI/UX pass: was two rows,
   4+5 tiles — compacted to one 5-tile row: שעות בפועל/תקן חודשי/שעות לא
   מדווחות/% השלמה/חופשה+מחלה). Deliberately its own grid rather than
   sharing .stat-grid's fixed 4 columns. */
.stat-grid-5{display:grid; grid-template-columns:1.3fr 1.3fr 1fr 1fr 1fr; gap:14px; margin-top:14px;}
@media (max-width:820px){.stat-grid-5{grid-template-columns:repeat(2,1fr);}}
/* Sept 2026: "שעות בפועל"/"תקן חודשי" (tiles 1-2) carry a longer "X · Y ימים"
   value than the others — wider columns above plus a touch smaller/nowrap
   value text here keeps them on one line without affecting any other
   .stat-tile usage on the page (this rule is scoped to .stat-grid-5 only). */
.stat-grid-5 .stat-tile:nth-child(1) .val, .stat-grid-5 .stat-tile:nth-child(2) .val{font-size:21px; white-space:nowrap;}
@media (max-width:820px){.stat-grid-5 .stat-tile:nth-child(1) .val, .stat-grid-5 .stat-tile:nth-child(2) .val{white-space:normal;}}
.stat-tile{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px 18px; box-shadow:var(--shadow);}
.stat-tile .lbl{font-size:11.5px; color:var(--ink-muted); font-weight:600;}
.stat-tile .val{font-size:25px; font-weight:700; margin-top:5px; letter-spacing:-.2px; font-family:"Heebo";}
.stat-tile .val small{font-size:14px; font-weight:600; color:var(--ink-muted);}
/* at-a-glance tone on a KPI tile's number only (Sept 2026) — e.g. "שעות לא
   מדווחות" > 0, or "% השלמה" below target — see statTile()'s tone param. */
.stat-tile.tone-warn .val{color:var(--warning);}
.stat-tile.tone-good .val{color:var(--good);}
.stat-tile.tone-critical .val{color:var(--critical);}
/* Sept 2026 UI/UX pass — generic collapsible card (הגדרת תקן שעות לחודש /
   ההערה שלי לחשבות שכר on נוכחות ושכר): a plain header button that toggles an
   open/closed state kept in `state`, same pattern as the pre-existing
   "how are overtime hours calculated" accordion (.ps-guide-toggle). */
/* Sept 2026 UI/UX pass — compact read-only "תנאי העסקה" indicator line,
   replacing what used to be its own card+stat-grid. */
.terms-strip{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-2); background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:8px 14px; margin-bottom:12px;}
.terms-strip-item b{color:var(--ink); font-weight:700;}
.terms-strip-sep{color:var(--ink-muted);}
.terms-strip-note{color:var(--ink-muted); margin-inline-start:auto; font-size:11.5px;}
/* Sept 2026 UI/UX pass — "⚙️ התאמת עמודות" column-visibility popover on
   the נוכחות ושכר day table, and its little toolbar row above the table. */
.table-toolbar{display:flex; justify-content:flex-end; padding:8px 2px;}
.col-menu-wrap{position:relative;}
/* Sept 2026 (Quiet UI design-system pass) — every elevated popover/menu
   app-wide (this one, .mypick-popover, .holiday-elig-popover,
   .pss-actions-menu, .pss-filter-menu, .crm-col-popover,
   .crm-col-del-popover, .task-status-menu) now shares this exact shadow —
   a touch softer/cooler than the old rgba(20,22,35,.18) — so every popover
   in the app reads as one consistent elevation, not just these listed here. */
.col-menu-popover{position:absolute; inset-inline-end:0; top:calc(100% + 4px); z-index:60; width:220px; background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:10px;}
.col-menu-item{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink-2); padding:6px 4px; cursor:pointer;}
/* Sept 2026 — "שמור את התצוגה שלי": a per-user, permanent save for the
   column-visibility choice above (previously this popover had no save step
   at all — every choice was purely in-memory and reset on the next visit).
   Saved to localStorage keyed by this user's own id (payrollColsStorageKey),
   so it only ever affects what THIS person sees, never other staff. */
.col-menu-footer{display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--border); margin-top:8px; padding-top:8px;}
.col-menu-footer-note{font-size:9.5px; color:var(--ink-muted);}
.col-menu-save-btn{font-size:11.5px; font-weight:700; border:none; border-radius:8px; padding:5px 11px; background:#4f46e5; color:#fff; cursor:pointer; transition:background-color .15s ease, color .15s ease; white-space:nowrap;}
.col-menu-save-btn:hover{background:#4338ca;}
.col-menu-save-btn.saved{background:#ecfdf5; color:#047857; cursor:default;}

/* MOCKUP — "גיליון נוכחות חודשי" Quiet-UI pass, "אופציה 1 - פס מדדים אחוד":
   the old .stat-grid-5 (5 separate elevated tiles, each its own card+shadow)
   becomes ONE continuous strip — same surface, thin dividers between
   metrics instead of gaps+shadows per tile. 7 metrics now (the old combined
   "ימי חופשה / מחלה" tile splits into 3: חופשה/מחלה/מילואים each get their
   own column instead of being squeezed into one string). */
.kpi-strip{display:flex; align-items:stretch; background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); margin-top:14px; overflow-x:auto;}
.kpi-strip-item{flex:1 1 0; min-width:104px; padding:13px 14px; text-align:center; border-inline-start:1px solid var(--border);}
.kpi-strip-item:first-child{border-inline-start:none;}
.kpi-strip-item .lbl{font-size:10.5px; color:var(--ink-muted); font-weight:600; white-space:nowrap;}
.kpi-strip-item .val{font-size:19px; font-weight:800; margin-top:4px; font-family:"Heebo"; letter-spacing:-.2px; font-variant-numeric:tabular-nums;}
.kpi-strip-item .cap{font-size:10px; color:var(--ink-muted); margin-top:2px; white-space:nowrap;}
.kpi-strip-item.tone-warn .val{color:var(--warning);}
.kpi-strip-item.tone-good .val{color:var(--good);}
.kpi-strip-item.tone-critical .val{color:var(--critical);}
@media (max-width:760px){
  .kpi-strip{flex-wrap:wrap;}
  .kpi-strip-item{flex:1 1 33%; border-inline-start:none; border-top:1px solid var(--border);}
  .kpi-strip-item:nth-child(-n+3){border-top:none;}
}

/* MOCKUP — Sept 2026 4th pass (per explicit request, after seeing the
   4-separate-tiles version): the "נוכחות ודיווחי שעות" banner's 4 metrics
   (מילואים/מחלה/חופשה/לא מדווחות) reuse this SAME .kpi-strip family instead
   of their own .att-kpi-tile boxes — one continuous bordered strip with
   thin dividers guarantees genuinely equal-width segments (vs. 4 separate
   shadowed cards, which read as slightly uneven), and keeps the two KPI
   rows in the app visually consistent. .kpi-strip-item-btn resets a native
   <button> so it can fill a .kpi-strip-item cell (for the 3 clickable
   absence segments) without fighting the browser's own button chrome.
   .bg-warn is a stronger variant of the existing .tone-warn (text-only) —
   a full tinted background, for the one segment ("לא מדווחות") that should
   read as a highlighted alert card even inside an otherwise quiet strip. */
.kpi-strip-item-btn{background:none; border:none; margin:0; padding:0; width:100%; display:block; font-family:inherit; cursor:pointer; color:inherit; text-align:inherit;}
.kpi-strip-item.bg-warn{background:var(--warning-wash);}
.kpi-strip-item.bg-warn .lbl{color:var(--warning);}
.kpi-strip-item.bg-warn .val{color:var(--warning);}
.kpi-strip-item .lbl .caret{font-size:9px; margin-inline-start:2px;}
/* .kpi-strip's own base rule sets overflow-x:auto (for the 7-metric payroll
   strip, which can need horizontal scroll on a narrow screen) — but that
   also computes overflow-y to auto and silently clips anything that
   overflows the box, INCLUDING the 3 absence segments' position:absolute
   popovers anchored inside it (via their own .abs-group-wrap). This
   4-metric strip never needs to scroll, so it opts back out of that
   clipping entirely. Instead, round just the .bg-warn tile's own outer
   corner explicitly so its background doesn't visibly poke past the
   strip's rounded edge. */
.kpi-strip.att-kpi-strip{overflow:visible;}
.kpi-strip-item.bg-warn:last-child{border-top-left-radius:15px; border-bottom-left-radius:15px;}
.kpi-strip-item.bg-warn:first-child{border-top-right-radius:15px; border-bottom-right-radius:15px;}
/* The whole .att-banner (both columns) has its own overflow:hidden, for the
   two-column grid's shared rounded corners — pre-existing, unrelated to
   this mockup. Now that the banner is shorter (compact pass), a popover
   opening DOWNWARD from this bottom KPI row would overflow past the
   banner's own bottom edge and get silently clipped by that ancestor. So
   inside this strip specifically, the popover opens UPWARD instead — there
   is always room above it here, back toward the header row. */
.kpi-strip-item .abs-group-popover{top:auto; bottom:calc(100% + 6px);}

/* MOCKUP — the 3 heavy accordion boxes ("⚙️ הגדרת תקן שעות", "📝 ההערה שלי
   לשכר", "❓ איך מחושבות השעות הנוספות") collapse into one quiet row of
   inline text links. Clicking one opens a POPOVER (position:absolute,
   anchored to .pr-info-links-wrap) instead of the old in-flow accordion
   body, so the table underneath never gets pushed down/up as these are
   opened and closed. Same underlying state flags as before
   (payrollQuotaCardOpen/payrollNoteCardOpen/attOvertimeInfoOpen) — only the
   visual container changed, not the toggle wiring. */
.pr-info-links-wrap{position:relative; margin-top:12px;}
.pr-info-links{display:flex; align-items:center; gap:2px; flex-wrap:wrap; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:5px;}
.pr-info-link{background:none; border:none; cursor:pointer; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink-2); padding:7px 12px; border-radius:8px; display:inline-flex; align-items:center; gap:5px; transition:background-color .12s, color .12s;}
.pr-info-link:hover{background:var(--border);}
.pr-info-link[aria-expanded="true"]{background:var(--accent-wash); color:var(--accent);}
.pr-info-link .pr-info-link-dot{width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block;}
.pr-info-popover{position:absolute; top:calc(100% + 6px); inset-inline-start:0; inset-inline-end:0; z-index:30; background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.22); padding:16px 18px; max-height:min(70vh,520px); overflow-y:auto;}
.pr-info-popover-section+.pr-info-popover-section{margin-top:14px; padding-top:14px; border-top:1px solid var(--border);}
.pr-info-popover-title{font-weight:700; font-size:13.5px; color:var(--ink); margin-bottom:8px;}
.pr-info-popover-section{font-size:12.5px; color:var(--ink-2); line-height:1.7;}
.pr-info-popover-section p{margin:0 0 8px;}
.pr-info-popover-section p:last-child{margin-bottom:0;}

/* MOCKUP — export buttons (Excel/PDF/print), grouped into one compact
   segmented cluster near the date/employee picker instead of 3 loose
   btn-sm buttons floating on the right. */
.pr-export-group{display:inline-flex; align-items:stretch; border:1px solid var(--border); border-radius:10px; overflow:hidden; margin-inline-start:auto;} /* v106: export cluster pinned to the far (left, in RTL) end of the filter row */
.pr-export-group .btn{border:none; border-radius:0; box-shadow:none; background:var(--surface);}
.pr-export-group .btn+.btn{border-inline-start:1px solid var(--border);}
.pr-export-group .btn:hover{background:var(--surface-2);}

/* Sept 2026 — shared month/year quick-pick (monthYearPickerHtml), reused by
   "גיליון נוכחות חודשי" and "מרכז בקרת שכר"'s month-nav toolbars. Same
   elevation/shadow language as .col-menu-popover above, so the app's small
   popovers all read as one family. */
.mypick-wrap{position:relative; display:flex; align-items:center; gap:10px;}
.mypick-trigger{cursor:pointer; background:var(--surface); border:1px solid var(--border); border-radius:9px; transition:border-color .15s ease, background-color .15s ease;}
.mypick-trigger:hover{border-color:var(--border-strong); background:var(--surface-2);}
.mypick-popover{position:absolute; top:calc(100% + 6px); right:50%; transform:translateX(50%); z-index:60; width:264px; background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:12px;}
.mypick-year-select{width:100%; font-size:13px; font-family:inherit; padding:7px 9px; border-radius:8px; border:1px solid var(--pss-input-border,var(--border)); background:var(--pss-input-bg,var(--surface)); color:var(--ink); margin-bottom:10px;}
.mypick-month-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:6px;}
.mypick-month-btn{font-size:12px; font-weight:600; padding:7px 4px; border-radius:8px; border:1px solid transparent; background:var(--surface-2); color:var(--ink-2); cursor:pointer; transition:background-color .15s ease, color .15s ease;}
.mypick-month-btn:hover{background:rgba(79,70,229,.1); color:#4338ca;}
.mypick-month-btn.sel{background:#4f46e5; color:#fff;}
/* Sept 2026 — holiday-pay eligibility badge/popover on the office board's
   existing "ימי חג לתשלום" tile (pssPanelHtml). Popover opens below-right of
   the whole field, same elevation/shadow language as .col-menu-popover
   above. Sept 2026 (final polish pass) — the badge used to float as an
   absolutely-positioned pill over the field's top-right corner; now sits in
   normal flow directly below the field instead (see .pss-holiday-block),
   per the office's "אחד מעל השני" request — a plain small pill, no overlay. */
.holiday-elig-badge{background:var(--warning-wash); color:var(--warning); border:1px solid var(--warning); border-radius:99px; padding:5px 11px; font-size:11px; font-weight:700; cursor:pointer; white-space:nowrap;}
/* Final polish pass (Sept 2026) — "זכאי למחלה מיום 1" badge: a purely
   informational pill (not a button — nothing to click/toggle here), shown
   next to the sick-days chip only when the employee both has sick_from_day1
   eligibility AND has actually used sick days this month, so it doesn't add
   noise to the common case. Uses accent-wash/accent (not warning-wash) to
   read as a calm info tag rather than an alert, distinct from the amber
   sick-days chip and the amber holiday badge beside it. */
/* Sept 2026 UI fix (v2, real portal) — a CSS-only anchor (position:absolute
   under the badge) kept getting clipped/covered no matter which direction
   it opened, because it stayed INSIDE .pss-panel's own layout — anything
   else in that same card (e.g. the "הערות לשכר" row right below) could
   still end up overlapping it. Same mechanism as #crm-col-popover/
   #task-status-menu (see their own comments): position:fixed escapes
   .pss-panel's overflow:hidden entirely (a plain overflow:hidden ancestor
   does NOT clip a position:fixed descendant), and its exact top/left is
   computed in JS from the badge's actual on-screen position — see the
   data-holiday-elig-toggle wiring in wirePayrollSummaryRows — instead of
   "anchored under the badge" via CSS. Width is clamped in both CSS and
   that JS so it never overflows a narrow/mobile viewport either. */
.holiday-elig-popover{position:fixed; z-index:250; width:min(260px,calc(100vw - 16px)); background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:12px;}
.holiday-elig-help{font-size:11px; color:var(--ink-muted); margin-bottom:8px; line-height:1.5;}
.holiday-elig-row{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-2); padding:5px 2px; cursor:pointer;}
.holiday-elig-actions{display:flex; justify-content:flex-end; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--border);}
/* Secondary overtime-split strip (100%/125%/150%) under the main 8-tile
   quota-vs-actual grid on "נוכחות ושכר" — deliberately smaller/quieter than
   .stat-tile so the breakdown reads as a detail of "שעות בפועל" above it,
   not a fourth row of equally-weighted headline numbers. */
.stat-strip{display:flex; gap:10px; flex-wrap:wrap;}
.stat-strip-tile{flex:1; min-width:120px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:9px 14px; text-align:center;}
.stat-strip-tile .lbl{font-size:10.5px; color:var(--ink-muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em;}
.stat-strip-tile .val{font-size:16px; font-weight:700; font-family:"Heebo",sans-serif; color:var(--ink); margin-top:3px;}

.charts-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:860px){.charts-row{grid-template-columns:1fr;}}
.chart-legend{display:flex; flex-wrap:wrap; gap:10px 16px; margin-bottom:12px;}
.legend-item{display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--ink-2);}
.bar-row{display:grid; grid-template-columns:118px 1fr 60px; align-items:center; gap:10px; margin-bottom:9px;}
.bar-row .lbl{font-size:12.5px; color:var(--ink-2); text-align:start; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.bar-track{position:relative; height:14px; background:var(--surface-2); border-radius:5px; overflow:hidden;}
.bar-fill{position:absolute; inset-inline-start:0; top:0; bottom:0; border-radius:5px;}
.bar-row .val{font-size:12px; font-weight:700;}
.chart-empty{color:var(--ink-muted); font-size:13px; padding:20px 4px;}

.toast-wrap{position:fixed; bottom:18px; inset-inline-end:18px; z-index:80; display:flex; flex-direction:column; gap:8px; max-width:320px;}
.toast{padding:11px 15px; border-radius:10px; font-size:13px; font-weight:600; box-shadow:var(--shadow); border:1px solid var(--border); background:var(--surface); color:var(--ink);}
.toast.ok{border-color:var(--good); color:var(--good);}
.toast.err{border-color:var(--critical); color:var(--critical);}

.client-search{position:relative; width:100%;}
.client-search-list{position:absolute; top:calc(100% + 4px); inset-inline-start:0; inset-inline-end:0; max-height:260px; overflow-y:auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:8px; box-shadow:var(--shadow); z-index:40;}
.client-search-item{padding:8px 11px; font-size:13.5px; cursor:pointer;}
.client-search-item:hover,.client-search-item.active{background:var(--surface-2);}
.client-search-empty{padding:10px 11px; font-size:12.5px; color:var(--ink-muted);}

.login-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:
  radial-gradient(circle at 18% 15%, var(--accent-wash), transparent 55%), var(--paper);}
/* two-panel signup/login shell: a navy "hero" story panel (wordmark,
   headline, founders badge, 4 benefits) beside the actual, functional
   login card. Panel order follows source order — hero first so it reads
   first in RTL — and the hero drops out entirely below 860px, leaving
   just the login card, which is the one part that must always work. */
.login-shell{width:100%; max-width:980px; display:flex; align-items:stretch; border-radius:20px; overflow:hidden; box-shadow:var(--shadow); background:var(--surface);}
.login-hero{flex:1 1 54%; min-width:0; position:relative; color:#fff; padding:46px 42px;
  background:linear-gradient(160deg,#0f172a 0%,#111c34 55%,#0b1220 100%);
  display:flex; flex-direction:column; justify-content:center;}
.login-hero::before{content:""; position:absolute; inset:0; pointer-events:none;
  /* toned down from a bright cyan glow (.24 alpha) to a soft steel-blue one
     (.14 alpha) — same "enterprise, subdued" pass as the rest of the panel. */
  background:radial-gradient(circle at 88% 8%, rgba(56,189,248,.14), transparent 55%);}
.login-hero-inner{position:relative; z-index:1;}
.login-hero-mark{margin-bottom:30px;}
.login-hero-mark-row{display:flex; align-items:center; gap:10px;}
.login-hero-wordmark{font-family:"Heebo",sans-serif; font-size:36px; direction:ltr; unicode-bidi:isolate;}
/* fixed dark surface regardless of app theme (see .login-hero's own
   hardcoded gradient background) — "Next" white, "Up" + its chevrons
   (currentColor) sky-400, overriding the theme-adaptive .wm-next/.wm-up
   default which would otherwise go dark-on-dark here in light theme. */
.login-hero-wordmark .wm-next{color:#fff;}
.login-hero-wordmark .wm-up{color:#38bdf8;}
.login-hero-tagline{font-size:12px; font-weight:400; color:#94a3b8; margin-top:6px;}
.login-hero h2{font-family:"Heebo",sans-serif; font-size:25px; line-height:1.5; font-weight:700; margin:0 0 18px; max-width:430px;}
/* Login-page-only signature accent (approved "direction 3" mockup): a
   sky→indigo gradient applied ONLY to the headline's key phrase, the
   "Premium" badge and the Google CTA button (#btn-google-login /
   #btn-close-terms below) — everything else on the login screen keeps its
   existing colors. Scoped by class/ID rather than touching --accent or
   .btn-primary, so none of this leaks into the rest of the app. */
.login-hero-badge{display:inline-flex; align-items:center; gap:6px; background:rgba(8,47,73,.4); border:1px solid rgba(14,165,233,.3); color:#7dd3fc; font-size:12.5px; font-weight:600; padding:7px 13px; border-radius:999px; margin-bottom:32px; width:fit-content; max-width:100%;}
.login-benefits{display:flex; flex-direction:column; gap:17px;}
.login-benefit{display:flex; align-items:flex-start; gap:12px;}
.login-benefit-ic{width:34px; height:34px; border-radius:10px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#38bdf8;}
.login-benefit-ic svg{width:17px; height:17px;}
/* flex (not block) so a title that carries the "Premium" badge lays the
   badge out INLINE next to the text with its own gap — previously the badge
   was squeezed against the heading with only a 6px start-margin and, on
   narrower widths, visually sat on top of/crossed through the text instead
   of living cleanly in the title row. */
.login-benefit b{display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; color:#fff; margin-bottom:2px; line-height:1.3;}
/* Premium badge — muted "enterprise" pill (sky-950/40 fill, sky-500/30
   border, sky-300 text) rather than the old glowing solid cyan-gradient
   chip, per the toned-down brand pass. */
.login-benefit-premium{display:inline-flex; align-items:center; flex-shrink:0; font-size:11.5px; font-weight:600; letter-spacing:.02em; color:#7dd3fc; background:rgba(8,47,73,.4); border:1px solid rgba(14,165,233,.3); padding:3px 10px; border-radius:999px; direction:ltr; unicode-bidi:isolate; white-space:nowrap;}
/* This class is ALSO reused outside the login screen (the "סיכום שכר
   משרדי" view-head badge), so the direction-3 gradient treatment is
   applied only when it's inside .login-hero, not to the base rule above —
   keeps the payroll-summary badge exactly as it was. */
.login-hero .login-benefit-premium{font-weight:700; color:#fff; background:linear-gradient(90deg,#0ea5e9,#6366f1); border-color:transparent;}
.login-benefit span{display:block; font-size:12.5px; color:#a8b3c7; line-height:1.5;}
.login-card{flex:1 1 46%; min-width:0; width:auto; max-width:420px; background:var(--surface); padding:46px 40px; display:flex; flex-direction:column; justify-content:center;}
.login-card h1{font-size:36px; direction:ltr; unicode-bidi:isolate; margin-bottom:10px;}
.login-card p.sub{color:#94a3b8; font-weight:400; font-size:12px; margin:2px 0 22px;}
.login-form{display:flex; flex-direction:column; gap:13px;}
.login-error{background:rgba(194,46,46,.1); color:var(--critical); border:1px solid var(--critical); border-radius:8px; padding:9px 12px; font-size:12.5px; font-weight:600;}
.login-tos{margin-top:14px; font-size:11.5px; color:var(--ink-muted); text-align:center; line-height:1.6;}
.login-tos button{background:none; border:none; padding:0; margin:0; color:var(--accent); text-decoration:underline; cursor:pointer; font:inherit;}
/* Google CTA (#btn-google-login) + the terms-modal close button reached
   only from this same screen (#btn-close-terms) — both are unique IDs that
   exist nowhere else in the app, so this is safe to scope by ID instead of
   .btn-primary (which is used everywhere and must keep the plain --accent
   purple outside the login screen). */
#btn-google-login, #btn-close-terms{
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 100%);
  border-color:transparent;
  box-shadow:0 8px 20px -6px rgba(99,102,241,.45);
}
#btn-google-login:hover, #btn-close-terms:hover{
  background:linear-gradient(135deg,#0284c7 0%,#4f46e5 100%);
}
@media (max-width:860px){
  .login-hero{display:none;}
  .login-shell{max-width:420px;}
  .login-card{max-width:none; padding:36px 30px;}
}
/* terms-of-service modal content (renderTermsModal) */

/* Sept 2026 — full legal documents (תנאי שימוש המלאים / מדיניות פרטיות),
   reached from the nav-rail footer (see .nav-rail-footer below). A
   dedicated scrollable modal shell — .modal-box-lg/.tos-section above were
   sized for the short 3-clause login consent, not a full multi-section
   document — with a sticky header (title + prominent ✕) and its own footer
   action row, so the close control never scrolls out of view. */
.modal-box-legal{max-width:720px; max-height:86vh; display:flex; flex-direction:column; padding:0; overflow:hidden;}
.modal-legal-head{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:20px 24px; border-bottom:1px solid var(--border); flex:none;}
.modal-legal-head h3{margin:0; font-size:16.5px;}
.modal-legal-head .sub{margin:3px 0 0; font-size:12px; color:var(--ink-muted);}
.modal-legal-close-x{background:var(--surface-2); border:1px solid var(--border); cursor:pointer; width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--ink-2); font-size:17px; line-height:1; flex:none; transition:background .15s, color .15s;}
.modal-legal-close-x:hover{background:var(--danger-wash); color:var(--critical);}
.modal-legal-body{overflow-y:auto; padding:20px 24px; flex:1 1 auto;}
.modal-legal-foot{display:flex; justify-content:flex-end; gap:10px; padding:14px 24px; border-top:1px solid var(--border); flex:none;}
.legal-doc h1{font-size:18px; font-weight:800; margin:0 0 12px; font-family:"Heebo",sans-serif; color:var(--ink);}
.legal-doc .legal-sub{font-size:13px; color:var(--ink-2); line-height:1.7; margin:4px 0 4px; padding-inline-start:14px;}
.legal-doc .legal-intro{font-size:13px; color:var(--ink-2); line-height:1.7; margin:0 0 12px;}
.legal-doc .legal-section{margin:20px 0; padding-top:16px; border-top:1px solid var(--border);}
.legal-doc .legal-section:first-of-type{margin-top:18px; padding-top:0; border-top:none;}
.legal-doc h2{font-size:14.5px; font-weight:700; font-family:"Heebo",sans-serif; color:var(--ink); margin:0 0 10px;}
.legal-doc h3{font-size:13px; font-weight:700; font-family:"Heebo",sans-serif; color:var(--ink); margin:12px 0 4px;}
.legal-doc h3:first-child{margin-top:0;}
.legal-doc p{font-size:12.5px; color:var(--ink-2); line-height:1.7; margin:0 0 8px;}
.legal-doc ul{margin:6px 0 10px; padding-inline-start:20px;}
.legal-doc li{font-size:12.5px; color:var(--ink-2); line-height:1.65; margin-bottom:6px;}
.legal-doc li:last-child{margin-bottom:0;}
.legal-doc li b, .legal-doc p b{color:var(--ink); font-weight:700;}

/* Sept 2026 (bold-nav pivot) — legal-doc links' new home: a slim centered
   strip under the page content, now that the vertical .nav-rail (which used
   to pin them at its own bottom) is gone. */
.app-footer{display:flex; align-items:center; justify-content:center; gap:18px; padding:14px 24px 22px;}
.app-footer button{background:none; border:none; cursor:pointer; padding:4px 6px; font-size:11.5px; font-weight:600; color:var(--ink-muted); font-family:inherit; border-radius:6px; transition:background .15s, color .15s;}
.app-footer button:hover{background:var(--surface-2); color:var(--ink);}

.center-note{display:flex; align-items:center; justify-content:center; min-height:60vh; color:var(--ink-muted); font-size:14px; text-align:center; padding:20px;}
.form-actions{display:flex; gap:8px; margin-top:2px;}
.hours-preview{background:var(--accent-wash); color:var(--accent); border-radius:9px; padding:10px 12px; font-weight:700; font-size:14px; display:flex; justify-content:space-between; align-items:center;}
.inline-edit-row input,.inline-edit-row select{padding:6px 8px; font-size:13px;}
/* the shorthand above resets padding-left to 8px on the select too, which is
   less than the 32px the global select{} rule reserves for the arrow — so
   inline-edit selects (e.g. attendance-type editing) need it restored here,
   without touching the plain <input>s in the same row. */
.inline-edit-row select{padding-left:32px;}

.btn-lg{padding:14px 22px; font-size:15px; border-radius:11px;}
.punch-buttons{display:flex; gap:10px; margin-top:4px;}
.punch-buttons .btn{flex:1;}
.punch-status{font-weight:700; font-size:13.5px; padding:8px 12px; border-radius:8px; background:var(--surface-2); color:var(--ink-2); margin-bottom:14px; text-align:center;}
.punch-status.in{background:var(--accent-wash); color:var(--accent);}
.att-gate-note{font-size:12px; font-weight:600; margin-top:4px;}
.att-gate-note.ok{color:var(--good);}
.att-gate-note.blocked{color:var(--critical);}
.att-gate-note.checking{color:var(--ink-muted);}

/* ---------- payroll: quota card, completion ring, empty-hours column ---------- */
.quota-field-row{display:flex; gap:14px; flex-wrap:wrap;}
.quota-field{display:flex; flex-direction:column; gap:6px; min-width:140px; max-width:170px;}
.quota-field label{font-size:11.5px; font-weight:700; color:var(--ink-2);}
.quota-chk{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-2); font-weight:600; margin-top:12px;}
.locked-badge{display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:99px; font-size:11px; font-weight:700; background:var(--surface-2); color:var(--ink-muted); border:1px solid var(--border);}
.ring-wrap{display:flex; align-items:center; gap:16px;}
.ring-chart{position:relative; width:88px; height:88px; flex-shrink:0;}
.ring-chart svg{transform:rotate(-90deg);}
.ring-pct{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:"Heebo"; font-weight:700; font-size:17px;}
.quota-lines{display:flex; flex-direction:column; gap:6px; font-size:12.5px;}
.quota-lines .l{display:flex; justify-content:space-between; gap:16px; min-width:190px;}
.quota-lines .l span:first-child{color:var(--ink-muted); font-weight:600;}
.quota-lines .l span:last-child{font-weight:700;}
td.gap-cell{font-weight:400;}
/* Sept 2026 UI/UX pass, revised same month: a missing-report day no longer
   tints its whole row amber, and (per explicit follow-up request) no longer
   jumps the status column to a separate badge either — only this one
   cell's own number turns amber/bold when the שעות לא מדווחות column is
   switched on. Keeps a clean white row and a stable status column for
   every ordinary workday, gap or not; the gap column itself is the only
   place this signal lives now. */
td.gap-cell.gap-cell-warn{color:var(--warning); font-weight:700;}
/* Sept 2026 labor-law update: rest-day/holiday row styling, pattern-aware
   (see isRestDay/isHoliday in computeMonthlyPayroll — a six_day employee's
   Friday is a normal row, a five_day employee's Friday is shaded like שבת).
   Sept 2026 "clean table" redesign (per explicit request, mockups shown
   first): the earlier version fought visually with the zebra striping on
   ordinary rows (both landed on similar grey/slate tones). Zebra is gone
   now (see .payroll-table-wrap tbody tr below — every ordinary row is
   plain white), so a rest/holiday row only needs a very quiet, unmistakably
   different wash — no colored side-bar, no inset borders — plus muted
   date/day text, to read clearly as "not a workday" at a glance. */
/* Sept 2026 — strengthened per explicit follow-up ("אולי נבליט קצת יותר
   ימי מנוחה"): the first pass (rgba(248,250,252,.7)) read as almost the
   same white as an ordinary row. Chose "אופציה A" out of 4 mockups shown —
   a stronger, still-monochrome grey wash (no new color, no side bar) with
   bold(er) date/day text, so a rest day is unmistakable at a glance without
   reintroducing the zebra-vs-rest-day clash this redesign removed. */
tr.rest-day-row{background:#eef1f5;}
tr.rest-day-row:hover{background:#e4e9ef;}
td.rest-day-muted, tr.rest-day-row td:first-child, tr.rest-day-row td:nth-child(2){color:#64748b; font-weight:600;}
/* Sept 2026 — status pills replacing the old generic on/off ellipse badge
   on the day table's "סטטוס" column (per explicit request): each kind of
   day gets its own soft, semi-transparent color instead of one undifferen-
   tiated grey/indigo pill, so עבודה/מנוחה/מחלה/חופשה/מילואים/דורש-תיקון are
   each recognizable by color alone. Scoped to .payroll-table-wrap only —
   the generic .badge class elsewhere in the app is untouched. */
.payroll-table-wrap .pr-status-pill{display:inline-flex; align-items:center; padding:2px 10px; border-radius:99px; font-size:11px; font-weight:600; white-space:nowrap;}
.payroll-table-wrap .pr-pill-work{background:#eff6ff; color:#1d4ed8;}
.payroll-table-wrap .pr-pill-rest{background:#f1f5f9; color:#475569;}
.payroll-table-wrap .pr-pill-sick{background:#fff7ed; color:#c2410c;}
.payroll-table-wrap .pr-pill-vac{background:#ecfdf5; color:#047857;}
.payroll-table-wrap .pr-pill-reserve{background:#f7fee7; color:#3f6212;}
.payroll-table-wrap .pr-pill-issue{background:#fef2f2; color:#b91c1c;}
.ot-credit-tag{display:inline-block; font-size:11px; font-weight:700; color:var(--good); background:color-mix(in srgb, var(--good) 14%, transparent); border-radius:6px; padding:1px 6px; margin-inline-start:4px; white-space:nowrap;}
.chip-toggle-btn{display:inline-block; margin-inline-start:6px; font-size:11px; font-weight:600; border:1px solid var(--border,#e2e8f0); border-radius:999px; padding:2px 9px; background:transparent; color:var(--ink-muted); cursor:pointer;}
.chip-toggle-btn.on{border-color:var(--warning); color:var(--warning); background:color-mix(in srgb, var(--warning) 12%, transparent);}
/* Sept 2026 UI/UX pass — table numbers on the נוכחות ושכר day table use a
   monospace, tabular-numeral font in a deep neutral, so figures line up
   in a column instead of each digit's own proportional width (IBM Plex
   Mono is already loaded for .stat-strip-tile .val above). */
.payroll-table-wrap td.num{font-family:"Heebo", sans-serif; font-variant-numeric:tabular-nums; color:#334155;}
/* Sept 2026 "clean table" redesign (per explicit request, replacing the
   earlier dark-header/zebra-striped version — mockups shown first): a
   quiet, flat SaaS look — no zebra at all (every ordinary row is plain
   white; the app-wide base `td{border-bottom:1px solid var(--border);}`
   rule already gives the thin hairline separator between rows), and a
   light, elegant header instead of the previous dark navy one. Scoped
   strictly to .payroll-table-wrap so no other table in the app is
   affected. */
.payroll-table-wrap thead th{
  background:#f8fafc; color:#475569; font-family:"Heebo"; font-weight:500;
  font-size:10.5px; letter-spacing:.04em; position:sticky; top:0; z-index:2;
  border-bottom:1px solid #e2e8f0;
}
.payroll-table-wrap tbody td{padding:11px 14px;}
.payroll-table-wrap tbody tr{background:#fff;}
.payroll-table-wrap tbody tr:hover:not(.rest-day-row){background:#f8fafc;}
/* Sept 2026 fix: ".payroll-table-wrap tbody tr" above has higher CSS
   specificity (0,1,2) than the plain "tr.rest-day-row" rule further up
   (0,1,1), so it was silently winning the cascade and painting every rest-
   day row white regardless — the emphasis was in the code but never
   actually visible on screen. Re-declaring it here, scoped the same way, at
   least matches that specificity so the rest-day background finally wins. */
.payroll-table-wrap tbody tr.rest-day-row{background:#eef1f5;}
.payroll-table-wrap tbody tr.rest-day-row:hover{background:#e4e9ef;}
/* Sept 2026 — footer totals row (סה״כ תקן/סה״כ נוכחות), same table. */
.payroll-table-wrap tfoot td{padding:10px 14px; font-weight:700; font-family:"Heebo"; font-size:11.5px; border-top:2px solid var(--border-strong); background:var(--surface-2);}
.payroll-table-wrap tfoot td.num{font-family:"Heebo", sans-serif; font-variant-numeric:tabular-nums;}
.payroll-table-wrap tfoot .sub{font-weight:600; font-size:9.5px;}
.print-hint{display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--ink-muted); background:var(--surface-2); border:1px dashed var(--border-strong); padding:8px 12px; border-radius:10px; margin-top:14px;}
.print-header{display:none;}
.pr-print-sum{display:none;}

/* ---------- office payroll summary: three-row card per employee ----------
   Row 1 = job settings & pay components, row 2 = standard-vs-actual
   attendance, row 3 = eligibility/overtime/absences/notes. Deliberately
   spacious rather than squeezed onto one line: NOTHING here ever scrolls
   or gets clipped — every row simply wraps onto an extra line if the card
   is ever too narrow to fit everything, which is why no row sets
   overflow-x or flex-wrap:nowrap anywhere below. */
/* ===================================================================
   סיכום שכר משרדי — REDESIGN (Sept 2026): list + detail-panel layout,
   replacing the old stacked-card list (.ps-card and friends — since
   removed as confirmed-dead CSS; .ps-input survives on its own, still
   used by the profitability screen).

   Status system: exactly 3 colors, driven by CSS custom properties set
   once on a `.pss-row`/`.pss-panel` via `.st-ok`/`.st-warn`/`.st-issue`,
   then reused by the avatar ring, the panel's own top accent line, and
   (Sept 2026 UI fix, see .pss-row-status below) a small status badge.
   Selection (.pss-row.sel) is now deliberately its OWN thing, independent
   of --st/--st-soft — see that rule's own comment for why.
     ok    = תקין (no override, no attendance data issue) — --accent
     warn  = נערך ידנית (an admin manually overrode a computed field)
     issue = דורש בדיקה (an unresolved attendance data problem this
             month — see psRowStatus()) — needs a look before the
             numbers here are treated as final
   =================================================================== */
.st-ok{--st:var(--accent); --st-soft:var(--accent-wash);}
.st-warn{--st:var(--warning); --st-soft:var(--warning-wash);}
.st-issue{--st:var(--issue); --st-soft:var(--issue-wash);}
/* Sept 2026 (6th fix pass, "ניהול לפי חריגות" / exception-only) — replaced
   the earlier tiered approach above (which still showed a "תקין" pill for
   every clean row/panel, just recolored). The office's explicit correction:
   a badge — anywhere, row or panel — is only ever worth showing for an
   EXCEPTION (issue/warn), or once a manager has actually approved. A clean,
   unreviewed employee shows no badge at all — nothing to scan past. Priority
   is approved > issue > warn > none: once a manager has approved, that's
   the only fact worth surfacing (an issue/warn flag underneath no longer
   matters — see psRowStatus() below for the mechanical issue>warn ordering
   of the underlying data-quality axis, which stays as-is; isApproved is
   folded in ABOVE it only at the point each badge is rendered, in
   pssRowHtml/pssPanelHtml, never inside psRowStatus itself since --st/the
   avatar ring/accent bar still need the real issue/warn/ok tier
   independent of review state).
   PANEL header specifically: the "✓ נבדק ואושר" approve button already
   shows the approved state right next to .pss-badge, so showing "אושר"
   there too would be redundant — .pss-badge is hidden entirely once
   approved (see pssPanelHtml). It only ever appears now for an issue/warn
   exception; see the .pss-badge.is-issue/.is-warn rules further down.
   LIST row: no approve button sits next to .pss-row-status there, so it's
   the one place "אושר" (plain text, no checkmark — the office asked to
   drop the icon, "בירוק זה מספיק לגמרי") is worth showing — see
   .pss-row-status.is-approved below. */

/* Sept 2026 (2nd redesign pass) — trimmed from 5 tiles to 3 per the office's
   explicit request ("עמוס מדי"): employees-in-report, total actual hours,
   and review/approval status (with its mini progress bar) — see
   pssKpisHtml(). "השלמת תקן ממוצעת" and "דורשים תשומת לב" were dropped from
   this strip; the latter is still one click away as the existing "דורש
   תשומת לב" quick-filter chip just below, so no information is actually
   lost, only decluttered. Slightly bigger/bolder numbers now that there's
   more room per tile (an explicit ask in the 2nd brief). */
/* Sept 2026 (final polish pass) — gap/padding tightened a notch per the
   office's "צמצם את המרווחים בין הקוביות" request. */
.pss-kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:12px;}
.pss-kpi{background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 16px;}
/* Sept 2026 (fix pass right after the 2nd redesign shipped) — the office
   compared the live screen against the published design mockup and felt
   the KPI numbers read noticeably thinner/less bold than the mockup's,
   even at the same 800 weight: "IBM Plex Mono" (a monospace face, used for
   tabular alignment elsewhere in the app) just doesn't carry the same
   visual weight as "Rubik" (the app's own display/brand face, and what the
   mockup actually used) at equal font-weight. Switched to match — .pss-kpi
   is only ever used by this one 3-tile strip, so this doesn't touch the
   monospace convention used anywhere else. */
.pss-kpi .v{font-size:22px; font-weight:800; color:var(--ink); font-family:"Heebo",sans-serif; font-variant-numeric:tabular-nums;}
.pss-kpi .l{font-size:11px; color:var(--ink-muted); margin-top:3px;}
.pss-kpi.warn .v{color:var(--issue);}
@media (max-width:720px){ .pss-kpis{grid-template-columns:1fr;} }
/* Sept 2026 (final polish pass) — Heebo first landed scoped to just this
   screen (headings, KPI numbers, panel name, metric inputs, breakdown
   stats). The office then confirmed they wanted the same swap made
   app-wide — see the follow-up sweep that replaced every remaining
   font-family:"Rubik"/"IBM Plex Mono" declaration across the whole app
   (h1/h2/h3/.brand, .num, .card-title, the CRM/tasks/home-dashboard
   screens, the login page, the payroll PDF/Excel export template, etc.)
   with "Heebo" — so this screen and the rest of the app now share one
   consistent typeface everywhere. */
.pss-kpi-row{display:flex; align-items:center; gap:12px;}
.pss-kpi-icon{width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0;}
.pss-kpi-icon.blue{background:var(--accent-wash); color:var(--accent);}
.pss-kpi-icon.good{background:var(--good-wash); color:var(--good);}
.pss-kpi-icon.amber{background:var(--warning-wash); color:var(--warning);}
.pss-kpi-body{min-width:0; flex:1;}

/* Mockup round 3 (Sept 2026, "premium SaaS reference" pass) — the office
   sent a reference design (their own words: "עדין יוקרתי ומתקדם") built on a
   contained, bordered KPI strip sitting INLINE in one single header row
   (title | KPI strip | date-nav/actions), not stacked underneath a separate
   nav row. This is the 2nd redesign of this strip this session (round 2 was
   an edge-to-edge borderless strip merged into the header card) — now a
   self-contained bordered/filled pill, each figure's small muted label on
   top and value+icon below, matching the reference's own KPI-tile anatomy
   as closely as this app's existing token system allows. See
   .pss-header-row below for the new single-row header layout this sits in. */
.pss-kpis-row{display:flex; align-items:stretch; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:3px; flex-shrink:0;}
.pss-kpi-flat{flex:1; min-width:112px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:9px 20px; border-inline-start:1px solid var(--border);}
.pss-kpi-flat:first-child{border-inline-start:none;}
.pss-kpi-flat .l{font-size:10.5px; color:var(--ink-muted); font-weight:600; letter-spacing:.02em; white-space:nowrap;}
.pss-kpi-flat .v-row{display:flex; align-items:baseline; gap:6px;}
.pss-kpi-flat .v{font-size:18px; font-weight:800; color:var(--ink); font-family:"Heebo",sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap;}
.pss-kpi-flat .v .frac{font-size:11.5px; font-weight:600; color:var(--ink-muted);}
.pss-kpi-flat .ic{width:14px; height:14px; color:var(--ink-muted); display:inline-flex; align-self:center;}
.pss-kpi-flat .ic .crm-icon{width:14px; height:14px;}
.pss-kpi-flat .bar{height:3px; width:100%; max-width:110px; border-radius:99px; background:var(--border); overflow:hidden; margin-top:1px;}
.pss-kpi-flat .bar i{display:block; height:100%; background:var(--good); border-radius:99px;}
@media (max-width:900px){ .pss-kpis-row{flex-wrap:wrap; width:100%;} .pss-kpi-flat{min-width:33%;} }

/* Mockup round 3 — the whole header (title, KPI strip, date-nav + actions)
   is now ONE flex row — title at the reading-start edge (physical right),
   KPI strip centered, date/actions at the far end (physical left) — per the
   reference's own compact single-row header, instead of a title row
   stacked above a separate month-nav row. Wraps to multiple lines on
   narrow screens (see the media query) since 3 flex groups plus a 3-tile
   KPI strip won't all fit on one line under ~900px. */
/* Mockup round 5 (Sept 2026, "structural pass") — replaced the single
   3-way flex row above with two STACKED columns, per the office's own
   proposal (title+KPIs on the right; date/actions+"how it works" on the
   left, each a big-primary-row-over-small-secondary-row pair).
   Mockup round 7 — that two-independent-flex-columns approach is gone.
   .pss-header-row is now a real 2-column × 2-row CSS GRID, and the title/
   kpis/howitworks/month-cluster pieces are its direct children (no more
   wrapping column divs — see renderPayrollSummaryView's call site). Column
   1 = right (title+KPIs, since this is RTL and grid column 1 is the
   inline-start/physical-right column), column 2 = left (howitworks+date/
   actions). Row 1 = title/howitworks, row 2 = KPIs/date-actions — because
   it's a REAL grid row shared by both columns, row 2's two pieces now
   align on one literal baseline regardless of how tall the title or the
   "💡" button are, per the office's explicit ask ("שיהיו בקו ישר עם
   האריחים"). align-items:end on the grid keeps each column's content
   anchored to the BOTTOM of its row, which is also what pulls row 2 down
   snugly under row 1 instead of floating with extra gap above it. */
.pss-header-row{display:grid; grid-template-columns:1fr auto; column-gap:18px; row-gap:8px; align-items:end;}
.pss-header-title{grid-column:1; grid-row:1; display:flex; flex-direction:column; gap:2px; min-width:0;}
/* Oct 2026 (schema.sql Block Z, polish pass) — 21px→22px: now byte-identical
   to .view-head h1's font-size (every other board's title), per the office's
   explicit "בסינכרון מלא" request — was 1px off, easy to miss side-by-side. */
.pss-header-title h1{display:flex; align-items:center; gap:8px; font-size:22px; font-weight:700; letter-spacing:-.2px; white-space:nowrap;}
.pss-header-title p{margin:0; color:var(--ink-muted); font-size:12.5px; white-space:nowrap;}
.pss-header-title .ic{color:var(--accent); display:inline-flex;}
.pss-header-title .ic .crm-icon{width:19px; height:19px;}
/* Mockup round 5 — the KPI strip now sits underneath the title rather than
   inline beside it, so it reads as a secondary/smaller fact-row: same
   tiles, just scaled down (see pssKpisHtml's markup, unchanged — only the
   numbers/labels shrink here) and with a tighter gap between tiles. */
/* Mockup round 6 — per the office's note ("הייתי קצת מקטין את רוחב השדות"):
   width:fit-content so this pill hugs its 3 tiles instead of stretching to
   the full width of the right column (the default align-items:stretch on
   .pss-header-col would otherwise do that); each tile also switches from
   flex:1 (grow-to-fill) to flex:0 0 auto (size-to-content) with tighter
   padding and no min-width floor, so the whole strip visibly narrows rather
   than just adding empty space inside a still-full-width card.
   Mockup round 7 — background changed from --surface-2 (gray) to --surface
   (white, same as the card behind it) per the office's request. The pill's
   own border plus the existing per-tile border-inline-start divider (see
   .pss-kpi-flat) still keep the 3 figures visually separated even without
   the gray fill. Also now an explicit grid child — column 1 (right), row 2
   — sharing its row with .pss-header-month-cluster on the left, per the
   office's "בקו ישר" (straight line) request; see .pss-header-row above. */
.pss-kpis-row-compact{grid-column:1; grid-row:2;}
/* Oct 2026 (schema.sql Block Z) — the 3-tile KPI strip (עובדים בדו״ח/סה״כ
   שעות בפועל/סטטוס בדיקה) is now just the one status tile, per the office's
   explicit spec ("איחוד ועיצוב מחדש"): "עובדים בדו״ח" dropped as a plain
   duplicate of the search box, "סה״כ שעות בפועל" dropped outright, and the
   remaining status figure redesigned as a wide, 2-row horizontal tile
   (was a cramped divided-pill strip — .pss-kpi-flat and its
   .pss-kpis-row-compact overrides, both now unused by this screen) instead
   of 3 equal-width slices. Still the same grid slot (.pss-kpis-row-compact,
   column 1/row 2, sharing a baseline with the date/actions cluster) — only
   the CONTENT class changed, see pssKpisHtml. */
.pss-status-wide{background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:10px 18px; display:flex; flex-direction:column; gap:6px; min-width:300px; width:fit-content;}
.pss-status-wide .l{font-size:11.5px; font-weight:700; color:var(--ink-2);}
.pss-status-wide .row2{display:flex; align-items:center; gap:10px;}
.pss-status-wide .pct{font-size:17px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap;}
.pss-status-wide .cnt{font-size:12px; color:var(--ink-muted); font-weight:600; white-space:nowrap;}
.pss-status-wide .bar{flex:1; height:6px; border-radius:99px; background:var(--border); overflow:hidden; min-width:70px;}
.pss-status-wide .bar i{display:block; height:100%; background:var(--good); border-radius:99px;}
@media (max-width:480px){ .pss-status-wide{min-width:0; width:100%;} }
.pss-header-month-cluster{grid-column:2; grid-row:2; justify-self:end; display:flex; align-items:center; gap:10px;}
/* Mockup round 5 — this row (month/year nav + "פעולות וייצוא ▾") is now the
   header's single most prominent action per the office's spec ("בגדול
   יותר"), so the export button gets a small size bump here; the month/year
   picker's own size is shared with other screens (attendance sheet etc.) so
   it isn't changed globally, just sits at its normal size beside the now-
   bigger button. */
.pss-header-month-cluster .pss-actions-btn{padding:9px 18px; font-size:13.5px;}
/* Mockup round 5 — "💡 איך זה עובד?" is now the deliberately SMALL/quiet
   half of this column, directly under the date+export row, per the office's
   spec ("ובקטן יותר מצד שמאל"). */
/* Oct 2026 (polish pass) — 11px→13px + a touch more padding, per the
   office's explicit readability/accessibility note. Still deliberately the
   SMALL/quiet half of this column (see the round-5 comment below) — just no
   longer uncomfortably tiny. */
.pss-howitworks-btn{grid-column:2; grid-row:1; justify-self:end; font-size:13px; padding:6px 12px;}
@media (max-width:900px){ .pss-header-row{grid-template-columns:1fr; justify-items:start;} .pss-kpis-row-compact, .pss-header-month-cluster, .pss-howitworks-btn{grid-column:1;} .pss-kpis-row-compact{grid-row:3;} .pss-header-month-cluster{grid-row:2; justify-self:start;} .pss-howitworks-btn{grid-row:4; justify-self:start;} }

/* "פעולות וייצוא ▾" consolidated dropdown (Sept 2026, 2nd pass) — same
   elevation/shadow/menu-item language as .col-menu-popover, under its own
   class names since this one sits in the report's top-right corner as a
   filled primary button rather than a ghost one. */
.pss-actions-wrap{position:relative; display:inline-block;}
.pss-actions-menu{position:absolute; inset-inline-end:0; top:calc(100% + 6px); z-index:60; min-width:210px; background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:6px;}
.pss-actions-menu button{width:100%; text-align:start; background:none; border:none; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink-2); padding:9px 11px; border-radius:8px; cursor:pointer; display:flex; align-items:center; gap:8px; white-space:nowrap;}
.pss-actions-menu button:hover{background:var(--surface-2); color:var(--ink);}
.pss-actions-menu hr{border:none; border-top:1px solid var(--border); margin:5px 2px;}
/* Sept 2026 (final polish pass) — "פעולות וייצוא ▾" restyled from the shared
   .btn.btn-primary.btn-sm into its own dark ink/paper pill, per the office's
   "Desktop First Enterprise UI" mockup. background:var(--ink); color:var(--
   paper) auto-inverts correctly in dark mode since both tokens swap polarity
   together (near-black-on-near-white in light, the reverse in dark) — no
   separate dark-mode override needed. */
.pss-actions-btn{background:var(--ink); color:var(--paper); border:1px solid var(--ink); border-radius:99px; padding:8px 16px; font-weight:700; font-size:12.5px; cursor:pointer; font-family:inherit; white-space:nowrap;}
.pss-actions-btn:hover{filter:brightness(1.18);}

/* Sept 2026 (final polish pass) — the office's last brief asked to fold the
   whole title/month-nav/export row into one bordered card, and to move
   search+filtering off their own standalone toolbar row and into the top of
   the employee sidebar instead (replacing .pss-toolbar/.pss-search/
   .pss-chip below, now unused and removed) — see the .pss-sidebar-* rules
   further down and renderPayrollSummaryBody/renderPayrollSummaryView. */
/* Mockup round 3 — rounder corners (16px, was 14px) and a touch more
   padding, matching the reference's own rounded-xl/generous-whitespace
   feel; content is now .pss-header-row (a single flex row), not a stacked
   .view-head + .pss-header-nav. */
.pss-header-card{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px 22px; margin-bottom:14px; box-shadow:var(--shadow);}
/* Sept 2026 (final polish pass) — replaces the old full-width
   .period-lock-banner on this screen specifically (still used as-is on the
   employee's own board, unaffected) — a small round icon right beside the
   month, instead of a banner stretched across the page. */
/* Sept 2026 (visual unification) — was a circular 30px issue-colored
   badge, sitting oddly next to the square 32px .icon-btn prev/next month
   buttons right beside it (mismatched shape AND mismatched color — this
   is a "please review" warning, not a critical/issue state). Now the same
   32px rounded-square footprint and border style as .icon-btn, in the
   quieter warning tone (var(--warning-wash)/var(--warning)) used
   everywhere else in this app for "needs attention, not broken". */
.pss-lock-indicator{width:32px; height:32px; border-radius:10px; background:var(--warning-wash); border:1px solid var(--warning); color:var(--warning); font-size:13px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:var(--shadow);}
.pss-lock-indicator:hover{filter:brightness(1.06);}
/* Sept 2026 (period-lock edit permissions) — once a month is locked, every
   field/control below (for ANY role, including super_admin — Final Polish
   pass, Sept 2026) renders with a plain `disabled` attribute rather than
   being hidden — same "quiet read-only" convention as .btn[disabled]/
   .crm-icon-btn[disabled] elsewhere in this file, just scoped to the
   specific input/button classes used inside the payroll panels. A slightly
   darkened background (var(--surface-2)) was added on top of the existing
   opacity dim, per explicit request, so a locked field reads unmistakably
   as read-only rather than merely faded. These classes are used ONLY for
   this period-lock scenario inside the payroll panels (see the comment
   above), so this doesn't affect any other disabled control in the app. */
.pss-metric-input:disabled, .pss-metric-ref:disabled, .pss-achip input:disabled, .pss-flat-val input:disabled, .pss-notes-flat textarea:disabled{opacity:.55; cursor:not-allowed; background:var(--surface-2);}
.pss-revert:disabled, .pss-recalc:disabled, .pss-absence-add-btn:disabled, .holiday-elig-badge:disabled{opacity:.4; cursor:not-allowed; background:var(--surface-2);}
.holiday-elig-row input:disabled{opacity:.5; cursor:not-allowed; background:var(--surface-2);}
.chip-toggle-btn:disabled{opacity:.45; cursor:not-allowed; background:var(--surface-2);}
/* Same treatment for renderPayrollTab's own locked controls (the per-day
   "עריכה" pencil and the "עבודה מחויבת" toggle), added Final Polish pass —
   .crm-icon-btn[disabled] itself stays untouched (shared with unrelated
   permission-toggle icons elsewhere) so this is a dedicated, scoped class. */
.crm-icon-btn.pr-locked[disabled]{background:var(--surface-2) !important;}
/* Generic opt-in version of the same "slightly darkened background" look,
   for the personal punch-clock view's own locked buttons (renderAttendanceEntryView) —
   .btn[disabled] alone (opacity only) is shared by many unrelated disabled
   buttons app-wide, so this stays a separate class applied only where a
   period lock (not some other reason) is why the control is disabled. */
.period-locked-field:disabled{background:var(--surface-2) !important; opacity:.5 !important; cursor:not-allowed !important;}

/* Mockup round 2 (Sept 2026) — swapped back per the office's own question:
   standard RTL master-detail convention puts the LIST at the page's start
   edge (physical right, where Hebrew reading begins) and lets the detail
   panel unfold toward the end (physical left) — mirroring how an LTR inbox
   puts its list on the left. This is also literally how this screen looked
   before an earlier redesign pass swapped it (see renderPayrollSummaryBody's
   own comment). minmax(280px,1fr) is now the FIRST track (right), 2fr the
   second (left) — see the DOM-order swap in renderPayrollSummaryBody. */
/* Mockup round 5 — per the office's question ("האם הפאנל יהיה רחב יותר,
   בדומה למראה ששלחתי?"): yes — the reference's own layout gives the
   employee list a FIXED sidebar width and lets the detail panel claim every
   remaining pixel, rather than splitting the row by a 1:2 RATIO (the old
   minmax(280px,1fr) 2fr, which let the list itself keep growing on a wide
   screen). Capping the list at 340px and giving the panel 1fr means the
   panel now gets noticeably more room on a typical wide desktop screen,
   matching the reference's own proportions much more closely. */
.pss-split{display:grid; grid-template-columns:minmax(280px,340px) 1fr; gap:14px; align-items:start;}
@media (max-width:900px){ .pss-split{grid-template-columns:1fr;} }

/* Sidebar card (Sept 2026, final polish pass): the outer card no longer
   scrolls itself — its search/filter header needs to stay put while only
   the row list underneath (.pss-sidebar-rows) scrolls. Swapped to the LEFT/
   narrower .pss-split column now (see that rule); the panel takes the
   right/wider one — DOM order swapped accordingly in
   renderPayrollSummaryBody. */
.pss-list{background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); padding:12px; display:flex; flex-direction:column; gap:10px;}
.pss-sidebar-head{display:flex; gap:8px; align-items:center;}
.pss-sidebar-search{flex:1; min-width:0; box-sizing:border-box; border:1px solid var(--border-strong); border-radius:9px; padding:8px 12px; font-size:12.5px; background:var(--surface); color:var(--ink); font-family:inherit;}
.pss-sidebar-search:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.pss-filter-wrap{position:relative; flex-shrink:0;}
.pss-filter-btn{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:8px 12px; border-radius:9px; background:var(--surface); border:1px solid var(--border-strong); color:var(--ink-2); cursor:pointer; white-space:nowrap; font-family:inherit;}
.pss-filter-btn:hover{background:var(--surface-2);}
/* Mockup round 4 — funnel icon replacing the old "⚙️" gear emoji (a gear
   reads as "settings", not "filter"); sized to match the text beside it. */
.pss-filter-btn .ic{display:inline-flex; color:var(--ink-muted); flex-shrink:0;}
.pss-filter-btn .ic .crm-icon{width:13px; height:13px;}
.pss-filter-menu{position:absolute; inset-inline-end:0; top:calc(100% + 6px); z-index:60; min-width:170px; background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:6px;}
.pss-filter-menu button{width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:start; background:none; border:none; font-family:inherit; font-size:12px; font-weight:600; color:var(--ink-2); padding:8px 10px; border-radius:8px; cursor:pointer; white-space:nowrap;}
.pss-filter-menu button:hover{background:var(--surface-2); color:var(--ink);}
.pss-filter-menu button.active{color:var(--accent); font-weight:700;}
.pss-filter-menu button .cnt{color:var(--ink-muted); font-weight:600; font-size:11px;}
.pss-sidebar-count{font-size:11px; color:var(--ink-muted); padding:0 2px;}
.pss-sidebar-rows{overflow-y:auto; max-height:600px; display:flex; flex-direction:column; gap:3px;}
/* Sept 2026 (4th fix pass) — "RTL split layout" per the office's own exact
   spec: three grid columns now instead of two — avatar (auto) | identity
   block, name+type (1fr, shrinks/ellipsizes first) | metrics block, %+
   status (auto, pinned to the row's far/left edge). See pssRowHtml.
   Sept 2026 (final polish pass) — rows are now individually rounded cards
   inside the scrollable .pss-sidebar-rows list rather than a flush,
   bottom-bordered stack, per the office's mockup. */
/* Mockup round 5 (Sept 2026, "precision pass") — padding bumped (11px→15px
   block) per the office's "הייתי מרחיב קצת את גובה השורה" note — a taller
   row also gives the stacked %/"מהתקן" treatment below room to breathe. */
.pss-row{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:15px 12px; border:1.5px solid transparent; border-radius:10px; cursor:pointer;}
.pss-row:hover{background:var(--surface-2);}
/* Sept 2026 UI fix — selection used to reuse the row's own --st-soft
   status color as its background (.pss-row.sel{background:var(--st-soft)}),
   so selecting a "נערך ידנית" (warn) employee turned the WHOLE row
   yellow/orange — reading as a warning about the selection itself, not
   about that employee. Selection became one consistent, status-INDEPENDENT
   treatment regardless of .st-ok/.st-warn/.st-issue: still true today, only
   the specific colors changed (see below) — never confused with a status
   color, which only ever shows via the .pss-row-status badge.
   Sept 2026 (2nd redesign pass) — per the office's explicit request, the
   neutral white+indigo treatment above was replaced with a soft brand-
   accent tint (background + leading bar both var(--accent)/--accent-wash) —
   the "bg-blue-50/60 + border-r-4 border-blue-600" language the office's
   own 4th-pass spec asked to keep exactly as-is. border-inline-start is
   already the row's RIGHT edge on this RTL page, so no change was needed
   here for that spec. */
/* Mockup round 5 (correction) — the round-5-draft-1 attempt above (kept in
   this comment for context) added a full frame but LEFT the leading edge at
   its original, heavier 4px so the "frame" read as three thin sides plus one
   thick one — not the uniform rectangle the office's reference image shows.
   Per the office's explicit correction ("כל מסגרת בעוד תהיה בכחול... כמו
   בתמונה") the row's border is now ONE consistent 1.5px accent border on
   all 4 sides (the earlier 4px border-inline-start bar is gone, so .pss-row
   base no longer needs a transparent placeholder there either — see the
   base rule above, border width now matches on every side at rest too, just
   transparent). Background also switched from --accent-wash (the same tint
   used for badges/avatars) to the new, paler --accent-wash-soft so the
   selected row reads as "gently highlighted", not "colored in". */
.pss-row.sel{background:var(--accent-wash-soft); box-shadow:0 1px 3px rgba(15,23,42,.08); border-color:var(--accent);}
.pss-row-mid{min-width:0;}
.pss-row-nm{display:flex; align-items:center; gap:6px; margin-bottom:4px; flex-wrap:wrap;}
/* Mockup round 4 (Sept 2026, "clean the eye" pass) — the office's own
   suggestion: the whole list read as "too much color" not because of any
   one element but because EVERY row's avatar carried a status-tinted ring
   (see .pss-avatar below) regardless of selection. Per the office's spec —
   "רק העובד שעליו אנו עובדים יהיה מודגש... כל היתר כתב רגיל בלי צבעים" — a
   row's name is now plain/regular weight by default; only the SELECTED row
   (.pss-row.sel) gets bold + accent color. Exception badges (issue/warn/
   approved) are untouched — those already only show for a genuine reason,
   per the "ניהול לפי חריגות" pass above. */
/* Mockup round 5 — two follow-up corrections to round 4's list styling,
   both per explicit office notes: (1) name size bumped a notch (12.5px→
   13.5px) — "הייתי מגדיל יותר את שם העובד"; (2) selection emphasis is bold
   BLACK, not a color change — "מדגש הכוונה לכתב שחור מודגש ולא כתב שהופך
   לכחול, מעדיף לצמצם את מניפת הצבעים" — so .sel no longer recolors the name
   to var(--accent), only weight changes; selection already reads clearly
   from the row's own blue background/border above. */
.pss-row-nm .nm{font-size:13.5px; font-weight:500; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.pss-row.sel .pss-row-nm .nm{font-weight:700;}
/* Sept 2026 (4th fix pass) — the employment-type tag, alone now on its own
   quiet line under the name (status moved out to the new right-hand...
   wait, LEFT-hand — see .pss-row-metrics below — metrics block, per the
   office's exact spec: "small subtle gray text-xs" under the name). */
.pss-row-type{font-size:11px; color:var(--ink-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
/* Metrics block — quota % on top, status badge below, both pinned to the
   row's physical LEFT edge ("text-left" in the office's own spec).
   align-items:flex-end resolves to the physical left here because this
   page is RTL (flex-end = the inline-end edge = left under dir="rtl"). */
.pss-row-metrics{display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0;}
/* Mockup round 5 — per the office's note: now that the row is taller, the
   %/"מהתקן" pair reads better stacked (number on top, label under it) than
   crammed onto one line, and the number itself is no longer bold — "לא
   מודגש" — one less bold element competing with the (now bold-on-select)
   name right next to it. */
.pss-row-pct{display:flex; flex-direction:column; align-items:flex-end; font-size:12px; white-space:nowrap;}
.pss-row-pct b{font-weight:400; color:var(--ink); font-variant-numeric:tabular-nums;}
.pss-row-pct .lbl{font-size:10px; font-weight:400; color:var(--ink-muted); margin-inline-start:0;}
/* Sept 2026 (6th fix pass, "ניהול לפי חריגות") — no longer tied to the
   row's own --st/--st-soft (that stays reserved for the avatar ring + the
   selected-row accent bar). The badge is only ever rendered by pssRowHtml
   for one of three exception states now — see the is-issue/is-warn/
   is-approved rules right below — and simply isn't in the DOM at all for a
   clean, unapproved row (see pssRowHtml). Wider padding than the old 3px/9px
   pill, per the office's explicit "אני אוהב תגיות רחבות יותר" note — still
   compact enough not to feel like a dense form field. */
.pss-row-status{font-size:10.5px; font-weight:700; padding:4.5px 12px; border-radius:99px; border:1px solid transparent; flex-shrink:0; white-space:nowrap;}
/* Sept 2026 (Enterprise Quiet UI, bold-badge pivot per explicit office
   request) — switched from soft "wash" tints (tinted background + colored
   text) to solid, saturated fills with white text, matching the reference
   design's payroll badges. This intentionally reverses the earlier "quiet/
   muted badge" pass from the same session — the office asked for it
   explicitly, in full awareness of that tension. */
/* Mockup (Sept 2026, "quiet control center" direction) — the office's own
   comment right above explains the earlier pivot TO solid/saturated fills
   was itself an explicit request. This mockup deliberately reverses that
   pivot again, per the new explicit brief ("פחות צבעים בולטים... יותר
   עדינים"): back to soft tinted washes, matching .pss-pct-badge's existing
   treatment just below in this file (so the two badge families finally
   look like one consistent system instead of two different styles sitting
   side by side). Flag this reversal to the office when presenting the
   mockup, since it undoes a change they asked for by name earlier. */
.pss-row-status.is-issue{background:var(--warning-wash); color:var(--warning); border-color:transparent;}
.pss-row-status.is-warn{background:var(--surface-2); color:var(--ink-2); border-color:transparent;}
/* "אושר" — plain text, deliberately no checkmark icon: the office felt the
   green fill alone already reads as "done" ("אם מופיע אושר בירוק זה מספיק
   לגמרי"), and a second ✓ here would just repeat the panel's own approve
   button. */
.pss-row-status.is-approved{background:var(--good-wash); color:var(--good); border-color:transparent;}

/* Sept 2026 (2nd fix pass) — switched from "IBM Plex Mono" to "Rubik" for
   the same reason as .pss-kpi .v above: the mockup's avatar initials read
   bolder/more polished at the same weight, and dotted initials (see
   pssAvatarInitials()) look cleaner in the app's own display face than in
   the monospace one used for tabular numbers elsewhere. */
/* Mockup round 4 (Sept 2026, "clean the eye" pass) — was
   background:var(--st-soft); color/border:var(--st), i.e. EVERY row's
   avatar always carried its status tier's color (accent/warning/issue) —
   the direct cause of the "מלא צבעים ברשימת העובדים" report: a list of 8
   avatars in 3 different colors reads as a rainbow before you've read a
   single name. Default is now one quiet neutral (same family as an unread
   list item everywhere else in this app); color is reserved for the row
   that's actually selected (see .pss-row.sel .pss-avatar below) — status
   itself still reads fine from .pss-row-status's exception badge, which was
   always the deliberate single source of truth for it (see that rule's own
   "ניהול לפי חריגות" comment). --st/--st-soft stay defined/used elsewhere
   (.pss-panel::before, .pss-issue-banner) — only the LIST avatar's use of
   them is removed here. */
.pss-avatar{width:32px; height:32px; border-radius:50%; background:var(--surface-2); color:var(--ink-muted); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:11px; flex-shrink:0; font-family:"Heebo",sans-serif;}
.pss-row.sel .pss-avatar{background:var(--accent-wash); color:var(--accent); border-color:var(--accent);}
/* Mockup round 3 — bumped again (was 48px) to match the reference's larger,
   more "hero" avatar treatment. Mockup round 4 — always accent-toned now
   (not status-tied): this is the PANEL header's own avatar, always the
   employee currently open, same reasoning as the reference design's own
   solid-brand-color avatar (one consistent "identity" mark, independent of
   this month's attendance status). */
.pss-avatar.big{width:56px; height:56px; font-size:18px; background:var(--accent-wash); color:var(--accent); border-color:var(--accent);}

.pss-panel{position:relative; background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:var(--shadow);}
.pss-panel::before{content:""; position:absolute; inset-inline:0; top:0; height:3px; background:var(--st);}
.pss-panel-empty{padding:40px 20px;}
/* Mockup round 2 (Sept 2026, "premium SaaS" direction) — the header band was
   `background:var(--surface-2)` (#f1f3f9), a color close enough to the PAGE's
   own background (--paper, #f6f7fb) that the office felt the whole panel
   "melts" into the page instead of reading as a distinct, elevated identity
   card — a fair read; those two tokens really are only a couple of RGB
   points apart. Replaced with a soft two-tone brand-tinted gradient (barely
   perceptible as a "color", just enough to feel intentional/premium rather
   than flat gray-on-gray) plus a touch more vertical padding and a slightly
   bigger avatar, so this band now reads as a deliberate "hero" header rather
   than a leftover default background. */
.pss-panel-top{position:relative; display:flex; align-items:center; gap:14px; padding:20px 22px 18px; border-bottom:1px solid var(--border); background:linear-gradient(135deg, var(--accent-wash) 0%, var(--surface) 65%);}
.pss-panel-top b{font-size:19px; font-family:"Heebo"; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
/* Mockup round 5 — forced onto one line ("סוג משרה: X" was wrapping to a
   2nd line once the value went bold/wider) per the office's note that the
   bold value should stay "on the same line as the label", not grow to a new
   row. white-space:nowrap is safe here — this subtitle is always short
   (a label plus one of 3 short employment-type words). */
.pss-panel-top .sub{font-size:11.5px; color:var(--ink-muted); margin-top:2px; white-space:nowrap;}
/* Mockup round 5 — a dedicated class (not a bare <b>, which .pss-panel-top
   b above would blow up to 19px) so the employment type reads emphasized
   at the SUBTITLE's own size, not the employee name's. Weight only, per the
   office's clarification — no size change, so it stays a subtitle, just a
   bold one.
   Mockup round 6 (bugfix) — explicit display:inline + font-size:inherit
   added defensively (the real fix was switching the element itself from
   <b> to <span> at the call site, so .pss-panel-top b's type selector can
   no longer match this at all — see that comment). Kept here too in case
   this class is ever reused on a <b> again. */
.pss-panel-top-emptype{display:inline; font-size:inherit; font-weight:700; color:var(--ink-2);}
.pss-panel-top-name{flex:1; min-width:0;}
/* "% השלמת תקן" scorecard (Mockup round 2) — was a small text pill jammed
   inline with the employee's name (read as clutter right in the middle of
   the name line); now its own discrete widget: a thin circular progress
   ring with the number centered inside it, sitting as a clear, separate
   "scorecard" element in the header — the single most important number on
   this panel gets a bit of visual weight of its own instead of competing
   with the name for space. */
.pss-panel-top-score{position:relative; width:44px; height:44px; flex-shrink:0;}
.pss-panel-top-score svg{display:block; width:100%; height:100%;}
/* Header action cluster (Sept 2026 refactor): "✓ נבדק ואושר" moved up here
   from the bottom of the card, grouped with the existing status pill so a
   payroll processor can approve an employee without scrolling. Was just
   `.pss-badge{margin-inline-start:auto;}` pinning the lone pill to the far
   end of the header — that auto-margin now lives on the wrapping cluster
   instead, so both items travel together. */
.pss-panel-top-actions{margin-inline-start:auto; display:flex; align-items:center; gap:8px; flex-shrink:0;}
/* Sept 2026 (6th fix pass) — exception-only, same as the list row: not in
   the DOM at all once approved (the approve button alongside it already
   says so) or when the month is clean; only ever rendered for an issue/warn
   exception — see pssPanelHtml's panelBadgeHtml and the .is-issue/.is-warn
   rules right below. */
.pss-badge{font-size:10.5px; font-weight:700; padding:4px 12px; border-radius:99px; white-space:nowrap; border:1px solid transparent;}
/* Mockup — same wash-tint reversal as .pss-row-status above, for the same
   reason (consistency with .pss-pct-badge right next to it in this header). */
.pss-badge.is-issue{background:var(--warning-wash); color:var(--warning);}
.pss-badge.is-warn{background:var(--surface-2); color:var(--ink-2);}
/* "% השלמת תקן" compact header badge (Sept 2026 UI refactor) — a clean
   3-tier traffic-light scale, deliberately with NO blue tier (an earlier
   4-tier mockup had one; the office asked for exactly emerald/amber/rose). */
.pss-pct-badge{display:inline-flex; align-items:center; font-size:11px; font-weight:700; padding:3px 10px; border-radius:99px; white-space:nowrap; line-height:1.4;}
.pss-pct-badge.tier-good{background:var(--good-wash); color:var(--good);}
.pss-pct-badge.tier-warn{background:var(--warning-wash); color:var(--warning);}
.pss-pct-badge.tier-bad{background:var(--danger-wash); color:var(--critical);}
.pss-pct-badge.tier-neutral{background:var(--surface-2); color:var(--ink-2); font-weight:600;}
.pss-issue-banner{display:flex; gap:9px; align-items:flex-start; margin:14px 20px 0; background:var(--st-soft); border:1px solid var(--st); border-radius:9px; padding:10px 13px; font-size:12px; color:var(--ink-2); line-height:1.6;}
/* Sept 2026 (final polish pass) — the office's mockup dropped the small
   secondary BUTTON entirely in favor of a plain underlined text link
   ("תיקון בגיליון נוכחות ←"), reading calmer/less like a competing CTA next
   to the banner copy right above it — the two-suggested-options note from
   the earlier "Muted UI" pass ("this, over a bare underlined text link")
   is now superseded by this explicit later request. */
.pss-issue-fixbtn{background:none; border:none; color:var(--st); text-decoration:underline; text-underline-offset:2px; padding:0; font-weight:700; font-size:11.5px; cursor:pointer; font-family:inherit; white-space:nowrap;}
.pss-issue-fixbtn:hover{filter:brightness(1.15);}
/* "💬 נכתבה הערת עובד" badge/toggle (Sept 2026) — deliberately var(--warning)
   rather than the row's own --st (which tracks תקין/נערך ידנית/דורש בדיקה
   status, a different axis entirely): this is always the same orange
   regardless of the row's status, so it reads consistently as "there's an
   employee comment waiting for you" wherever it shows up. */
/* Sept 2026 (4th fix, per explicit office report — "שהבאנר... יהיה באופן
   ברור יותר") — rebuilt from a small inline pill (.pss-note-btn) into an
   actual full-width banner (.pss-note-banner): bigger padding/font, a
   chevron that flips open/closed, and moved (see pssPanelHtml) to sit
   between the absence chips and "הערות לשכר", instead of up by the section
   title — so it reads as the thing you deal with right after the
   absences, not an unrelated tag floating up top. */
.pss-note-banner{display:flex; align-items:center; gap:10px; width:100%; margin:12px 0; background:var(--warning-wash); color:var(--warning); border:1px solid var(--warning); border-radius:10px; padding:11px 16px; font-weight:700; font-size:13px; cursor:pointer; font-family:inherit; text-align:start;}
.pss-note-banner:hover{filter:brightness(1.05);}
.pss-note-banner.open{background:var(--warning); color:#fff;}
.pss-note-banner .ic{flex-shrink:0; display:inline-flex;}
.pss-note-banner .tt{flex:1; min-width:0;}
.pss-note-banner .chev{flex-shrink:0; width:15px; height:15px; transition:transform .15s;}
.pss-note-banner.open .chev{transform:rotate(180deg);}
.pss-emp-note-panel{display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; margin:-4px 0 12px; background:var(--warning-wash); border:1px solid var(--warning); border-top:none; border-radius:0 0 10px 10px; padding:11px 16px 14px;}
.pss-emp-note-text{flex:1; min-width:220px; font-size:12.5px; color:var(--ink-2); line-height:1.6; white-space:pre-wrap;}
.pss-emp-note-panel .btn{flex-shrink:0;}
/* audit-trail timestamp under the employee's note text (Block N, Sept 2026) */
.pss-emp-note-ts{flex-basis:100%; font-size:10.5px; color:var(--ink-muted); border-top:1px dashed var(--border-strong); margin-top:2px; padding-top:7px;}

/* Employee-review workflow (Block N, Sept 2026): "✓ סמן כנבדק/אושר" toggle
   button in the panel top, and the matching small checkmark next to a
   reviewed employee's name in the right-hand list. Independent of the
   row's --st status color (like .pss-note-btn) — review state and data-
   quality status are two separate axes, on purpose (per the office). */
/* Sept 2026 UI refactor: relocated from the card's bottom into the header
   action cluster, so it needed to read as a confident primary CTA rather
   than a quiet ghost button — solid accent fill, white label, soft shadow.
   The already-approved (.on) state deliberately stays a calmer green
   "confirmed" look rather than the same bold blue, so the header visibly
   communicates done-vs-not-done at a glance. */
.pss-approve-btn{background:var(--accent); color:#fff; border:1px solid var(--accent); border-radius:8px; padding:7px 15px; font-weight:700; font-size:12px; cursor:pointer; font-family:inherit; white-space:nowrap; box-shadow:0 1px 2px rgba(15,23,42,.12); transition:filter .15s, background .15s;}
.pss-approve-btn:hover{filter:brightness(1.06);}
.pss-approve-btn.on{background:var(--good-wash); color:var(--good); border-color:var(--good); box-shadow:none;}
.pss-approve-btn.on:hover{filter:none; background:var(--good-wash);}
/* Sept 2026 (6th fix pass) — the separate small green ✓ that used to sit
   right next to a reviewed employee's name in the list (.pss-row-check) is
   gone: the office asked to remove it entirely now that an approved row
   already gets its own "אושר" badge (.pss-row-status.is-approved above) —
   two green confirmations on the same row was the redundancy, not just the
   checkmark glyph specifically. */

/* Period-lock (Block N): the read-only banner shown to a locked-out
   employee on their own סיכום חודשי board (renderPayrollTab).
   .pss-lock-btn below is unused since the Sept 2026 2nd redesign pass moved
   the lock/unlock action into the "פעולות וייצוא ▾" dropdown (plain menu
   item, no dedicated styling needed there) — kept, unused, rather than
   deleted, in case a standalone lock button is ever needed again. */
.pss-lock-btn{background:var(--surface); border:1px solid var(--border-strong); color:var(--ink-2);}
.pss-lock-btn.locked{background:var(--issue-wash); color:var(--issue); border-color:var(--issue);}
.period-lock-banner{display:flex; align-items:center; gap:9px; background:var(--issue-wash); border:1px solid var(--issue); color:var(--issue); border-radius:10px; padding:10px 14px; font-size:12.5px; font-weight:600; margin-bottom:14px;}

/* Payroll-progress KPI tile's inline mini progress bar (5th tile). */
.pss-kpi-bar{height:5px; border-radius:99px; background:var(--border); overflow:hidden; margin-top:6px;}
.pss-kpi-bar i{display:block; height:100%; background:var(--good); border-radius:99px;}

/* Sept 2026 UI refactor — more breathing room between the 3 blocks (was a
   tight 16px/4px pairing with only the title's own gradient line to
   separate sections). A hairline top border + a touch more top padding on
   every block but the first reads as calmer, airier spacing than the old
   dense stack. */
.pss-sec{padding:20px 22px 8px;}
.pss-sec+.pss-sec{border-top:1px solid var(--border); margin-top:6px;}
.pss-sec-title{display:flex; align-items:center; gap:9px; margin-bottom:14px;}
/* Soft Lucide-style icon (see PSS_ICON_* above), replacing the old heavy
   black numbered circles (1/2/3). */
.pss-sec-title .pss-sec-icon{width:16px; height:16px; flex-shrink:0; color:var(--ink-muted);}
/* Deep gray-blue, semi-bold, no more UPPERCASE/letter-spacing — scoped to
   .pss-panel specifically since .pss-sec-title/.tt is shared with the
   paySettings screens, which keep their own original styling. */
.pss-panel .pss-sec-title .tt{font-size:13px; font-weight:600; color:var(--ink-2); text-transform:none; letter-spacing:normal;}
.pss-sec-title .tt{font-size:11.5px; font-weight:700; color:var(--ink); text-transform:uppercase; letter-spacing:.04em;}
.pss-sec-title .ln{flex:1; height:1px; background:linear-gradient(90deg,var(--border),transparent);}

/* the one grid every field in every section uses, so nothing shifts
   width/height/label-position between sections. */
.pss-fg{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:10px;}
.pss-f{background:var(--pss-input-bg); border:1px solid var(--pss-input-border); border-radius:9px; padding:7px 11px; min-height:56px; display:flex; flex-direction:column; justify-content:center; gap:3px;}
.pss-f label{font-size:9.5px; color:var(--ink-muted); font-weight:700; text-transform:uppercase; letter-spacing:.02em; display:flex; align-items:center; gap:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pss-f input{background:none; border:none; padding:0; font-family:inherit; font-size:14px; font-weight:700; color:var(--ink); width:100%; -webkit-appearance:none; appearance:none;}
/* keeps the app's normal <select> dropdown-arrow indicator (see the global
   `select{background-image:...}` rule) instead of stripping it like the
   plain-text .pss-f fields — this is the one field in the panel that's a
   real dropdown (סוג משרה), and it needs to visibly look like one, exactly
   like every other <select> in the app. */
.pss-f select{border:none; font-family:inherit; font-size:13.5px; font-weight:700; color:var(--ink); width:100%; cursor:pointer;}
.pss-f input:focus, .pss-f select:focus{outline:none;}
/* Sept 2026 — custom per-weekday schedule editor (תקן לא שגרתי), shown only
   when מתכונת עבודה="מותאם אישית". Same 7-column grid at desktop width,
   wraps to 2 at mobile so each day's checkbox+hours stays readable. */
.pss-custom-sched-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:8px;}
@media (max-width:820px){.pss-custom-sched-grid{grid-template-columns:repeat(2,1fr);}}
.pss-custom-sched-row{background:var(--pss-input-bg); border:1px solid var(--pss-input-border); border-radius:9px; padding:8px 10px; display:flex; flex-direction:column; gap:6px;}
.pss-custom-sched-day{display:flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--ink);}
.pss-custom-sched-row input[type="number"]{width:100%; box-sizing:border-box; border:1px solid var(--pss-input-border); border-radius:6px; padding:4px 6px; font-family:"Heebo", sans-serif; font-size:12.5px;}
.pss-custom-sched-row input[type="number"]:disabled{opacity:.4;}
.pss-f:not(.readonly):hover{border-color:#94a3b8;}
.pss-f:focus-within{background:var(--pss-input-bg-focus); border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.pss-f.readonly{background:var(--surface); border-style:dashed;}
.pss-f.readonly .v{font-family:"Heebo",sans-serif; font-size:14px; font-weight:700; color:var(--ink);}
.pss-f.overridden{border-color:var(--warning); background:var(--warning-wash);}
.pss-f.overridden label{color:var(--warning);}
.pss-revert{border:none; background:none; color:var(--warning); cursor:pointer; font-size:11px; padding:0; margin-inline-start:auto;}
/* "recalculate from formula" (ימי תקן) — deliberately its own component,
   not another .pss-revert: same tap target/no-frills button shell, but blue
   (--accent) instead of warning-orange and a two-arrow refresh icon instead
   of a single circular arrow, so it never reads as "the same button" as the
   ↺ undo-my-edit control it can sit next to. See CRM_ICON_PATHS.refreshCw's
   comment for the confusion this fixes. */
.pss-recalc{display:inline-flex; align-items:center; border:none; background:none; color:var(--accent); cursor:pointer; padding:0;}
.pss-recalc svg{width:12px; height:12px;}
.pss-f.notes{grid-column:span 2;}
.pss-f.notes textarea{width:100%; background:none; border:none; padding:0; font-size:12.5px; font-family:"Heebo",sans-serif; font-weight:400; color:var(--ink); resize:vertical; min-height:34px;}
.pss-f.notes textarea:focus{outline:none;}

/* ================= Sept 2026 (2nd redesign pass) — office board only =================
   Per the office's explicit "פישוט מסך" brief (2 messages: bordered-cube
   removal + a Tailwind-flavored surface/contrast system), pssPanelHtml's
   נוכחות/היעדרויות blocks moved OFF the boxed .pss-f/.fg grid above (which
   stays exactly as-is for every OTHER screen still using it — settings
   drawer, pay-components, custom schedule) onto a flatter, borderless
   surface — "Option A" from the published design mockup. Every field below
   is still a genuine <input>/<textarea> with the same data-ps-field
   attribute the always-on autosave wiring already expects (see
   wirePayrollSummaryRows) — only the visual chrome changed, never the
   editability, per the office's own follow-up answer on that point. */
.pss-flat-surface{background:var(--pss-input-bg); border-radius:12px; padding:14px 16px;}
.pss-flat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px 24px;}
@media (max-width:520px){ .pss-flat-grid{grid-template-columns:1fr;} }
.pss-flat-f label{display:flex; align-items:center; gap:4px; font-size:11px; color:var(--ink-muted); font-weight:700; margin-bottom:4px;}
.pss-flat-f.overridden label{color:var(--warning);}
.pss-flat-val{display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 6px;}
.pss-flat-val .of{font-size:12.5px; font-weight:600; color:var(--ink-muted); display:inline-flex; align-items:baseline; gap:4px;}
/* Sept 2026 (3rd fix pass) — same "✎ לעריכה" hover cue as the mockup's
   .flat-f.editable:hover::after (the office pointed out there's currently
   NO visual hint at all that these figures — or the מחלה/חופשה/מילואים
   chips below, see .pss-achip:hover::after — are editable, unlike a
   clearly-a-button element). .pss-flat-val is already a flex row, so the
   generated content lands as one more inline item at the end of the same
   line instead of wrapping to its own line the way it would inside a
   block container. */
.pss-flat-val:hover::after, .pss-flat-val:focus-within::after{content:"✎ לעריכה"; font-size:9.5px; font-weight:700; color:var(--accent);}
/* the PRIMARY figure (ימי/שעות עבודה בפועל) — big and bold, like the
   mockup's .flat-f .val; the reference/"מתוך" figure (תקן) stays a small
   plain-text-styled input right next to it, same idea as .flat-f .val .of.
   Sept 2026 (2nd fix pass) — a fixed em-width (tried twice) either clipped
   real values or left short ones floating in too much empty box, which is
   why this never sat as tight as the mockup's plain-text version. No width
   here at all now — the HTML's own `size` attribute (see numSize() above
   pssPanelHtml's flatField) sizes each input to its actual content, kept
   in sync on every keystroke by the input listener in
   wirePayrollSummaryRows, so it behaves like the mockup's auto-width text
   while staying a real, editable field. Native number-spinner arrows are
   still hidden — they were the actual reason a value used to get clipped
   in the first place, eating into whatever width was available. */
.pss-flat-val input.main{background:none; border:none; padding:0; font-family:"Heebo",inherit; font-size:17px; font-weight:800; color:var(--ink); -webkit-appearance:none; appearance:none; -moz-appearance:textfield;}
.pss-flat-val input.ref{background:none; border:none; padding:0; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink-muted); -webkit-appearance:none; appearance:none; -moz-appearance:textfield;}
.pss-flat-val input:focus{outline:none; color:var(--accent);}
.pss-flat-f.overridden .pss-flat-val input.main{color:var(--warning);}
.pss-flat-val input::-webkit-outer-spin-button, .pss-flat-val input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}

/* Sept 2026 (7th fix pass, "Desktop First Enterprise UI") — replaces the
   5th pass's vertical "financial tool" card (a bordered/shadowed tile at
   font-size:19px in a padded box) per the office's direct follow-up: those
   read as "giant white cubes" once seen next to the rest of the panel, and
   were a big part of why the whole card felt like a dense, boxed-in mobile
   view instead of a flat desktop one. Two plain grid cells now, each just a
   small gray label + one standard h-10-equivalent input + the quota text
   below it as plain small gray text — no card, no shadow, no giant type.
   .pss-flat-f/.pss-flat-val (flatField/flatSimpleField) are untouched.
   The 2-column layout itself was never actually collapsing at any normal
   desktop width — grid-template-columns:repeat(2,1fr) has no dependency on
   the panel's own rendered width, only the @media breakpoint below (which
   only ever fires under a genuinely narrow BROWSER window, not a narrow
   column) — so the "stacked/mobile" read was these oversized tiles, not a
   layout bug. Breakpoint kept, just tightened, as a true-mobile fallback
   only (compact inputs need far less width to stay side by side than the
   old 19px tiles did). */
.pss-metric-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px 20px;}
@media (max-width:420px){ .pss-metric-grid{grid-template-columns:1fr;} }
.pss-metric-cell{display:flex; flex-direction:column; gap:5px;}
/* Compact single-value variant (no "מתוך" reference row) — used for "ימי חג
   לתשלום", which sits in the narrow .pss-holiday-block column rather than
   the 2-col .pss-metric-grid, so the box gets an explicit width instead of
   the grid-cell's width:100%. */
.pss-metric-cell-simple .pss-metric-inputwrap{width:104px;}
.pss-metric-top{display:flex; align-items:center; gap:4px; width:100%; font-size:11px; font-weight:600; color:var(--ink-muted);}
/* Mockup round 4 (Sept 2026, "clean the eye" pass) — "% ביצוע" moved OFF
   this label row (see metricCard) and now sits inline with its own progress
   bar via .pss-metric-bar-row below; the old far-end placement here is
   superseded (kept selector removed rather than left pointing at nothing). */
.pss-metric-bar-row{display:flex; align-items:center; gap:8px; margin-top:7px;}
.pss-metric-bar{flex:1; min-width:0; height:4px; border-radius:99px; background:var(--border); overflow:hidden;}
.pss-metric-bar i{display:block; height:100%; border-radius:99px; background:var(--accent);}
.pss-metric-bar-row .pss-pct-badge{flex-shrink:0;}
.pss-metric-cell.overridden .pss-metric-top{color:var(--warning);}
/* Standard clean input — h-10/px-3/border-slate-200/rounded-md equivalent,
   per the office's exact spec. No card, no shadow, no oversized type;
   border color is the only edit affordance now (blue on hover, blue ring on
   focus), matching every other plain input in the app. */
/* Mockup round 4 (Sept 2026, "clean the eye" pass) — same root-cause fix as
   .pss-metric-ref just above (see that rule's long comment): a bare class
   selector here, specificity (0,1,0), was silently losing its border-width
   (1.5px→1px), background (surface-2→surface, i.e. the intended faint gray
   tint never actually showed), border-radius (9px→10px) and icon-clearance
   padding (padding-inline-end:32px→12px, i.e. the pencil icon had less
   breathing room than designed) to the page-wide `input[type=number]` rule,
   specificity (0,1,1) — a real, if subtle, contributor to the "לא אחיד
   בעיצוב" report, confirmed via computed-style inspection. `input.` prefix
   here matches that rule's specificity so this one (later in the file)
   wins, same fix pattern as .pss-metric-ref. */
input.pss-metric-input{height:40px; width:100%; box-sizing:border-box; background:var(--surface-2); border:1.5px solid var(--border-strong); border-radius:9px; padding-inline-end:32px; padding-inline-start:12px; padding-block:0; font-family:"Heebo",sans-serif; font-weight:800; font-size:20px; color:var(--ink); font-variant-numeric:tabular-nums; transition:border-color .12s, box-shadow .12s, background-color .12s; -webkit-appearance:none; appearance:none; -moz-appearance:textfield;}
.pss-metric-input::-webkit-outer-spin-button, .pss-metric-input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.pss-metric-cell.overridden .pss-metric-input{color:var(--warning); border-color:var(--warning); background:var(--warning-wash);}
.pss-metric-input:hover{border-color:var(--accent);}
.pss-metric-input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
/* Sept 2026 (final polish pass) — a small persistent ✏️ on the input itself
   (not just a hover cue) per the office's explicit "אייקון ✏️ קטן בצד" ask,
   so the field reads as editable at a glance rather than only on hover.
   Sits on the inline-END edge (physical left under this page's RTL) since
   type="number" content itself renders hugging the inline-start/physical-
   right edge — putting the icon there collided visually with the digits. */
.pss-metric-inputwrap{position:relative;}
.pss-metric-pen{position:absolute; inset-inline-end:10px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--ink-muted); pointer-events:none;}
/* The quota reference ("מתוך X ימי/שעות תקן") stays a real, still-editable
   input (never take editability away in a redesign) but sits under the main
   input as plain small gray text — no background, no border — per the
   office's exact spec; a dashed underline only appears on hover/focus, as
   its own quiet edit hint. */
/* Mockup round 5 — nudged up a notch (11px→12.5px) per the office's note on
   this exact text ("אולי הייתי מגדיל קצת את הגופן - שלא יהיה בולט אבל כן
   שיהיה גדול יותר"); still plain/non-bold/muted, just a little more legible
   now that the number it refers to is actually visible (round 4's fix). */
.pss-metric-sub{display:flex; align-items:center; flex-wrap:wrap; gap:3px; font-size:12.5px; color:var(--ink-muted);}
/* Sept 2026 (final polish pass) — the "מתוך" quota reference now gets its
   own ↺ revert affordance (see metricCard's refOverridden) so an edited
   quota figure (e.g. שעות תקן) can actually be undone, not just edited. */
.pss-metric-sub.overridden{color:var(--warning);}
/* Mockup round 4 (Sept 2026, "clean the eye" pass) — ROOT-CAUSE FIX. This
   rule never won the cascade against the page-wide generic
   `input[type=number]{border:1px solid ...; width:100%; ...}` rule: that
   selector is a TYPE selector ("input") plus an attribute selector
   ("[type=number]"), specificity (0,1,1) — one step ABOVE a plain class
   selector like the old `.pss-metric-ref{...}`, specificity (0,1,0) — so
   the generic rule always won regardless of which one came later in the
   file. The result: this "מתוך" reference input silently kept the generic
   rule's solid border AND width:100%, stretching it into an empty-looking,
   oversized box instead of the small borderless inline figure this rule was
   already trying to style it as. This is exactly the "תקן רחב מדי/ריק"
   report: the NUMBER WAS ALWAYS THERE, just boxed and stretched so it read
   as blank. Fix: `input.pss-metric-ref` matches the generic rule's own
   specificity (0,1,1) — being the later rule in the cascade, it now wins the
   tie, the same pattern already used elsewhere in this file for the same
   reason (e.g. .pss-achip input). */
input.pss-metric-ref{width:auto; background:none; border:none; border-bottom:1px dashed transparent; padding:0; margin:0; font:inherit; color:inherit; cursor:text; -webkit-appearance:none; appearance:none; -moz-appearance:textfield;}
input.pss-metric-ref:hover, input.pss-metric-ref:focus{border-bottom-color:var(--accent); color:var(--accent); outline:none;}
input.pss-metric-ref::-webkit-outer-spin-button, input.pss-metric-ref::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}

/* Sept 2026 (7th fix pass, "No Dashed Borders!") — the ש.נ׳ 100%/125%/150%
   and erev-credit/total-payable read-only figures used to sit in the same
   boxed .pss-f grid as every editable field, just with a dashed border to
   mark them read-only (.pss-f.readonly, further up — still exactly as-is
   for every OTHER screen that uses it: settings drawer, pay components,
   custom schedule). The office asked for these specific ones to lose EVERY
   border/outline and read as a plain, transparent row of stats instead —
   small gray label on top, bold number below, flex-row with generous gaps,
   nothing boxed at all. Used only via flatStat()/statRow() in secAttendance. */
.pss-stat-row{display:flex; flex-wrap:wrap; align-items:flex-start; gap:22px; padding:4px 0 2px;}
.pss-stat{display:flex; flex-direction:column; gap:3px;}
.pss-stat .lbl{font-size:10.5px; font-weight:600; color:var(--ink-muted); white-space:nowrap;}
.pss-stat .v{font-family:"Heebo",sans-serif; font-size:14px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums;}

/* מחלה/חופשה/מילואים — quiet single line when all-zero (the common case),
   a row of small colored chip-fields when at least one is in use, per the
   office's exact spec ("טקסט שקט... תגית קומפקטית עם סוג+ימים"). */
.pss-absence-quiet{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-muted); padding:2px 0;}
.pss-absence-add-btn{background:none; border:none; color:var(--accent); font-size:11.5px; font-weight:700; cursor:pointer; padding:2px 4px; font-family:inherit;}
.pss-absence-add-btn:hover{text-decoration:underline;}
.pss-absence-chips{display:flex; gap:10px; flex-wrap:wrap;}
/* Sept 2026 (final polish pass) — absences (right/inline-start) and the
   holiday-pay field+badge (left/inline-end, stacked) now share one row,
   both starting at the same top edge, per the office's explicit "בקו ישר"
   request. When there's no holiday-eligible field for this employment type,
   .pss-holiday-block is simply empty and this row just holds the chips. */
.pss-absence-holiday-row{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.pss-holiday-block{display:flex; flex-direction:column; align-items:flex-start; gap:6px; flex-shrink:0;}
/* Mockup round 3 (Sept 2026, "premium SaaS reference" pass) — rebuilt again
   (see achip()'s own comment for the fuller history: pill-with-hidden-input
   → dashed-pill-with-"+" → this) into a real bordered, colored-fill INPUT
   BOX matching the office's reference design: a small label row on top
   (type + unit + revert-if-overridden), one centered bold number input
   below — the same visual family as .pss-metric-input/.pss-spec-tile
   elsewhere on this panel, not its own separate pill language. Fixed width
   (~128px) rather than the old auto-sizing pill, so the 3 boxes read as a
   matched row, same idea as .pss-spec-grid's equal-width tiles. */
.pss-achip{width:128px; flex-shrink:0; display:flex; flex-direction:column; gap:6px; background:var(--surface-2); border:1.5px solid var(--border-strong); border-radius:10px; padding:8px 10px;}
.pss-achip label{display:flex; align-items:center; gap:4px; font-size:10.5px; font-weight:700; color:var(--ink-muted);}
.pss-achip label .u{font-weight:400; color:var(--ink-muted); margin-inline-start:auto;}
.pss-achip input{width:100%; box-sizing:border-box; background:none; border:none; padding:0; text-align:center; font-family:"Heebo",sans-serif; font-weight:800; font-size:18px; color:var(--ink); font-variant-numeric:tabular-nums; -webkit-appearance:none; appearance:none; -moz-appearance:textfield;}
.pss-achip input:focus{outline:none;}
.pss-achip input::-webkit-outer-spin-button, .pss-achip input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.pss-achip:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
/* A zero-value box stays visually quieter (muted text, no tint) but is
   never hidden and never looks different in KIND from an active one — same
   border weight, same centered-input layout — so the office's "is this
   really a field" question can't come up again. */
.pss-achip.zero input{color:var(--ink-muted);}
.pss-achip.sick.active{background:var(--warning-wash); border-color:var(--warning);}
.pss-achip.sick.active input{color:var(--warning);}
.pss-achip.vac.active{background:var(--good-wash); border-color:var(--good);}
.pss-achip.vac.active input{color:var(--good);}
.pss-achip.reserve.active{background:var(--accent-wash); border-color:var(--accent);}
.pss-achip.reserve.active input{color:var(--accent);}
.pss-achip.overridden{box-shadow:0 0 0 1.5px currentColor inset;}
.pss-achip .pss-revert{color:inherit; opacity:.7; font-size:10px;}

/* הערות לשכר — flat at rest, only gains the amber "there's real content
   here" treatment once something is actually written (office's exact spec:
   "מודגשת רק כשיש בה תוכן"). */
.pss-notes-flat{position:relative; background:var(--surface-2); border:1.5px solid var(--border-strong); border-radius:10px; padding-inline-end:34px; padding-inline-start:14px; padding-block:10px; margin-top:12px; transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease;}
.pss-notes-flat label{display:block; font-size:11px; color:var(--ink-muted); font-weight:700; margin-bottom:4px;}
.pss-notes-flat textarea{width:100%; background:none; border:none; padding:0; font-size:12.5px; font-family:"Heebo",sans-serif; font-weight:400; color:var(--ink); resize:vertical; min-height:34px;}
.pss-notes-flat textarea:focus{outline:none;}
.pss-notes-flat:hover{border-color:var(--ink-muted);}
.pss-notes-flat:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.pss-notes-flat .pss-notes-pen{position:absolute; inset-inline-end:12px; top:12px; font-size:12px; color:var(--ink-muted); pointer-events:none;}
.pss-notes-flat.filled{background:var(--warning-wash); border-color:var(--warning);}
.pss-notes-flat.filled label{color:var(--warning);}
.pss-notes-flat.filled .pss-notes-pen{color:var(--warning);}

.pss-comps{grid-column:span 4; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; align-items:start;}
@media (max-width:640px){ .pss-comps{grid-template-columns:1fr;} }
.pss-comp-addrow{grid-column:1/-1;}
/* "+ הוסף רכיב שכר" — same visual language as .pss-comp-card-x but a full
   dashed-accent affordance rather than a plain select, unchanged in spirit
   from the old chip-list version. */
.pss-comp-add{font-size:11.5px; font-weight:700; color:var(--accent); background:var(--accent-wash); border:1px dashed var(--accent); border-radius:8px; padding:0 12px; height:38px; cursor:pointer; width:100%;}
.pss-comp-full{font-size:11.5px; color:var(--ink-muted);}
/* Full input CARD per pay component (Sept 2026 redesign) — deliberately the
   exact same surface/border/radius recipe as .pss-f ("שכר / תעריף") per the
   office's explicit request, just taller to fit the name+amount row plus
   the fixed/one-time mode selector. */
.pss-comp-card{position:relative; background:var(--pss-input-bg); border:1px solid var(--pss-input-border); border-radius:9px; padding:10px 34px 10px 11px; display:flex; flex-direction:column; gap:9px;}
.pss-comp-card-x{position:absolute; top:8px; inset-inline-end:8px; width:20px; height:20px; border-radius:50%; border:none; background:var(--surface-2); color:var(--ink-muted); font-size:10px; cursor:pointer; line-height:1; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.pss-comp-card-x:hover{background:var(--danger-wash); color:var(--critical);}
.pss-comp-card-row{display:flex; gap:10px;}
.pss-comp-card-field{flex:1; min-width:0;}
.pss-comp-card-field label{font-size:9.5px; color:var(--ink-muted); font-weight:700; text-transform:uppercase; letter-spacing:.02em; display:block; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pss-comp-card-field select, .pss-comp-card-field input{width:100%; font-family:inherit; font-size:13px; font-weight:700; color:var(--ink); border:1px solid var(--border); border-radius:6px; padding:5px 7px; background:var(--surface); box-sizing:border-box; cursor:pointer;}
/* the shorthand `padding` above resets the global select{padding-left:32px}
   rule that reserves room for its dropdown-arrow background image — restore
   it here or the arrow overlaps the text (same fix as .ps-select elsewhere). */
.pss-comp-card-field select{padding-left:32px;}
.pss-comp-card-field.amt input{font-family:"Heebo",sans-serif; cursor:text;}
.pss-comp-card-field select:focus, .pss-comp-card-field input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash); cursor:text;}
.pss-comp-card-mode{display:flex; gap:14px; flex-wrap:wrap;}
.pss-comp-radio{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--ink-2); cursor:pointer; font-weight:600;}
.pss-comp-radio input{margin:0; accent-color:var(--accent); cursor:pointer;}
.pss-comp-radio i{font-style:normal; color:var(--ink-muted); font-weight:400;}

.pss-f.toggle{flex-direction:row; align-items:center; justify-content:space-between; cursor:pointer;}
.pss-f.toggle .tglabel{font-size:11.5px; font-weight:600; color:var(--ink-2); text-transform:none; letter-spacing:0;}
.tgsw-wrap{position:relative; display:inline-block; width:30px; height:17px; flex-shrink:0;}
.tgsw-wrap input{position:absolute; inset:0; opacity:0; margin:0; cursor:pointer;}
.tgsw{position:absolute; inset:0; border-radius:99px; background:var(--border-strong); transition:background .15s; pointer-events:none;}
.tgsw::after{content:""; position:absolute; top:2px; inset-inline-start:2px; width:13px; height:13px; border-radius:50%; background:var(--surface); transition:inset-inline-start .15s; box-shadow:0 1px 2px rgba(0,0,0,.25);}
.tgsw-wrap input:checked + .tgsw{background:var(--accent);}
.tgsw-wrap input:checked + .tgsw::after{inset-inline-start:15px;}
/* Final Polish pass (Sept 2026) — company-wide overtime policy ('none'/
   'all') locking the per-employee toggle: same "disabled, dimmed, no
   pointer" language as the period-lock controls elsewhere, scoped to this
   toggle component specifically. */
.pss-f.toggle.disabled{cursor:not-allowed; opacity:.6;}
.tgsw-wrap input:disabled{cursor:not-allowed;}
.tgsw-wrap input:disabled + .tgsw{background:var(--surface-2);}
.tgsw-wrap input:checked:disabled + .tgsw{background:var(--border-strong);}

.pss-autosave-note{padding:10px 20px 18px; font-size:11px; color:var(--ink-muted); border-top:1px solid var(--border); margin-top:8px;}

/* Sept 2026 — "הגדרות העסקה ושכר" no longer opens an in-place drawer here
   at all (see the removed .pss-settings-drawer/.pss-settings-backdrop —
   both retired along with the drawer itself); the panel header instead
   shows one compact read-only tags row (סוג משרה/תעריף/מתכונת עבודה/זכאות
   לש. נוספות) that navigates to "ניהול נתונים → 💰 הגדרות תקן עובדים" when
   clicked, plus its own small "✏️ עריכת הגדרות עובד/ת" button doing the
   same. */
/* Sept 2026 (2nd redesign pass) — tightened per the office's "compact the
   tags row" ask.
   Sept 2026 (fix pass, right after) — the office compared the live screen
   to the published mockup and preferred the mockup's plain-text "tagsrow"
   treatment (items separated by a plain "|", no background) over this
   pill/chip look, which read heavier/more "boxy" than intended for a
   de-emphasized info strip — especially since there's already a dedicated
   "✏️ עריכת הגדרות עובד/ת" button right next to it for the actual edit
   action, so the tags themselves don't need to look like a button to
   signal they're clickable. Destyled to match: no fill/border/radius,
   just text + "|" separators, with a subtle underline-on-hover as the only
   remaining "this is clickable" cue. Still the same <button
   data-ps-settings-open> element — only the chrome changed. */
.pss-terms-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 20px; border-bottom:1px solid var(--border);}
/* Sept 2026 (SaaS-structured pass) — the "|"-separated text-tags reading
   were replaced with soft neutral pills per the office's explicit spec
   ("תגיות רכות (Soft Pills) ברקע ניטרלי ועדין"); still the exact same
   clickable data-ps-settings-open button, just each <span> inside it now
   renders as its own pill instead of plain inline text + .sep divider. */
.pss-terms-tags{display:inline-flex; align-items:center; gap:0; flex-wrap:wrap; background:none; border:none; border-radius:0; padding:2px 0; cursor:pointer; font-family:inherit;}
/* Mockup (Sept 2026, "quiet control center" direction) — one more step past
   the "SaaS-structured" soft-pills pass above: 5 separate pill chips in a
   row was itself part of the office's "מלא קוביות" complaint, so this drops
   the pill chrome entirely (no fill/border/radius on any of the 5 — back
   toward the even earlier plain-text pass, see that comment above) and
   uses color alone (not a colored box) to carry the OT/travel status,
   separated by a plain middot so the whole row reads as one calm line of
   text rather than a row of tags. Still the same single clickable button. */
.pss-terms-tags span{display:inline-flex; align-items:center; padding:0; background:none; border:none; border-radius:0; font-size:11.5px; font-weight:600; color:var(--ink-2); transition:color .12s;}
.pss-terms-tags span:not(:last-child)::after{content:"·"; margin:0 9px; color:var(--border-strong); font-weight:400;}
.pss-terms-tags:hover span{color:var(--ink);}
.pss-terms-tags .accent{color:var(--accent); font-weight:700;}
.pss-terms-tags .lock{color:var(--warning); font-weight:700;}
.pss-terms-tags:hover .accent{color:var(--accent);}
.pss-terms-tags:hover .lock{color:var(--warning);}
/* Sept 2026 (2nd fix pass) — pinned to the far edge of .pss-terms-row (same
   margin-inline-start:auto pattern already used by .pss-comp-recurring-edit
   below), per the office's explicit request to match how "עריכת הגדרות
   שכר" is positioned elsewhere on this panel. */
.pss-settings-btn{white-space:nowrap; margin-inline-start:auto;}

/* Mockup round 3 (Sept 2026, "premium SaaS reference" pass) — the office's
   own reference design for this whole block (see termsRow's comment):
   .pss-spec-row replaces .pss-terms-row as the outer wrapper — a plain
   column stack (grid, then the extra-badges row, then the settings-edit
   button) instead of one single-line button-of-spans. align-items:stretch
   (the flex default) gives the grid/badges children the full row width for
   free; only the settings button opts out with align-self:flex-end so it
   still sits at the panel's far/reading-end edge, same position it always
   held. */
.pss-spec-row{display:flex; flex-direction:column; gap:10px; padding:16px 22px 14px; border-bottom:1px solid var(--border);}
.pss-spec-row .pss-settings-btn{align-self:flex-end; margin-inline-start:0;}
/* Mockup round 6 — switched from a fixed 4-column CSS grid to flex-wrap so
   the standing-terms tiles and the (now-merged, see termsRow) recurring
   extras can share one flowing row of however many tiles there are, each
   sized to its own content instead of 4 forced-equal columns. flex-basis
   140px is a floor, not a fixed width — tiles still grow evenly (flex:1) to
   fill a full row when there's space, same as before for exactly 4 tiles at
   the default 1180px panel width; at the new, slightly wider
   .main-inner-payroll (see that class) there's now also room for the extra
   tiles to join the same row instead of wrapping to a second one. */
.pss-spec-grid{display:flex; flex-wrap:wrap; gap:8px;}
/* Oct 2026 (schema.sql Block Z) — the 5 standing-terms tiles (תעריף/מתכונת
   עבודה/שעות נוספות/נסיעות/מחלה) now live in their own fixed 3-column CSS
   GRID rather than sharing the flowing flex-wrap row above with the
   recurring pay-component tiles — a real grid (not flex-wrap) is what makes
   "שתי שורות אחידות" (two UNIFORM rows) guaranteed regardless of container
   width, per the office's exact spec, instead of however many tiles happen
   to fit on a flex line. 5 items in 3 columns wrap to 3+2 automatically.
   Pay components (if any) now sit in their own separate row below instead
   (see .pss-pay-pills) — no longer merged into this same grid. */
.pss-spec-grid-5{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:10px;}
.pss-spec-grid-5 .pss-spec-tile{width:100%;}
@media (max-width:720px){ .pss-spec-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));} }
/* Oct 2026 — recurring pay-component "soft pills" (בונוס/נסיעות-לחודש/etc.),
   now visually distinct from the 5 standing-terms tiles above instead of
   sharing their squared .pss-spec-tile shape — a rounded pill (same family
   as .crm-stat-pill elsewhere in the app) reads as "an extra, employee-
   specific add-on" rather than "a core fact", matching the office's "תגית
   רכה" spec. Still a button (opens the same settings drawer), just styled
   as a pill instead of a tile. */
.pss-pay-pills{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px;}
.pss-pay-pill{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:6px 13px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border); cursor:pointer; font-family:inherit; transition:border-color .12s;}
.pss-pay-pill:hover{border-color:var(--border-strong);}
/* Mockup round 6 (bugfix) — the first version of this used flex:1 1 140px
   with min-width:130px, meaning tiles were allowed to SHRINK below their
   own content's width once 6 tiles fought for one row — "זכאי למחלה מיום 1"
   got clipped to "זכאי למחלה מיום…" (the .v span's own overflow:hidden/
   ellipsis kicking in). flex:0 0 auto instead means every tile always sizes
   to its actual content/padding and never shrinks; when a line runs out of
   room, flex-wrap moves the next tile down to a new line instead of
   squeezing everyone — no more clipped text, full stop. */
.pss-spec-tile{display:flex; align-items:center; justify-content:space-between; gap:6px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:9px 12px; cursor:pointer; font-family:inherit; text-align:start; transition:border-color .12s, background-color .12s; flex:0 0 auto;}
/* Mockup round 6 — the recurring pay-component tiles (נסיעות/מענק/etc.)
   dropped their icon per the office's explicit request ("ללא אייקון
   נוסף") — this modifier just centers the single remaining text line,
   since .pss-spec-tile's own justify-content:space-between has nothing to
   space against once the icon is gone. Standing-terms tiles (שעות נוספות/
   נסיעות) and the "זכאי למחלה מיום 1" tile are UNCHANGED — they keep both
   their icon and this modifier is never applied to them. */
.pss-spec-tile-noicon{justify-content:center;}
.pss-spec-tile:hover{border-color:var(--border-strong);}
.pss-spec-tile-text{min-width:0; display:flex; flex-direction:column; gap:2px;}
.pss-spec-tile-text .l{font-size:10px; font-weight:600; color:var(--ink-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pss-spec-tile-text .v{font-size:12.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
/* Mockup round 5 — single-line variant for the recurring pay-component
   tiles (see their call site above): no stacked label row, so just center
   the lone .v line vertically instead of column-stacking with a .l. */
.pss-spec-tile-text-1ln{justify-content:center;}
.pss-spec-tile .ic{flex-shrink:0; display:inline-flex;}
.pss-spec-tile .ic .crm-icon{width:15px; height:15px;}
.pss-spec-tile.tone-accent .ic{color:var(--accent);}
/* Mockup round 5 — per the office's note on the "שעות נוספות" tile
   specifically ("המילה זכאי... מדגיש בצבע שחור ולא מעביר לכחול בדומה
   למתכונת עבודה"): the eligibility signal now lives ONLY in the icon's
   color (kept accent-blue above), not in the value text too — the value
   stays plain ink/black, matching the neutral tiles right next to it, one
   more step in reducing how many colors compete for attention on this
   board. Removed: `.pss-spec-tile.tone-accent .v{color:var(--accent);}`. */
.pss-spec-tile.tone-lock .ic{color:var(--warning);}
/* The two data/reference tiles (rate, work pattern) carry no icon and no
   tone color — only the 2 eligibility tiles (OT, travel) get one, so color
   stays reserved for a genuine status signal instead of decorating every
   tile alike. */
.pss-extra-badges{display:flex; flex-wrap:wrap; gap:8px;}
.pss-extra-badge{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:6px 12px; border-radius:99px; border:1px solid transparent; cursor:pointer; font-family:inherit; background:none;}
.pss-extra-badge .ic{display:inline-flex;}
.pss-extra-badge .ic .crm-icon{width:13px; height:13px;}
.pss-extra-badge.tone-accent{background:var(--accent-wash); color:var(--accent);}
.pss-extra-badge.tone-neutral{background:var(--surface-2); color:var(--ink-2); border-color:var(--border);}
.pss-extra-badge:hover{filter:brightness(.97);}
.pss-comp-recurring-strip{display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0 0 12px; padding:8px 12px; background:var(--surface-2); border:1px dashed var(--border-strong); border-radius:10px; font-size:12px;}
.pss-comp-recurring-strip .lbl{color:var(--ink-muted); font-weight:600;}
.pss-comp-recurring-strip .chip{background:var(--surface); border:1px solid var(--border); border-radius:99px; padding:3px 10px; font-weight:600; color:var(--ink-2);}
.pss-comp-recurring-edit{margin-inline-start:auto; background:none; border:none; color:var(--brand-accent); font-size:11.5px; font-weight:600; cursor:pointer; padding:2px 4px;}
.pss-comp-recurring-edit:hover{text-decoration:underline;}
/* Sept 2026 UI fix — the office-board card's own strip (pssPanelHtml) reads
   calm/flat at rest, unlike the settings-drawer's version above (still the
   dashed "editable area" look, untouched): no border, no background, until
   hover reveals a soft indigo wash + pointer cursor — the WHOLE strip is a
   data-ps-settings-open click target now, so the hover itself is the "you
   can click this" affordance instead of a permanent dashed box. Scoped to
   .pss-panel specifically so the shared class above is unaffected. */
/* Sept 2026 (final polish pass) — side padding widened from 4px to the same
   20px the panel uses everywhere else (.pss-terms-row/.pss-issue-banner) so
   "הגדרות שכר" here lines up exactly under "הגדרות עובד/ת" in .pss-terms-row
   right above it — both now sit margin-inline-start:auto at the same 20px
   inset from the panel edge, reading as one consistent two-line control. */
.pss-panel .pss-comp-recurring-strip{background:transparent; border:none; padding:4px 20px; margin-bottom:4px; cursor:pointer; transition:background-color .15s ease;}
.pss-panel .pss-comp-recurring-strip:hover{background:rgba(79,70,229,.07);}
/* Mockup round 2 (Sept 2026) — per the office's own question ("should the
   recurring pay components look like tags, or match תנאי עובד?"): flattened
   to the exact same plain-text-with-middot language as .pss-terms-tags right
   above it, instead of its own separate pill/chip look — one consistent
   "read-only facts about this employee" visual system for both rows, rather
   than two different box styles stacked on top of each other. Scoped to
   .pss-panel only — the settings-drawer's own .pss-comp-recurring-strip
   (dashed-border container, a genuinely different, editable context) keeps
   its original chip look untouched. */
.pss-panel .pss-comp-recurring-strip .chip{background:none; border:none; padding:0; border-radius:0; color:var(--ink-2); font-weight:600; font-size:11.5px;}
.pss-panel .pss-comp-recurring-strip .chip:not(:last-of-type)::after{content:"·"; margin:0 9px; color:var(--border-strong); font-weight:400;}
.pss-drawer-savebar{display:flex; gap:10px; justify-content:flex-end; padding:14px 20px; border-top:1px solid var(--border); border-bottom:1px dashed var(--border-strong); margin-bottom:6px; background:var(--surface-2);}

/* .ps-input: base rule from a legacy payroll-card layout (no longer
   rendered — replaced by .pss-* above). Kept because it is still
   genuinely used elsewhere: the profitability screen's retainer/hourly-
   cost inputs render class="ps-input num" (see profitTbodyHtml/
   renderProfitRow below). Every other .ps-card/.ps-row/.ps-field/.ps-comp-*/etc. rule that
   used to live in this legacy block was confirmed dead — no live
   class="..." emission anywhere in the file — and has been removed. */
.ps-input{padding:6px 9px; font-size:12.5px; border-radius:7px; text-align:center; box-sizing:border-box;}

/* ---------- office payroll summary: collapsible admin guide ---------- */
.ps-guide{margin-top:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); overflow:hidden;}
.ps-guide-toggle{width:100%; display:flex; align-items:center; gap:10px; padding:12px 16px; background:none; border:none; cursor:pointer; text-align:right; font-family:inherit; color:var(--ink);}
.ps-guide-icon{font-size:16px;}
.ps-guide-title{flex:1; font-weight:700; font-size:13px;}
.ps-guide-chevron{color:var(--ink-muted); font-size:13px;}
/* payroll-summary guide only (not the other two .ps-guide instances —
   overtime info on נוכחות ושכר, cost panel on the profitability tab): this
   one used to be an easy-to-miss plain gray row at the very bottom of a
   long, scrollable report. Given a colored left border + tinted icon badge
   so it reads as a deliberate, findable panel even before anyone clicks
   "💡 איך זה עובד?" — and .ps-guide-flash briefly pulses it when that
   button's "פתיחת המדריך המלא" link jumps the page down to it (see
   #ps-onboarding-open-guide's handler in renderPayrollSummaryView), so the
   jump itself is unmistakable, not just a silent scroll. */
.ps-guide-payroll{border-inline-start:4px solid #0284c7; background:var(--accent-wash);}
.ps-guide-payroll .ps-guide-icon{display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:8px; background:linear-gradient(135deg,#0ea5e9,#6366f1); color:#fff; font-size:13px;}
@keyframes ps-guide-flash{0%,100%{box-shadow:0 0 0 0 rgba(2,132,199,0);} 25%,75%{box-shadow:0 0 0 4px rgba(2,132,199,.25);}}
.ps-guide-flash{animation:ps-guide-flash 1.1s ease-in-out 2;}
.ps-guide-body{padding:0 20px 18px 20px; font-size:12.5px; color:var(--ink-2); line-height:1.7;}
.ps-guide-body h4{margin:12px 0 6px; font-family:"Heebo"; font-size:13px; color:var(--ink);}
.ps-guide-body ul,.ps-guide-body ol{margin:0; padding-inline-start:20px; display:flex; flex-direction:column; gap:6px;}
.ps-guide-body p{margin:0 0 4px;}

/* ---------- payroll summary: first-time onboarding modal ---------- */
.ps-onboarding-box{max-width:560px; padding:28px 26px 24px;}
.ps-onboarding-head{text-align:center; margin-bottom:20px;}
.ps-onboarding-badge{display:inline-block; font-size:11px; font-weight:700; letter-spacing:.02em; color:var(--brand-accent-solid); background:var(--accent-wash); padding:4px 12px; border-radius:999px; margin-bottom:12px;}
.ps-onboarding-head h3{margin:0 0 6px; font-size:19px;}
.ps-onboarding-head p.sub{margin:0; max-width:420px; margin-inline:auto;}
.ps-onboarding-steps{display:flex; flex-direction:column; gap:14px; margin-bottom:22px;}
.ps-onboarding-step{display:flex; align-items:flex-start; gap:14px; padding:14px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border);}
.ps-onboarding-step-ic{font-size:20px; flex-shrink:0; width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:var(--surface); border-radius:10px; border:1px solid var(--border-strong);}
.ps-onboarding-step b{display:block; font-size:13.5px; color:var(--ink); margin-bottom:3px;}
.ps-onboarding-step span{display:block; font-size:12.5px; color:var(--ink-2); line-height:1.6;}

/* ---------- CRM: select-all-across-system banner + bulk-delete modal ---------- */
.crm-selectall-banner{display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:var(--accent-wash); border-bottom:1px solid var(--border); padding:9px 16px; font-size:12.5px; font-weight:600; color:var(--ink);}
.link-btn{background:none; border:none; padding:0; font:inherit; font-weight:700; color:var(--accent); cursor:pointer; text-decoration:underline;}
.modal-overlay{position:fixed; inset:0; background:rgba(15,17,26,0.55); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; z-index:300; padding:20px;}
.modal-box{background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,0.35); max-width:440px; width:100%; padding:22px 24px;}
.modal-box h3{margin:0 0 10px; font-family:"Heebo"; font-size:16.5px; color:var(--ink);}
.modal-box p{margin:0 0 18px; font-size:13.5px; color:var(--ink-2); line-height:1.6;}
.modal-actions{display:flex; gap:10px; justify-content:flex-start;}
.modal-box-lg{max-width:640px;}
/* ps-quickfix-modal: embeds the full סיכום חודשי board (table + quota card)
   for one employee — needs real width, unlike the form-style modals
   .modal-box-lg was sized for. */
.modal-box-xl{max-width:1080px; max-height:88vh; overflow-y:auto;}
.ps-qf-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px;}
.ps-qf-head h3{margin:0;}

/* ---------- CRM: action bar + modern table + custom columns ---------- */
.crm-actionbar{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px;}
.crm-actionbar .left{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.crm-actionbar .right{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.crm-stat-pill{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:6px 12px; border-radius:99px; background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border);}
.badge.gap-ok{background:#059669; color:#fff;}
.crm-stat-pill.warn{background:var(--warning-wash); color:var(--warning); border-color:var(--warning);}

/* ---- module on/off toggle switch ("ניהול מודולים") ---- */
.module-toggle-row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--border);}
.module-toggle-row:last-child{border-bottom:none;}
.module-toggle-title{font-weight:700; font-size:13.5px; margin-bottom:2px;}
.switch{position:relative; display:inline-block; width:42px; height:24px; flex:none; cursor:pointer;}
.switch input{position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer;}
.switch-track{position:absolute; inset:0; background:var(--surface-2); border:1px solid var(--border); border-radius:99px; transition:background .15s, border-color .15s;}
.switch-track::before{content:""; position:absolute; top:2px; inset-inline-start:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:transform .15s;}
/* "on" state used to be a hardcoded green (#059669) — now the app's own
   accent so every toggle (module management, attendance-edit permission,
   etc.) matches the same brand color as the buttons. */
.switch input:checked + .switch-track{background:var(--accent); border-color:var(--accent);}
/* app is RTL-only (see html[dir=rtl]) — "on" slides the knob toward the
   visual left, i.e. a negative translateX since inset-inline-start already
   anchors it to the RTL start (right) edge. */
.switch input:checked + .switch-track::before{transform:translateX(-18px);}
.switch input:focus-visible + .switch-track{outline:2px solid var(--accent); outline-offset:2px;}
.crm-table-card table{min-width:720px;}
.crm-table-card tbody tr{transition:background .12s;}
.crm-row-clickable{cursor:pointer;}
.crm-row-clickable:hover{background:var(--surface-2);}
.crm-col-add-th{position:relative;}
.crm-col-add-pill{display:inline-flex; align-items:center; gap:5px; background:transparent; color:var(--ink-muted); border:1px dashed var(--border-strong); border-radius:8px; padding:6px 10px; font-size:11px; font-weight:700; cursor:pointer; white-space:nowrap;}
.crm-col-add-pill:hover{color:var(--brand-accent); border-color:var(--brand-accent);}
/* CRM/tasks used to have their own separate emerald "brand" button color,
   deliberately kept apart from the rest of the app's --accent — that
   distinction is gone now, so .btn-crm-primary gets the exact same
   sky→indigo gradient as .btn-primary (fixed hex, not var(--brand-accent-
   solid), for a pixel-identical match) — every "+ הוספת..." button in the
   client board and task board now looks like every other primary button
   in the app. */
.btn-crm-primary{background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 100%); border-color:transparent; color:#fff;}
.btn-crm-primary:hover{background:linear-gradient(135deg,#0284c7 0%,#4f46e5 100%); border-color:transparent;}
.crm-tag-pill{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:999px;}
.crm-tag-pill::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0;}
/* Monday-style "full cell fill" tag — paints the whole <td> rather than a
   small centered chip (crm-tag-pill above), a soft translucent tint of the
   tag's color with gently rounded corners; the containing <td> keeps its
   normal padding so this just fills that padded box edge-to-edge. */
.crm-tag-cell{display:flex; align-items:center; justify-content:center; text-align:center; font-size:12px; font-weight:700; border-radius:8px; padding:7px 10px; margin:-2px 0; line-height:1.3;}

/* ---------- CRM: Monday-style dynamic groups (accordion board) ---------- */
.crm-group-card{margin-bottom:16px; padding:0; overflow:hidden;}
.crm-group-card:last-child{margin-bottom:0;}
.crm-group-head{display:flex; align-items:center; gap:10px; padding:14px 18px; cursor:pointer; user-select:none;}
.crm-group-chevron{display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border:none; background:transparent; color:var(--ink-muted); border-radius:8px; cursor:pointer; padding:0; transition:transform .18s, background .15s;}
.crm-group-chevron:hover{background:var(--surface-2); color:var(--ink);}
.crm-group-chevron.collapsed{transform:rotate(-90deg);}
.crm-group-chevron .crm-icon{width:17px; height:17px;}
.crm-group-title{font-family:"Heebo"; font-weight:800; font-size:14.5px; color:var(--ink);}
.crm-group-count{font-size:11.5px; font-weight:700; color:var(--ink-muted); background:var(--surface-2); border:1px solid var(--border); border-radius:99px; padding:2px 9px;}
.crm-group-actions{display:flex; align-items:center; gap:2px; margin-inline-start:auto;}

/* circular initials avatar for the "מנהל תיק" column + a small
   clean CSS-only hover tooltip with the full name (not the native title=""
   bubble, to match the app's own visual language). */
.crm-avatar-wrap{position:relative; display:inline-flex;}
.crm-avatar{width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:11px; flex-shrink:0; cursor:default;}
.crm-avatar-tip{position:absolute; bottom:calc(100% + 7px); inset-inline-start:50%; transform:translateX(50%) translateY(4px); background:var(--ink); color:#fff; font-size:11.5px; font-weight:600; white-space:nowrap; padding:5px 10px; border-radius:8px; box-shadow:0 8px 20px rgba(20,22,35,.25); opacity:0; pointer-events:none; transition:opacity .15s, transform .15s; z-index:20;}
.crm-avatar-tip::after{content:""; position:absolute; top:100%; inset-inline-start:50%; transform:translateX(50%); border:5px solid transparent; border-top-color:var(--ink);}
.crm-avatar-wrap:hover .crm-avatar-tip{opacity:1; transform:translateX(50%) translateY(0);}

/* row-action icon buttons (עריכה/השבתה/מחיקה) — a dim, quiet slate-400 by
   default (unobtrusive when just scanning the table) that brightens to full
   strength as soon as the pointer is anywhere over the row, not just over
   the button itself; the delete icon additionally tints red on its own
   hover, matching the app's existing --critical danger color. */
.crm-icon{width:15px; height:15px; display:block;}
.crm-icon-btn{width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border:none; background:transparent; border-radius:8px; color:var(--ink-muted); opacity:.6; cursor:pointer; padding:0; transition:opacity .15s, background .15s, color .15s;}
tbody tr:hover .crm-icon-btn{opacity:1;}
.crm-icon-btn:hover{background:var(--surface-2); color:var(--ink);}
.crm-icon-btn.danger:hover{background:var(--danger-wash); color:var(--critical);}
/* "on" state for an icon button that doubles as a status toggle (e.g. the
   employees table's attendance-permission clock icon) — stays visibly lit
   (not just on row-hover like the plain icon buttons above) so the granted/
   not-granted state reads at a glance across the whole table. */
.crm-icon-btn.on{opacity:1; color:var(--accent); background:var(--accent-wash);}
.crm-icon-btn.on:hover{background:var(--accent-wash); color:var(--accent);}
.crm-icon-btn[disabled]{cursor:not-allowed; opacity:.35 !important; background:transparent !important; color:var(--ink-muted) !important;}

/* email → mailto: link, kept visually plain (not styled as a loud hyperlink)
   so the table doesn't look cluttered; the accent color only shows on hover. */
.crm-mailto{color:inherit; text-decoration:none;}
.crm-mailto:hover{color:var(--brand-accent); text-decoration:underline;}

/* phone cell: number + a WhatsApp quick-link icon that only appears on row
   hover (kept hidden otherwise, same "quiet until you need it" idea as the
   row-action icons above), opening the chat directly via wa.me. */
.crm-phone-cell{display:flex; align-items:center; gap:7px;}
.crm-wa-link{display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; color:#25d366; opacity:0; transition:opacity .15s; flex-shrink:0;}
tbody tr:hover .crm-wa-link{opacity:1;}
.crm-wa-link:hover{opacity:1 !important; filter:brightness(1.15);}
/* the info-card grid below (client drawer) isn't a table row, so the
   hover-to-reveal rule above never fires there — this WhatsApp link would
   stay invisible forever otherwise, so it's always shown in that context. */
.crm-info-card .crm-wa-link{opacity:1;}

/* every column header is clickable to sort (crm-sort-th); an admin-defined
   custom column additionally gets a small delete ("x") button next to its
   label (crm-col-del-btn) — only custom columns (state.clientColumns) get
   that button, since the fixed base columns (מס׳/שם/ח.פ/טלפון/אימייל/
   הערות/סטטוס) are plain table columns with no row in client_columns to
   delete them by, so they can never be removed. */
.crm-col-th{display:flex; align-items:center; gap:6px; justify-content:space-between;}
.crm-col-del-btn{flex-shrink:0; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:none; background:transparent; color:var(--ink-muted); font-size:12px; line-height:1; cursor:pointer; padding:0;}
.crm-col-del-btn:hover{background:var(--danger-wash); color:var(--critical);}
.crm-col-edit-btn{flex-shrink:0; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:none; background:transparent; color:var(--ink-muted); font-size:11px; line-height:1; cursor:pointer; padding:0;}
.crm-col-edit-btn:hover{background:var(--accent-wash); color:var(--accent);}
/* the sort control itself: a plain-looking button that inherits the <th>'s
   own uppercase/letter-spacing/color styling so it reads exactly like the
   old static header text, just clickable. */
.crm-sort-th{display:inline-flex; align-items:center; gap:4px; background:none; border:none; padding:0; margin:0; font:inherit; color:inherit; text-transform:inherit; letter-spacing:inherit; cursor:pointer;}
.crm-sort-th:hover{color:var(--ink);}
.crm-sort-th.active{color:var(--brand-accent);}
.crm-sort-arrow{font-size:9px;}

/* column-add popover — floats above everything, positioned by JS from the
   "+" pill's on-screen location (see the CSS rule below for why). */
/* position:fixed (not absolute-in-th) and top/left set by JS from the "+"
   button's own on-screen position — anchoring it inside the table's
   overflow:auto wrapper clipped it and forced an inner scrollbar instead of
   showing it as a floating panel. max-width keeps it on-screen on phones. */
.crm-col-popover{position:fixed; z-index:250; width:270px; max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); overflow-y:auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:13px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:14px; text-align:start; text-transform:none; letter-spacing:normal; font-weight:400;}
.crm-col-popover .field{margin-bottom:10px;}
.crm-col-popover-title{font-weight:700; font-size:13px; margin-bottom:10px; color:var(--ink);}
.crm-col-type-toggle{display:flex; gap:6px; margin-bottom:10px;}
.crm-col-type-toggle .btn{flex:1;}
/* delete-column confirm popover — same floating/positioning mechanism as
   .crm-col-popover (JS-positioned, page-level, position:fixed), anchored to
   whichever column's "x" button was clicked. */
.crm-col-del-popover{position:fixed; z-index:251; width:250px; max-width:calc(100vw - 24px); background:var(--surface); border:1px solid var(--border-strong); border-radius:13px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:14px; text-align:start; text-transform:none; letter-spacing:normal; font-weight:400;}
.crm-col-del-popover p{margin:0 0 12px; font-size:13px; color:var(--ink-2); line-height:1.5;}
.crm-col-del-popover .form-actions{justify-content:flex-end;}

/* ---------- CRM: slide-over drawer (add / edit client) ----------
   Enters from the physical left edge of the viewport — a deliberate,
   fixed choice (not the RTL logical "start"/"end") matching the design
   the office chose from the three mockup options. */
.crm-drawer-backdrop{position:fixed; inset:0; background:rgba(15,17,26,0.32); z-index:300;}
.crm-drawer{
  position:fixed; top:0; left:0; height:100%; width:min(440px,92vw);
  background:var(--surface); border-inline-end:1px solid var(--border);
  box-shadow:24px 0 48px rgba(20,22,35,.16); z-index:301; display:flex; flex-direction:column;
  transform:translateX(-100%); transition:transform .26s cubic-bezier(.32,.72,0,1);
}
.crm-drawer.open{transform:translateX(0);}
.crm-drawer-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px 22px; border-bottom:1px solid var(--border); border-top:3px solid var(--brand-accent);}
.crm-drawer-body{padding:20px 22px; overflow-y:auto; flex:1;}
.crm-drawer-foot{display:flex; align-items:center; gap:10px; padding:16px 22px; border-top:1px solid var(--border);}
.crm-drawer-section-label{font-size:11px; font-weight:700; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.04em; margin:18px 0 10px; padding-top:14px; border-top:1px dashed var(--border);}

/* "פרטים כלליים" tab redesign — profile header (avatar/name/status) + a
   2-column info-card grid for contact fields + wide cards for custom
   fields, replacing the old plain label/value rows. */
.crm-profile-header{display:flex; align-items:center; gap:14px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--border);}
.crm-profile-avatar{width:52px; height:52px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; flex-shrink:0;}
.crm-profile-meta{display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0;}
.crm-profile-name{font-size:17px; font-weight:800; font-family:"Heebo"; color:var(--ink); line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%;}
.crm-info-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px;}
@media (max-width:420px){.crm-info-grid{grid-template-columns:1fr;}}
.crm-info-card{display:flex; align-items:flex-start; gap:10px; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:12px; min-width:0;}
.crm-info-card-icon{width:30px; height:30px; border-radius:9px; background:var(--surface); border:1px solid var(--border); color:var(--ink-muted); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.crm-info-card-icon .crm-icon{width:16px; height:16px;}
.crm-info-card-text{min-width:0; flex:1;}
.crm-info-card-label{font-size:10.5px; font-weight:700; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.03em; margin-bottom:3px;}
.crm-info-card-value{font-size:13.5px; color:var(--ink); font-weight:600; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.crm-info-link{color:var(--brand-accent); text-decoration:none;}
.crm-info-link:hover{text-decoration:underline;}
.crm-custom-fields{display:flex; flex-direction:column; gap:8px;}
.crm-custom-field-card{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:12px;}
.crm-custom-field-card .crm-info-card-value{white-space:normal;}

/* ---------- CRM: advanced file import (centered modal, multi-step) ---------- */
.crm-dropzone{border:1.5px dashed var(--border-strong); border-radius:12px; padding:28px 16px; text-align:center; background:var(--surface-2); cursor:pointer; transition:border-color .15s, background .15s;}
.crm-dropzone:hover,.crm-dropzone.drag{border-color:var(--brand-accent); background:var(--accent-wash);}
.crm-map-row{display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:center; margin-bottom:8px;}
.crm-map-source{font-size:13px; font-weight:700; padding:8px 11px; border-radius:9px; background:var(--surface-2); border:1px solid var(--border); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
@media (max-width:560px){.crm-map-row{grid-template-columns:1fr;}}

/* ---------- Tasks module ("ניהול משימות") — action bar, table, pills, drawer ----------
   Reuses the same design tokens as the rest of the app (so it stays correct
   in dark mode too, even though it was designed against a light backdrop):
   --critical (red) for "דחוף"/"נתקע", --cat-2 (orange) for "גבוה", --cat-4
   (amber) for "בינוני", --cat-1 (blue) for "נמוך"/"בטיפול", and
   --brand-accent-solid (emerald) for "בוצע" — the same categorical/brand
   tokens already used for service-type dots and the CRM's tag pills. */
.task-actionbar{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px;}
.task-actionbar .left{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.task-actionbar .right{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.task-table-card table{min-width:940px; table-layout:fixed;}
/* Monday.com-style board look: visible gridlines, a firmer header band, a
   fixed row height so no row balloons past its neighbors, and a stronger
   hover — scoped to the main tasks board (.task-table-card) only, so the
   rest of the app's tables (CRM, employees, payroll) keep their existing
   lighter look. Borders use border-inline-end (not border-right) since this
   app is RTL-only — the logical property lands on the correct visual side.
   Column widths are proportional (title/client/assignee, in %) plus fixed
   (checkbox/#/date/priority/status/actions, in px) — table-layout:fixed
   makes the header <th> widths authoritative instead of shrink-to-content,
   which is what lets the title column actually claim its 28% instead of
   leaving dead space in the middle of a wide board. */
.task-table-card th{border-bottom:2px solid var(--border-strong); border-inline-end:1px solid var(--border);}
.task-table-card th:last-child{border-inline-end:none;}
.task-table-card td{height:48px; padding-block:8px; border-inline-end:1px solid var(--border);}
.task-table-card td:last-child{border-inline-end:none;}
.task-table-card tbody tr:hover{background:var(--surface-2); transition:background .12s;}
/* No hard pixel cap here on purpose — the title cell now fills its column's
   full (proportional, 28%) width, so truncation point tracks the column
   instead of a fixed 280px guess. The full title is still always reachable:
   the <td> carries a native title="" tooltip (row renderer), and it is
   never clipped anywhere else (task drawer, search results). */
.task-title-truncate{display:block; width:100%; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.task-row.done{background:color-mix(in srgb, var(--brand-accent-solid) 8%, var(--surface));}
.task-row.done:hover{background:color-mix(in srgb, var(--brand-accent-solid) 13%, var(--surface));}
.task-row.done td{color:var(--ink-muted);}
.task-title-btn{display:block; width:100%; background:none; border:none; padding:0; margin:0; font:inherit; color:var(--ink); font-weight:700; cursor:pointer; text-align:start; white-space:normal; max-width:100%;}
.task-title-btn:hover{color:var(--brand-accent);}
.task-row.done .task-title-btn{color:var(--ink-muted); text-decoration:line-through; text-decoration-color:var(--ink-muted); text-decoration-thickness:1.5px;}
.task-client-pill{display:inline-flex; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border); border-radius:999px; padding:3px 10px; font-size:11.5px; font-weight:700; cursor:pointer;}
.task-client-pill:hover{background:var(--accent-wash); color:var(--brand-accent); border-color:var(--brand-accent);}
.task-assignee{display:inline-flex; align-items:center; gap:7px; max-width:100%;}
.task-avatar{width:24px; height:24px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:10.5px; flex-shrink:0;}
.task-assignee span.name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.task-due{white-space:nowrap; color:var(--ink-2);}
/* overdue badge — same danger-wash/critical tokens used for the dashboard's
   overdue KPI tile (.taskdash-alert-tile) and .login-error/.confirm-strip,
   not a new color; a soft rounded chip rather than plain colored text so it
   reads as a status, not an emphasis. */
.task-due.late{display:inline-block; width:fit-content; color:var(--critical); font-weight:600; background:var(--danger-wash); padding:4px 8px; border-radius:6px;}
/* Monday.com-style "chips" for priority + status: solid-fill, centered,
   white text, subtle rounded corners and a light shadow rather than the
   soft tinted pill this app used before. The fill colors below are
   deliberately fixed literals (the light-mode value of each token,
   e.g. --critical/--cat-1/--cat-2/--cat-4/--brand-accent-solid) rather than
   the theme variables themselves — same reasoning as .task-bulk-banner
   above: those tokens turn into pale, low-contrast pastels in dark mode
   (built to sit at ~16% opacity as tinted backgrounds, not as a solid fill
   behind white text), so a chip that stayed on the live token would become
   hard to read at night. Kept as their own named custom properties (rather
   than scattered hex literals) so every chip that shares a color — e.g.
   priority "נמוך" and status "בטיפול" both being blue — stays in sync from
   one place. */
/* --chip-stuck / --chip-medium / --chip-high were amber-600 (#d97706) and
   orange-600 (#ea580c) — a WCAG *text*-contrast check (white text on the
   solid fill, via the dataviz skill's contrast() check) measured those at
   3.19:1 and 3.56:1, both under the 4.5:1 AA floor for normal-weight text.
   Stepped one shade darker each (amber-700 #b45309, orange-700 #c2410c) —
   5.02:1 / 5.18:1, both PASS — with no other change (same hue, same status
   each color means, same pill/chip usage everywhere). */
:root{
  --chip-urgent:#e11d48; --chip-high:#c2410c; --chip-medium:#b45309; --chip-low:#2563eb;
  --chip-open:#64748b; --chip-progress:#2563eb; --chip-stuck:#b45309; --chip-done:#047857;
}
.task-priority-pill{display:flex; align-items:center; justify-content:center; width:100%; font-size:12px; font-weight:700; padding:6px 12px; border-radius:6px; white-space:nowrap; color:#fff; box-shadow:0 1px 2px rgba(20,22,35,.15);}
.task-priority-urgent{background-color:var(--chip-urgent);}
.task-priority-high{background-color:var(--chip-high);}
.task-priority-medium{background-color:var(--chip-medium);}
.task-priority-low{background-color:var(--chip-low);}
/* the status "chip" — a button (not a native <select>, see the JS comment
   by taskStatusChipHtml for why) styled the same solid/white-text way as
   the priority pill above, so the closed control looks consistent with it. */
.task-status-chip{display:flex; align-items:center; justify-content:center; gap:5px; width:100%; border-radius:6px; padding:6px 10px; font-size:12px; font-weight:700; cursor:pointer; border:1px solid transparent; color:#fff; box-shadow:0 1px 2px rgba(20,22,35,.15);}
.task-status-chip-label{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.task-status-chip-arrow{font-size:9px; opacity:.85; flex-shrink:0;}
.task-status-open{background-color:var(--chip-open);}
.task-status-in_progress{background-color:var(--chip-progress);}
.task-status-stuck{background-color:var(--chip-stuck);}
.task-status-completed{background-color:var(--chip-done);}
/* the floating option list this chip opens — page-level + position:fixed +
   JS-positioned, same mechanism as #crm-col-popover (see its CSS comment),
   so it escapes the task table's own overflow:auto instead of being
   clipped by it. Each option gets its OWN distinct soft-tint color (the bug
   report: a native <select>'s open list can't be styled per-option in any
   browser, so every row rendered in the same uniform blue) — these use the
   live theme tokens (not the chip-* fixed literals above), same
   tint-background + saturated-text formula the rest of the app already
   used pre-redesign, which is what keeps it readable in dark mode too. */
.task-status-menu{position:fixed; z-index:250; min-width:130px; background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:5px; display:flex; flex-direction:column; gap:2px;}
.task-status-menu-item{display:flex; align-items:center; gap:6px; width:100%; border:none; border-radius:7px; padding:7px 9px; font-size:12.5px; font-weight:700; text-align:start; cursor:pointer;}
.task-status-menu-check{width:13px; font-size:11px; flex-shrink:0;}
.task-status-opt-open{background-color:var(--surface-2); color:var(--ink-2);}
.task-status-opt-open:hover{background-color:var(--border);}
.task-status-opt-in_progress{background-color:color-mix(in srgb, var(--cat-1) 14%, transparent); color:var(--cat-1);}
.task-status-opt-in_progress:hover{background-color:color-mix(in srgb, var(--cat-1) 26%, transparent);}
.task-status-opt-stuck{background-color:color-mix(in srgb, var(--cat-4) 16%, transparent); color:var(--cat-4);}
.task-status-opt-stuck:hover{background-color:color-mix(in srgb, var(--cat-4) 28%, transparent);}
.task-status-opt-completed{background-color:color-mix(in srgb, var(--brand-accent-solid) 14%, transparent); color:var(--brand-accent-solid);}
.task-status-opt-completed:hover{background-color:color-mix(in srgb, var(--brand-accent-solid) 26%, transparent);}
/* deliberately a fixed dark color rather than a theme token — matches the
   brand mark in the topbar logo (also a fixed #0F172A regardless of theme)
   and reads as a distinct, high-contrast action toolbar either way. */
.task-bulk-banner{position:sticky; bottom:14px; margin-top:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#0F172A; color:#fff; border-radius:14px; padding:12px 18px; box-shadow:0 16px 40px rgba(20,22,35,.24); z-index:60;}
.task-bulk-banner .btn-ghost{border-color:rgba(255,255,255,.3); color:#fff;}
.task-bulk-banner .btn-ghost:hover{background:rgba(255,255,255,.12);}

/* task analytics dashboard ("דשבורד מנהלים / אנליטיקה") — the sub-tab
   inside "ניהול משימות" built with the dataviz skill (see the JS section
   with the same header comment for the full method). Kept under its own
   taskdash- prefix, the same scoping convention as task-/crm- elsewhere in
   this file, so it can't bleed into any other module's styling. */
.taskdash-view-tabs{margin-bottom:16px;}
.taskdash-body{transition:opacity .15s;}
.taskdash-loading{opacity:.55; pointer-events:none;}
.taskdash-single{grid-template-columns:1fr;}
/* completion-% KPI meter — same green as the "בוצע" status chip (what the
   number literally measures), track a lighter step of the same ramp, per
   marks-and-anatomy.md's meter contract. */
.taskdash-meter-track{margin-top:10px; height:8px; border-radius:5px; background:color-mix(in srgb, var(--brand-accent-solid) 16%, var(--surface-2)); overflow:hidden;}
.taskdash-meter-fill{height:100%; border-radius:5px; background:var(--brand-accent-solid);}
/* overdue KPI — the one card that's meant to read as an alert, same
   danger-wash/critical tokens already used for .login-error/.confirm-strip
   elsewhere, not a new color. */
.taskdash-alert-tile{background:var(--danger-wash); border-color:var(--critical);}
.taskdash-alert-tile .val{color:var(--critical);}
.taskdash-chart-scroll{overflow-x:auto;}
.taskdash-grid{stroke:var(--border); stroke-width:1;}
.taskdash-axis-label{font-size:10.5px; fill:var(--ink-muted); font-family:"Heebo";}
/* 2px surface-color "cutter" between touching stacked-bar segments — the
   gap mechanism marks-and-anatomy.md calls for, drawn as an overlay rect
   rather than shrinking each segment so the proportions stay exactly true
   to the data. */
.taskdash-seg-gap{fill:var(--surface);}
.taskdash-trend-line{fill:none; stroke:var(--brand-accent-solid); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
.taskdash-trend-area{fill:color-mix(in srgb, var(--brand-accent-solid) 10%, transparent); stroke:none;}
.taskdash-trend-dot{pointer-events:none;}
/* every interactive mark (stacked-bar segment, donut arc) lifts on
   hover/focus — interaction.md: "the hovered mark lifts... so the reader
   sees it respond." Line-chart points use a separate, larger transparent
   hit circle (.taskdash-hit) instead, since the visible 8px dot itself is
   under the >=24px hit-target floor. */
.taskdash-mark{cursor:pointer; transition:filter .12s;}
.taskdash-mark:hover, .taskdash-mark:focus{filter:brightness(1.15);}
.taskdash-mark:focus-visible{outline:2px solid var(--ink); outline-offset:1px;}
.taskdash-hit{fill:transparent; cursor:pointer; transition:fill .12s;}
.taskdash-hit:hover, .taskdash-hit:focus{fill:color-mix(in srgb, var(--brand-accent-solid) 20%, transparent);}
.taskdash-hit:focus-visible{outline:2px solid var(--ink); outline-offset:1px;}
/* donut center total — CSS-rotated ring (see taskDashDonutCard's comment),
   a plain HTML overlay so the text itself never rotates with it. */
.taskdash-donut-wrap{position:relative; width:180px; height:180px; margin:0 auto;}
.taskdash-donut-wrap svg{transform:rotate(-90deg);}
.taskdash-donut-center{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none;}
.taskdash-donut-center .total{font-size:22px; font-weight:700; color:var(--ink); font-family:"Heebo";}
.taskdash-donut-center .lbl{font-size:10.5px; color:var(--ink-muted); margin-top:2px;}
/* shared chart tooltip — see wireTaskDashTooltips' JS comment for why this
   one component is imperative rather than state+render()-driven. */
.taskdash-tooltip{position:fixed; z-index:400; background:var(--surface); border:1px solid var(--border-strong); border-radius:8px; padding:7px 10px; box-shadow:0 12px 30px rgba(20,22,35,.2); pointer-events:none; font-size:12px; max-width:220px;}
.taskdash-tooltip-value{font-weight:700; font-size:14px; color:var(--ink);}
.taskdash-tooltip-label{color:var(--ink-2); margin-top:1px;}

/* task drawer — its own copy of the CRM drawer's slide-over mechanism
   (physical left edge, backdrop, double-rAF open animation) rather than
   sharing .crm-drawer directly, so the two modules stay independently
   editable without risking one another. */
.task-drawer-backdrop{position:fixed; inset:0; background:rgba(15,17,26,0.32); z-index:300;}
.task-drawer{
  position:fixed; top:0; left:0; height:100%; width:min(520px,94vw);
  background:var(--surface); border-inline-end:1px solid var(--border);
  box-shadow:24px 0 48px rgba(20,22,35,.16); z-index:301; display:flex; flex-direction:column;
  transform:translateX(-100%); transition:transform .26s cubic-bezier(.32,.72,0,1);
}
.task-drawer.open{transform:translateX(0);}
.task-drawer-head{display:flex; align-items:center; gap:10px; padding:16px 22px; border-bottom:1px solid var(--border); border-top:3px solid var(--brand-accent);}
.task-drawer-head .no{font-size:11.5px; color:var(--ink-muted); font-weight:700; flex-shrink:0;}
.task-drawer-title-input{flex:1; border:1px solid transparent; border-radius:9px; padding:6px 8px; font-size:16px; font-weight:700; color:var(--ink); background:transparent;}
.task-drawer-title-input:hover{border-color:var(--border);}
.task-drawer-title-input:focus{border-color:var(--brand-accent); outline:none; background:var(--surface);}
.task-drawer-body{padding:18px 22px; overflow-y:auto; flex:1;}
.task-drawer-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px;}
.task-drawer-grid .field-full{grid-column:1 / -1;}
.task-drawer-section-label{font-size:11px; font-weight:700; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.04em; margin:18px 0 10px; padding-top:14px; border-top:1px dashed var(--border);}
.task-comment{background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:9px 12px; margin-bottom:8px;}
.task-comment-meta{font-size:11.5px; color:var(--ink-muted); margin-bottom:3px;}
.task-comment-meta b{color:var(--ink);}
.task-comment-body{font-size:13px; color:var(--ink); white-space:pre-wrap;}
.task-drawer-foot{display:flex; gap:10px; padding:14px 22px; border-top:1px solid var(--border);}
.task-drawer-foot textarea{flex:1; resize:none;}

/* ---------- print: fit the monthly payroll report onto one A4 page ---------- */
@page{ size:A4; margin:12mm; }
/* The office-wide payroll summary needs to print landscape — it used to get
   that via Chromium's CSS named-page feature (page: office-summary; on the
   template + a matching @page office-summary{size:A4 landscape}), but that
   didn't reliably flip Chrome's print-preview "Layout" dropdown out of
   Portrait for this deeply-toggled element, leaving the wide table
   compressed/cut off exactly as reported. Replaced with a small,
   unambiguous JS trick instead (see ensurePrintOverrideStyle +
   the #ps-print click handler in wirePayrollSummaryRows): a normally-empty
   \3c style> tag gets a plain, UNNAMED `@page{size:A4 landscape; margin:8mm;}`
   rule written into it right before window.print() is called, and cleared
   again right after — a later, more specific @page declaration for THIS
   one print job, with no dependency on named-page support at all. */
@media print{
  body, html{width:100% !important; height:auto !important; background:#fff !important;}
  .topbar, .topnav-bar, .app-footer, .no-print{display:none !important;}
  .body-row{display:block !important;}
  .main{padding:0; background:#fff;}
  .main-inner{max-width:100%; gap:8px;}
  .card{box-shadow:none; border:1px solid #d7dae5;}
  #printable-payroll .print-header, #printable-billable-report .print-header{
    display:flex !important; justify-content:space-between; align-items:flex-end;
    border-bottom:2px solid #161a23; padding-bottom:6px; margin-bottom:8px;
  }
  #printable-billable-report table{font-size:11px;}
  #printable-billable-report th,#printable-billable-report td{padding:5px 8px;}
  /* A4-fit pass (Sept 2026): every gap/padding in this report is now p-2
     equivalent (8px) or tighter, so a normal month's report — table,
     both KPI rows and the summary text below it — reliably fits one A4
     page instead of spilling a line or two onto a second. */
  #printable-payroll .stat-grid{grid-template-columns:repeat(4,1fr) !important; gap:8px; margin-bottom:8px;}
  #printable-payroll .stat-grid-5{grid-template-columns:repeat(5,1fr) !important; gap:8px; margin-top:8px; margin-bottom:8px;}
  #printable-payroll .stat-tile{padding:7px 9px; border-radius:7px;}
  #printable-payroll .stat-tile .val{font-size:14.5px;}
  #printable-payroll .stat-tile .lbl{font-size:9.5px;}
  #printable-payroll .stat-strip{gap:8px; margin-top:8px !important;}
  #printable-payroll .stat-strip-tile{padding:6px 10px;}
  #printable-payroll table{font-size:9.5px;}
  #printable-payroll th,#printable-payroll td{padding:3px 6px;}
  #printable-payroll .card-pad{padding:8px;}
  #printable-payroll .sub{font-size:10px; padding:4px 0 !important;}
  /* office-wide payroll summary: the native "🖨️ הדפסת דו״ח" button now
     prints the exact same enterprise template as "⬇️ הורד כ-PDF" — the old
     editable ps-card list is hidden during print entirely, and the
     .pspdf-backdrop wrapper (normally display:none; see its own comment
     below) is forced visible so it actually reaches the printed page. */
  #printable-office-summary{display:none !important;}
  /* v107: monthly attendance sheet — one A4 page for a full month */
  @page{size:A4; margin:10mm;}
  body:has(#printable-payroll) .view-head{display:none !important;}
  #printable-payroll .pr-print-sum{display:flex !important; flex-wrap:wrap; gap:3px 18px; font-size:10.5px; color:#475569; padding:2px 0 8px; margin-bottom:6px; border-bottom:1px solid #d7dae5;}
  #printable-payroll .pr-print-sum b{color:#0f172a;} #printable-payroll .pr-print-sum small{color:#64748b;}
  #printable-payroll table th, #printable-payroll table td{font-size:10px !important; padding:2px 6px !important; line-height:1.25 !important;}
  #printable-payroll tr{page-break-inside:avoid;}
  .pspdf-backdrop:has(#monthly-att-pdf-template){display:none !important;} /* v106: the monthly sheet printed twice — the PDF-only template must never reach paper */
  .pspdf-backdrop{display:block !important; padding:0 !important;}
  .pspdf-page{width:auto !important; max-width:none !important; border:none !important;}
}

/* ---------- payroll summary: dedicated "enterprise document" PDF template
   (#payroll-pdf-template, wrapped in .pspdf-backdrop) ----------
   html2canvas (the library the "⬇️ הורד כ-PDF" button uses under the hood —
   see downloadElementAsPdf) rasterizes the live DOM exactly as it looks on
   screen and does NOT switch to print media, so relying on @media print
   alone never worked for that button — it was simply screenshotting the
   editable on-screen ps-cards as they sat, unstyled for paper, and html2pdf
   then sliced that one tall image across pages wherever the page-height
   happened to land, sometimes mid-row. That's the original "looks like a
   broken screenshot" bug.
   The fix is this SEPARATE template (renderPayrollPdfTemplateHtml), built
   fresh from the report's data as real grouped tables rather than the
   editable cards. It first shipped positioned off-screen at all times via a
   large negative offset so html2canvas could "see" it without the person
   ever seeing it — but html2canvas (this bundled version) reliably captures
   a BLANK canvas for a position:fixed element sitting thousands of pixels
   outside the viewport; the offset trick that works for simple cases
   doesn't hold up here, and neither does hiding it inside a clipped
   (overflow:hidden/auto) container of bounded height — a tall report just
   gets silently cut off wherever the clip boundary sits. So instead:
   .pspdf-backdrop is display:none at rest (harmless — nothing ever needs to
   see it sitting there) and is only toggled to .pspdf-active for the few
   seconds an export is actually running (show-before/hide-after around the
   downloadElementAsPdf call in wirePayrollSummaryRows, via its onSettled
   callback), at which point it becomes a perfectly ordinary, UNCLIPPED block
   in the page's normal flow — no position:fixed, no fixed height, no
   overflow container — which is the one DOM state html2canvas can reliably
   rasterize start to finish regardless of how many employees/groups the
   report has. It renders appended below the report on screen for that brief
   window (a short, harmless "jump" while the toast says the PDF is
   preparing) rather than as a full-screen overlay, precisely to avoid
   reintroducing a clipping ancestor. The exact same template is also what
   native "🖨️ הדפסת דו״ח" now prints, via the @media print override above,
   so both buttons produce an identical-looking document as requested.
   Every color below is a fixed hex value, never a theme var(--...) — this
   document has to look identical (white paper, slate/steel-blue
   "enterprise" palette) no matter whether the office happens to be in
   light or dark mode when they export or print. */
.pspdf-backdrop{display:none;}
.pspdf-backdrop.pspdf-active{display:block; padding:16px 0;}
.pspdf-page{
  background:#ffffff; color:#0f172a; font-family:"Heebo",system-ui,sans-serif;
  padding:22px 26px; direction:rtl; width:1250px; max-width:100%; margin:0 auto;
  border:1px solid #e2e8f0;
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}
/* narrower variant for the (portrait, single-employee) נוכחות ושכר PDF —
   same px-per-mm ratio as the 1250px landscape page above (1250px ÷ 281mm
   usable landscape width ≈ 4.45px/mm), applied to portrait A4's 194mm
   usable width (210mm − 8mm margins ×2) ⇒ ~860px, so both documents scale
   identically when html2pdf maps them onto their respective A4 pages. */
.pspdf-portrait{width:860px;}
.pspdf-header{display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; margin-bottom:14px; border-bottom:2px solid #0f172a;}
.pspdf-brand{display:flex; align-items:center; gap:10px;}
.pspdf-brand-mark{width:34px; height:34px; flex-shrink:0; display:flex;}
.pspdf-brand-mark svg{width:100%; height:100%; display:block;}
.pspdf-brand-word{font-family:"Heebo",sans-serif; font-size:19px; direction:ltr; unicode-bidi:isolate;}
.pspdf-brand-word b{font-weight:800; color:#0f172a;}
.pspdf-brand-word span{font-weight:500; color:#38bdf8;}
.pspdf-header-meta{text-align:end;}
.pspdf-title{font-family:"Heebo",sans-serif; font-weight:800; font-size:16px; color:#0f172a; margin-bottom:3px;}
.pspdf-subtitle{font-size:11.5px; color:#475569;}
.pspdf-subtitle b{color:#0f172a; font-weight:700;}
.pspdf-kpi-ribbon{display:flex; background:#0f172a; border-radius:10px; overflow:hidden; margin-bottom:18px;}
.pspdf-kpi{flex:1; padding:11px 14px; text-align:center; border-inline-start:1px solid rgba(255,255,255,.14);}
.pspdf-kpi:first-child{border-inline-start:none;}
.pspdf-kpi-val{font-family:"Heebo",sans-serif; font-weight:800; font-size:19px; color:#38bdf8; line-height:1.2;}
.pspdf-kpi-label{font-size:10px; color:#cbd5e1; font-weight:600; margin-top:2px;}
/* quieter/secondary tile row (e.g. the 100%/125%/150% overtime breakdown
   under the main KPI ribbon) — same idea as the on-screen .stat-strip-tile:
   visually smaller and less prominent than the primary navy ribbon, not a
   second "headline" row. */
.pspdf-kpi-ribbon.quiet{background:#f1f5f9; border:1px solid #e2e8f0;}
.pspdf-kpi-ribbon.quiet .pspdf-kpi{border-inline-start-color:#e2e8f0;}
.pspdf-kpi-ribbon.quiet .pspdf-kpi-val{color:#0f172a; font-size:15px;}
.pspdf-kpi-ribbon.quiet .pspdf-kpi-label{color:#64748b;}
.pspdf-group{margin-bottom:16px;}
.pspdf-group-title{font-family:"Heebo",sans-serif; font-weight:800; font-size:13px; color:#0f172a; background:#f1f5f9; border-inline-start:4px solid #38bdf8; padding:6px 10px; margin-bottom:0; border-radius:6px 6px 0 0;}
.pspdf-group-count{font-weight:600; color:#64748b; font-size:11px; margin-inline-start:6px;}
.pspdf-table{width:100%; border-collapse:collapse; font-size:9.5px;}
.pspdf-table thead th{background:#1e293b; color:#e0f2fe; font-weight:700; font-size:9px; padding:6px 6px; text-align:center; border:1px solid #1e293b; white-space:nowrap;}
.pspdf-table tbody td{padding:5px 6px; border:1px solid #e2e8f0; text-align:center; vertical-align:middle;}
.pspdf-table tbody td.pspdf-name{text-align:start; font-weight:700;}
.pspdf-table tbody td.pspdf-notes{text-align:start; font-size:8.5px; color:#475569;}
.pspdf-table tbody tr:nth-child(even){background:#f8fafc;}
.pspdf-table tfoot td{padding:6px; border:1px solid #cbd5e1; background:#e2e8f0; font-weight:800; text-align:center;}
.pspdf-table tfoot td.pspdf-name{text-align:start;}
.pspdf-empty-note{padding:10px; text-align:center; color:#64748b; font-size:10.5px; border:1px dashed #cbd5e1; border-top:none; border-radius:0 0 6px 6px;}
.pspdf-footnote{font-size:9px; color:#64748b; margin-top:4px; line-height:1.5;}
.pspdf-approval{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-top:26px; padding-top:16px; border-top:1px solid #cbd5e1;}
.pspdf-approval-text{font-family:"Heebo",sans-serif; font-weight:800; font-size:12.5px; color:#0f172a;}
.pspdf-approval-sub{font-size:9.5px; color:#64748b; margin-top:2px;}
.pspdf-sign-lines{display:flex; gap:34px;}
.pspdf-sign{text-align:center;}
.pspdf-sign-line{width:150px; border-bottom:1px solid #0f172a; margin-bottom:5px;}
.pspdf-sign-label{font-size:9.5px; color:#334155; font-weight:600;}

/* ===================================================================
   SaaS layer (Oct 2026, Stage 2): subscription/billing, company profile,
   tenant switcher + impersonation, status banners, signup/onboarding,
   invites. Same Quiet UI vocabulary as the rest of the app: --surface/
   --border tokens, 12–16px radii, soft wash tints instead of loud fills,
   the shared popover shadow (0 16px 40px -10px rgba(15,23,42,.2)).
   =================================================================== */

/* ---- role badge for the platform operator ---- */
.role-badge.system_admin{background:#0f172a; color:#fbbf24; border:1px solid rgba(251,191,36,.45);}
.topbar .role-badge.system_admin{background:rgba(251,191,36,.12); color:#fcd34d; border:1px solid rgba(251,191,36,.4);}

/* ---- company logo in the topbar user chip ---- */
.who-firm-row{display:flex; align-items:center; gap:6px; margin-bottom:2px;}
.firm-logo-chip{width:20px; height:20px; border-radius:6px; object-fit:contain; background:#fff; flex-shrink:0;}
.userchip .who .who-firm-row .who-firm{margin-bottom:0;}

/* ---- tenant switcher (system_admin only) ---- */
.tenant-switch-btn{display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 12px; border-radius:10px; border:1px solid rgba(251,191,36,.35); background:rgba(251,191,36,.08); color:#fde68a; font-size:12.5px; font-weight:700; font-family:inherit; cursor:pointer; white-space:nowrap; max-width:240px;}
.tenant-switch-btn:hover{background:rgba(251,191,36,.16);}
.tenant-switch-btn .nm{overflow:hidden; text-overflow:ellipsis;}
.tenant-switch-btn .crm-icon{width:14px; height:14px;}
.tenant-pop{position:fixed; z-index:260; width:min(360px, calc(100vw - 16px)); background:var(--surface); border:1px solid var(--border-strong); border-radius:14px; box-shadow:0 16px 40px -10px rgba(15,23,42,.2); padding:10px; display:flex; flex-direction:column; gap:8px; max-height:min(70vh,520px);}
.tenant-pop-head{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 4px 0;}
.tenant-pop-head b{font-size:12.5px; color:var(--ink);}
.tenant-pop-head span{font-size:11px; color:var(--ink-muted);}
.tenant-pop input{border:1px solid var(--border-strong); border-radius:9px; padding:8px 11px; font-size:12.5px; background:var(--surface); color:var(--ink); width:100%; box-sizing:border-box;}
.tenant-pop-list{overflow-y:auto; display:flex; flex-direction:column; gap:2px;}
.tenant-row{display:flex; align-items:center; gap:10px; width:100%; text-align:start; background:none; border:1px solid transparent; border-radius:10px; padding:9px 10px; cursor:pointer; font-family:inherit; color:var(--ink);}
.tenant-row:hover{background:var(--surface-2);}
.tenant-row.current{border-color:var(--accent); background:var(--accent-wash-soft);}
.tenant-row .t-main{flex:1; min-width:0;}
.tenant-row .t-name{font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.tenant-row .t-meta{font-size:11px; color:var(--ink-muted); margin-top:1px;}
.tenant-pop-foot{border-top:1px solid var(--border); padding-top:8px;}
.tenant-pop-foot button{width:100%;}

/* ---- impersonation: a floating pill, always on screen while active ---- */
.imp-bar{position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:90; display:flex; align-items:center; gap:12px; padding:9px 10px 9px 16px; border-radius:999px; background:#0f172a; color:#e2e8f0; box-shadow:0 14px 34px -10px rgba(2,6,23,.55); border:1px solid rgba(251,191,36,.4); font-size:12.5px; max-width:calc(100vw - 24px);}
.imp-bar .eye{font-size:15px;}
.imp-bar b{color:#fde68a; font-weight:700;}
.imp-bar .sep{width:1px; height:16px; background:rgba(255,255,255,.18);}
.imp-bar button{border:none; border-radius:999px; padding:6px 14px; background:#fbbf24; color:#0f172a; font-weight:800; font-size:12px; cursor:pointer; font-family:inherit; white-space:nowrap;}
.imp-bar button:hover{filter:brightness(1.06);}
.imp-bar .txt{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.topnav-bar.impersonating{box-shadow:inset 0 -2px 0 #fbbf24, 0 4px 14px -10px rgba(2,6,23,.5);}
@media (max-width:640px){ .imp-bar .lbl{display:none;} }

/* ---- status banners (trial / grace / read-only) ---- */
.status-banner-wrap{padding:16px 26px 0;}
.status-banner-wrap:empty{display:none;}
.status-banner{max-width:1180px; margin-inline:auto; display:flex; align-items:center; gap:14px; border-radius:14px; padding:12px 16px; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow);}
.status-banner .sb-ic{width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px;}
.status-banner .sb-body{flex:1; min-width:0;}
.status-banner .sb-title{font-size:13.5px; font-weight:700; color:var(--ink);}
.status-banner .sb-text{font-size:12.5px; color:var(--ink-2); margin-top:1px; line-height:1.55;}
.status-banner .sb-actions{display:flex; align-items:center; gap:8px; flex-shrink:0;}
.status-banner .sb-x{width:28px; height:28px; border-radius:8px; border:none; background:transparent; color:var(--ink-muted); cursor:pointer; font-size:14px;}
.status-banner .sb-x:hover{background:var(--surface-2); color:var(--ink);}
.status-banner .sb-meter{height:4px; border-radius:99px; background:var(--border); overflow:hidden; margin-top:8px; max-width:320px;}
.status-banner .sb-meter i{display:block; height:100%; border-radius:99px; background:var(--accent);}
.status-banner.trial .sb-ic{background:var(--accent-wash); color:var(--accent);}
.status-banner.trial.urgent{border-color:var(--warning);}
.status-banner.trial.urgent .sb-ic{background:var(--warning-wash); color:var(--warning);}
.status-banner.trial.urgent .sb-meter i{background:var(--warning);}
.status-banner.grace{background:var(--issue-wash); border-color:var(--issue);}
.status-banner.grace .sb-ic{background:var(--issue); color:#fff;}
.status-banner.grace .sb-title{color:var(--issue);}
.status-banner.readonly{background:var(--surface-2); border-color:var(--border-strong);}
.status-banner.readonly .sb-ic{background:#334155; color:#fff;}
.btn-issue{background:var(--issue); border-color:var(--issue); color:#fff;}
.btn-issue:hover{filter:brightness(1.06); background:var(--issue);}
@media (max-width:760px){ .status-banner{flex-wrap:wrap;} .status-banner-wrap{padding:12px 16px 0;} }

/* ---- shared bits for the two new settings tabs ---- */
.saas-grid{display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:16px; align-items:start;}
@media (max-width:980px){ .saas-grid{grid-template-columns:1fr;} }
.saas-card{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px 20px;}
.saas-card + .saas-card{margin-top:16px;}
.saas-card-title{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px;}
.saas-card-title h3{font-size:14px; font-weight:700; margin:0; color:var(--ink);}
.saas-card-title .sub{font-size:12px; color:var(--ink-muted);}
.saas-note{font-size:11.5px; color:var(--ink-muted); line-height:1.6;}
.saas-pill{display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:3px 10px; border-radius:99px; white-space:nowrap;}
.saas-pill.st-trialing{background:var(--accent-wash); color:var(--accent);}
.saas-pill.st-active,.saas-pill.st-paid{background:var(--good-wash); color:var(--good);}
.saas-pill.st-past_due{background:var(--issue-wash); color:var(--issue);}
.saas-pill.st-frozen,.saas-pill.st-canceled,.saas-pill.st-read_only{background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border);}
.saas-pill.st-failed{background:var(--danger-wash); color:var(--critical);}
.saas-pill.st-pending{background:var(--warning-wash); color:var(--warning);}
.saas-pill.st-needs_review{background:var(--warning-wash); color:var(--warning);}
.saas-pill.st-exempt{background:#0f172a; color:#fde68a;}
.saas-form{display:grid; grid-template-columns:1fr 1fr; gap:14px 16px;}
.saas-form .full{grid-column:1/-1;}
@media (max-width:560px){ .saas-form{grid-template-columns:1fr;} }
.saas-form .field label{font-size:11.5px;}
.saas-form .field .hint{margin-top:2px;}
.saas-form input[type=text], .saas-form input[type=email], .saas-form input[type=tel]{border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); border-radius:10px; padding:9px 12px; width:100%; box-sizing:border-box; font-family:inherit; font-size:13.5px;}
.saas-form input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.saas-actions{display:flex; align-items:center; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid var(--border);}
.saas-actions .dirty{font-size:11.5px; color:var(--warning); font-weight:600;}

/* ---- company profile: logo ---- */
.logo-tile{width:112px; height:112px; border-radius:16px; border:1.5px dashed var(--border-strong); background:var(--surface-2); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0;}
.logo-tile img{max-width:100%; max-height:100%; object-fit:contain;}
.logo-tile .ph{font-size:26px; font-weight:800; color:var(--ink-muted);}
.logo-row{display:flex; align-items:center; gap:16px;}
.logo-row .btns{display:flex; flex-direction:column; gap:8px; align-items:flex-start;}
.topbar-preview{margin-top:16px; border-radius:12px; background:#0f172a; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px;}
.topbar-preview .tp-brand{font-weight:800; font-size:15px; direction:ltr;}
.topbar-preview .tp-brand .a{color:#fff;} .topbar-preview .tp-brand .b{color:#38bdf8;}
.topbar-preview .tp-who{display:flex; align-items:center; gap:7px; color:#94a3b8; font-size:11px; font-weight:700;}
.topbar-preview .tp-who img{width:20px; height:20px; border-radius:6px; background:#fff; object-fit:contain;}

/* ---- subscription: status strip ---- */
.sub-status{display:flex; align-items:stretch; border:1px solid var(--border); border-radius:14px; background:var(--surface); overflow:hidden; margin-bottom:16px;}
.sub-status-item{flex:1 1 0; min-width:120px; padding:14px 16px; border-inline-start:1px solid var(--border);}
.sub-status-item:first-child{border-inline-start:none;}
.sub-status-item .lbl{font-size:11px; color:var(--ink-muted); font-weight:600;}
.sub-status-item .val{font-size:16px; font-weight:800; color:var(--ink); margin-top:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.sub-status-item .cap{font-size:11px; color:var(--ink-muted); margin-top:2px;}
@media (max-width:860px){ .sub-status{flex-wrap:wrap;} .sub-status-item{flex:1 1 45%; border-inline-start:none; border-top:1px solid var(--border);} .sub-status-item:nth-child(-n+2){border-top:none;} }

/* ---- subscription: plan picker ---- */
.plan-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width:560px){ .plan-grid{grid-template-columns:1fr;} }
.plan-card{position:relative; text-align:start; border:1.5px solid var(--border); border-radius:14px; padding:16px; background:var(--surface); cursor:pointer; font-family:inherit; color:var(--ink); transition:border-color .12s, box-shadow .12s, background .12s; display:flex; flex-direction:column; gap:10px;}
.plan-card:hover{border-color:var(--border-strong);}
.plan-card.current{border-color:var(--accent); background:var(--accent-wash-soft);}
.plan-card.previewing{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.plan-card .pc-top{display:flex; align-items:center; justify-content:space-between; gap:8px;}
.plan-card .pc-name{font-size:14px; font-weight:800;}
.plan-card .pc-price{display:flex; align-items:baseline; gap:4px;}
.plan-card .pc-price b{font-size:26px; font-weight:800; letter-spacing:-.5px;}
.plan-card .pc-price span{font-size:12px; color:var(--ink-muted); font-weight:600;}
.plan-card ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:5px; font-size:12.5px; color:var(--ink-2);}
.plan-card li{display:flex; align-items:center; gap:7px;}
.plan-card li .ok{color:var(--good); font-weight:800;}
.plan-card li.off{color:var(--ink-muted);}
.plan-card li.off .ok{color:var(--ink-muted);}
.plan-card .pc-tag{font-size:10.5px; font-weight:700; padding:2px 9px; border-radius:99px; background:var(--accent); color:#fff;}
.plan-card .pc-tag.ghost{background:var(--surface-2); color:var(--ink-2);}

/* ---- subscription: live breakdown ---- */
.quote-box{display:flex; flex-direction:column;}
.quote-line{display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; font-size:13px; color:var(--ink-2); border-bottom:1px dashed var(--border);}
.quote-line:last-of-type{border-bottom:none;}
.quote-line .amt{font-weight:700; color:var(--ink); white-space:nowrap; font-variant-numeric:tabular-nums;}
.quote-line .amt.neg{color:var(--good);}
.quote-line small{display:block; font-size:11px; color:var(--ink-muted); margin-top:1px;}
.quote-total{display:flex; align-items:baseline; justify-content:space-between; margin-top:6px; padding-top:12px; border-top:1.5px solid var(--border-strong);}
.quote-total .l{font-size:13px; font-weight:700; color:var(--ink);}
.quote-total .v{font-size:24px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums;}
.quote-preview-head{display:flex; align-items:center; justify-content:space-between; gap:8px; background:var(--accent-wash); color:var(--accent); border-radius:10px; padding:8px 12px; font-size:12px; font-weight:700; margin-bottom:8px;}
.coupon-row{display:flex; gap:8px; margin-top:14px;}
.coupon-row input{flex:1; min-width:0; border:1px solid var(--border-strong); border-radius:10px; padding:8px 12px; font-family:inherit; font-size:13px; text-transform:uppercase; letter-spacing:.04em; background:var(--surface); color:var(--ink);}
.coupon-row input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.coupon-active{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; border:1px dashed var(--good); background:var(--good-wash); border-radius:10px; padding:9px 12px; font-size:12.5px; color:var(--good); font-weight:700;}
.coupon-active span{font-weight:500; color:var(--ink-2); font-size:11.5px;}

/* ---- subscription: payment method ---- */
.pm-row{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;}
.pm-card{display:flex; align-items:center; gap:12px;}
.pm-chip{width:46px; height:32px; border-radius:7px; background:linear-gradient(135deg,#1e293b,#334155); color:#fff; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; letter-spacing:.04em; text-transform:uppercase;}
.pm-chip.none{background:var(--surface-2); color:var(--ink-muted); border:1px dashed var(--border-strong);}
.pm-card b{font-size:13.5px; color:var(--ink); direction:ltr; unicode-bidi:isolate;}
.pm-card .cap{font-size:11.5px; color:var(--ink-muted);}
.mock-banner{display:flex; gap:9px; align-items:flex-start; background:var(--warning-wash); color:var(--warning); border:1px solid var(--warning); border-radius:10px; padding:9px 12px; font-size:12px; line-height:1.55; margin-bottom:14px;}
.card-form input{direction:ltr; text-align:left; font-variant-numeric:tabular-nums;}
.card-form .row3{display:grid; grid-template-columns:1fr 1fr; gap:12px;}

/* ---- auth / onboarding ---- */
.auth-tabs{display:flex; background:var(--surface-2); border-radius:12px; padding:4px; gap:2px; margin-bottom:18px;}
.auth-tabs button{flex:1; border:none; background:transparent; border-radius:9px; padding:9px 10px; font-family:inherit; font-size:13px; font-weight:600; color:var(--ink-muted); cursor:pointer;}
.auth-tabs button.active{background:var(--surface); color:var(--ink); font-weight:700; box-shadow:0 1px 2px rgba(20,22,35,.08);}
.auth-form{display:flex; flex-direction:column; gap:12px;}
.auth-form .field label{font-size:12px;}
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=tel]{border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); border-radius:10px; padding:10px 12px; width:100%; box-sizing:border-box; font-family:inherit; font-size:14px;}
.auth-form input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-wash);}
.auth-form input[readonly]{background:var(--surface-2); color:var(--ink-2);}
.auth-form .two{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.auth-divider{display:flex; align-items:center; gap:10px; color:var(--ink-muted); font-size:11.5px; margin:4px 0;}
.auth-divider::before,.auth-divider::after{content:""; flex:1; height:1px; background:var(--border);}
.auth-link{background:none; border:none; padding:0; color:var(--accent); font-family:inherit; font-size:12px; font-weight:600; cursor:pointer;}
.auth-link:hover{text-decoration:underline;}
.auth-row{display:flex; align-items:center; justify-content:space-between; gap:8px;}
.auth-check{display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--ink-2); line-height:1.5;}
.auth-check input{margin-top:3px;}
.auth-info{background:var(--good-wash); color:var(--good); border:1px solid var(--good); border-radius:8px; padding:9px 12px; font-size:12.5px; font-weight:600; line-height:1.55;}
.trial-chip{display:inline-flex; align-items:center; gap:6px; background:var(--accent-wash); color:var(--accent); font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:99px; margin-bottom:14px; width:fit-content;}
.invite-hero{border:1px solid var(--border); background:var(--surface-2); border-radius:14px; padding:14px 16px; margin-bottom:16px;}
.invite-hero .ih-k{font-size:11.5px; color:var(--ink-muted); font-weight:600;}
.invite-hero .ih-firm{font-size:18px; font-weight:800; color:var(--ink); margin-top:2px;}
.invite-hero .ih-meta{display:flex; align-items:center; gap:8px; margin-top:8px; font-size:12px; color:var(--ink-2); flex-wrap:wrap;}
.onb-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:radial-gradient(circle at 18% 15%, var(--accent-wash), transparent 55%), var(--paper);}
.onb-card{width:100%; max-width:520px; background:var(--surface); border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow); padding:34px 34px 28px;}
.onb-card h1{font-size:21px; margin:6px 0 4px;}
.onb-card .lead{font-size:13px; color:var(--ink-2); margin:0 0 18px; line-height:1.6;}
.onb-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:20px; padding-top:14px; border-top:1px solid var(--border); font-size:11.5px; color:var(--ink-muted);}
.onb-foot b{color:var(--ink-2); direction:ltr; unicode-bidi:isolate;}

/* ---- invites ---- */
.invite-link-box{display:flex; gap:8px; align-items:center; border:1px solid var(--border-strong); border-radius:10px; padding:6px 6px 6px 12px; background:var(--surface-2);}
.invite-link-box input{flex:1; min-width:0; border:none; background:transparent; font-size:12px; color:var(--ink-2); direction:ltr; font-family:ui-monospace,monospace;}
.invite-link-box input:focus{outline:none;}
.invite-success{display:flex; gap:12px; align-items:flex-start; margin-bottom:14px;}
.invite-success .ic{width:36px; height:36px; border-radius:50%; background:var(--good-wash); color:var(--good); display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0;}
.invite-section{margin-top:22px;}
.invite-section h4{font-size:13px; font-weight:700; margin:0 0 10px; display:flex; align-items:center; gap:8px;}
.invite-section h4 .count{font-size:11px; font-weight:700; color:var(--ink-muted); background:var(--surface-2); border:1px solid var(--border); border-radius:99px; padding:1px 8px;}
.emp-toolbar{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap;}
.emp-toolbar .sub{flex:1; min-width:260px; font-size:12.5px; color:var(--ink-muted); line-height:1.6;}
.emp-toolbar .acts{display:flex; gap:8px; flex-shrink:0;}
.saas-loading{padding:36px; text-align:center; color:var(--ink-muted); font-size:13px;}

a.btn, a.btn:hover{text-decoration:none;}
.onb-card .login-hero-wordmark{text-align:right; margin-bottom:6px;}
.onb-card .login-hero-wordmark .wm-next{color:var(--ink, #0f172a);}
.onb-card .login-hero-wordmark .wm-up{color:var(--accent, #0284c7);}
.trust-line{display:flex; gap:8px; align-items:flex-start; margin-top:12px; padding-top:12px; border-top:1px dashed var(--border); font-size:11.5px; color:var(--ink-muted); line-height:1.6;}
.trust-line .crm-icon{width:14px; height:14px; flex-shrink:0; margin-top:2px; color:var(--good);}
.pm-actions{display:flex; gap:8px; flex-wrap:wrap;}
.sub-manage{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;}
.sub-manage .txt{flex:1; min-width:220px; font-size:13px; color:var(--ink-2); line-height:1.6;}
.sub-manage .txt b{color:var(--ink);}
.btn-quiet-danger{background:transparent; border-color:transparent; color:var(--ink-muted); box-shadow:none; text-decoration:underline; text-underline-offset:3px;}
.btn-quiet-danger:hover{color:var(--critical); background:var(--danger-wash);}
.confirm-list{margin:4px 0 14px; padding:0; list-style:none; display:grid; gap:8px;}
.confirm-list li{display:flex; gap:9px; align-items:flex-start; font-size:13.5px; line-height:1.55; color:var(--ink-2);}
.confirm-list li .ck{flex-shrink:0; width:18px; height:18px; border-radius:50%; background:var(--good-wash); color:var(--good); font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:1px;}
.confirm-list li .ck.warn{background:var(--warning-wash); color:var(--warning);}
.status-banner.cancelled{background:var(--surface); border-color:var(--border);}
.status-banner.cancelled .sb-ic{background:var(--warning-wash); color:var(--warning);}
.saas-pill.st-cancel_scheduled{background:var(--warning-wash); color:var(--warning);}
.saas-pill.st-canceled{background:var(--danger-wash); color:var(--critical);}
.hosted-box{display:grid; gap:12px;}
.hosted-brand{display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--accent-wash-soft, #f8fafc); font-size:12.5px; line-height:1.6; color:var(--ink-2);}
.hosted-brand .lock{flex-shrink:0; width:34px; height:34px; border-radius:10px; background:var(--good-wash); color:var(--good); display:flex; align-items:center; justify-content:center;}
.hosted-brand .lock .crm-icon{width:18px; height:18px;}
.hosted-wait{text-align:center; padding:8px 0; font-size:13px; color:var(--ink-muted);}

/* =====================================================================
   V93 — Hybrid C: dark side rail + dark header over a light workspace.
   Approved design (Oct 2026): collapsible rail (open by default), brand
   header, support in the rail's bottom group, dark login, new home.
   Everything below is additive/overriding; the app's own components keep
   using the existing CSS variables.
   ===================================================================== */
:root{ --paper:#f8fafc; --v93-navy:#0a1130; --v93-navy-2:#070d26; --v93-line:rgba(255,255,255,.08); --v93-muted:#8493c2; --v93-indigo:#4338e0; --v93-blue:#1f78ea; }
body{ font-family:"Heebo",system-ui,sans-serif; }

/* ---------- shell ---------- */
.app-shell.v93{ flex-direction:row; min-height:100vh; }
.v93 .shell-col{ flex:1; min-width:0; display:flex; flex-direction:column; background:var(--paper); }
.v93 .body-row{ flex:1; }
.v93-rail{ position:sticky; top:0; align-self:flex-start; height:100vh; flex:0 0 auto; box-sizing:border-box; background:var(--v93-navy); border-inline-end:1px solid var(--v93-line); display:flex; flex-direction:column; padding:0 12px 14px; gap:8px; color:#fff; z-index:30; transition:width .18s ease; width:232px; }
.v93-rail.min{ width:72px; align-items:center; padding-inline:0; }
.v93-rail-brand{ height:72px; flex:0 0 72px; margin-inline:-12px; padding-inline:24px; border-bottom:1px solid var(--v93-line); display:flex; align-items:center; gap:12px; margin-bottom:10px; width:calc(100% + 24px); box-sizing:border-box; }
.v93-rail.min .v93-rail-brand{ margin-inline:0; padding-inline:0; justify-content:center; width:100%; }
.v93-rail-brand img{ width:36px; height:36px; border-radius:10px; box-shadow:0 0 0 1px rgba(255,255,255,.12),0 8px 22px rgba(34,140,240,.28); flex:none; }
.v93-rail-brand .wm{ font-size:20px; font-weight:800; letter-spacing:-.4px; color:#fff; direction:ltr; unicode-bidi:isolate; }
.v93-rail.min .v93-rail-brand .wm, .v93-rail.min .v93-ri .lb{ display:none; }
.v93-tg{ position:absolute; inset-inline-end:-13px; top:23px; width:26px; height:26px; border-radius:50%; border:1px solid rgba(129,140,248,.45); background:#0b1433; color:#b7c0ff; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:6; padding:0; box-shadow:0 4px 12px rgba(2,6,23,.4); }
.v93-tg:hover{ background:#16224f; color:#fff; }
.v93-tg svg{ width:14px; height:14px; }
.v93-nav{ display:flex; flex-direction:column; gap:4px; width:100%; }
.v93-rail.min .v93-nav{ align-items:center; gap:6px; }
.v93-ri{ position:relative; height:44px; border-radius:12px; display:flex; align-items:center; gap:12px; padding:0 12px; color:var(--v93-muted); background:transparent; border:0; font-family:inherit; font-size:14.5px; font-weight:600; white-space:nowrap; cursor:pointer; text-decoration:none; width:100%; box-sizing:border-box; text-align:start; }
.v93-rail.min .v93-ri{ width:44px; padding:0; justify-content:center; }
.v93-ri:hover{ background:rgba(255,255,255,.07); color:#fff; }
.v93-ri.active{ background:rgba(255,255,255,.10); color:#fff; }
.v93-ri.active::before{ content:""; position:absolute; inset-inline-start:-12px; top:10px; bottom:10px; width:3px; border-radius:3px; background:linear-gradient(180deg,#4f46e5,#22d3ee); box-shadow:0 0 12px rgba(34,211,238,.5); }
.v93-rail.min .v93-ri.active::before{ inset-inline-start:-14px; }
.v93-ri .ic, .v93-ri .ic svg{ width:20px; height:20px; display:flex; flex:none; }
.v93-rail-spacer{ flex:1; }
.v93-rail-sep{ height:1px; background:var(--v93-line); margin:0 4px 4px; width:calc(100% - 8px); }
.v93-rail-bottom{ display:flex; flex-direction:column; gap:4px; width:100%; }
.v93-rail.min .v93-rail-bottom{ align-items:center; gap:6px; }
.v93-ri:focus-visible, .v93-tg:focus-visible, .v93-prof:focus-visible{ outline:2px solid #818cf8; outline-offset:2px; }

.v93-head{ height:64px; flex:0 0 64px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 28px; background:rgba(7,13,38,.96); border-bottom:1px solid var(--v93-line); color:#eaf0ff; position:sticky; top:0; z-index:25; }
.v93-crumbs{ display:flex; align-items:center; gap:8px; font-size:14px; min-width:0; overflow:hidden; white-space:nowrap; }
.v93-crumbs .sep{ color:#4a5a93; }
.v93-crumbs .a{ color:var(--v93-muted); overflow:hidden; text-overflow:ellipsis; }
.v93-crumbs .b{ color:#eaf0ff; font-weight:700; }
.v93-head-end{ display:flex; align-items:center; gap:10px; position:relative; }
.v93-prof{ display:flex; align-items:center; gap:10px; height:42px; padding:0 6px 0 12px; border-radius:12px; border:1px solid rgba(129,140,248,.55); background:#0b1433; color:#eaf0ff; font-family:inherit; cursor:pointer; box-shadow:0 0 0 3px rgba(79,70,229,.14); }
.v93-prof .nm{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.2; }
.v93-prof .nm b{ font-size:13px; font-weight:600; }
.v93-prof .nm span{ font-size:11px; color:var(--v93-muted); }
.v93-prof .av{ width:32px; height:32px; border-radius:50%; background:#16224f; border:1px solid rgba(255,255,255,.12); color:#c9d6ff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.v93-prof .chv{ color:var(--v93-muted); display:flex; }
.v93-prof .chv svg{ width:14px; height:14px; }
.v93-um{ position:absolute; top:calc(100% + 8px); inset-inline-end:0; min-width:250px; background:#0e1736; border:1px solid rgba(129,140,248,.35); border-radius:14px; box-shadow:0 24px 60px rgba(2,6,23,.55); padding:8px; z-index:60; color:#eaf0ff; }
.v93-um .who{ padding:10px 12px 12px; border-bottom:1px solid var(--v93-line); margin-bottom:6px; display:flex; flex-direction:column; gap:4px; }
.v93-um .who b{ font-size:14px; }
.v93-um .who .firm{ font-size:12.5px; color:var(--v93-muted); display:flex; align-items:center; gap:8px; }
.v93-um .who .firm img{ width:18px; height:18px; border-radius:5px; object-fit:cover; }
.v93-um button.it{ width:100%; text-align:start; background:transparent; border:0; color:#eaf0ff; font-family:inherit; font-size:14px; font-weight:600; padding:10px 12px; border-radius:10px; cursor:pointer; display:flex; align-items:center; gap:10px; }
.v93-um button.it:hover{ background:rgba(255,255,255,.07); }
.v93-head .tenant-switch-btn{ height:42px; }

/* narrow screens: the rail always collapses, breadcrumb trims */
@media (max-width:900px){
  .v93-rail{ width:64px !important; align-items:center; padding-inline:0; }
  .v93-rail .v93-rail-brand .wm, .v93-rail .v93-ri .lb{ display:none; }
  .v93-rail .v93-rail-brand{ margin-inline:0; padding-inline:0; justify-content:center; width:100%; }
  .v93-rail .v93-ri{ width:44px; padding:0; justify-content:center; }
  .v93-rail .v93-nav, .v93-rail .v93-rail-bottom{ align-items:center; }
  .v93-tg{ display:none; }
  .v93-head{ padding:0 14px; }
  .v93-prof .nm{ display:none; }
  .v93-prof{ padding:0 6px; }
}

/* ---------- login (dark, approved) ---------- */
.login-wrap{ --surface:transparent; --surface-2:rgba(255,255,255,.07); --ink:#eaf0ff; --ink-2:#c3ceee; --ink-muted:#8f9cc6; --border:rgba(255,255,255,.12); --border-strong:rgba(255,255,255,.16); --accent-wash:rgba(79,70,229,.2); padding:0; background:#060b22; color:#eaf0ff; align-items:stretch; }
.login-shell{ max-width:none; min-height:100vh; border-radius:0; box-shadow:none; background:#060b22; overflow:hidden; }
.login-hero{ flex:1 1 0; display:flex; align-items:center; justify-content:center; padding:64px 48px; background:radial-gradient(700px 560px at 30% 45%, rgba(79,70,229,.40), transparent 65%), radial-gradient(500px 400px at 80% 90%, rgba(34,211,238,.18), transparent 65%), #060b22; }
.login-hero::before{ display:none; }
.login-hero-ghost{ position:absolute; width:760px; height:760px; inset-inline-start:-120px; top:50%; transform:translateY(-50%) rotate(-10deg); opacity:.16; pointer-events:none; }
.login-hero-brand{ display:flex; align-items:center; gap:18px; margin-bottom:28px; }
.login-hero-brand img{ width:84px; height:84px; border-radius:22px; box-shadow:0 0 0 1px rgba(255,255,255,.10),0 24px 60px rgba(34,140,240,.40); }
.login-hero-brand .wm{ font-size:44px; font-weight:800; letter-spacing:-1px; line-height:1; color:#fff; direction:ltr; unicode-bidi:isolate; }
.login-hero h2{ font-size:40px; font-weight:800; letter-spacing:-.8px; line-height:1.15; margin:0 0 12px; max-width:460px; }
.login-hero-sub{ font-size:16.5px; color:#9aa9d6; max-width:460px; }
.login-card{ flex:0 0 41.667%; min-width:520px; max-width:680px; box-sizing:border-box; background:rgba(12,20,52,.72); border-inline-start:1px solid rgba(255,255,255,.08); padding:48px 64px; align-items:center; }
.login-card > *{ width:100%; max-width:480px; }
.login-hero-inner{ width:100%; max-width:520px; }
.login-card-brand{ display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.login-card-brand img{ width:40px; height:40px; border-radius:11px; box-shadow:0 0 0 1px rgba(255,255,255,.10),0 10px 26px rgba(34,140,240,.35); }
.login-card-brand .wm{ font-size:22px; font-weight:800; letter-spacing:-.4px; color:#fff; direction:ltr; unicode-bidi:isolate; }
.login-card .auth-form input[type=text], .login-card .auth-form input[type=email], .login-card .auth-form input[type=password], .login-card .auth-form input[type=tel]{ background:rgba(5,10,32,.65); border:1px solid rgba(255,255,255,.12); color:#eaf0ff; border-radius:12px; }
.login-card .auth-form input[readonly]{ background:rgba(255,255,255,.05); color:#c3ceee; }
.login-card .auth-form input:focus{ border-color:#818cf8; box-shadow:0 0 0 3px rgba(99,102,241,.25); }
.login-card .auth-form input::placeholder{ color:#6f7fae; }
.login-card .btn:not(.btn-primary){ background:rgba(255,255,255,.05); color:#eaf0ff; border:1px solid rgba(255,255,255,.14); box-shadow:none; }
.login-card .btn:not(.btn-primary):hover{ background:rgba(255,255,255,.09); }
.login-card .auth-tabs{ background:rgba(2,6,23,.5); border:1px solid rgba(255,255,255,.08); }
.login-card .auth-tabs button{ color:#9aa9d6; }
.login-card .auth-tabs button.active{ background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; box-shadow:0 4px 12px rgba(49,90,235,.4); }
.login-card .auth-link, .login-card .login-tos button{ color:#7fb4ff; }
.login-card .trial-chip{ background:rgba(79,70,229,.2); color:#b7c0ff; }
.login-card .invite-hero{ background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); }
.login-card .field label{ color:#c3ceee; }
.login-card .login-tos{ color:#6f7fae; }
@media (max-width:1100px){ .login-card{ min-width:440px; padding:48px 40px; } }
@media (max-width:860px){ .login-card{ flex:1 1 auto; min-width:0; max-width:none; border-inline-start:0; } }

/* ---------- V94: login — light fields, about/features section, mobile ---------- */
.login-wrap{ flex-direction:column; align-items:stretch; justify-content:flex-start; }
.login-shell{ position:relative; flex:0 0 auto; }
.login-card .auth-form .field label, .login-card .auth-form label{ color:#dce4ff; font-size:14px; font-weight:600; }
.login-card .auth-form input[type=text], .login-card .auth-form input[type=email], .login-card .auth-form input[type=password], .login-card .auth-form input[type=tel]{
  background:#f3f5ff; border:1.5px solid #c9d2f0; color:#0f172a; height:48px; box-sizing:border-box; padding:0 14px; font-size:16px; border-radius:12px; }
.login-card .auth-form input::placeholder{ color:#8590b8; }
.login-card .auth-form input:focus{ background:#fff; border-color:#6366f1; box-shadow:0 0 0 4px rgba(99,102,241,.35); outline:none; }
.login-card .auth-form input[readonly]{ background:#e4e8f8; color:#475569; }
.login-card .auth-form input:-webkit-autofill{ -webkit-text-fill-color:#0f172a; box-shadow:0 0 0 40px #f3f5ff inset; }
.login-card .btn, .login-card .btn-block{ min-height:48px; font-size:16px; }
.login-card .auth-divider{ color:#8e9bc8; }
.login-more{ position:absolute; bottom:22px; inset-inline:0; margin-inline:auto; width:max-content; display:flex; flex-direction:column; align-items:center; gap:2px; background:none; border:0; color:#9aa9d6; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; padding:6px 14px; }
.login-more:hover{ color:#fff; }
.login-more svg{ width:22px; height:22px; }
.login-about{ padding:84px 24px; display:flex; flex-direction:column; align-items:center; gap:36px; background:radial-gradient(800px 420px at 50% 0%, rgba(79,70,229,.22), transparent 65%), #060b22; border-top:1px solid rgba(255,255,255,.06); color:#eaf0ff; }
.login-about-h{ text-align:center; max-width:820px; display:flex; flex-direction:column; gap:10px; }
.login-about-h h2{ margin:0; font-size:32px; font-weight:800; letter-spacing:-.6px; line-height:1.25; color:#fff; }
.login-about-h p{ margin:0; font-size:16px; color:#9aa9d6; }
.login-feats{ width:100%; max-width:900px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.login-feat{ background:rgba(15,23,42,.5); border:1px solid #1e293b; border-radius:18px; padding:24px; display:flex; flex-direction:column; gap:14px; transition:border-color .2s, background .2s, transform .2s; }
.login-feat:hover{ border-color:#3b4a8c; background:rgba(15,23,42,.8); transform:translateY(-2px); }
.login-feat .ic{ width:46px; height:46px; border-radius:13px; background:linear-gradient(135deg,rgba(67,56,224,.35),rgba(31,120,234,.25)); border:1px solid rgba(129,140,248,.35); color:#c7d2ff; display:flex; align-items:center; justify-content:center; }
.login-feat .ic svg{ width:24px; height:24px; }
.login-feat h3{ margin:0; font-size:19px; font-weight:700; color:#fff; }
.login-feat p{ margin:0; font-size:15px; line-height:1.7; color:#a7b4dc; }
@media (max-width:860px){
  .login-hero{ display:none; }
  .login-shell{ max-width:none; flex-direction:column; min-height:0; }
  .login-card{ flex:1 1 auto; min-width:0; max-width:none; width:100%; padding:32px 24px 12px; border-inline-start:0; background:radial-gradient(420px 360px at 50% 0%, rgba(79,70,229,.40), transparent 70%), #0a1130; }
  .login-card > *{ max-width:none; }
  .login-card-brand{ justify-content:center; }
  .login-more{ position:static; margin:0 auto; padding:8px 14px 28px; background:#0a1130; width:100%; box-sizing:border-box; align-items:center; }
  .login-about{ padding:48px 24px; }
  .login-about-h h2{ font-size:26px; }
  .login-feats{ grid-template-columns:1fr; gap:16px; }
}
@media (hover:none){ .login-feat:hover{ transform:none; } }

/* ---------- home (approved) ---------- */
.v93-home{ display:flex; flex-direction:column; gap:20px; }
.v93-greet h1{ margin:0; font-size:26px; font-weight:800; letter-spacing:-.5px; }
.v93-greet .d{ font-size:14px; color:var(--ink-muted); margin-top:3px; }
.v93-row{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:20px; align-items:stretch; }
.v93-s6{ grid-column:span 6; }
@media (max-width:1100px){ .v93-s6{ grid-column:1/-1; } }
.v93-clock{ border-radius:20px; padding:22px 26px; background:radial-gradient(460px 260px at 95% -30%,rgba(99,102,241,.55),transparent 70%),radial-gradient(360px 220px at 0% 130%,rgba(34,211,238,.18),transparent 70%),linear-gradient(165deg,#1e293b 0%,#0f172a 75%); color:#eaf0ff; display:flex; align-items:center; justify-content:center; gap:48px; flex-wrap:wrap; position:relative; overflow:hidden; box-shadow:0 14px 36px rgba(15,23,42,.28),0 2px 6px rgba(15,23,42,.16); }
.v93-clock .ghost{ position:absolute; width:240px; height:240px; inset-inline-start:-60px; top:-50px; opacity:.07; transform:rotate(-10deg); pointer-events:none; }
.v93-clock-l{ position:relative; display:flex; flex-direction:column; gap:10px; padding-inline-start:20px; }
.v93-clock-st{ height:42px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#9aa9d6; }
.v93-clock-st i{ width:8px; height:8px; border-radius:50%; background:#64748b; }
.v93-clock-st.on i{ background:#34d399; box-shadow:0 0 0 3px rgba(52,211,153,.2); }
.v93-clock-tm{ height:46px; display:flex; align-items:center; }
.v93-clock-tm .t{ display:flex; align-items:baseline; gap:2px; font-variant-numeric:tabular-nums; line-height:1; direction:ltr; }
.v93-clock-tm .hm{ font-size:40px; font-weight:700; letter-spacing:-1px; }
.v93-clock-tm .ss{ font-size:20px; font-weight:600; color:#7f90bd; }
.v93-clock-r{ position:relative; display:flex; flex-direction:column; gap:10px; width:236px; max-width:100%; }
.v93-seg{ display:flex; padding:4px; border-radius:12px; background:rgba(2,6,23,.5); border:1px solid rgba(255,255,255,.10); }
.v93-seg button{ flex:1; height:34px; border-radius:9px; border:0; background:transparent; color:#9aa9d6; font-family:inherit; font-size:13.5px; font-weight:600; cursor:pointer; }
.v93-seg button[aria-checked="true"]{ background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; font-weight:700; box-shadow:0 4px 12px rgba(49,90,235,.4); }
.v93-seg button:disabled{ cursor:default; opacity:.85; }
.v93-punch{ height:46px; border-radius:13px; border:0; background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; font-family:inherit; font-size:16px; font-weight:800; cursor:pointer; box-shadow:0 12px 30px rgba(49,90,235,.5),inset 0 1px 0 rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; gap:8px; }
.v93-punch.end{ background:rgba(255,255,255,.10); box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }
.v93-punch:disabled{ opacity:.6; cursor:default; }
.v93-card{ background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06); display:flex; flex-direction:column; min-width:0; }
.v93-card-h{ display:flex; align-items:center; gap:10px; padding:16px 20px 10px; }
.v93-card-h h2{ margin:0; font-size:16px; font-weight:700; flex:1; }
.v93-badge{ font-size:12px; font-weight:700; padding:1px 9px; border-radius:99px; background:#4338e0; color:#fff; }
.v93-al{ display:flex; align-items:center; gap:12px; padding:0 20px; min-height:46px; border-top:1px solid var(--border); }
.v93-al i{ width:8px; height:8px; border-radius:50%; flex:none; }
.v93-al .t{ flex:1; font-size:14px; font-weight:600; min-width:0; }
.v93-al .t small{ display:block; font-size:12px; font-weight:500; color:var(--ink-muted); }
.v93-al button{ height:32px; padding:0 12px; font-size:13px; font-weight:600; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-family:inherit; cursor:pointer; }
.v93-al button:hover{ background:var(--surface-2); }
.v93-who-n{ font-size:13px; font-weight:700; padding:3px 11px; border-radius:99px; background:rgba(16,185,129,.12); color:#047857; direction:ltr; }
.v93-who-list{ height:310px; overflow-y:auto; display:flex; flex-direction:column; scrollbar-width:thin; }
.v93-who-r{ height:56px; flex:none; box-sizing:border-box; display:flex; align-items:center; gap:12px; padding:0 16px; }
.v93-who-r .a{ position:relative; width:36px; height:36px; border-radius:50%; background:#e8ecfa; color:#2f3b80; font-size:12.5px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; }
.v93-who-r .a i{ position:absolute; bottom:-2px; inset-inline-end:-2px; width:11px; height:11px; border-radius:50%; border:2px solid var(--surface); background:#94a3b8; }
.v93-who-r.on .a i{ background:#34d399; box-shadow:0 0 0 3px rgba(52,211,153,.18); }
.v93-who-r .n{ flex:1; min-width:0; font-size:14px; font-weight:600; }
.v93-who-r .n small{ display:block; font-size:12px; font-weight:500; color:var(--ink-muted); }
.v93-tag{ font-size:12px; font-weight:600; padding:3px 10px; border-radius:99px; white-space:nowrap; }
.v93-tag.o{ background:rgba(79,70,229,.10); color:#3730a3; }
.v93-tag.r{ background:rgba(14,165,233,.10); color:#0e7490; }
.v93-tag.off{ background:rgba(100,116,139,.10); color:#64748b; }
.v93-chart{ padding:20px 22px; gap:14px; }
.v93-chart-h{ display:flex; justify-content:space-between; align-items:flex-start; }
.v93-chart-h h2{ margin:0; font-size:16px; font-weight:700; }
.v93-chart-h .s{ font-size:12.5px; color:var(--ink-muted); margin-top:2px; }
.v93-chart-h .tot{ text-align:end; }
.v93-chart-h .tot b{ display:block; font-size:20px; font-weight:800; direction:ltr; }
.v93-chart-h .tot span{ font-size:11.5px; color:var(--ink-muted); }
.v93-bars{ position:relative; flex:1; min-height:200px; padding-top:6px; }
.v93-bars .tl{ position:absolute; inset-inline:0; border-top:1.5px dashed #94a3b8; }
.v93-bars .cols{ position:relative; display:flex; align-items:flex-end; gap:10px; height:100%; }
.v93-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; height:100%; }
.v93-col .bar{ width:100%; max-width:38px; border-radius:8px 8px 4px 4px; }
.v93-col .lbl{ height:38px; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; color:var(--ink-muted); }
.v93-col .lbl b{ font-weight:700; color:#475569; direction:ltr; }
.v93-col .lbl b.z{ color:#b8c1d9; }

/* ---------- support (dark modal) ---------- */
.v93-sup-ov{ position:fixed; inset:0; z-index:200; background:rgba(2,6,23,.58); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; padding:24px; }
.v93-sup{ width:580px; max-width:100%; max-height:calc(100vh - 48px); overflow:auto; border-radius:22px; padding:24px; display:flex; flex-direction:column; gap:18px; color:#eaf0ff; background:linear-gradient(165deg,#111b45 0%,#0a1130 80%); border:1px solid rgba(129,140,248,.28); box-shadow:0 40px 90px rgba(2,6,23,.6); }
.v93-sup-h{ display:flex; align-items:center; gap:12px; }
.v93-sup-h .ic{ width:38px; height:38px; border-radius:11px; background:rgba(79,70,229,.2); color:#b7c0ff; display:flex; align-items:center; justify-content:center; }
.v93-sup-h .ic svg{ width:20px; height:20px; }
.v93-sup-h .tt{ flex:1; }
.v93-sup-h .tt b{ display:block; font-size:18px; font-weight:800; }
.v93-sup-h .tt span{ font-size:13px; color:#9aa9d6; }
.v93-x{ width:34px; height:34px; border-radius:10px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04); color:#c3ceee; font-size:20px; cursor:pointer; line-height:1; }
.v93-sup-tabs{ display:flex; padding:4px; border-radius:12px; background:rgba(2,6,23,.5); border:1px solid rgba(255,255,255,.08); }
.v93-sup-tabs button{ flex:1; height:38px; border-radius:9px; border:0; font-family:inherit; font-size:14px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; background:transparent; color:#9aa9d6; }
.v93-sup-tabs button[aria-selected="true"]{ background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; font-weight:700; box-shadow:0 4px 12px rgba(49,90,235,.4); }
.v93-sup-tabs .cnt{ font-size:11.5px; font-weight:700; padding:0 7px; border-radius:99px; background:rgba(129,140,248,.25); color:#fff; }
.v93-sup .f{ display:flex; flex-direction:column; gap:6px; }
.v93-sup .f label{ font-size:13px; font-weight:600; color:#c3ceee; }
.v93-sup .f input, .v93-sup .f textarea{ box-sizing:border-box; width:100%; border-radius:11px; border:1px solid rgba(255,255,255,.12); background:rgba(5,10,32,.65); color:#eaf0ff; padding:0 14px; font-family:inherit; font-size:14.5px; outline:none; height:44px; }
.v93-sup .f textarea{ height:132px; padding:12px 14px; resize:none; line-height:1.5; }
.v93-sup .f input:focus, .v93-sup .f textarea:focus{ border-color:#818cf8; box-shadow:0 0 0 3px rgba(99,102,241,.25); }
.v93-sup .f .h{ font-size:12px; color:#7f90bd; }
.v93-sup-auto{ display:flex; flex-direction:column; gap:8px; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.07); }
.v93-sup-auto .k{ font-size:12.5px; font-weight:600; color:#9aa9d6; }
.v93-sup-auto .c{ display:flex; flex-wrap:wrap; gap:6px; }
.v93-sup-auto .c span{ font-size:12px; font-weight:600; padding:4px 10px; border-radius:99px; background:rgba(255,255,255,.06); color:#c3ceee; border:1px solid rgba(255,255,255,.08); }
.v93-sup-err{ background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4); color:#fca5a5; border-radius:10px; padding:9px 12px; font-size:13px; font-weight:600; }
.v93-sup-act{ display:flex; gap:10px; justify-content:flex-end; }
.v93-sup-act button{ height:44px; padding:0 20px; border-radius:12px; font-family:inherit; font-size:14.5px; font-weight:600; cursor:pointer; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:#eaf0ff; }
.v93-sup-act button.p{ padding:0 26px; border:0; background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; font-weight:800; font-size:15px; box-shadow:0 10px 26px rgba(49,90,235,.45),inset 0 1px 0 rgba(255,255,255,.25); }
.v93-sup-act button:disabled{ opacity:.6; cursor:default; }
.v93-tk{ display:flex; flex-direction:column; gap:8px; }
.v93-tk-r{ display:flex; align-items:center; gap:14px; padding:0 16px; height:54px; border-radius:12px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.07); cursor:pointer; width:100%; box-sizing:border-box; font-family:inherit; color:#eaf0ff; text-align:start; }
.v93-tk-r.open{ background:rgba(255,255,255,.06); }
.v93-tk-r .d{ font-size:13px; color:#9aa9d6; width:54px; direction:ltr; text-align:start; }
.v93-tk-r .s{ flex:1; font-size:14.5px; font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v93-tk-r .chv{ color:#7f90bd; display:flex; }
.v93-tk-r .chv svg{ width:16px; height:16px; }
.v93-tk-th{ display:flex; flex-direction:column; gap:10px; padding:14px 16px; margin:-4px 8px 0; border-radius:0 0 12px 12px; background:rgba(2,6,23,.4); border:1px solid rgba(255,255,255,.07); border-top:0; }
.v93-tk-th .m .k{ font-size:12px; color:#7f90bd; }
.v93-tk-th .m .b{ font-size:14px; line-height:1.55; color:#c3ceee; white-space:pre-wrap; }
.v93-tk-th .m.staff{ padding:12px 14px; border-radius:12px; background:rgba(79,70,229,.14); border:1px solid rgba(129,140,248,.3); }
.v93-tk-th .m.staff .k{ color:#b7c0ff; font-weight:700; }
.v93-tk-th .m.staff .b{ color:#eaf0ff; }
.v93-pill{ display:inline-flex; align-items:center; font-size:12px; font-weight:600; padding:3px 10px; border-radius:99px; white-space:nowrap; }
.v93-pill.p{ background:rgba(14,165,233,.12); color:#7fe6f5; }
.v93-pill.a{ background:rgba(79,70,229,.14); color:#b7c0ff; }
.v93-pill.d{ background:rgba(16,185,129,.12); color:#6ee7b7; }
.v93-sup-empty{ text-align:center; color:#9aa9d6; font-size:14px; padding:26px 0; }
/* light-workspace variants of the status pills (admin view) */
.v93-adm .v93-pill.p{ background:rgba(14,165,233,.12); color:#0e7490; }
.v93-adm .v93-pill.a{ background:rgba(79,70,229,.12); color:#3730a3; }
.v93-adm .v93-pill.d{ background:rgba(16,185,129,.12); color:#047857; }

/* ---------- support admin view ---------- */
.v93-adm h1{ margin:0; font-size:24px; font-weight:800; letter-spacing:-.4px; }
.v93-adm .sub{ font-size:14px; color:var(--ink-muted); margin-top:4px; }
.v93-adm-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.v93-adm-chips button{ height:34px; padding:0 14px; border-radius:99px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-2); font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.v93-adm-chips button.on{ background:#eef0ff; border-color:#a5adfb; color:#3730a3; }
.v93-adm-grid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:20px; align-items:start; }
.v93-adm-list{ grid-column:span 5; overflow:hidden; padding:0; }
.v93-adm-det{ grid-column:span 7; padding:22px 24px; gap:18px; }
@media (max-width:1100px){ .v93-adm-list, .v93-adm-det{ grid-column:1/-1; } }
.v93-adm-lr{ display:flex; flex-direction:column; gap:6px; padding:14px 18px; border:0; border-top:1px solid var(--border); background:transparent; width:100%; text-align:start; font-family:inherit; cursor:pointer; color:var(--ink); }
.v93-adm-lr:hover{ background:var(--surface-2); }
.v93-adm-lr.sel{ background:#f1f3ff; box-shadow:inset -3px 0 0 #4338e0; }
.v93-adm-lr .t{ display:flex; align-items:center; gap:10px; }
.v93-adm-lr .t b{ flex:1; font-size:14px; }
.v93-adm-lr .m{ display:flex; gap:8px; font-size:12.5px; color:var(--ink-muted); }
.v93-adm-meta{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding:14px 16px; border-radius:14px; background:var(--surface-2); border:1px solid var(--border); }
.v93-adm-meta div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.v93-adm-meta span{ font-size:12px; color:var(--ink-muted); }
.v93-adm-meta b{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; }
.v93-adm-msg{ font-size:14.5px; line-height:1.6; white-space:pre-wrap; }
.v93-adm-th{ display:flex; flex-direction:column; gap:8px; }
.v93-adm-th .m{ padding:10px 14px; border-radius:12px; background:#f1f3ff; border:1px solid #d9deff; font-size:14px; line-height:1.55; white-space:pre-wrap; }
.v93-adm-th .m small{ display:block; font-size:12px; color:#4338e0; font-weight:700; margin-bottom:2px; }
.v93-adm-reply label{ font-size:13px; font-weight:600; color:var(--ink-2); display:block; margin-bottom:8px; }
.v93-adm-reply textarea{ box-sizing:border-box; width:100%; height:120px; border-radius:12px; border:1px solid var(--border-strong); background:var(--surface); padding:12px 14px; font-family:inherit; font-size:14.5px; resize:none; outline:none; color:var(--ink); }
.v93-adm-reply .h{ font-size:12.5px; color:var(--ink-muted); margin-top:6px; }
.v93-adm-act{ display:flex; gap:10px; flex-wrap:wrap; }
@media print{ .v93-rail, .v93-head, .v93-sup-ov{ display:none !important; } }
/* V94: attendance control board (ac-) */
.ac-head{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:16px;}
.ac-title h1{display:flex; align-items:center; gap:10px; font-size:24px; margin:0;}
.ac-title h1 .ic{display:inline-flex; width:36px; height:36px; border-radius:10px; background:var(--accent-wash); color:var(--accent); align-items:center; justify-content:center;}
.ac-title h1 .ic svg{width:20px; height:20px;}
.ac-title p{margin:4px 0 0; color:var(--ink-muted); font-size:14px;}
.ac-head-act{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.ac-lock-tag{display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:600; color:var(--warning); background:var(--warning-wash); padding:4px 10px; border-radius:999px;}
.ac-lock-tag svg{width:14px; height:14px;}
.ac-stepper{display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 18px; margin-bottom:14px; overflow-x:auto;}
.ac-step{display:flex; align-items:center; gap:10px; flex:0 0 auto; opacity:.55;}
.ac-step.is-cur,.ac-step.is-done{opacity:1;}
.ac-step b{display:block; font-size:14px;}
.ac-step small{color:var(--ink-muted); font-size:12px;}
.ac-step-n{width:28px; height:28px; border-radius:50%; background:var(--border); color:var(--ink-muted); display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px;}
.ac-step.is-cur .ac-step-n{background:var(--accent); color:#fff;}
.ac-step.is-done .ac-step-n{background:var(--good-wash); color:var(--good);}
.ac-step-n svg{width:16px; height:16px;}
.ac-step-line{flex:1 1 24px; min-width:24px; height:2px; background:var(--border);}
.ac-toolbar{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px;}
.ac-filters{display:flex; gap:8px; flex-wrap:wrap;}
.ac-fchip{border:1px solid var(--border); background:var(--surface); color:var(--ink); border-radius:999px; padding:6px 14px; font-size:13px; cursor:pointer; font-family:inherit;}
.ac-fchip b{margin-inline-start:4px; color:var(--ink-muted);}
.ac-fchip.on{background:var(--ink); color:var(--paper); border-color:var(--ink);}
.ac-fchip.on b{color:inherit;}
.ac-search{width:260px; max-width:100%; min-width:0; border:1px solid var(--pss-input-border); background:var(--pss-input-bg); border-radius:10px; padding:8px 12px; font:inherit;}
.ac-stepper{padding:8px 18px !important; margin-bottom:10px !important;}
.ac-toolbar{justify-content:flex-start !important; gap:14px !important; margin-bottom:10px !important;}
.ac-tsearch{position:relative; flex:0 0 240px; width:240px; max-width:100%;}
.ac-tsearch .ac-search{width:100%; box-sizing:border-box; padding-inline-start:34px; padding-block:7px; font-size:13px;}
.ac-tsearch .crm-icon{position:absolute; inset-inline-start:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--ink-muted); pointer-events:none;}
.ac-tsep{width:1px; height:22px; background:var(--border); flex:0 0 1px;}
.ac-c-act{text-align:start !important;}
.ac-c-chev{width:56px; padding-inline:0 !important; text-align:center !important;}
.ac-chev{width:32px; height:32px; border:1px solid transparent; background:none; color:#94A3B8; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0;}
.ac-chev .crm-icon{width:16px; height:16px;}
.ac-row:hover .ac-chev{background:#F1F5F9; color:#334155;}
.ac-pctb{display:inline-block; padding:3px 11px; border-radius:999px; font-weight:600; font-size:12.5px; font-variant-numeric:tabular-nums; direction:ltr;}
.ac-pctb.ok{background:#ECFDF5; color:#047857;}
.ac-pctb.warn{background:#FFFBEB; color:#B45309;}
.nx-help{width:28px; height:28px; border-radius:50%; border:none; background:#F1F5F9; color:#64748B; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; margin-inline-start:10px; padding:0; vertical-align:middle;}
.nx-help:hover{background:#E0E7FF; color:#4338CA;}
.nx-help .crm-icon{width:18px; height:18px;}
.nx-ov{position:fixed; inset:0; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index:9999; padding:16px; box-sizing:border-box;}
.nx-md{width:560px; max-width:100%; max-height:92vh; overflow:auto; background:var(--surface,#fff); color:var(--ink,#0f172a); border-radius:22px; box-shadow:0 24px 60px rgba(15,23,42,.25); padding:34px 36px 28px; direction:rtl; box-sizing:border-box;}
.nx-md h3{margin:0 0 8px; font-size:22px; line-height:1.3; font-weight:700; letter-spacing:-.2px;}
.nx-md .nx-sub{font-size:14px; color:var(--ink-muted,#64748B); line-height:1.6; margin-bottom:22px;}
.nx-st{display:flex; gap:16px; padding:16px 0; align-items:flex-start;}
.nx-st + .nx-st{border-top:1px solid var(--border,#F1F5F9);}
.nx-n{flex:0 0 34px; height:34px; border-radius:50%; background:#0F172A; color:#fff; font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:center;}
.nx-st-b{flex:1; min-width:0;}
.nx-st-t{font-size:15.5px; font-weight:700; margin-bottom:5px;}
.nx-tag{display:inline-block; font-size:11.5px; font-weight:600; color:#4338CA; background:#EEF2FF; border-radius:999px; padding:1px 9px; margin-inline-start:8px; vertical-align:1px;}
.nx-st-d{font-size:13.8px; line-height:1.75; color:#475569;}
.nx-st ul{margin:6px 0 0; padding:0 18px 0 0; list-style:none;}
.nx-st li{position:relative; font-size:13.8px; line-height:1.75; color:#475569; margin-bottom:5px;}
.nx-st li::before{content:''; position:absolute; inset-inline-start:-14px; top:11px; width:5px; height:5px; border-radius:50%; background:#94A3B8;}
.nx-st li b{color:var(--ink,#0F172A); font-weight:600;}
.nx-ft{display:flex; justify-content:center; margin-top:20px;}
.nx-ok{border:none; background:#0F172A; color:#fff; border-radius:12px; padding:12px 40px; font:inherit; font-size:15px; font-weight:600; cursor:pointer;}
@media (max-width:640px){ .ac-tsearch{flex:1 1 100%; width:100%;} .ac-tsep{display:none;} .nx-md{padding:24px 20px 20px;} }
.ac-bulk{display:flex; align-items:center; gap:12px; background:var(--accent-wash); border:1px solid var(--accent); border-radius:12px; padding:10px 14px; margin-bottom:12px; font-weight:600;}
.ac-card{background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden;}
.ac-tbl-wrap{overflow-x:auto;}
.ac-tbl{width:100%; border-collapse:collapse; min-width:620px;}
.ac-tbl th{text-align:right; font-size:12px; color:var(--ink-muted); font-weight:600; padding:10px 14px; border-bottom:1px solid var(--border); background:var(--paper);}
.ac-tbl td{padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle;}
.ac-row{cursor:pointer;}
.ac-row:hover,.ac-row.sel{background:var(--accent-wash-soft);}
.ac-c-chk{width:40px; text-align:center !important;}
.ac-c-act{text-align:left !important; white-space:nowrap;}
.ac-emp{display:flex; align-items:center; gap:10px;}
.ac-emp b{display:block; font-size:14px;}
.ac-emp small{color:var(--ink-muted); font-size:12px;}
.ac-pct{font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink);}
.ac-cn{text-align:center !important;}
.ac-num{font-weight:600; font-variant-numeric:tabular-nums;}
.ac-abs{display:inline-block; padding:3px 10px; border-radius:8px; background:#F1F5F9; color:#475569; font-size:12px; font-weight:600;}
.ac-ico{display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:8px; font-size:12.5px; font-weight:700; margin:0 2px;}
.ac-ico svg{width:14px; height:14px;}
.ac-ico-err{background:rgba(220,38,38,.1); color:#B91C1C;}
.ac-ico-note{background:rgba(79,111,232,.09); color:#4F6FE8;}
.ac-ico-note.is-unread{background:rgba(79,111,232,.2);}
.ac-bdg{display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#FEF3C7; color:#B45309; font-weight:700; font-size:12.5px;}
.ac-stwrap{display:flex; align-items:center; gap:10px;}
.ac-eye{width:32px; height:32px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--ink-muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0;}
.ac-eye svg{width:15px; height:15px;}
.ac-sortbtn{background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; font-weight:600;}
.ac-sortbtn.on{color:var(--ink);}
.ac-tipbox{position:fixed; z-index:9999; background:#0F172A; color:#fff; border-radius:9px; padding:8px 12px; font-size:12px; line-height:1.7; white-space:nowrap; box-shadow:0 8px 24px rgba(15,23,42,.25); pointer-events:none; text-align:right;}
.ac-pct.ok{color:var(--good);} .ac-pct.mid{color:var(--warning);} .ac-pct.low{color:var(--critical);}
.ac-chip{display:inline-block; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px;}
.ac-chip-exc{background:var(--issue-wash); color:var(--issue);}
.ac-note{position:relative; display:inline-flex; margin-inline-start:6px; width:28px; height:28px; border-radius:50%; align-items:center; justify-content:center; border:1.5px solid var(--border-strong); color:var(--ink-muted); opacity:.7; vertical-align:middle;}
.ac-note svg{width:15px; height:15px;}
.ac-note.is-unread{background:#7c3aed; border-color:#7c3aed; color:#fff; opacity:1;}
.ac-note.is-unread i{position:absolute; top:-2px; inset-inline-end:-2px; width:9px; height:9px; border-radius:50%; background:#e11d48; border:2px solid var(--surface);}
.ac-dash{color:var(--ink-muted);}
.ac-st{display:inline-block; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; min-width:92px; text-align:center;}
.ac-st-wait{background:var(--warning-wash); color:var(--warning);}
.ac-st-review{background:var(--accent-wash); color:var(--accent);}
.ac-st-done{background:var(--good-wash); color:var(--good);}
.ac-legend{padding:10px 16px; font-size:12px; color:var(--ink-muted); border-top:1px solid var(--border);}
.ac-empty{text-align:center; color:var(--ink-muted); padding:18px;}
.ac-overlay{position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:80;}
.ac-drawer{position:fixed; top:0; bottom:0; inset-inline-end:0; width:min(520px,100vw); background:var(--surface); z-index:81; display:flex; flex-direction:column; box-shadow:-12px 0 40px rgba(15,23,42,.18);}
.ac-d-head{display:flex; align-items:center; gap:12px; padding:18px 20px 10px;}
.ac-d-title{flex:1;} .ac-d-title h2{margin:0; font-size:20px;}
.ac-d-chips{display:flex; gap:6px; flex-wrap:wrap; margin-top:6px;}
.ac-pill{font-size:12px; background:var(--paper); border:1px solid var(--border); border-radius:999px; padding:3px 10px;}
.ac-d-links{display:flex; gap:16px; padding:0 20px 12px; border-bottom:1px solid var(--border);}
.ac-link{background:none; border:0; color:var(--accent); font:inherit; font-size:13px; font-weight:600; cursor:pointer; padding:0;}
.ac-d-body{flex:1; overflow-y:auto; padding:16px 20px;}
.ac-core{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:6px;}
.ac-core-i{background:var(--paper); border-radius:12px; padding:12px; text-align:center;}
.ac-core-i b{display:block; font-size:30px; line-height:1.1; font-variant-numeric:tabular-nums;}
.ac-core-i small{display:block; color:var(--ink-muted); font-size:12px; margin-top:4px;}
.ac-core-i em{display:block; font-style:normal; font-size:12px; font-weight:600; margin-top:2px;}
.ac-h3{font-size:13px; color:var(--ink-muted); margin:18px 0 8px; font-weight:700;}
.ac-abs-row{display:flex; gap:8px; flex-wrap:wrap;}
.ac-abs{flex:1 1 90px; background:var(--paper); border-radius:10px; padding:8px 12px; display:flex; justify-content:space-between; align-items:center; font-size:13px;}
.ac-abs b{font-size:16px;}
.ac-notebox{margin-bottom:12px;}
.ac-notebox label,.ac-lbl{display:block; font-size:13px; font-weight:600; margin-bottom:4px;}
.ac-notebox label small{font-weight:400; color:var(--ink-muted);}
.ac-note-ro{background:var(--paper); border-radius:10px; padding:10px 12px; font-size:14px; min-height:40px; white-space:pre-wrap;}
.ac-notebox textarea,#ac-req-msg{width:100%; border:1px solid var(--pss-input-border); background:var(--pss-input-bg); border-radius:10px; padding:10px 12px; font:inherit; resize:vertical; box-sizing:border-box;}
.ac-note-foot{display:flex; justify-content:space-between; align-items:center; margin-top:6px;}
.ac-save-ind{font-size:12px;} .ac-save-ind.is-saved{color:var(--good);} .ac-save-ind.is-dirty{color:var(--warning);}
.ac-acc{border:1px solid var(--border); border-radius:12px; margin-top:14px; overflow:hidden;}
.ac-acc-h{display:flex; justify-content:space-between; align-items:center; width:100%; background:var(--paper); border:0; padding:10px 14px; font:inherit; font-weight:600; cursor:pointer;}
.ac-acc-h svg{width:16px; height:16px;}
.ac-acc-b{padding:6px 14px;} .ac-acc-b.is-closed{display:none;}
.ac-exc-row{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border);}
.ac-exc-row:last-child{border-bottom:0;}
.ac-exc-row small{display:block; color:var(--ink-muted); font-size:12px;}
.ac-hol{background:var(--paper); border-radius:12px; padding:10px 12px;}
.ac-hol-help{font-size:12px; color:var(--ink-muted); margin-bottom:8px;}
.ac-hol-row{display:flex; align-items:center; gap:8px; padding:4px 0; font-size:14px;}
.ac-d-foot{display:flex; gap:10px; padding:14px 20px; border-top:1px solid var(--border);}
.ac-d-foot .btn{flex:1;}
.ac-banner{border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:12px;}
.ac-banner-wait{background:var(--warning-wash); color:var(--warning);}
.ac-banner-ok{background:rgba(5,150,105,.1); color:#047857;}
.ac-fixed{display:inline-block; margin-inline-start:6px; font-size:11px; font-weight:700; color:#047857; background:rgba(5,150,105,.1); border-radius:999px; padding:1px 8px;}
.ac-banner-info{background:var(--accent-wash); color:var(--accent); margin-top:10px;}
.ac-days{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:12px;}
.ac-day{border:1px solid var(--border); background:var(--surface); border-radius:8px; padding:6px 0; font:inherit; cursor:pointer; line-height:1.2;}
.ac-day small{display:block; font-size:10px; color:var(--ink-muted);}
.ac-day.on{background:var(--accent); border-color:var(--accent); color:#fff;} .ac-day.on small{color:#fff;}

/* ===== V101: attendance-control statement modal ===== */
.ac-modal{position:fixed; z-index:81; top:50%; left:50%; transform:translate(-50%,-50%); width:min(1040px,96vw); max-height:92vh; background:var(--surface); border-radius:20px; display:flex; flex-direction:column; box-shadow:0 24px 70px rgba(15,23,42,.30); overflow:hidden;}
.ac-modal .ac-d-body{flex:1; overflow-y:auto; padding:8px 24px 18px;}
.ac-modal .ac-d-foot{justify-content:flex-start;} .ac-modal .ac-d-foot .btn{flex:0 0 auto;}
.sm-cols{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:28px; align-items:start;}
.ac-h3 small{font-weight:600; font-size:11px; margin-inline-start:6px;}
.sm-card{border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface);}
.sm-r{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid var(--border); font-size:14px;}
.sm-r small{color:var(--ink-muted); font-size:11px; margin-inline-start:4px;}
.sm-n{font-variant-numeric:tabular-nums; unicode-bidi:isolate; direction:ltr;}
.sm-n i{font-style:normal; font-weight:500; color:var(--ink-muted); font-size:12px;}
.sm-r-main{padding:14px 16px;} .sm-r-main span{font-weight:700;} .sm-main{font-size:24px; line-height:1;}
.sm-sub{padding:7px 16px 7px 16px; padding-inline-start:34px; font-size:13px; color:var(--ink-muted); background:var(--paper);}
.sm-sub .sm-n{font-weight:400;}
.sm-plus{color:var(--good); font-weight:700;}
.sm-total{background:#0f172a; color:#fff; padding:13px 16px; border-bottom:0; font-size:15px; font-weight:700;}
.sm-total .sm-n{font-size:20px;}
.sm-abs{display:grid; grid-template-columns:repeat(3,1fr);} .sm-abs>div{text-align:center; padding:12px 6px; border-inline-start:1px solid var(--border);} .sm-abs>div:first-child{border-inline-start:0;}
.sm-abs b{display:block; font-size:20px;} .sm-abs span{font-size:12px; color:var(--ink-muted);}
.sm-tip{font-size:12px; color:var(--ink-muted); margin-top:8px;}
.sm-ok{display:flex; align-items:center; gap:8px; background:var(--good-wash); color:var(--good); border-radius:12px; padding:11px 14px; font-weight:700; font-size:14px;}
.sm-ok svg{width:16px; height:16px;} .sm-ok.sm-warn{background:var(--warning-wash); color:var(--warning);}
.sm-exc{border:1px solid var(--warning); background:var(--warning-wash); border-radius:14px; padding:4px 14px;}
.sm-exc-h{font-weight:700; color:var(--warning); padding:10px 0 4px;}
.sm-exc-f{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; font-size:12px; color:var(--ink-muted);}
.sm-list{display:flex; flex-direction:column; gap:8px; margin-top:10px;}
.sm-item{display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--border); border-radius:12px; padding:10px 14px;}
.sm-item.is-pending{border-color:var(--warning); background:var(--warning-wash);}
.sm-item b{display:block; font-size:13px;} .sm-item small{display:block; color:var(--ink-muted); font-size:12px;}
.sm-fx{display:block; font-size:12px; font-weight:700; color:#6d4fd8; margin-top:2px;}
@media (max-width:760px){ .sm-cols{grid-template-columns:1fr;} .ac-modal{width:100vw; max-height:100vh; border-radius:0; top:0; left:0; transform:none; height:100vh;} }

/* ===== V102: monthly sheet — bold attendance, "today" row ===== */
.payroll-table-wrap td.att-cell{font-weight:800; color:var(--ink); font-size:14.5px;}
.payroll-table-wrap th.att-th{color:var(--ink); font-weight:800;}
.payroll-table-wrap td.std-cell,.payroll-table-wrap td.std-cell b{font-weight:400; color:var(--ink-muted);}
.payroll-table-wrap td.att-cell .sub{font-weight:400; font-size:11px;}
.payroll-table-wrap tr.is-today td{background:rgba(79,70,229,.08) !important;}
.payroll-table-wrap tr.is-today td:first-child{box-shadow:inset -4px 0 0 #4f46e5;}
.payroll-table-wrap tr.is-future td{color:#94a3b8;}
.today-tag{display:inline-block; margin-inline-start:6px; background:#4f46e5; color:#fff; font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; vertical-align:middle;}
.kpi-strip-item.kpi-main .val{font-size:30px;}
@media print{ .today-tag{display:none;} tr.is-today td{background:none !important; box-shadow:none !important;} tr.is-future td{color:inherit;} }

/* ===== V104: attendance & hours screen ===== */
.att2-top{display:grid; grid-template-columns:minmax(260px,1fr) 2fr; gap:16px; margin-bottom:14px; align-items:stretch;}
.att2-clock,.att2-form{background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:14px 16px;}
.att2-clock{display:flex; flex-direction:column; gap:9px;}
.att2-ch{display:flex; align-items:center; justify-content:space-between;} .att2-ch b{font-size:13px;}
.att2-st{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px;}
.att2-st i{width:7px; height:7px; border-radius:50%; display:inline-block;}
.att2-st.in{background:rgba(5,150,105,.12); color:#047857;} .att2-st.in i{background:#059669;}
.att2-st.out{background:#f1f5f9; color:#64748b;} .att2-st.out i{background:#94a3b8;}
.att2-time{font-family:"Heebo",sans-serif; font-weight:800; font-size:38px; line-height:1; text-align:center; direction:ltr; letter-spacing:-.5px; color:var(--ink);}
.att2-btn{width:100%; border-radius:11px; padding:10px 0; font:inherit; font-weight:700; font-size:14.5px; cursor:pointer; transition:background .15s ease, border-color .15s ease;}
.att2-btn.in{background:#2563eb; color:#fff; border:1px solid #2563eb;} .att2-btn.in:hover{background:#1d4ed8;}
.att2-btn.out{background:transparent; color:#334155; border:1.5px solid #334155;} .att2-btn.out:hover{background:#f1f5f9;}
.att2-btn[disabled]{opacity:.55; cursor:default;}
.att2-shift{display:flex; justify-content:center; align-items:center; gap:10px; font-size:12.5px; color:var(--ink-muted); min-height:18px;}
.att2-shift b,.att2-day b{color:var(--ink); font-variant-numeric:tabular-nums;} .att2-shift i,.att2-day i{width:1px; height:12px; background:#cbd5e1; display:inline-block;}
.att2-muted{color:var(--ink-muted);} .att2-warn{color:var(--critical); font-size:12px; text-align:center;}
.att2-links{display:flex; gap:8px; margin-top:auto;}
.att2-link{flex:1; font:inherit; font-size:12.5px; font-weight:600; border:1px solid var(--border); background:var(--surface); border-radius:9px; padding:7px 0; color:#334155; cursor:pointer;}
.att2-link:hover{background:var(--surface-2);} .att2-link[disabled]{opacity:.5; cursor:default;}
.att2-day{display:flex; justify-content:center; align-items:center; gap:10px; border-top:1px solid var(--border); padding-top:9px; font-size:12px; color:var(--ink-muted);}
.att2-form h3{margin:0;} .att2-fh{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;} .att2-rep{font-size:12px; color:var(--ink-muted);} .att2-rep b{color:var(--ink); font-variant-numeric:tabular-nums;}
.ef2-form{display:flex; flex-direction:column; gap:8px;}
.ef2-row{display:grid; grid-template-columns:1.3fr 1fr 150px 120px; gap:10px; align-items:start;}
.ef2-row .field{margin:0;} .ef2-row .client-search{min-width:0;}
.ef2-hours input{text-align:center; font-weight:800; font-size:16px; direction:ltr;}
.ef2-chips{display:flex; gap:6px; margin-top:6px;}
.ef2-chip{flex:1; border:1px solid var(--border); background:var(--surface-2); border-radius:999px; padding:3px 0; font:inherit; font-size:12px; font-weight:600; color:#475569; cursor:pointer;}
.ef2-chip:hover{background:rgba(79,70,229,.1); color:#4338ca; border-color:transparent;}
.ef2-row2{display:flex; gap:10px; align-items:center;} .ef2-row2 .field{margin:0; flex:1;} .ef2-row2 .btn{flex:0 0 auto;}
.ef2-form .att-gate-note:empty{display:none;}
.att2-thead{display:flex; align-items:center; gap:10px;}
.att2-total{background:#eef2ff; color:#4338ca; font-weight:800; border-radius:999px; padding:3px 12px; font-size:13px;}
tr.att2-today td{background:rgba(79,70,229,.06);} tr.att2-today td:first-child{box-shadow:inset -3px 0 0 #4f46e5;}
.att2-today-tag{display:inline-block; margin-inline-start:6px; background:#4f46e5; color:#fff; font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px;}
@media (max-width:860px){ .att2-top{grid-template-columns:1fr;} .ef2-row{grid-template-columns:1fr 1fr;} .ef2-row2{flex-wrap:wrap;} }
/* employee side */
.ac-emp-banner{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:var(--warning-wash); border:1px solid var(--warning); border-radius:12px; padding:12px 16px; margin-bottom:14px;}
.ac-emp-banner.is-ok{background:var(--good-wash); border-color:var(--good);}
.ac-emp-banner b{display:block;} .ac-emp-banner small{color:var(--ink-muted);}
@media (max-width:640px){ .ac-core-i b{font-size:26px;} .ac-search{width:100%;} .ac-drawer{width:100vw;} }

/* ===== V95: tasks board — soft badges, sortable headers, groups, panel, drawer, dashboard ===== */
.task-top1{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:14px;}
.task-top1 h1{margin:0; font-size:26px; font-weight:800; letter-spacing:-.4px;}
.task-top1 p{margin:3px 0 0; font-size:14px; color:var(--ink-muted);}
.task-top1-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.task-seg{display:flex; padding:3px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border);}
.task-seg button{height:34px; padding:0 16px; border:0; border-radius:9px; background:transparent; font:inherit; font-size:13.5px; font-weight:600; color:var(--ink-muted); cursor:pointer; display:inline-flex; align-items:center; gap:7px;}
.task-seg button.on{background:var(--surface); color:var(--brand-accent); font-weight:700; box-shadow:0 1px 4px rgba(15,23,42,.14);}
.task-toolbar{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px;}
.task-toolbar .grow{flex:1;}
#task-search{width:210px;}
.task-toolbar select{width:auto !important; min-width:0 !important; padding-inline:10px 28px;}
.task-toolbar{flex-wrap:wrap;} .task-toolbar .btn{white-space:nowrap;}
.task-toolbar .client-search input{width:100%;}
.task-toolbar .btn.on{background:var(--accent-wash); border-color:var(--brand-accent); color:var(--brand-accent);}
/* soft badges — no border, ~10% tint, bold darker text */
.task-priority-pill,.task-status-chip{box-shadow:none; border:0; height:26px; border-radius:999px; padding:0 12px; font-size:12.5px; width:auto; min-width:84px; display:inline-flex; align-items:center; justify-content:center; gap:5px; box-sizing:border-box; white-space:nowrap;}
.task-table-card td.tc, .task-table-card th.tc{text-align:center;}
.task-priority-urgent{background:color-mix(in srgb,var(--chip-urgent) 11%,transparent); color:color-mix(in srgb,var(--chip-urgent) 82%,var(--ink));}
.task-priority-high{background:color-mix(in srgb,var(--chip-high) 11%,transparent); color:color-mix(in srgb,var(--chip-high) 82%,var(--ink));}
.task-priority-medium{background:color-mix(in srgb,var(--chip-medium) 12%,transparent); color:color-mix(in srgb,var(--chip-medium) 80%,var(--ink));}
.task-priority-low{background:color-mix(in srgb,var(--chip-low) 10%,transparent); color:color-mix(in srgb,var(--chip-low) 85%,var(--ink));}
.task-status-open{background:color-mix(in srgb,var(--chip-open) 13%,transparent); color:color-mix(in srgb,var(--chip-open) 70%,var(--ink));}
.task-status-in_progress{background:color-mix(in srgb,var(--chip-progress) 10%,transparent); color:color-mix(in srgb,var(--chip-progress) 85%,var(--ink));}
.task-status-stuck{background:color-mix(in srgb,var(--chip-stuck) 11%,transparent); color:color-mix(in srgb,var(--chip-stuck) 82%,var(--ink));}
.task-status-completed{background:color-mix(in srgb,var(--chip-done) 10%,transparent); color:color-mix(in srgb,var(--chip-done) 85%,var(--ink));}
.task-due.late{background:none; padding:0; color:var(--critical); font-weight:700;}
.task-table-card th.sortable{padding:0;}
.task-th-sort{display:flex; align-items:center; gap:5px; width:100%; height:100%; min-height:44px; padding:0 12px; border:0; background:none; font:inherit; font-weight:700; color:var(--ink-muted); cursor:pointer; text-align:start;}
th.tc .task-th-sort{justify-content:center;}
.task-th-sort:hover{color:var(--ink);}
.task-th-sort .arr{display:inline-flex; opacity:.4; font-size:11px;}
th.sorted .task-th-sort{color:var(--brand-accent);}
th.sorted .task-th-sort .arr{opacity:1;}
.task-table-card.dense td{height:36px; padding-block:3px;}
.task-group-row td{background:var(--surface-2); height:40px !important; padding:4px 14px !important; border-inline-end:none !important;}
.task-group-btn{display:inline-flex; align-items:center; gap:10px; border:0; background:none; font:inherit; font-weight:700; color:var(--ink); cursor:pointer; padding:0;}
.task-group-btn .caret{display:inline-flex; transition:transform .15s; color:var(--ink-muted);}
.task-group-btn.collapsed .caret{transform:rotate(90deg);}
.task-group-btn .cnt{font-size:12px; font-weight:700; color:var(--ink-muted); background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:1px 9px;}
.task-pager{display:flex; justify-content:space-between; align-items:center; padding:12px 16px; flex-wrap:wrap; gap:10px;}
.task-pager select{width:auto; min-width:0;}
/* personal customization panel */
.task-panel{position:fixed; top:0; right:0; height:100%; width:min(400px,94vw); background:var(--surface); border-inline-start:1px solid var(--border); box-shadow:-24px 0 48px rgba(20,22,35,.16); z-index:301; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .26s cubic-bezier(.32,.72,0,1);}
.task-panel.open{transform:translateX(0);}
.task-panel-head{display:flex; align-items:center; justify-content:space-between; padding:16px 22px; border-bottom:1px solid var(--border);}
.task-panel-head h3{margin:0; font-size:17px;}
.task-panel-body{padding:6px 22px 18px; overflow-y:auto; flex:1;}
.task-panel-sec{font-size:12.5px; font-weight:800; color:var(--ink-muted); margin:18px 0 8px;}
.task-panel-note{font-size:12px; color:var(--ink-muted); margin-top:6px;}
.task-colrow{display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; background:var(--surface-2); border:1px solid var(--border); margin-bottom:6px;}
.task-colrow.drag-over{border-color:var(--brand-accent);}
.task-colrow .grip{color:var(--ink-muted); cursor:grab; display:flex;}
.task-colrow .nm{flex:1; font-weight:600; font-size:13.5px;}
.task-colrow .mv{border:0; background:none; cursor:pointer; color:var(--ink-muted); padding:2px 4px; font-size:12px;}
.task-colrow .mv:disabled{opacity:.25; cursor:default;}
.task-colrow input[type=checkbox]{width:18px; height:18px;}
.task-panel-foot{display:flex; flex-direction:column; gap:8px; padding:14px 22px; border-top:1px solid var(--border);}
.task-panel-foot .row{display:flex; gap:8px;}
/* drawer — brand design: right side, soft selects, timeline */
.task-drawer{left:auto; right:0; width:min(540px,94vw); transform:translateX(100%); box-shadow:-24px 0 48px rgba(20,22,35,.16); border-inline-end:0; border-inline-start:1px solid var(--border);}
.task-drawer.open{transform:translateX(0);}
.task-drawer-head{border-top:0; align-items:flex-start; padding:18px 22px 10px; flex-wrap:wrap;}
.task-drawer-head .no{background:color-mix(in srgb,var(--brand-accent) 12%,transparent); color:var(--brand-accent); border-radius:8px; padding:3px 9px; font-size:12.5px; font-weight:800; margin-top:6px;}
.task-drawer-meta{width:100%; font-size:12.5px; color:var(--ink-muted); padding:0 0 8px; border-bottom:1px solid var(--border); margin-top:-2px;}
.task-drawer-grid .field-full textarea{background:var(--surface-2);}
select.task-softsel{border:0; border-radius:999px; height:34px; font-weight:700; padding:0 14px; width:100%;}
select.task-softsel[data-v="open"]{background:color-mix(in srgb,var(--chip-open) 13%,transparent); color:color-mix(in srgb,var(--chip-open) 70%,var(--ink));}
select.task-softsel[data-v="in_progress"],select.task-softsel[data-v="low"]{background:color-mix(in srgb,var(--chip-progress) 10%,transparent); color:color-mix(in srgb,var(--chip-progress) 85%,var(--ink));}
select.task-softsel[data-v="stuck"],select.task-softsel[data-v="medium"]{background:color-mix(in srgb,var(--chip-stuck) 11%,transparent); color:color-mix(in srgb,var(--chip-stuck) 82%,var(--ink));}
select.task-softsel[data-v="completed"]{background:color-mix(in srgb,var(--chip-done) 10%,transparent); color:color-mix(in srgb,var(--chip-done) 85%,var(--ink));}
select.task-softsel[data-v="urgent"]{background:color-mix(in srgb,var(--chip-urgent) 11%,transparent); color:color-mix(in srgb,var(--chip-urgent) 82%,var(--ink));}
select.task-softsel[data-v="high"]{background:color-mix(in srgb,var(--chip-high) 11%,transparent); color:color-mix(in srgb,var(--chip-high) 82%,var(--ink));}
.task-tl{position:relative;}
.task-tl-item{display:flex; gap:10px; position:relative; padding-bottom:14px;}
.task-tl-item::before{content:""; position:absolute; inset-inline-start:13px; top:30px; bottom:0; width:2px; background:var(--border);}
.task-tl-item:last-child::before{display:none;}
.task-tl-av{width:28px; height:28px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0;}
.task-tl-main{flex:1; min-width:0;}
.task-tl-meta{font-size:12px; color:var(--ink-muted);} .task-tl-meta b{color:var(--ink); font-size:13px;}
.task-tl-text{font-size:13.5px; color:var(--ink); white-space:pre-wrap; margin-top:2px;}
.task-composer{display:flex; gap:8px; align-items:flex-end; margin-top:6px;}
/* dashboard */
.taskdash-top{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.taskdash-top .grow{flex:1;} .taskdash-top .cap{font-size:13px; font-weight:600; color:var(--ink-muted);}
.taskdash-kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:12px;}
.taskdash-kpi{border-radius:16px; padding:14px 18px; height:104px; box-sizing:border-box; display:flex; flex-direction:column; gap:6px; border:1px solid transparent;}
.taskdash-kpi .l{font-size:13px; font-weight:700;} .taskdash-kpi .v{font-size:30px; font-weight:800; line-height:1.1; font-variant-numeric:tabular-nums;} .taskdash-kpi .s{font-size:12.5px; font-weight:600; opacity:.85; margin-inline-start:8px;}
.taskdash-kpi.neutral{background:var(--surface); border-color:var(--border); color:var(--ink);} .taskdash-kpi.neutral .l,.taskdash-kpi.neutral .s{color:var(--ink-muted);}
.taskdash-kpi.green{background:rgba(34,197,94,.10); color:color-mix(in srgb,#15803d 82%,var(--ink));}
.taskdash-kpi.blue{background:rgba(59,130,246,.10); color:color-mix(in srgb,#1d4ed8 82%,var(--ink));}
.taskdash-kpi.red{background:rgba(239,68,68,.10); color:var(--critical);} .taskdash-kpi.red .l,.taskdash-kpi.red .v{font-weight:800;}
.taskdash-grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.taskdash-grid2 .card-pad{height:100%; box-sizing:border-box;}
.taskdash-rect{rx:5px;}
@media (max-width:900px){ .taskdash-kpis{grid-template-columns:1fr 1fr;} .taskdash-grid2{grid-template-columns:1fr;} }
:root{--tdash-open:#94a3b8; --tdash-progress:#3b82f6; --tdash-stuck:#f97316; --tdash-done:#10b981;}
/* ---- V95b: match the approved design exactly (clean rows, soft badges, accent-bar groups) ---- */
.task-table-card{border-radius:18px; overflow:hidden; box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);}
.task-table-card table{min-width:900px;}
.task-table-card th{background:#EEF1F8; border-bottom:0 !important; border-inline-end:0 !important; height:44px; padding:0 12px; font-size:12px; font-weight:700; color:#64748B; text-transform:none; letter-spacing:0;}
.task-table-card td{border-inline-end:0 !important; border-top:1px solid #EEF1F8; height:52px; padding:6px 12px; vertical-align:middle;}
.task-table-card.dense td{height:38px; padding-block:2px;}
.task-table-card tbody tr:hover{background:#F6F8FD;}
.task-table-card tbody tr.task-group-row:hover
.task-row.done{background:transparent !important;} .task-row.done td{color:#94A3B8;}
.task-title-btn{font-size:14.5px; font-weight:600;}
.task-row td.num{font-size:12px; color:#94A3B8; font-variant-numeric:tabular-nums;}
.task-client-pill{background:#F1F5F9; color:#475569; border:0; font-size:12.5px; font-weight:600; padding:3px 11px;}
.task-client-pill:hover{background:#E4E9F5; color:#334155; border:0;}
.task-avatar{width:28px; height:28px; font-size:11px;}
.task-assignee{gap:9px;} .task-assignee span.name{font-size:13.5px; font-weight:600; color:#1E293B;}
.task-due{display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#475569;}
.task-due.today{color:#B45309; font-weight:700;}
.task-due.late{color:#B91C1C; font-weight:700;}
/* design badge palette */
.task-priority-pill,.task-status-chip{min-width:76px; font-weight:700;}
.task-priority-urgent{background:rgba(225,29,72,.10); color:#BE123C;}
.task-priority-high{background:rgba(239,68,68,.10); color:#B91C1C;}
.task-priority-medium{background:rgba(217,119,6,.12); color:#92400E;}
.task-priority-low{background:rgba(13,148,136,.10); color:#0F766E;}
.task-status-open{background:rgba(100,116,139,.12); color:#334155;}
.task-status-in_progress{background:rgba(37,99,235,.10); color:#1D4ED8;}
.task-status-stuck{background:rgba(234,88,12,.10); color:#C2410C;}
.task-status-completed{background:rgba(5,150,105,.10); color:#047857;}
.task-status-chip-arrow{display:none;}
.task-row .row-actions{opacity:0; transition:opacity .12s;} .task-row:hover .row-actions{opacity:1;}
.task-th-sort{font-size:12px;}
/* groups: tinted band + colored accent bar + colored label */
.task-group-row td{background:#F8FAFC !important; border-top:1px solid #E6EAF4 !important; height:46px !important; padding:0 12px !important; position:relative;}
.task-group-row td::before{content:""; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px; background:var(--g,#64748B);}
.task-group-btn{gap:10px; font-size:15px; font-weight:800;}
.task-group-btn .gl{font-size:15px; font-weight:800;}
.task-group-btn .caret{color:inherit;}
.task-group-btn .cnt{font-size:12.5px; font-weight:700; color:#475569; background:#E9EDF6; border:0; padding:1px 9px;}
/* toolbar to match the design */
.task-search-wrap{position:relative; display:block;}
.task-search-wrap .ic{position:absolute; inset-inline-start:12px; top:50%; transform:translateY(-50%); color:#94A3B8; display:flex; pointer-events:none;}
#task-search{height:40px; width:190px; border-radius:11px; border:1px solid #DDE3F1; background:#fff; padding:0 38px 0 12px; box-sizing:border-box;}
.task-toolbar select, .task-toolbar .client-search input{height:36px; border-radius:10px; border:1px solid #DDE3F1; background-color:#fff; font-size:13px; font-weight:600; color:#334155; box-sizing:border-box;}
/* numbered pager */
.task-pager{border-top:1px solid #E6EAF4; background:var(--surface); padding:14px 20px;}
.task-pgnav{display:flex; gap:6px; align-items:center;}
.task-pgnav button{min-width:34px; height:34px; padding:0 8px; border-radius:9px; border:1px solid #DDE3F1; background:#fff; color:#334155; font:inherit; font-size:13px; font-weight:700; cursor:pointer;}
.task-pgnav button.on{background:#4338E0; border-color:#4338E0; color:#fff;}
.task-pgnav button:disabled{color:#CBD5E1; cursor:default;}
.task-table-card input[type=checkbox]{accent-color:#4338E0; width:18px; height:18px;}
html{scrollbar-gutter:stable;}
.task-due, .task-due.late, .task-due.today{display:inline-flex !important; align-items:center; gap:6px;}
.task-due svg{flex-shrink:0;}
.task-due.late{color:#DC2626; font-weight:600;}
/* ===== V96: clients board — same design language as the tasks board ===== */
.crm-top1-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
#crm-search{height:40px; width:260px; border-radius:11px; border:1px solid #DDE3F1; background:#fff; padding:0 38px 0 12px; box-sizing:border-box;}
.crm-toolbar .btn-crm-primary{height:40px;}
.crm-count{font-size:13px; font-weight:600; color:var(--ink-muted); white-space:nowrap;}
.crm-bulkbar{display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 14px; margin-bottom:14px; border-radius:14px; background:#EEF0FF; border:1px solid #D6DBFF;}
.crm-bulkbar .n{font-weight:800; color:#3730A3; margin-inline-end:6px;}
.crm-group-card{border-radius:18px; overflow:hidden; padding:0; box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06); margin-bottom:16px;}
.crm-group-head{position:relative; height:46px; padding:0 12px; background:#F8FAFC; border-bottom:1px solid #E6EAF4; gap:10px;}
.crm-group-head::before{content:""; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px; background:var(--g,#64748B);}
.crm-group-chevron{color:var(--g,#64748B);}
.crm-group-chevron:hover{background:rgba(15,23,42,.05); color:var(--g,#64748B);}
.crm-group-title{font-size:15px; font-weight:800; color:var(--g,#334155);}
.crm-group-count{font-size:12.5px; font-weight:700; color:#475569; background:#E9EDF6; border:0; padding:1px 9px;}
.crm-group-actions{opacity:0; transition:opacity .12s;} .crm-group-head:hover .crm-group-actions, .crm-group-actions:focus-within{opacity:1;}
.crm-group-card .table-wrap{border:0; border-radius:0;}
.crm-group-card th{background:#EEF1F8; border-bottom:0 !important; border-inline-end:0 !important; height:44px; padding:0 12px; font-size:12px; font-weight:700; color:#64748B; text-transform:none; letter-spacing:0; white-space:nowrap;}
.crm-group-card td{border-inline-end:0 !important; border-top:1px solid #EEF1F8; height:52px; padding:6px 12px; vertical-align:middle; font-size:13px; color:#475569;}
.crm-group-card tbody tr:hover{background:#F6F8FD;}
.crm-group-card.dense td{height:38px; padding-block:2px;}
.crm-group-card td.crm-name{font-size:14.5px; font-weight:600; color:#0F172A;}
.crm-group-card td.num{font-size:12px; color:#94A3B8; font-variant-numeric:tabular-nums;}
.crm-group-card .crm-sort-th{font-size:12px; font-weight:700; color:#64748B;} .crm-group-card .crm-sort-th.active{color:var(--brand-accent);}
.crm-group-card input[type=checkbox]{accent-color:#4338E0; width:18px; height:18px;}
.crm-group-card tr.empty-row td{height:60px; color:#94A3B8;}
.crm-group-card .row-actions{opacity:0; transition:opacity .12s; justify-content:flex-end; gap:2px;}
.crm-group-card tr:hover .row-actions, .crm-group-card .row-actions:focus-within{opacity:1;}
.crm-group-card .crm-icon-btn{opacity:1; color:#94A3B8;} .crm-group-card .crm-icon-btn:hover{background:#E9EDF6; color:#334155;}
.crm-group-card .crm-icon-btn.danger{color:#E11D48;} .crm-group-card .crm-icon-btn.danger:hover{background:rgba(225,29,72,.10);}
.crm-group-card .crm-wa-link{opacity:1;}
.crm-soft{display:inline-flex; align-items:center; justify-content:center; height:26px; min-width:64px; padding:0 12px; border-radius:999px; font-size:12.5px; font-weight:700; border:0; box-sizing:border-box; white-space:nowrap;}
.crm-soft.on{background:rgba(5,150,105,.12); color:#047857;}
.crm-soft.off{background:rgba(100,116,139,.12); color:#475569;}
.crm-av{width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0;}
.crm-assignee{display:inline-flex; align-items:center; gap:9px; min-width:0;}
.crm-assignee .name{font-size:13.5px; font-weight:600; color:#1E293B; white-space:nowrap;}
.crm-notes-cell{max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#64748B;}
.crm-col-popover{z-index:330 !important;} .crm-col-del-popover{z-index:331 !important;}
.crm-panel-add{margin-top:10px; width:100%; height:44px; border-radius:12px; border:1.5px dashed #A5ADFB; background:#F5F6FF; color:#4338E0; font:inherit; font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;}
.crm-panel-add:hover{background:#ECEEFF;}
.crm-colrow .tag{font-size:11.5px; color:var(--ink-muted); font-weight:500; margin-inline-start:6px;}
/* client drawer — same layout language as the task drawer */
.crm-drawer.cv{left:auto; right:0; width:min(540px,94vw); transform:translateX(100%); box-shadow:-24px 0 48px rgba(20,22,35,.16); border-inline-end:0; border-inline-start:1px solid var(--border);}
.crm-drawer.cv.open{transform:translateX(0);}
.cv-head{display:flex; align-items:center; gap:14px; padding:20px 24px 14px;}
.cv-av{width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; flex-shrink:0;}
.cv-title{flex:1; min-width:0;} .cv-title h2{margin:0; font-size:21px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cv-meta{margin-top:6px; display:flex; gap:8px; align-items:center;} .cv-meta .no{font-size:12.5px; color:#94A3B8;}
.cv-x{width:38px; height:38px; border-radius:10px; border:1px solid #DDE3F1; background:#fff; color:#475569; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; font-size:16px;}
.cv-x:hover{background:#F6F8FD;}
.cv-tabs{display:flex; gap:26px; padding:0 24px; border-bottom:1px solid #EEF1F8;}
.cv-tab{position:relative; height:44px; border:0; background:none; padding:0; font:inherit; font-size:14px; font-weight:600; color:#64748B; cursor:pointer;}
.cv-tab.on{font-weight:700; color:#3730A3;}
.cv-tab.on::after{content:""; position:absolute; inset-inline:0; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:#4338E0;}
.cv-body{flex:1; overflow-y:auto; padding:22px 24px 20px;}
.cv-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.cv-field{display:flex; flex-direction:column; gap:7px; min-width:0;}
.cv-field label{font-size:12.5px; font-weight:700; color:#64748B;}
.cv-box{display:flex; align-items:center; gap:9px; min-height:46px; padding:0 14px; border-radius:12px; border:1px solid #E2E8F0; background:#fff; box-sizing:border-box; font-size:14.5px; font-weight:600; color:#0F172A; min-width:0; overflow:hidden;}
.cv-box.muted{color:#94A3B8; font-weight:500;}
.cv-box a{color:#4F46E5; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cv-box .grow{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cv-box.notes{display:block; padding:12px 14px; font-weight:500; line-height:1.7; white-space:pre-wrap; font-size:14.5px;}
.cv-sec{font-size:12.5px; font-weight:800; color:#64748B; margin:26px 0 12px;}
.cv-foot{display:flex; align-items:center; gap:12px; padding:16px 24px; border-top:1px solid #EEF1F8; background:#fff;}
.cv-foot .btn-crm-primary{height:44px; padding:0 26px; font-size:14.5px; margin-inline-start:auto;}
.cv-foot .cv-cancel{height:44px; padding:0 20px; border:0; background:transparent; color:#475569; font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; border-radius:12px;}
.cv-foot .cv-cancel:hover{background:#F6F8FD;}
.cv-link{display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:#4338E0; background:none; border:0; padding:0; cursor:pointer; font-family:inherit;}
.cv-link:hover{text-decoration:underline;}
.cv-listhead{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:40px; margin-bottom:8px;}
.cv-listhead .cap{font-size:13px; font-weight:600; color:#64748B; display:flex; align-items:center;}
.cv-listhead .btn-crm-primary{height:36px; padding:0 14px; font-size:13px; border-radius:10px;}
.cv-trow{display:flex; align-items:center; gap:16px; padding:18px 4px; border-bottom:1px solid #F1F5F9;} .cv-trow:last-child{border-bottom:0;}
.cv-trow .t{flex:1; min-width:0;} .cv-trow .t b{display:block; font-size:14.5px; font-weight:600; color:#0F172A; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cv-trow .t .task-due{margin-top:8px; font-size:12.5px;}
.cv-hrow{display:flex; align-items:center; gap:20px; padding:20px 4px; border-bottom:1px solid #F1F5F9;} .cv-hrow:last-child{border-bottom:0;}
.cv-hrow .m{width:124px; white-space:nowrap; font-size:14.5px; font-weight:600;}
.cv-hrow .bar{flex:1; height:12px; border-radius:99px; background:#F1F5F9; overflow:hidden;}
.cv-hrow .bar i{display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#A5B4FC,#93C5FD);}
.cv-hrow.top .bar i{background:linear-gradient(90deg,#4338E0,#1F78EA);}
.cv-hrow .h{width:56px; text-align:end; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums;}
.cv-empty{padding:40px 0; text-align:center; color:#94A3B8; font-size:14px;}
.crm-toolbar select{width:150px !important; min-width:0 !important; padding-inline:10px 28px;}
#crm-search{width:230px;}
.crm-group-card td, .crm-group-card .crm-phone-cell span{white-space:nowrap;}
.crm-group-card td.crm-name{white-space:normal; min-width:150px;}
.crm-group-card th, .crm-group-card td{padding-inline:9px;}
.crm-notes-cell{max-width:140px;}
.crm-group-card td.crm-name{min-width:130px;}
.crm-group-card th:last-child, .crm-group-card td:last-child{padding-inline-end:12px;}
/* ===== v99 — ניהול והגדרות: שפת עיצוב שטוחה ===== */
.mg-tabs{display:flex; gap:4px; border-bottom:1px solid #E2E8F0; margin:16px 0 22px; overflow-x:auto;}
.mg-tab{display:flex; align-items:center; gap:8px; padding:11px 16px; font-size:14px; color:#64748B; background:none; border:0; border-bottom:2px solid transparent; margin-bottom:-1px; font-weight:500; cursor:pointer; white-space:nowrap; font-family:inherit;}
.mg-tab .crm-icon{width:17px; height:17px;}
.mg-tab:hover{color:#0F172A;}
.mg-tab.on{color:var(--brand-accent,#4338E0); border-bottom-color:var(--brand-accent,#4338E0); font-weight:700;}
.mg-card{background:#fff; border:1px solid #E2E8F0; border-radius:12px; padding:22px 24px; margin-bottom:16px; box-shadow:none;}
.mg-card h3{margin:0 0 2px; font-size:15px; color:#0F172A;}
.mg-card .mg-hs{font-size:12.5px; color:#64748B; margin-bottom:14px;}
.mg-row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 0; border-bottom:1px solid #EEF2F7;}
.mg-row:last-child{border-bottom:0; padding-bottom:0;}
.mg-row b{display:block; font-size:13.5px; color:#0F172A; font-weight:600;}
.mg-row small{display:block; color:#64748B; font-size:12px; margin-top:2px;}
.mg-sw{width:40px; height:22px; border-radius:11px; background:#CBD5E1; position:relative; border:0; padding:0; cursor:pointer; flex:none; transition:background .15s;}
.mg-sw:after{content:""; position:absolute; top:3px; right:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:right .15s;}
.mg-sw.on{background:var(--brand-accent,#4338E0);}
.mg-sw.on:after{right:21px;}
.mg-sw:disabled{opacity:.55; cursor:not-allowed;}
.mg-seg{display:inline-flex; flex-wrap:wrap; background:#EEF1F8; border-radius:10px; padding:3px; gap:2px;}
.mg-seg-b{padding:7px 14px; border-radius:8px; font-size:13px; color:#475569; font-weight:500; background:none; border:0; cursor:pointer; font-family:inherit;}
.mg-seg-b.on{background:#fff; color:var(--brand-accent,#4338E0); font-weight:700; box-shadow:0 1px 2px rgba(15,23,42,.08);}
.mg-seg-b:disabled{opacity:.55; cursor:not-allowed;}
.mg-note{font-size:12px; color:#64748B; margin-top:10px;}
.mg-tb{display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap;}
.mg-search{display:flex; align-items:center; gap:8px; height:40px; width:260px; border:1px solid #E2E8F0; border-radius:10px; background:#fff; padding:0 12px; color:#94A3B8;}
.mg-search input{border:0; outline:0; background:transparent; flex:1; font-size:13px; font-family:inherit; height:100%; padding:0; box-shadow:none; color:#0F172A;}
.mg-search .crm-icon{width:16px; height:16px; flex:none;}
.mg-sp{flex:1;}
.mg-tw{background:#fff; border:1px solid #E2E8F0; border-radius:12px; overflow:hidden;}
.mg-table{width:100%; border-collapse:collapse; font-size:13.5px;}
.mg-table th{background:#EEF1F8; color:#64748B; font-weight:600; font-size:12px; text-align:right; padding:0 16px; height:44px; white-space:nowrap;}
.mg-table td{padding:0 16px; height:56px; border-bottom:1px solid #EEF2F7; text-align:right; vertical-align:middle;}
.mg-table tr:last-child td{border-bottom:0;}
.mg-table tbody tr[data-mg-open]{cursor:pointer;}
.mg-table tbody tr[data-mg-open]:hover td{background:#F6F8FD;}
.mg-table tr.mg-off td{opacity:.6;}
.mg-av{width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin-inline-end:12px; vertical-align:middle; flex:none;}
.mg-nm{display:inline-block; vertical-align:middle; line-height:1.3;}
.mg-nm b{display:block; font-size:13.5px; font-weight:600;}
.mg-nm small{color:#94A3B8; font-size:12px;}
.mg-soft{display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:8px; font-size:12px; font-weight:600; background:#EEF1F5; color:#475569; white-space:nowrap;}
.mg-soft.amber{background:rgba(245,158,11,.14); color:#B45309;}
.mg-soft.blue{background:rgba(31,120,234,.11); color:#1D4ED8;}
.mg-soft.green{background:rgba(5,150,105,.12); color:#047857;}
.mg-soft.muted{color:#64748B;}
.mg-dot{width:7px; height:7px; border-radius:50%; background:#059669; display:inline-block; margin-inline-end:6px;}
.mg-dot.off{background:#CBD5E1;}
.mg-chev{color:#94A3B8;} .mg-chev .crm-icon{width:16px; height:16px;}
.mg-empty{padding:34px; text-align:center; color:#64748B; font-size:13.5px;}
/* drawer */
.mg-drawer-backdrop{position:fixed; inset:0; background:rgba(15,17,26,.32); z-index:300;}
.mg-drawer{position:fixed; top:0; bottom:0; left:0; width:min(720px,96vw); background:#fff; z-index:301; display:flex; flex-direction:column; box-shadow:24px 0 48px rgba(20,22,35,.16); border-inline-end:1px solid #E2E8F0; transform:translateX(-100%); transition:transform .22s ease;}
.mg-drawer.open{transform:translateX(0);}
.mg-dh{padding:20px 28px 0;}
.mg-dh-r{display:flex; align-items:center; gap:14px;}
.mg-dh-r .mg-av{width:40px; height:40px; font-size:14px; margin:0;}
.mg-dh-t{flex:1; min-width:0;}
.mg-dh-t h2{margin:0; font-size:18px; font-weight:700;}
.mg-dh-m{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:12.5px; color:#64748B; margin-top:4px;}
.mg-x{width:34px; height:34px; border:1px solid #E2E8F0; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#64748B; background:#fff; cursor:pointer; flex:none;}
.mg-x .crm-icon{width:18px; height:18px;}
.mg-dt{display:flex; gap:22px; border-bottom:1px solid #E2E8F0; margin-top:16px;}
.mg-dt button{padding:10px 2px; font-size:14px; color:#64748B; border:0; border-bottom:2px solid transparent; margin-bottom:-1px; font-weight:500; background:none; cursor:pointer; font-family:inherit;}
.mg-dt button.on{color:var(--brand-accent,#4338E0); border-bottom-color:var(--brand-accent,#4338E0); font-weight:700;}
.mg-db{flex:1; padding:24px 28px; overflow-y:auto;}
.mg-df{padding:14px 28px; border-top:1px solid #E2E8F0; display:flex; gap:10px; align-items:center; background:#fff;}
.mg-df .mg-hint{flex:1; text-align:end; font-size:12px; color:#64748B;}
.mg-sec{font-size:12px; font-weight:700; color:#64748B; letter-spacing:.3px; margin:0 0 12px;}
.mg-fg{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.mg-fg .full{grid-column:1 / -1;}
.mg-f label{display:block; font-size:12px; color:#64748B; margin-bottom:6px;}
.mg-f .req{color:#DC2626; margin-inline-start:3px;}
.mg-in{height:44px; width:100%; border:1px solid #E2E8F0; border-radius:12px; padding:0 14px; font-size:14px; background:#fff; font-family:inherit; color:#0F172A; display:flex; align-items:center; justify-content:space-between;}
.mg-in:focus{outline:0; border-color:var(--brand-accent,#4338E0);}
.mg-in.dis{background:#F8FAFC; color:#64748B;}
.mg-in.err{border-color:#EF4444; background:#FFF8F8;}
.mg-em{color:#DC2626; font-size:12px; margin-top:6px;}
.mg-hint2{font-size:12px; color:#64748B; margin-top:6px;}
.mg-hr{height:1px; background:#EEF2F7; margin:22px 0;}
.mg-tr{display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #E2E8F0; border-radius:12px; padding:14px 16px; margin-bottom:12px;}
.mg-tr b{display:block; font-size:13.5px; font-weight:600;} .mg-tr small{display:block; color:#64748B; font-size:12px; margin-top:2px;}
.mg-scale{display:flex; height:34px; border-radius:10px; overflow:hidden; margin-top:14px; font-size:11.5px; font-weight:600;}
.mg-scale div{display:flex; align-items:center; justify-content:center; white-space:nowrap; overflow:hidden;}
.mg-tk{display:flex; font-size:11px; color:#64748B; margin-top:5px;}
.mg-pc{display:inline-flex; align-items:center; padding:3px 9px; border-radius:8px; font-size:12px; font-weight:600; background:rgba(31,120,234,.10); color:#1D4ED8; margin-inline-end:6px; white-space:nowrap;}
.mg-pc.m{background:#EEF1F5; color:#64748B;}
.mg-drawer .pss-custom-sched{margin-top:14px;}
@media (max-width:760px){ .mg-fg{grid-template-columns:1fr;} .mg-search{width:100%;} .mg-dh,.mg-db,.mg-df{padding-inline:18px;} }


/* v99 — אישורי מנהל בבקרת נוכחות */
.ac-appr{display:inline-flex; align-items:center; gap:6px; border:0; border-radius:8px; padding:3px 10px; font-size:12px; font-weight:600; background:rgba(245,158,11,.14); color:#B45309; cursor:pointer; margin:2px 0 2px 6px; font-family:inherit; white-space:nowrap;}
.ac-appr small{font-size:11px; font-weight:500; opacity:.8;}
.ac-appr:hover{background:rgba(245,158,11,.24);}
.ac-appr-n{display:inline-block; margin-inline-start:8px; padding:2px 8px; border-radius:8px; font-size:11px; font-weight:700; background:rgba(245,158,11,.14); color:#B45309;}
.ac-ai-list{display:flex; flex-direction:column; gap:8px;}
.ac-ai{display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #E2E8F0; border-radius:12px; padding:12px 14px;}
.ac-ai.is-pending{border-color:rgba(245,158,11,.5); background:rgba(245,158,11,.05);}
.ac-ai b{display:block; font-size:13px;} .ac-ai small{display:block; color:#64748B; font-size:12px; margin-top:2px;}
.ac-ai-st{font-size:12px; font-weight:600; padding:3px 10px; border-radius:8px; background:#EEF1F5; color:#475569; white-space:nowrap;}
.ac-ai-approved{background:rgba(5,150,105,.12); color:#047857;}
.ac-ai-declined{background:#EEF1F5; color:#64748B;}
.ac-appr-acts{display:flex; flex-direction:column; gap:8px; margin-top:16px;}
.ac-appr-acts .btn{justify-content:center;}
.ac-appr-remind{background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; border-radius:10px; padding:8px 12px; font-size:13px;}

.rest-vol{display:block; margin-top:6px; font-size:12px; font-weight:500; cursor:pointer;}
.rest-vol input{vertical-align:middle; margin-inline-end:4px;}
.rest-vol small{display:block; color:#64748B; font-size:11.5px; margin-top:2px; font-weight:400;}
.rest-cls{display:flex; flex-direction:column; gap:4px; margin-top:6px; align-items:flex-start;}
.rest-opt{font-size:12.5px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:6px;}
.rest-opt input{margin:0;}
.rest-appr{margin-top:2px;}
.rest-chip{display:inline-block; margin-inline-start:6px; padding:2px 9px; border-radius:8px; font-size:11.5px; font-weight:600; background:#EEF1F5; color:#475569;}
.rest-chip.is-pend{background:rgba(245,158,11,.14); color:#B45309;}
.rest-chip.is-appr{background:rgba(5,150,105,.12); color:#047857;}

/* ===== V100: reports ("דוחות") ===== */
.rp-actions{display:flex; gap:8px; align-items:center;}
.rp-seg{margin-bottom:12px;}
.rp-filters{margin-bottom:12px;}
.rp-frow{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 14px;}
.rp-ffields{display:flex; gap:8px; flex-wrap:wrap; align-items:center; flex:1 1 400px; min-width:260px;}
.rp-ffields select{min-width:0; width:128px; flex:0 0 auto;}
.rp-date{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.rp-date .pill{padding:6px 10px; font-size:12px;}
.rp-nav{display:flex; align-items:center; gap:4px;}
.rp-dates{display:inline-flex; align-items:center; gap:6px;}
.rp-dates input{width:140px;}
.rp-datewrap{position:relative;}
.rp-datelabel{background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:7px 12px; font:inherit; font-weight:700; font-size:13px; color:var(--ink); cursor:pointer; min-width:130px; text-align:center;}
.rp-datelabel:hover{border-color:var(--accent);}
.rp-caret{font-size:10px; color:var(--ink-muted);}
.rp-menu{position:absolute; top:calc(100% + 6px); inset-inline-start:0; z-index:60; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 32px rgba(15,23,42,.16); min-width:190px; padding:6px; display:flex; flex-direction:column;}
.rp-menu button{border:0; background:none; text-align:start; padding:8px 12px; border-radius:7px; font:inherit; font-size:13px; color:var(--ink); cursor:pointer;}
.rp-menu button:hover{background:var(--surface-2);}
.rp-link{background:none; border:0; color:var(--accent); font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; padding:2px 4px;}
.rp-bk-bar{display:flex; align-items:center; justify-content:space-between; margin:2px 2px 8px;}
.rp-bk-title{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px;}
.rp-bk-title .card-title{margin:0;}
.rp-bk-row{display:grid; grid-template-columns:minmax(90px,1.2fr) 2fr 52px 48px; align-items:center; gap:10px; margin-bottom:9px;}
.rp-bk-row .lbl{font-size:12.5px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rp-bk-row .val{font-size:12.5px; font-weight:700; text-align:end;}
.rp-bk-row .pct{font-size:11.5px; color:var(--ink-muted); text-align:end;}
.rp-bar{height:6px; background:var(--surface-2); border-radius:99px; overflow:hidden;}
.rp-bar i{display:block; height:100%; background:var(--accent); border-radius:99px;}
.rp-bk-row.muted .lbl,.rp-bk-row.muted .val{color:var(--ink-muted); font-weight:500;}
.rp-bk-row.muted .rp-bar i{background:var(--ink-muted); opacity:.45;}
.rp-bk-btns{display:flex; gap:12px; margin-top:6px;}
.rp-bk-row2{margin-bottom:14px;}
.rp-headtools{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.rp-hpill{background:var(--accent-wash); color:var(--accent); font-weight:800; font-size:12.5px; padding:4px 12px; border-radius:99px;}
.rp-ps{font-size:12.5px; color:var(--ink-muted); display:inline-flex; align-items:center; gap:6px;}
.rp-ps select{width:auto; min-width:64px;}
.rp-drawer .rp-d-tools{display:flex; gap:8px; padding:8px 20px 12px; border-bottom:1px solid var(--border);}
.rp-drawer .rp-d-tools input{flex:1;}
.rp-d-list{padding:16px 20px; overflow-y:auto; flex:1;}
.rp-kpis{display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; margin-bottom:12px;}
.rp-rate,.rp-kpi{background:var(--surface-2); border:1px solid var(--border); border-radius:10px; min-height:48px; padding:6px 14px; display:flex; align-items:center; gap:10px;}
.rp-rate label{font-size:12px; color:var(--ink-muted); font-weight:700;}
.rp-rate input{width:80px; padding:4px 8px;}
.rp-kpi{flex:1; min-width:120px; justify-content:space-between;}
.rp-kpi .l{font-size:11.5px; color:var(--ink-muted); font-weight:700;}
.rp-kpi b{font-size:16px; font-family:"Heebo",sans-serif;}
.rp-neg{color:var(--critical);}
.rp-dash{color:var(--ink-muted);}
.rp-retbtn{background:none; border:0; border-bottom:1px dotted var(--ink-muted); font:inherit; color:inherit; cursor:pointer; padding:0;}
.rp-st{display:inline-block; min-width:78px; text-align:center; padding:2px 10px; border-radius:99px; font-size:11.5px; font-weight:700; font-family:inherit;}
.rp-st.good{background:var(--good-wash); color:var(--good);}
.rp-st.bal{background:var(--surface-2); color:var(--ink-2); border:1px solid var(--border);}
.rp-st.over{background:color-mix(in srgb,var(--critical) 14%,transparent); color:var(--critical);}
.rp-st.none{background:transparent; border:1px dashed var(--ink-muted); color:var(--ink-muted); cursor:pointer;}
.rp-st.none:hover{color:var(--accent); border-color:var(--accent);}
.rp-pop{position:fixed; z-index:120; width:250px; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 14px 36px rgba(15,23,42,.2); padding:14px; display:flex; flex-direction:column; gap:8px;}
.rp-pop-t{font-weight:800; font-size:13.5px;}
.rp-pop label{font-size:12px; color:var(--ink-muted); font-weight:700;}
.rp-pop-b{display:flex; gap:6px; margin-top:4px;}
.rp-pop-del{margin-inline-start:auto; color:var(--critical);}
@media (max-width:640px){ .rp-bk-row{grid-template-columns:1fr 1fr 46px 42px;} }

/* v111 — monthly sheet: employment terms + actions merged into one quiet row (option ג1) */
.ts-merged{display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-2); background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:6px 8px 6px 14px; margin-bottom:12px;}
.ts-merged b{color:var(--ink); font-weight:700;}
.ts-merged .terms-strip-sep{color:var(--ink-muted);}
.ts-item{white-space:nowrap; display:inline-flex; align-items:center;}
.ot-q{width:17px; height:17px; border-radius:50%; border:1.2px solid #e11d48; color:#e11d48; background:var(--surface); font:800 10.5px/1 Arial, sans-serif; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; margin-inline-start:6px; padding:0; transition:background-color .12s, color .12s;}
.ot-q:hover, .ot-q.on{background:#e11d48; color:#fff;}
.ts-acts{margin-inline-start:auto; display:inline-flex; align-items:center; gap:2px;}
.ts-vdiv{width:1px; align-self:stretch; min-height:18px; background:var(--border-strong); margin:2px 6px;}
.ts-ghost{background:transparent; border:none; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink-2); padding:5px 10px; border-radius:8px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; transition:background-color .12s; white-space:nowrap;}
.ts-ghost:hover, .ts-ghost[aria-expanded="true"]{background:rgba(15,23,42,.06);}
.ts-ghost svg{width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; color:var(--ink-muted);}
.ts-ghost.acc, .ts-ghost.acc svg{color:var(--accent);}
.ts-ghost .pr-info-link-dot{width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block;}
.ts-merged .terms-strip-note{margin-inline-start:0;}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .ts-ghost:hover{background:rgba(255,255,255,.07);} }
:root[data-theme="dark"] .ts-ghost:hover{background:rgba(255,255,255,.07);}

/* ===== v112: מסמכים מצורפים ===== */
.ac-ico-doc{background:rgba(14,116,144,.09); color:#0E7490;}
.ac-ico-doc.is-unread{background:rgba(14,116,144,.2); box-shadow:inset 0 0 0 1.5px #0E7490;}
.ac-fchip svg{display:inline-block; width:13px; height:13px; vertical-align:-2px; margin-inline-end:4px;}
.ac-fchip{white-space:nowrap;}
.ts-ghost .doc-count{background:var(--accent); color:#fff; font-size:11px; font-weight:700; border-radius:999px; padding:0 6px; line-height:17px; min-width:17px; text-align:center;}
.doc-pop-head{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.doc-secure{display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; color:#047857; background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.28); border-radius:999px; padding:3px 10px;}
.doc-secure svg{width:12px; height:12px;}
.doc-up{display:grid; grid-template-columns:1fr auto auto; gap:8px; align-items:center;}
.doc-up input[type=text]{min-width:0; font:inherit; font-size:13px; border:1px solid var(--pss-input-border); background:var(--pss-input-bg); color:var(--ink); border-radius:9px; padding:8px 11px;}
.doc-pick{display:inline-flex; align-items:center; gap:6px; max-width:200px; border:1px dashed var(--border-strong); border-radius:9px; padding:7px 12px; font-size:12.5px; font-weight:600; color:var(--ink-2); cursor:pointer; white-space:nowrap; overflow:hidden;}
.doc-pick span{overflow:hidden; text-overflow:ellipsis;}
.doc-pick.has{border-style:solid; border-color:var(--accent); color:var(--accent);}
.doc-pick svg,.doc-clip svg{width:14px; height:14px; flex:none;}
.doc-list{margin-top:10px; display:flex; flex-direction:column; gap:6px;}
.doc-item{display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:10px; padding:8px 10px;}
.doc-clip{display:inline-flex; padding:6px; border-radius:8px; background:rgba(14,116,144,.09); color:#0E7490;}
.doc-meta{flex:1; min-width:0; display:flex; flex-direction:column;}
.doc-meta b{font-size:13px; font-weight:600; color:var(--ink); overflow-wrap:anywhere;}
.doc-meta small{font-size:11.5px; color:var(--ink-muted);}
.doc-new{display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); vertical-align:middle; margin-inline-start:4px;}
.doc-item .doc-del{color:#B91C1C;}
.doc-empty{margin-top:10px; font-size:12.5px; color:var(--ink-muted);}
@media (max-width:600px){ .doc-up{grid-template-columns:1fr 1fr;} .doc-up input[type=text]{grid-column:1 / -1;} .doc-pick{max-width:none;} }

/* ===== v113: העברת הערה + שינוי החלטה ===== */
.ac-note-xfer{margin-top:6px; display:flex; justify-content:flex-end;}
.ac-note-xfer .ac-link{display:inline-flex; align-items:center; gap:5px; font-size:12.5px;}
.ac-note-xfer svg,.ac-xfer-done svg{width:13px; height:13px;}
.ac-xfer-done{display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#047857; font-weight:600;}
.ac-ai-end{display:inline-flex; align-items:center; gap:10px; flex:none;}
.ac-ai-chg{font-size:12.5px;}
.ac-appr-cur{background:var(--surface-2, #f1f5f9); border-radius:8px; padding:8px 12px; font-size:13px; margin-bottom:10px;}

/* ===== v113: ארכיון מסמכים ===== */
.arch-sel{height:40px; width:auto; min-width:150px; border:1px solid #E2E8F0; border-radius:10px; background:#fff; padding:0 10px; font:inherit; font-size:13px; color:#0F172A;}
.arch-count{font-size:12.5px; color:#64748B;}
.arch-table td{height:52px;}
.arch-desc{font-weight:600; color:#0F172A;}
.arch-file{font-size:12.5px; color:#64748B;}
.arch-note{display:flex; align-items:center; gap:8px; margin-top:12px; font-size:12.5px; color:#64748B;}
.arch-note svg{width:14px; height:14px; flex:none; color:#047857;}
@media (max-width:760px){ .arch-sel{flex:1 1 140px;} .mg-tw{overflow-x:auto;} }

/* ===== v114: home — attendance actions, smart alerts, profile chip; hours page ===== */
.v93-clock{ flex-direction:column; flex-wrap:nowrap; align-items:stretch; justify-content:space-between; gap:0; }
.v93-clock-top{ position:relative; flex:1; display:flex; align-items:center; justify-content:center; gap:48px; flex-wrap:wrap; padding:6px 0 4px; }
.v93-clock-acts{ position:relative; display:flex; gap:10px; margin-top:22px; }
.v93-clock-acts button{ flex:1; height:38px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:transparent; color:#c3cdf0; font-family:inherit; font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; transition:background .15s,border-color .15s; }
.v93-clock-acts button:hover:not(:disabled){ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.22); color:#fff; }
.v93-clock-acts button:disabled{ opacity:.45; cursor:not-allowed; }
.v93-clock-acts svg{ width:16px; height:16px; }

.v93-sa{ position:relative; overflow:hidden; }
.v93-sa::before{ content:""; position:absolute; inset-inline:0; top:0; height:3px; background:linear-gradient(90deg,#f59e0b,#fbbf24,#f97316); }
.v93-sa-h{ display:flex; align-items:center; gap:10px; padding:18px 20px 12px; }
.v93-sa-h .ic{ width:34px; height:34px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#fef3c7,#fde68a); color:#b45309; box-shadow:inset 0 0 0 1px rgba(217,119,6,.18); }
.v93-sa-h .ic svg{ width:18px; height:18px; }
.v93-sa-h h2{ margin:0; flex:1; font-size:16px; font-weight:700; }
.v93-sa-h h2 small{ display:block; font-size:12px; font-weight:500; color:var(--ink-muted); margin-top:1px; }
.v93-sa-h .cnt{ font-size:12px; font-weight:800; padding:2px 10px; border-radius:99px; background:linear-gradient(135deg,#f59e0b,#f97316); color:#fff; box-shadow:0 4px 10px rgba(245,158,11,.35); }
.v93-sa-r{ display:flex; align-items:center; gap:12px; padding:12px 20px; border-top:1px solid var(--border); }
.v93-sa-r .ri{ width:30px; height:30px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; background:#fff7ed; color:#d97706; }
.v93-sa-r .ri.ind{ background:#eef2ff; color:#4f46e5; }
.v93-sa-r .ri.ok{ background:#ecfdf5; color:#059669; }
.v93-sa-r .ri svg{ width:16px; height:16px; }
.v93-sa-r .t{ flex:1; min-width:0; font-size:14px; font-weight:600; }
.v93-sa-r .t small{ display:block; font-size:12px; font-weight:500; color:var(--ink-muted); margin-top:1px; }
.v93-sa-r button{ height:32px; padding:0 14px; border-radius:10px; font-family:inherit; font-size:13px; font-weight:700; border:1px solid #fcd34d; background:#fffbeb; color:#b45309; cursor:pointer; flex:none; }
.v93-sa-r button:hover{ background:#fef3c7; }

.v93-prof.v93-prof2{ border:0; box-shadow:none; background:transparent; padding:0 4px 0 10px; gap:10px; height:44px; border-radius:999px; transition:background .15s; }
.v93-prof.v93-prof2:hover,.v93-prof.v93-prof2.op{ background:rgba(255,255,255,.06); }
.v93-prof.v93-prof2 .nm{ font-size:13.5px; font-weight:600; color:#eaf0ff; }
.v93-av2{ position:relative; width:36px; height:36px; border-radius:50%; padding:2px; flex:none; display:flex; background:conic-gradient(from 200deg,#22d3ee,#6366f1,#a855f7,#22d3ee); }
.v93-av2 > span{ flex:1; border-radius:50%; background:#0b1433; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:700; color:#e0e7ff; }
.v93-av2 i{ position:absolute; bottom:0; inset-inline-start:0; width:10px; height:10px; border-radius:50%; background:#34d399; border:2px solid #070d26; }
.v93-av2.big{ width:46px; height:46px; }
.v93-av2.big > span{ font-size:15px; }
.v93-um.v93-um2{ width:290px; min-width:0; border-radius:18px; background:rgba(14,22,52,.97); border:1px solid rgba(255,255,255,.09); box-shadow:0 30px 70px rgba(2,6,23,.6); top:calc(100% + 10px); }
.v93-um2 .hd{ display:flex; align-items:center; gap:12px; padding:12px 12px 14px; }
.v93-um2 .hd b{ display:block; font-size:15px; }
.v93-um2 .pill{ display:inline-flex; margin-top:6px; font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; background:linear-gradient(135deg,rgba(99,102,241,.35),rgba(34,211,238,.25)); color:#e0e7ff; }
.v93-um2 .firm{ display:flex; align-items:center; gap:10px; margin:0 4px 6px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.04); font-size:13px; color:#c3cdf0; }
.v93-um2 .firm small{ display:block; font-size:11.5px; color:#8e9cc6; }
.v93-um2 .firm img,.v93-um2 .firm .lg{ width:26px; height:26px; border-radius:8px; flex:none; object-fit:cover; }
.v93-um2 .firm .lg{ background:linear-gradient(135deg,#4338e0,#1f78ea); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; }
.v93-um2 .sep{ height:1px; background:rgba(255,255,255,.07); margin:6px 4px; }
.v93-um2 button.it svg{ width:17px; height:17px; }
.v93-um2 button.it.out{ color:#fca5a5; }
.v93-um2 button.it.out svg{ color:#f87171; }

.att2-form.hr-form{ position:relative; margin-bottom:18px; }
.att2-form.hr-form::before{ content:""; position:absolute; inset-inline:18px; top:-1px; height:3px; border-radius:0 0 4px 4px; background:linear-gradient(90deg,#4338e0,#1f78ea,#22d3ee); }
.hr-form #entryForm.ef2-form{ display:grid; grid-template-columns:1.35fr 1fr 150px 150px 1.1fr auto; gap:10px; align-items:start; }
.hr-form #entryForm .ef2-row,.hr-form #entryForm .ef2-row2{ display:contents; }
.hr-form #entryForm .ef2-row2 .btn{ margin-top:22px; height:44px; }
.hr-form #entryForm .ef2-row2 .field{ margin-top:22px; }
.hr-form #entryForm .att-gate-note{ grid-column:1 / -1; order:99; margin:0; }
.att-gate-link{ border:0; background:none; padding:0; font:inherit; font-weight:700; color:#4338e0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:1100px){ .hr-form #entryForm.ef2-form{ grid-template-columns:1fr 1fr; } .hr-form #entryForm .ef2-row2 .btn,.hr-form #entryForm .ef2-row2 .field{ margin-top:0; } }
@media (max-width:600px){ .v93-clock-acts{ flex-direction:column; } .v93-clock-acts button{ flex:none; height:40px; } .hr-form #entryForm.ef2-form{ grid-template-columns:1fr; } }

.ef2-hours input::placeholder{ font-weight:400; font-size:14px; color:#b4bccb; opacity:1; }

/* ===== v115: בקרת נוכחות — compact toolbar, status groups, quiet cells ===== */
.ac-head{ align-items:center; margin-bottom:16px; }
.ac-actbtn.pss-actions-btn{ display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 13px; border-radius:10px; background:#fff; color:#0f172a; border:1px solid #e2e8f0; font-size:14px; font-weight:600; box-shadow:0 1px 2px rgba(15,23,42,.05); }
.ac-actbtn.pss-actions-btn:hover{ border-color:#cbd5e1; background:#f8fafc; }
.ac-actbtn.pss-actions-btn[aria-expanded="true"]{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(67,56,224,.12); }
.ac-actbtn svg{ width:16px; height:16px; color:#64748b; }
.ac-xbar{ display:flex; align-items:center; gap:10px; margin:0 0 14px; flex-wrap:wrap; }
.ac-xbar .ac-tsearch{ position:relative; width:260px; flex:none; }
.ac-xbar .ac-search{ height:38px; border-radius:10px; }
.ac-xsp{ flex:1; }
.ac-fwrap{ position:relative; }
.ac-fbtn{ height:38px; display:inline-flex; align-items:center; gap:8px; padding:0 12px; border-radius:10px; border:1px solid #e2e8f0; background:#fff; font-family:inherit; font-size:14px; color:#334155; font-weight:600; cursor:pointer; }
.ac-fbtn:hover{ border-color:#cbd5e1; }
.ac-fbtn.is-on{ border-color:#c7d2fe; background:#f5f7ff; }
.ac-fbtn svg{ width:15px; height:15px; color:#64748b; }
.ac-fbtn b{ font-weight:700; color:#0f172a; }
.ac-fbtn .n{ font-size:12px; padding:1px 7px; border-radius:99px; background:#eef2ff; color:#4338e0; font-weight:800; }
.ac-fmenu{ position:absolute; top:calc(100% + 6px); inset-inline-start:0; width:230px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 20px 50px rgba(15,23,42,.16); padding:6px; z-index:60; }
.ac-fmenu button{ width:100%; display:flex; align-items:center; gap:10px; padding:9px 10px; border:0; border-radius:9px; background:none; font-family:inherit; font-size:14px; font-weight:500; color:#334155; cursor:pointer; text-align:start; }
.ac-fmenu button:hover{ background:#f8fafc; }
.ac-fmenu button.on{ background:#f1f5ff; color:#4338e0; font-weight:700; }
.ac-fmenu i{ width:8px; height:8px; border-radius:50%; flex:none; }
.ac-fmenu span{ margin-inline-start:auto; font-size:12.5px; color:#94a3b8; font-weight:600; }
.ac-fmenu hr{ border:0; border-top:1px solid #eef1f6; margin:5px 4px; }
.ac-xsteps{ display:flex; align-items:center; gap:4px; height:38px; padding:0 5px; border-radius:12px; background:#fff; border:1px solid #e2e8f0; }
.ac-xs{ display:flex; align-items:center; gap:8px; padding:0 10px; height:30px; border-radius:9px; font-size:13px; color:#64748b; font-weight:600; white-space:nowrap; }
.ac-xs .d{ width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; background:#f1f5f9; color:#64748b; }
.ac-xs .d svg{ width:12px; height:12px; }
.ac-xs.is-done{ color:#047857; }
.ac-xs.is-done .d{ background:#10b981; color:#fff; }
.ac-xs.is-cur{ background:#eef2ff; color:#3730a3; }
.ac-xs.is-cur .d{ background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; }
.ac-xs small{ font-size:12.5px; font-weight:700; opacity:.75; direction:ltr; }
.ac-xs .bar{ width:44px; height:4px; border-radius:99px; background:#dfe4f3; overflow:hidden; }
.ac-xs .bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#4338e0,#1f78ea); }
.ac-xsteps .sep{ width:14px; height:1px; background:#cbd5e1; flex:none; }

.ac-card{ border:1px solid #e8ecf3; border-radius:16px; box-shadow:0 1px 2px rgba(15,23,42,.04),0 10px 30px rgba(15,23,42,.05); }
.ac-tbl thead th{ background:#fafbfd; font-size:12.5px; font-weight:600; color:#8a94a8; }
.ac-tbl tbody tr.ac-row td{ border-bottom:1px solid #f1f4f8; }
.ac-tbl tbody tr.ac-row:hover td{ background:#fafbff; }
.ac-tbl .ac-chev{ opacity:.35; transition:opacity .15s; }
.ac-tbl tr.ac-row:hover .ac-chev,.ac-tbl tr.ac-row.sel .ac-chev,.ac-tbl .ac-chev:focus-visible{ opacity:1; }
.ac-tbl .ac-st{ background:none; padding:0; border:0; display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; }
.ac-tbl .ac-st::before{ content:""; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }
.ac-tbl .ac-st-wait{ color:#d97706; } .ac-tbl .ac-st-review{ color:#2563eb; } .ac-tbl .ac-st-done{ color:#059669; }
.ac-tbl .ac-pctb.ok{ background:none; color:#334155; padding:0; }
.ac-tbl .ac-pctb.warn{ background:#fff7ed; color:#b45309; border-radius:8px; padding:3px 9px; font-weight:700; }
tr.ac-gh td{ padding:0 !important; height:36px; background:#f8fafc; border-top:1px solid #eef1f6; border-bottom:1px solid #eef1f6; }
.ac-gbtn{ height:36px; width:100%; display:flex; align-items:center; gap:9px; padding:0 18px; border:0; background:none; font-family:inherit; font-size:13px; font-weight:700; color:#334155; cursor:pointer; text-align:start; }
.ac-gbtn svg{ width:14px; height:14px; color:#94a3b8; transition:transform .15s; }
tr.ac-gh.is-closed .ac-gbtn svg{ transform:rotate(90deg); }
.ac-gbtn i{ width:8px; height:8px; border-radius:50%; }
.ac-gbtn span{ font-size:12px; font-weight:700; color:#64748b; background:#eef1f6; border-radius:99px; padding:0 8px; line-height:18px; }
@media (max-width:900px){ .ac-xbar .ac-tsearch{ width:100%; } .ac-xsp{ display:none; } .ac-xsteps{ width:100%; overflow-x:auto; } }

/* ===== v115b: export (primary) + more-actions (icon only) ===== */
.ac-export{ display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 16px; border-radius:10px; border:0; background:linear-gradient(135deg,#4338e0,#1f78ea); color:#fff; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; box-shadow:0 8px 20px rgba(49,90,235,.32),inset 0 1px 0 rgba(255,255,255,.2); transition:transform .15s,box-shadow .15s; }
.ac-export:hover:not(:disabled){ transform:translateY(-1px); box-shadow:0 12px 26px rgba(49,90,235,.42),inset 0 1px 0 rgba(255,255,255,.2); }
.ac-export:disabled{ opacity:.5; cursor:not-allowed; box-shadow:none; }
.ac-export svg{ width:17px; height:17px; }
.ac-more{ position:relative; width:38px; height:38px; border-radius:10px; border:1.5px solid #4338e0; background:#fff; color:#4338e0; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; transition:background .15s,box-shadow .15s; }
.ac-more > svg{ width:20px; height:20px; fill:currentColor; stroke:none; }
.ac-more:hover,.ac-more[aria-expanded="true"]{ background:#f1f5ff; box-shadow:0 0 0 3px rgba(67,56,224,.12); }
.ac-more-tip{ position:absolute; top:calc(100% + 8px); inset-inline-end:0; background:#0f172a; color:#fff; font-size:12.5px; font-weight:600; padding:6px 10px; border-radius:8px; white-space:nowrap; pointer-events:none; opacity:0; transform:translateY(-3px); transition:opacity .12s,transform .12s; z-index:70; }
.ac-more:hover .ac-more-tip,.ac-more:focus-visible .ac-more-tip{ opacity:1; transform:none; }
.ac-more[aria-expanded="true"] .ac-more-tip{ opacity:0; }

/* ===== v116: דוחות — עמודת הערות + פעולות כאייקונים ===== */
.rp-dt th,.rp-dt td{ white-space:nowrap; }
.rp-dt th:nth-child(6),.rp-dt td.rp-note{ width:40%; white-space:normal; }
.rp-dt td.rp-acts{ width:1%; padding-inline-start:4px; }
.rp-dt td.rp-acts .row-actions{ gap:2px; justify-content:flex-end; }
.rp-note{ max-width:0; }
.rp-note-btn{ position:relative; display:block; width:100%; padding:0; border:0; background:none; font:inherit; color:var(--ink-2,#334155); text-align:start; cursor:default; }
.rp-note-txt{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-note-pop{ position:absolute; top:calc(100% + 6px); inset-inline-start:-8px; z-index:30; width:max-content; max-width:min(420px,80vw); padding:10px 12px; border-radius:10px; background:#0f172a; color:#f1f5f9; font-size:13px; line-height:1.55; white-space:normal; text-align:start; box-shadow:0 14px 34px rgba(15,23,42,.28); opacity:0; visibility:hidden; transform:translateY(-3px); transition:opacity .12s,transform .12s,visibility .12s; pointer-events:none; }
.rp-note-btn:hover .rp-note-pop,.rp-note-btn:focus .rp-note-pop{ opacity:1; visibility:visible; transform:none; }
.rp-note-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
.rp-note-none{ color:#cbd5e1; }
.rp-dt tbody tr:last-child .rp-note-pop,.rp-dt tbody tr:nth-last-child(2) .rp-note-pop{ top:auto; bottom:calc(100% + 6px); }
@media print{ .rp-note-pop{ display:none; } .rp-note-txt{ white-space:normal; } }
