/* ============================================================
   Theme overrides — light / dark / system
   The app's base theme (in index-*.css :root) is DARK.
   We keep dark as the default and add a LIGHT palette that is
   applied when <html data-theme="light"> is set by the
   pre-paint script in index.html.
   The theme is always an explicit light or dark choice; there is no
   "follow the OS" mode.
   ============================================================ */
/* --text1 is not a theme token, but several sidecars (recruit KPIs, the
   pipeline card, older inline styles) wrote var(--text1, <fallback>) as if it
   were — so they rendered the fallback: black text in dark mode, white in
   light. Alias it to the real primary-text token so both themes work. */
:root {
  --text1: var(--text);
}

  /* Calendar fill tokens — Leave Management holidays grid.
   Dark: low-alpha tint with the hue as text, so weekends don't swamp the card.
   Light overrides these with solid fills in the block below. */
:root {
  --cal-holiday-bg: rgba(34, 211, 165, 0.20);
  --cal-holiday-fg: #22d3a5;
  --cal-holiday-dot: #22d3a5;
  --cal-weekend-bg: rgba(247, 149, 79, 0.13);
  --cal-weekend-fg: #f7954f;
  --cal-weekend-dot: #f7954f;
}
 
/* Light palette — overrides the dark :root variables.
   Tuned for a clean, professional look: a soft neutral page behind crisp white
   surfaces, solid (not barely-there) borders, and high-contrast text. */
html[data-theme="light"] {
  --bg: #d8d9dd;          /* page — clearly sits behind white cards */
  --bg2: #e8e8ee;         /* cards / sidebar / topbar */
  --bg3: #e2e3e7;         /* subtle fills (chips, search pill) */
  --surface: #ffffff;
  --surface2: #f2f5fa;
  --accent: #2f6fe0;
  --accent2: #7c5cfc;
  --accent3: #16b894;
  --accent4: #ef8b3c;
  --text: #101011;        /* near-black headings / values */
  --text2: #201f1f;       /* secondary text */
  --text3: #313132;       /* muted labels */
  --border: rgba(47, 111, 224, 0.22);
  --border2: #c1c3c5;     /* crisp solid hairline (was a faint 0.10 alpha) */
  --success: #15a37f;
  --warn: #c6881a;
  --danger: #d94835;
  
  /* Calendar fills — solid, as light mode renders them */
  --cal-holiday-bg: #15a37f;
  --cal-holiday-fg: #0a0e1a;
  --cal-holiday-dot: #15a37f;
  --cal-weekend-bg: #ef8b3c;
  --cal-weekend-fg: #0a0e1a;
  --cal-weekend-dot: #ef8b3c;
}

/* Native control chrome follows the theme.

   Scrollbars, <select> drop-downs, date pickers and the spin buttons on number
   inputs are painted by the browser, not by us, and default to the light
   scheme whatever the page does. In dark mode that produced light grey
   scrollbars and a white calendar popup on dark fields. The root is the only
   place worth saying this: `color-scheme` inherits, so every control below it
   picks it up, and our own ::-webkit-scrollbar rules still win where we set
   them. */
html[data-theme="dark"]  { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* Light-mode scrollbar reads better with a muted thumb */
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c7d0e0;
}

/* ---- Light-mode component polish ----------------------------------------
   Make form fields, cards and chrome read cleanly on the light palette. */

/* Form fields: crisp white field, visible border, clear focus ring. */

html[data-theme="light"] .input-field {
  background: var(--bg3, #e2e3e7);
  border-color: #d6deeb;
  color: var(--text);
}
html[data-theme="light"] .input-field::placeholder {
  color: #9aa6bd;
}
html[data-theme="light"] .input-field:hover:not(:disabled) {
  border-color: #c2cce0;
}
html[data-theme="light"] .input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 224, 0.14);
}
html[data-theme="light"] .input-field:disabled {
  background: var(--bg3, #e2e3e7);
  color: var(--text2);
  cursor: not-allowed;
}

/* Cards lift off the page with a soft shadow instead of a faint hairline. */
html[data-theme="light"] .card {
  border-color: #e6ebf3;
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04),
              0 4px 14px rgba(20, 30, 60, 0.05);
}

/* Chrome: subtle elevation so white-on-white surfaces stay distinct. */
html[data-theme="light"] .topbar {
  box-shadow: 0 1px 3px rgba(20, 30, 60, 0.05);
}
html[data-theme="light"] .sidebar {
  box-shadow: 1px 0 3px rgba(20, 30, 60, 0.035);
}
html[data-theme="light"] .topbar-search {
  background: var(--bg3, #e2e3e7);
  border-color: #dce3ee;
}

/* The F2F interviewer setup's "How it works" callout has a hard-coded
   light-blue background. Give it a dark surface and foreground in dark mode. */
html[data-theme="dark"] div[style*="236, 245, 255"] {
  background: var(--bg2) !important;
  border-color: rgba(79, 142, 247, 0.32) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] div[style*="236, 245, 255"] > div {
  color: var(--text) !important;
}

/* Make the Technical Deep-Dive wrench stand out against the light question card. */
html[data-theme="light"] #root .content div[style*="background: var(--bg3)"][style*="border: 1px solid var(--border2)"] > div[style*="font-size: 11px"][style*="font-weight: 600"] + div[style*="padding: 6px 0px"] + div[style*="padding: 6px 0px"] > div:nth-child(2) > div:first-child::first-letter {
  font-size: 11px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232f6fe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94L14.7 6.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* Center the share-link empty state in the available height of its card. */
#root .card > div[style*="text-align: center"][style*="padding: 36px 0px"]:has(> div[style*="font-size: 26px"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  box-sizing: border-box;
  padding: 20px;
}

/* Candidate Follow-up Status rows (F2F Interview -> Follow-up Emails).
   The React markup is a flex row; here every row is put on the same grid so
   the score, outcome buttons, Send and note columns line up whether or not
   the candidate has a score yet. (Rows without a score used to keep the
   flex layout and sat 60-70px to the right of scored rows.) */
#root .content div[style*="width: 110px"]:has(> .badge[style*="font-size: 10px"]) {
  justify-content: flex-start;
}
#root .content div[style*="width: 110px"]:has(> .badge[style*="font-size: 10px"]) > .badge {
  width: 96px;
  box-sizing: border-box;
  justify-content: center;
  white-space: nowrap;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 110px 261px 158px 28px;
  align-items: center;
  gap: 8px !important;
}
/* Outcome buttons: one fixed slot per button so the three never drift. */
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(4) {
  display: grid !important;
  grid-template-columns: 80px 89px 82px;
  gap: 5px !important;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(4) > button {
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}
/* Send column: Send always sits directly after the outcome buttons, and the
   Preview button (only present once an outcome is picked) follows it, so no
   row carries an empty slot before Send. */
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(5) {
  display: grid !important;
  grid-template-columns: 71px auto;
  justify-content: start;
  gap: 7px !important;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(5) > button.btn-primary {
  grid-column: 1;
  grid-row: 1;
  width: 71px;
  box-sizing: border-box;
  white-space: nowrap;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(5) > span {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > div:nth-child(5) > button:not(.btn-primary) {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}
#root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) > .hrms-iv-fu-note {
  margin-left: 0;
}

@media (max-width: 768px) {
  #root .content div[style*="padding: 13px 0px"]:has(> div[style*="width: 110px"]):has(> div:nth-child(4) > button) {
    display: flex !important;
    flex-wrap: wrap !important;
  }
}

/* Primary buttons get a touch of depth and a hover lift. */
html[data-theme="light"] .btn-primary {
  box-shadow: 0 1px 2px rgba(47, 111, 224, 0.28);
}
html[data-theme="light"] .btn-primary:hover {
  filter: brightness(1.05);
}

/* ================================================================
   Onboarding module (hrms-onboarding.js) + Candidate portal
   (hrms-candidate-portal.js) — light/dark theme fixes.

   Both modules inject their own <style> and colour all secondary text
   (dashboard subtitle, stat-card labels, table headers, form labels,
   drop-zones, badges…) with `var(--muted, #8a9bb8)`. The base theme
   NEVER declares `--muted`, so every one of those rules fell back to the
   hard-coded dark-mode value #8a9bb8 — readable on the dark page, but a
   near-invisible pale blue-grey on the light page (the washed-out
   "Onboarding Dashboard" subtitle and "Total Candidates" labels).

   Declaring the token here — once, for each theme — fixes every consumer
   in both modules, in both light and dark mode. Dark keeps the exact
   value it already fell back to, so there is no dark-mode change.
   ================================================================ */
:root { --muted: #8a9bb8; }                     /* dark — unchanged */
html[data-theme="light"] { --muted: #4b5563; }  /* readable muted slate */

/* Light-mode surface polish: lift the onboarding / portal cards, panels
   and tables off the soft page with a crisp white surface + soft shadow,
   matching the React .card treatment above (they were flat #e8e8ee tiles
   that barely separated from the page). */
html[data-theme="light"] .ob-card,
html[data-theme="light"] .ob-panel,
html[data-theme="light"] .ob-wrap,
html[data-theme="light"] .cp-card {
  background: var(--surface, #ffffff);
  border-color: #e6ebf3;
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04),
              0 4px 14px rgba(20, 30, 60, 0.05);
}

/* Form controls read as crisp white fields with a visible border, like the
   app's .input-field, instead of grey-on-grey. */
html[data-theme="light"] .ob-in,
html[data-theme="light"] .ob-sel,
html[data-theme="light"] .ob-ta,
html[data-theme="light"] .ob-search {
  background: #ffffff;
  border-color: #d6deeb;
}

/* Smooth transition when switching themes (skipped on first paint) */
html.theme-ready,
html.theme-ready body,
html.theme-ready .topbar,
html.theme-ready .auth-card,
html.theme-ready .auth-input {
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease;
}

/* Theme toggle button injected into the topbar */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  padding: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
#theme-toggle:hover {
  color: var(--accent);
  transform: scale(1.08);
}
#theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* ================================================================
   Hide Settings from the topbar
   ================================================================ */

/* Covers an <a> or <button> that navigates to /settings */
.topbar a[href="/settings"],
.topbar a[href*="/settings"],
.topbar button[data-route="/settings"] {
  display: none !important;
}

/* Covers elements with title or aria-label containing "settings" */
.topbar [title*="Settings" i],
.topbar [title*="settings" i],
.topbar [aria-label*="Settings" i],
.topbar [aria-label*="settings" i] {
  display: none !important;
}

/* ================================================================
   Hide Logout button from the topbar
   ================================================================ */
.topbar [title="Log out"],
.topbar [title*="Log out" i],
.topbar [title*="logout" i],
.topbar [aria-label*="logout" i],
.topbar [aria-label*="log out" i] {
  display: none !important;
}

/* ================================================================
   Hide the hrms-notifications injected bell
   (the existing React bell in the topbar already shows notifications)
   ================================================================ */
#hrms-notifications-wrapper {
  display: none !important;
}

/* ================================================================
   Notification panel — light theme fixes
   The panel uses inline styles so we must override with !important
   ================================================================ */

/* Panel container */
html[data-theme="light"] #hrms-notifications-panel {
  background: #ffffff !important;
  border-color: #dce3ee !important;
  box-shadow: 0 14px 45px rgba(20, 30, 60, 0.18) !important;
  color: #101011 !important;
}

/* Panel header & section borders */
html[data-theme="light"] #hrms-notifications-panel > div {
  border-bottom-color: #e4e9f2 !important;
}

/* "Notifications" heading text */
html[data-theme="light"] #hrms-notifications-panel strong {
  color: #101011 !important;
}

/* Close button */
html[data-theme="light"] #hrms-notifications-close {
  color: #5a6478 !important;
}
html[data-theme="light"] #hrms-notifications-close:hover {
  color: #2f6fe0 !important;
}

/* Search input */
html[data-theme="light"] #hrms-notifications-search {
  background: #f2f5fa !important;
  border-color: #dce3ee !important;
  color: #101011 !important;
}
html[data-theme="light"] #hrms-notifications-search::placeholder {
  color: #9aa6bd !important;
}

/* Filter dropdown */
html[data-theme="light"] #hrms-notifications-filter {
  background: #f2f5fa !important;
  border-color: #dce3ee !important;
  color: #101011 !important;
}
html[data-theme="light"] #hrms-notifications-filter option {
  background: #ffffff;
  color: #101011;
}

/* Select all label */
html[data-theme="light"] #hrms-notifications-panel label {
  color: #5a6478 !important;
}

/* Action buttons: Mark all read / Delete selected / Clear all */
html[data-theme="light"] #hrms-notifications-mark-all-read,
html[data-theme="light"] #hrms-notifications-delete-selected,
html[data-theme="light"] #hrms-notifications-clear-all {
  background: #f2f5fa !important;
  border-color: #dce3ee !important;
  color: #101011 !important;
}
html[data-theme="light"] #hrms-notifications-mark-all-read:hover,
html[data-theme="light"] #hrms-notifications-delete-selected:hover,
html[data-theme="light"] #hrms-notifications-clear-all:hover {
  background: #e6ebf5 !important;
  border-color: #2f6fe0 !important;
  color: #2f6fe0 !important;
}

/* Notification items */
html[data-theme="light"] #hrms-notifications-list > div {
  border-color: #e4e9f2 !important;
}

/* Unread item highlight */
html[data-theme="light"] #hrms-notifications-list > div[style*="rgba(79, 142, 247, 0.12)"] {
  background: rgba(47, 111, 224, 0.07) !important;
}

/* Notification title */
html[data-theme="light"] #hrms-notifications-list div[style*="font-weight: 700"] {
  color: #101011 !important;
}

/* Notification message */
html[data-theme="light"] #hrms-notifications-list div[style*="font-size: 12px"][style*="color"] {
  color: #5a6478 !important;
}

/* Notification timestamp */
html[data-theme="light"] #hrms-notifications-list div[style*="font-size: 11px"] {
  color: #8896ae !important;
}

/* Individual delete (✕) button */
html[data-theme="light"] #hrms-notifications-list button[style*="font-size: 14px"] {
  color: #8896ae !important;
}
html[data-theme="light"] #hrms-notifications-list button[style*="font-size: 14px"]:hover {
  color: #d94835 !important;
}

/* Empty state message */
html[data-theme="light"] #hrms-notifications-list div[style*="text-align:center"],
html[data-theme="light"] #hrms-notifications-list div[style*="text-align: center"] {
  color: #5a6478 !important;
}



/* ================================================================

   Check-In / Check-Out  —  toggle switch + device icon
   Injected into the topbar by hrms-checkin.js (v3)
   ================================================================ */

/* Outer wrapper: flex row holding [device-icon] [switch-pill] */
.hrms-ci-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 8px 3px 6px;
  border-radius: 20px;
  border: 1.5px solid rgba(120, 130, 160, 0.18);
  background: rgba(120, 130, 160, 0.06);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.hrms-ci-wrap:hover {
  background: rgba(120, 130, 160, 0.12);
  border-color: rgba(120, 130, 160, 0.28);
}

/* Active (checked-in) wrapper glows green */
.hrms-ci-wrap.ci-active {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.hrms-ci-wrap.ci-active:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.50);
}

/* Device icon badge (mobile phone or desktop monitor) */
.hrms-ci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text3, #7a879f);
  transition: color 0.22s ease;
  line-height: 1;
}

.hrms-ci-wrap.ci-active .hrms-ci-icon {
  color: #22c55e;
}

.hrms-ci-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Toggle pill (the actual switch) */
.hrms-ci-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(120, 130, 160, 0.25);
  transition: background 0.25s ease;
  outline: none;
  flex-shrink: 0;
}

.hrms-ci-switch:focus-visible {
  outline: 2px solid var(--accent, #4f8ef7);
  outline-offset: 2px;
}

.hrms-ci-switch.ci-on {
  background: #22c55e;
}

/* Knob (the sliding circle) */
.hrms-ci-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.22s ease;
  pointer-events: none;
}

.hrms-ci-switch.ci-on .hrms-ci-knob {
  left: 18px;  /* 34px - 14px - 2px */
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
}

/* ---- Light-mode tweaks ---------------------------------------- */
html[data-theme="light"] .hrms-ci-wrap {
  border-color: rgba(70, 90, 140, 0.18);
  background: rgba(70, 90, 140, 0.05);
}

html[data-theme="light"] .hrms-ci-wrap:hover {
  background: rgba(70, 90, 140, 0.10);
  border-color: rgba(70, 90, 140, 0.26);
}

html[data-theme="light"] .hrms-ci-wrap.ci-active {
  background: rgba(21, 163, 127, 0.08);
  border-color: rgba(21, 163, 127, 0.30);
  box-shadow: 0 0 0 3px rgba(21, 163, 127, 0.07);
}

html[data-theme="light"] .hrms-ci-wrap.ci-active .hrms-ci-icon {
  color: #15a37f;
}

html[data-theme="light"] .hrms-ci-switch.ci-on {
  background: #15a37f;
}

/* ---- Mobile: hide label text if it were ever added ------------- */
@media (max-width: 480px) {
  .hrms-ci-wrap { padding: 3px 5px; }
}

/* ================================================================
   Presence / STATUS picker
   Settings > My Profile  —  injected by hrms-status.js (v1)
   Available · Away · Busy · Invisible · Do not disturb
   ================================================================ */

.hrms-ps-block {
  margin: 4px 0 20px;
  width: 340px;
  max-width: 100%;
}

/* relative wrapper so the panel can float over the details below it */
.hrms-ps-field { position: relative; }

.hrms-ps-head { margin-bottom: 8px; }

.hrms-ps-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* The select-like pill that shows the current status */
.hrms-ps-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.hrms-ps-control:hover:not(.is-disabled) { border-color: var(--accent); }
.hrms-ps-control.is-disabled { cursor: not-allowed; opacity: 0.7; }

.hrms-ps-current { flex: 1; text-align: left; }

.hrms-ps-chevron {
  width: 14px;
  height: 14px;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.hrms-ps-control.is-open .hrms-ps-chevron { transform: rotate(180deg); }

/* Status colour dot (reused in the control and each option) */
.hrms-ps-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Dropdown panel — floats OVER the content below (does not push it down) */
.hrms-ps-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg2);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}
.hrms-ps-panel[hidden] { display: none; }

/* section headers ("Default Status" / "Custom Status") */
.hrms-ps-section {
  font-size: 11.5px;
  font-style: italic;
  font-weight: 600;
  color: var(--text3);
  padding: 9px 14px 4px;
}
.hrms-ps-section-sep { border-top: 1px solid var(--border2); margin-top: 4px; }

.hrms-ps-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease;
}
.hrms-ps-option:hover { background: rgba(120, 130, 160, 0.10); }
.hrms-ps-option.is-active { background: rgba(120, 130, 160, 0.06); }

/* fixed-width icon slot (dot / arrow / bell / blank for custom) */
.hrms-ps-ic {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hrms-ps-ic svg { width: 16px; height: 16px; display: block; }
.hrms-ps-ic .hrms-ps-dot { margin: 0; }

.hrms-ps-opt-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.hrms-ps-check { width: 15px; height: 15px; color: #22c55e; flex-shrink: 0; }
.hrms-ps-bell { width: 16px; height: 16px; }

.hrms-ps-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text3);
}

/* Presence dot on the topbar avatar (visible app-wide) */
.topbar .av { position: relative; }
.hrms-presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* ---- Light-mode tweaks ---------------------------------------- */
html[data-theme="light"] .hrms-ps-option:hover { background: rgba(70, 90, 140, 0.08); }
html[data-theme="light"] .hrms-ps-panel { box-shadow: 0 10px 30px rgba(20, 30, 60, 0.14); }

/* ================================================================
   User dropdown menu — opens from the topbar avatar (bundle Ry)
   ================================================================ */
.hrms-umenu-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s ease, color 0.15s ease;
}
.hrms-umenu-item:hover { background: var(--bg3); color: var(--text); }
.hrms-umenu-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.8; }
.hrms-umenu-item.danger {
  color: var(--danger);
  font-weight: 600;
  border-top: 1px solid var(--border2);
}
.hrms-umenu-item.danger:hover { background: rgba(217, 72, 53, 0.08); color: var(--danger); }

/* ================================================================
   Right-side profile drawer — opens from the topbar avatar (bundle Ry)
   ================================================================ */
@keyframes hrms-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes hrms-drawer-fade { from { opacity: 0; } to { opacity: 1; } }

.hrms-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998 !important;
  animation: hrms-drawer-fade 0.15s ease;
}
.hrms-drawer {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: 360px; max-width: 92vw;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  box-shadow: -14px 0 44px rgba(0, 0, 0, 0.35);
  z-index: 99999 !important;
  overflow-y: auto;
  animation: hrms-drawer-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.hrms-drawer-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--bg3); color: var(--text2);
  cursor: pointer !important; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 100 !important;
  pointer-events: auto !important;
}
.hrms-drawer-x:hover { background: var(--border2); color: var(--text); }
.hrms-drawer-x svg { width: 15px; height: 15px; pointer-events: none !important; }

/* Suppress Live Interviews pill while right-side drawer is open so it never clips through */
body:has(.hrms-drawer) #hrms-live-btn,
body:has(.hrms-drawer-backdrop) #hrms-live-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.hrms-drawer-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 3px; padding: 36px 20px 18px;
  border-bottom: 1px solid var(--border2);
}
.hrms-drawer-av {
  width: 84px; height: 84px; font-size: 26px; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.hrms-drawer-email,
.hrms-drawer-empid {
  font-size: 13px !important;
  color: var(--text3) !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-top: 3px !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-weight: 400 !important;
}

.hrms-drawer-email:hover,
.hrms-drawer-empid:hover {
  background: var(--bg3) !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}

.hrms-drawer-copy-hint {
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-left: 2px;
}

.hrms-drawer-email:hover .hrms-drawer-copy-hint,
.hrms-drawer-empid:hover .hrms-drawer-copy-hint {
  opacity: 0.7;
}

.hrms-drawer-acct { font-size: 12.5px; color: var(--text3); margin-top: 5px; }
.hrms-drawer-acct .hrms-drawer-dot { margin: 0 7px; opacity: 0.6; }
.hrms-drawer-signout { color: var(--danger); font-weight: 600; cursor: pointer; }

.hrms-drawer-sec { padding: 16px 20px; border-bottom: 1px solid var(--border2); }
.hrms-drawer-section-lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 10px;
}
.hrms-drawer-status {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border2); border-radius: 10px;
  padding: 9px 12px; background: var(--bg3);
}
.hrms-drawer-status-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.hrms-drawer-status-sel {
  flex: 1; border: none; background: none; color: var(--text);
  font-size: 13px; font-weight: 500; font-family: var(--font); cursor: pointer; outline: none;
}
/* native dropdown popups must follow the theme, or they render light-on-light
   (invisible) in dark mode */
.hrms-drawer-status-sel, .hrms-att-view { color-scheme: dark; }
html[data-theme="light"] .hrms-drawer-status-sel,
html[data-theme="light"] .hrms-att-view { color-scheme: light; }
.hrms-drawer-status-sel option,
.hrms-drawer-status-sel optgroup,
.hrms-att-view option {
  background: var(--bg2);
  color: var(--text);
}
.hrms-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.hrms-drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--text2);
  transition: background 0.15s ease, color 0.15s ease;
}
.hrms-drawer-item:hover { background: var(--bg3); color: var(--text); }
.hrms-drawer-ic { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.hrms-drawer-ic svg { width: 18px; height: 18px; }

/* plain text list (Settings sub-sections) */
.hrms-drawer-list { display: flex; flex-direction: column; }
.hrms-drawer-litem {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  transition: background 0.15s ease, color 0.15s ease;
}
.hrms-drawer-litem:hover { background: var(--bg3); color: var(--text); }

/* ================================================================
   Attendance timeline modal (hrms-attendance.js)
   ================================================================ */
.hrms-att-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  /* Right-side drawer: push the panel to the right edge, full height. */
  display: flex; align-items: stretch; justify-content: flex-end;
  animation: hrms-drawer-fade 0.15s ease;
}
.hrms-att-modal {
  width: 880px; max-width: 96vw; height: 100vh; max-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg2);
  border: none; border-left: 1px solid var(--border2);
  border-radius: 0;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: hrms-drawer-slide 0.28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes hrms-drawer-slide {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.hrms-att-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border2); flex-shrink: 0;
}
.hrms-att-title { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--text); }
.hrms-att-x {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--bg3); color: var(--text2); cursor: pointer;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.hrms-att-x:hover { background: var(--border2); color: var(--text); }
.hrms-att-scroll { padding: 18px 22px 24px; overflow-y: auto; flex: 1; min-height: 0; }

.hrms-att-banner {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px dashed var(--warn);
  background: rgba(198, 136, 26, 0.08);
  color: var(--text2); border-radius: 10px;
  padding: 11px 14px; font-size: 12.5px; line-height: 1.5; margin-bottom: 18px;
}
.hrms-att-banner svg { color: var(--warn); }

.hrms-att-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hrms-att-navleft { display: flex; align-items: center; gap: 10px; }
.hrms-att-arrow {
  width: 28px; height: 28px; border: none; border-radius: 7px;
  background: none; color: var(--text2); cursor: pointer; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.hrms-att-arrow:hover { background: var(--bg3); color: var(--text); }
.hrms-att-range { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hrms-att-view {
  border: 1px solid var(--border2); background: var(--bg3); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: var(--font);
  cursor: pointer; min-width: 150px;
}
.hrms-att-tl-label { font-size: 13px; font-weight: 600; color: var(--text2); margin: 16px 0 8px; }
.hrms-att-avg-note { font-weight: 500; color: #22c55e; margin-left: 10px; font-size: 12px; }

.hrms-att-hours { position: relative; height: 22px; margin-left: 150px; }
.hrms-att-hour { position: absolute; top: 4px; font-size: 11px; color: var(--text3); }
/* the average check-in pill that sits on top of the green line */
.hrms-att-avg-tag {
  position: absolute; top: -1px; transform: translateX(-50%);
  background: #22c55e; color: #06281a;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 8px; border-radius: 10px; white-space: nowrap; z-index: 2;
}

.hrms-att-body { position: relative; }
.hrms-att-grid { position: absolute; left: 150px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.hrms-att-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border2); opacity: 0.45; }
.hrms-att-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #22c55e; opacity: 0.85; }

.hrms-att-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; height: 72px; }
.hrms-att-dname { font-size: 14px; font-weight: 600; color: var(--text); }
.hrms-att-dhrs { font-size: 12px; color: var(--accent); margin-top: 3px; }
.hrms-att-track { position: relative; height: 100%; }
.hrms-att-bar {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 3px; background: #3b82f6; min-width: 3px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* hover targets + floating tooltip */
.hrms-att-row[data-tip] { cursor: default; }
.hrms-att-row[data-tip]:hover { background: rgba(120, 130, 160, 0.06); border-radius: 8px; }
.hrms-att-avg-tag { cursor: pointer; }
.hrms-att-tip {
  position: fixed; z-index: 400;
  background: #1e2330; color: #e8ecf4;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px; padding: 8px 11px;
  font-size: 12px; line-height: 1.65;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none; white-space: nowrap;
}
.hrms-att-tip b { color: #fff; font-weight: 600; }
.hrms-att-tip-head { font-weight: 700; color: #7fd1ff; margin-bottom: 3px; }

/* Fix sidebar shaking/jittering on scroll on desktop */
@media (min-width: 769px) {
  .sidebar {
    will-change: auto !important;
    transform: none !important;
  }
}

/* ================================================================
   Transient message layer — must sit above EVERYTHING
   ================================================================
   The React success toast is inline-styled (fixed; bottom:80px;
   right:28px; z-index:999) and auto-dismisses after 2.4s. It was
   being buried by taller layers that share its corner:
     .ai-fullscreen ....... 1000
     #hrms-live-btn ....... (was 99999, now 998)
     live-view overlay .... 100000  (hrms-live.js)
   A message the user only gets 2.4 seconds to read must never be
   the thing that loses. Inline styles beat plain rules, so the
   toast is matched on its inline geometry and forced to the top.
   ================================================================ */
div[style*="position: fixed"][style*="bottom: 80px"][style*="right: 28px"] {
  z-index: 100010 !important;
}


/* ── Dashboard typography ─────────────────────────────────────────────────
   Helvetica for the Dashboard display type — a system font, so nothing is
   downloaded. Helvetica ships with macOS and iOS but NOT with Windows, where
   the stack falls through to Arial (metrically near-identical, which is why
   the substitution is unobtrusive). Liberation Sans covers most Linux. */
.hrms-dash {
  --font-d: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}
/* Helvetica sets a touch loose at display sizes; a small negative tracking
   keeps the figures tight. Sizing still matches Work Submissions. */
.hrms-dash .stat-value {
  font-size: 30px;
  letter-spacing: -0.3px;
}


/* ── Dashboard: presentation and motion ───────────────────────────────────
   Scoped to .hrms-dash. The bundle is untouched; deleting this block reverts
   the Dashboard completely. */

@keyframes hrms-dash-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hrms-dash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

/* --- Clean entrance for dashboard wrap without delayed flashing --- */
#hrms-live-dashboard-wrap {
  animation: hrms-dash-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- KPI cards: tinted wash + lift ------------------------------------ */
.hrms-dash .stat-card {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease, border-color .2s ease;
}
.hrms-dash .stat-card::before { height: 3px; }
.hrms-dash .stat-card.blue {
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent) 9%, var(--bg2)), var(--bg2) 62%);
}
.hrms-dash .stat-card.green {
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent3) 9%, var(--bg2)), var(--bg2) 62%);
}
.hrms-dash .stat-card.orange {
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent4) 9%, var(--bg2)), var(--bg2) 62%);
}
.hrms-dash .stat-card.purple {
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent2) 9%, var(--bg2)), var(--bg2) 62%);
}
.hrms-dash .stat-card:hover {
  transform: none !important;
  box-shadow: 0 10px 26px rgba(12, 20, 40, .12);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border2));
}

/* --- cards: quiet by default, responsive on approach ------------------ */
.hrms-dash .card,
.hrms-dash .hrms-dash-pro-card {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease, border-color .2s ease;
}
/* .hrms-dash-pro-card is the newer card used for Department Headcount,
   Today's Attendance, Pending Actions and Live Highlights. It was left out
   of this rule, so those four cards did not react to the pointer while the
   Headcount chart beside them (a plain .card) did. The box-shadow is marked
   important only for the pro card, whose resting shadow is set inline. */
.hrms-dash .card:hover,
.hrms-dash .hrms-dash-pro-card:hover {
  transform: none !important;
  box-shadow: 0 10px 26px rgba(12, 20, 40, .10);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border2));
}
.hrms-dash .hrms-dash-pro-card:hover { box-shadow: 0 10px 26px rgba(12, 20, 40, .10) !important; }
/* "Headcount & Hiring Growth" is a plain .card. A site-wide card rule further
   down this file (higher specificity) sets transform:none on hover, and the
   card's resting shadow is set inline, so neither the lift nor the shadow
   showed; only its border changed. This gives it the same hover as the four
   cards above. */
.hrms-dash .hrms-dash-charts > .card:hover {
  transform: none !important;
  box-shadow: 0 10px 26px rgba(12, 20, 40, .10) !important;
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border2));
}

/* --- section titles get a gradient tick ------------------------------- */
.hrms-dash .card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hrms-dash .card-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

/* --- Today's Highlights: living timeline ------------------------------ */
.hrms-dash .tl-item {
  position: relative;
  padding-left: 4px;
  border-radius: 8px;
  transition: background .18s ease, padding-left .18s ease;
}
.hrms-dash .tl-item:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  padding-left: 9px;
}
.hrms-dash .tl-dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  transition: box-shadow .18s ease, transform .18s ease;
}
/* the newest entry, i.e. the first .tl-item regardless of what precedes it in
   the card (:first-child fails here — the card title comes first) */
.hrms-dash .tl-item:not(.tl-item ~ .tl-item) .tl-dot {
  animation: hrms-dash-pulse 2.2s ease-in-out infinite;
}
.hrms-dash .tl-item:hover .tl-dot { transform: scale(1.25); }

/* --- Pending Actions + Employee Directory rows ------------------------ */
.hrms-dash .av-row { transition: transform .18s ease; }
.hrms-dash tbody tr { transition: background .16s ease; }
.hrms-dash tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.hrms-dash tbody tr:hover .av-row { transform: translateX(2px); }

/* --- buttons: lift, press, and a visible focus ring ------------------- */
.hrms-dash .btn-sm {
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              transform .12s ease, box-shadow .16s ease;
}
.hrms-dash .btn-sm:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.hrms-dash .btn-sm:active { transform: translateY(0) scale(.96); }
.hrms-dash .btn-sm:focus-visible,
.hrms-dash a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- "View all →" links: the arrow leads --------------------------------- */
.hrms-dash .card-title + * a,
.hrms-dash a[href="#"] { transition: color .16s ease; }

/* --- charts settle in after their card ---------------------------------- */
.hrms-dash .card svg,
.hrms-dash .card canvas {
  animation: hrms-dash-pop .5s cubic-bezier(.22, 1, .36, 1) backwards;
  animation-delay: .16s;
}

/* --- respect the OS setting --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hrms-dash *,
  .hrms-dash *::before,
  .hrms-dash *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- phones: no hover, so drop the lift and keep the entrance ----------- */
@media (hover: none) {
  .hrms-dash .stat-card:hover,
  .hrms-dash .card:hover,
  .hrms-dash .hrms-dash-pro-card:hover { transform: none; box-shadow: none; }
  .hrms-dash .hrms-dash-pro-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important; }
  .hrms-dash .hrms-dash-charts > .card:hover { transform: none !important; box-shadow: 0 4px 14px rgba(0,0,0,0.03) !important; }
}


/* ── Dashboard: matching the Work Submissions treatment ───────────────────
   Icons, table styling, badge dots and avatar response. Scoped to .hrms-dash;
   the bundle is untouched, so deleting this block reverts it. */

/* --- an icon per KPI, keyed off the colour class the card already has --- */
.hrms-dash .stat-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: currentColor;
  opacity: .85;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
.hrms-dash .stat-card:hover::after { transform: scale(1.12); opacity: 1; }
.hrms-dash .stat-card.blue   { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2020v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M22%2020v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75%22%2F%3E%3C%2Fsvg%3E");    color: var(--accent); }
.hrms-dash .stat-card.purple { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207a2%202%200%200%201%202-2h13a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%22%2F%3E%3Cpath%20d%3D%22M16%2012h4%22%2F%3E%3Cpath%20d%3D%22M3%209h17%22%2F%3E%3C%2Fsvg%3E");    color: var(--accent2); }
.hrms-dash .stat-card.green  { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M2%2013h20%22%2F%3E%3C%2Fsvg%3E"); color: var(--accent3); }
.hrms-dash .stat-card.orange { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2010h18M8%203v4M16%203v4%22%2F%3E%3Cpath%20d%3D%22M9%2015l2%202%204-4%22%2F%3E%3C%2Fsvg%3E");  color: var(--accent4); }
/* keep a long label clear of the icon */
.hrms-dash .stat-label { padding-right: 26px; }

/* --- tables: banded sticky header, and rows that respond ---------------- */
.hrms-dash .card table { border-collapse: separate; border-spacing: 0; width: 100%; }
.hrms-dash .card thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  padding: 11px 12px;
}
.hrms-dash .card thead th:first-child { border-radius: 8px 0 0 8px; }
.hrms-dash .card thead th:last-child  { border-radius: 0 8px 8px 0; }
.hrms-dash .card tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border2); }
.hrms-dash .card tbody tr:last-child td { border-bottom: 0; }

/* the rows are clickable, so give the pointer something to land on */
.hrms-dash .card tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* --- status badges get a leading dot, as on the submissions queue ------- */
.hrms-dash .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.hrms-dash .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* --- avatars respond with their row ------------------------------------ */
.hrms-dash .av {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hrms-dash tbody tr:hover .av,
.hrms-dash .av-row:hover .av {
  transform: scale(1.08);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* --- "Pending Actions" rows read as a list, not loose text -------------- */
.hrms-dash .card .av-row {
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background .16s ease, transform .16s ease;
}
.hrms-dash .card .av-row:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* --- light theme: the header band wants a touch more contrast ----------- */
html[data-theme="light"] .hrms-dash .card thead th { background: #eef0f5; }

/* ================================================================
   UI Fix: Recruitment Toolbar Buttons (Filters & KPI Dashboard)
   ================================================================ */
.hrms-toolbar-btn,
#hrms-kpi-btn,
div:has(> #hrms-kpi-btn) button,
.page-actions button:has(> svg),
.topbar-actions button:has(> svg) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid var(--border2, #cbd5e1) !important;
  background: var(--bg2, #ffffff) !important;
  color: var(--text, #0f172a) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  line-height: normal !important;
}

html[data-theme="light"] .hrms-toolbar-btn,
html[data-theme="light"] #hrms-kpi-btn,
html[data-theme="light"] div:has(> #hrms-kpi-btn) button {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.hrms-toolbar-btn:hover,
#hrms-kpi-btn:hover,
div:has(> #hrms-kpi-btn) button:hover {
  background: var(--bg3, #f1f5f9) !important;
  border-color: var(--accent, #4f46e5) !important;
  color: var(--accent, #4f46e5) !important;
}

.hrms-toolbar-btn svg,
#hrms-kpi-btn svg,
div:has(> #hrms-kpi-btn) button svg {
  color: inherit !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

/* ================================================================
   UI Fix: User Profile Drawer / Popover Header & Presence Dot
   ================================================================ */
.hrms-drawer-head {
  position: relative !important;
  padding: 28px 20px 18px !important;
}

.hrms-drawer-av {
  position: relative !important;
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  margin: 0 auto 6px !important;
  border: 3px solid var(--border2, #e2e8f0) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hrms-drawer-av img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.hrms-drawer-av .hrms-presence-dot {
  position: absolute !important;
  right: 2px !important;
  bottom: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 3px solid var(--bg2, #1e293b) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  z-index: 5 !important;
}

/* Hide any orphaned status capsule in top-left of drawer header */
.hrms-drawer-head > div:first-child:not(.hrms-drawer-av):not(.hrms-drawer-x),
.hrms-drawer-head > span:first-child:not(.hrms-drawer-av) {
  display: none !important;
}

/* ================================================================
   Right Sidebar (Profile Drawer): Attendance Settings Toggle Switch
   ================================================================ */
.hrms-drawer-att-settings {
  padding: 16px 20px 20px !important;
  border-top: 1px solid var(--border2) !important;
  border-bottom: none !important;
  margin-top: 14px !important;
  background: var(--bg3) !important;
  border-radius: 12px !important;
}

.hrms-drawer-att-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.hrms-drawer-att-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 !important;
}

.hrms-drawer-att-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

.hrms-drawer-att-sub {
  font-size: 11px !important;
  color: var(--text3) !important;
  line-height: 1.35 !important;
}

/* Modern iOS-style toggle switch */
.hrms-drawer-toggle {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.hrms-drawer-toggle input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  position: absolute !important;
}

.hrms-drawer-toggle-slider {
  position: absolute !important;
  cursor: pointer !important;
  inset: 0 !important;
  background-color: #94a3b8 !important;
  transition: 0.22s ease !important;
  border-radius: 24px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.hrms-drawer-toggle-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: #ffffff !important;
  transition: 0.22s ease !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.hrms-drawer-toggle input:checked + .hrms-drawer-toggle-slider {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.hrms-drawer-toggle input:checked + .hrms-drawer-toggle-slider:before {
  transform: translateX(20px) !important;
}

/* Dim topbar checkin button when attendance is disabled */
.hrms-ci-wrap.hrms-att-disabled {
  opacity: 0.45 !important;
  filter: grayscale(0.8) !important;
  cursor: not-allowed !important;
}

/* ================================================================
   Interactive Admin Map & Heatmap (HR Attendance)
   ================================================================ */
.haa-map-tbtn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--haa-muted, #64748b);
  transition: all 0.15s ease;
}
.haa-map-tbtn.on {
  background: var(--haa-accent, #4f46e5);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.haa-map-chip {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--haa-line, #cbd5e1);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--haa-surface, #ffffff);
  color: var(--haa-text, #0f172a);
  transition: all 0.15s ease;
}
.haa-map-chip:hover {
  border-color: var(--haa-accent, #4f46e5);
}
.haa-map-chip.on {
  background: var(--haa-accent, #4f46e5);
  border-color: var(--haa-accent, #4f46e5);
  color: #ffffff;
}
.haa-map-cluster-bubble:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
}
.haa-map-emp-pin:hover {
  transform: translate(-50%, -50%) scale(1.18) !important;
  z-index: 50 !important;
}
@keyframes haa-pop-in {
  from { opacity: 0; transform: translate(-50%, -90%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}



/* ============================================================
   hrms-subs-language — the Work Submissions visual language,
   applied to the shared components every other module is built from.

   Work Submissions is styled entirely with inline styles (129 style
   objects, zero classes), so no stylesheet drives its look and nothing
   here can change that page. What this block does is reproduce its
   visual language on the shared classes the OTHER modules use, so the
   app reads as one product instead of two.

   Scoped to .content — the page-content container — so the sidebar,
   topbar and the rest of the app frame are untouched.

   Deliberately NOT included: .card already matches (var(--bg2),
   1px solid var(--border2), --radius: 12px), and .card-title is an
   uppercase eyebrow that Work Submissions has no equivalent for, so
   changing its 63 usages would be churn, not alignment.
   ============================================================ */

/* Table rhythm. Work Submissions uses a slightly larger, heavier header
   with tighter tracking, and roomier cells: 12px 14px / 14px against the
   base 10px 12px / 12px. */
.content th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text3);
  border-bottom: 1px solid var(--border2);
}
.content td {
  padding: 14px;
  border-bottom: 1px solid var(--border2);
}

/* Status pills. The base .badge is a small flat chip; Work Submissions
   uses a taller pill with a tinted fill and matching text, which is what
   makes a status readable at a glance in a dense table. Only 11 usages
   in the bundle and none in the sidebar, so this is safe to restyle. */
.content .badge {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  gap: 6px;
  border: 1px solid transparent;
}
.content .badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.30);
}
.content .badge.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.30);
}
.content .badge.red, .content .badge.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.30);
}
.content .badge.amber, .content .badge.warn, .content .badge.orange {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.30);
}
/* An unmodified .badge — the neutral/"pending" case. */
.content .badge:not(.green):not(.blue):not(.red):not(.danger):not(.amber):not(.warn):not(.orange) {
  background: var(--bg3);
  color: var(--text2);
  border-color: var(--border2);
}

/* Primary action. Work Submissions gives it more presence: a wider hit
   area, a rounder corner and a soft shadow in its own colour. */
.content .btn-primary {
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.30);
  transition: opacity .15s, box-shadow .15s, transform .15s;
}
.content .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
}
.content .btn-primary:active { transform: translateY(1px); }

/* Row-level actions: smaller and tighter than the base .btn-sm, matching
   the Approve / Reject / Review buttons. */
.content td .btn-sm {
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Stat cards. The base grid is locked to 4 columns, which squeezes on a
   laptop and overflows on a tablet. auto-fit reflows instead — the same
   behaviour the Work Submissions cards have. */
.content .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Inputs pick up the same corner radius and an accent focus ring. */
.content .input-field {
  border-radius: 9px;
  padding: 10px 14px;
}
.content .input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ============================================================
   wsq — Work Submissions, premium pass.

   The page is built from inline style objects, which a stylesheet cannot
   normally reach, so the overrides here are !important by necessity, not
   by habit. Everything is scoped under .wsq, so nothing else in the app
   can be affected, and deleting this block restores the previous look
   exactly — no markup depends on it.

   Nothing here changes behaviour: no display:none, no pointer-events,
   no reordering. The Why? pill, delete icon, attachment chip, AI ring
   and Approve/Reject/Review buttons keep their markup and handlers.
   ============================================================ */

/* --- KPI cards ------------------------------------------------
   Flat bordered boxes become raised surfaces. The coloured top rule
   each card already carries is kept as its identity and echoed as a
   soft wash, so the four read as a set rather than four rectangles. */
.wsq .wsq-kpis > div {
  border-radius: 16px !important;
  padding: 18px 20px 16px !important;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg3) 55%, transparent), transparent 62%),
    var(--bg2) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.16), 0 8px 24px -12px rgba(0,0,0,.45);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.wsq .wsq-kpis > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 18px 40px -16px rgba(0,0,0,.55);
}
/* a wash in the card's own accent, taken from its existing top border */
.wsq .wsq-kpis > div::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: radial-gradient(120% 80% at 100% 0%, currentColor 0%, transparent 60%);
  opacity: .07;
  pointer-events: none;
}
.wsq .wsq-kpis > div:nth-child(1) { color: #3b82f6; }
.wsq .wsq-kpis > div:nth-child(2) { color: #10b981; }
.wsq .wsq-kpis > div:nth-child(3) { color: #f59e0b; }
.wsq .wsq-kpis > div:nth-child(4) { color: #8b5cf6; }
/* the number itself */
.wsq .wsq-kpis > div div[style*="font-size: 32px"],
.wsq .wsq-kpis > div div[style*="fontSize: 32"] {
  letter-spacing: -1.2px !important;
  line-height: 1.05 !important;
}
/* the icon tile */
.wsq .wsq-kpis > div svg { position: relative; z-index: 1; }

/* --- the queue card -------------------------------------------
   One elevated sheet instead of a plain outline. */
.wsq .wsq-card {
  border-radius: 18px !important;
  padding: 22px 22px 8px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg3) 40%, transparent), transparent 120px),
    var(--bg2) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 24px 60px -30px rgba(0,0,0,.6);
}
/* the title rule becomes a gradient */
.wsq .wsq-head > div:first-child {
  border-left: 0 !important;
  padding-left: 14px !important;
  position: relative;
}
.wsq .wsq-head > div:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}
.wsq .wsq-head h2 { letter-spacing: -0.4px !important; }

/* --- primary action -------------------------------------------
   Gradient, with the lift on hover that the flat button lacked. */
.wsq .wsq-head > button {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border-radius: 11px !important;
  box-shadow: 0 2px 6px rgba(37,99,235,.32), 0 10px 24px -12px rgba(37,99,235,.7) !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.wsq .wsq-head > button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 10px rgba(37,99,235,.36), 0 16px 34px -14px rgba(37,99,235,.8) !important;
}
.wsq .wsq-head > button:active { transform: translateY(0); }

/* --- table ----------------------------------------------------
   A quieter header that stays put while the queue scrolls, and
   hairline separators instead of full-strength rules. */
.wsq table { border-collapse: separate !important; border-spacing: 0 !important; }
.wsq .wsq-hrow th {
  background: color-mix(in srgb, var(--bg2) 88%, var(--bg3)) !important;
  border-bottom: 1px solid var(--border2) !important;
  font-size: 10.5px !important;
  letter-spacing: .09em !important;
  text-transform: uppercase;
}
.wsq .wsq-hrow th:first-child { border-top-left-radius: 12px; }
.wsq .wsq-hrow th:last-child { border-top-right-radius: 12px; }
.wsq tbody td {
  border-bottom: 1px solid color-mix(in srgb, var(--border2) 55%, transparent) !important;
}
.wsq tbody tr:last-child td { border-bottom: 0 !important; }

/* avatars get a soft ring so the first column has an anchor */
.wsq tbody td:first-child > div > div:first-child {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg2) 100%, transparent),
              0 0 0 3.5px color-mix(in srgb, currentColor 22%, transparent);
}

/* --- filter chips ---------------------------------------------
   The active chip gets the gradient; the rest sit back. */
.wsq .wsq-card button[style*="border-radius: 999"],
.wsq .wsq-card button[style*="borderRadius: 999"] { transition: all .15s ease; }

/* --- search field --------------------------------------------- */
.wsq input[placeholder="Search submissions"] {
  border-radius: 11px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wsq input[placeholder="Search submissions"]:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* --- modals ---------------------------------------------------
   Deeper elevation so a dialog reads as above the sheet, not on it. */
.wsq div[style*="position: fixed"] > div {
  border-radius: 20px !important;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.3) !important;
}

/* --- motion ---------------------------------------------------
   One entrance, staggered across the KPI row. Nothing loops. */
@keyframes wsqRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.wsq .wsq-kpis > div { animation: wsqRise .4s cubic-bezier(.2,.7,.3,1) backwards; }
.wsq .wsq-kpis > div:nth-child(1) { animation-delay: .02s; }
.wsq .wsq-kpis > div:nth-child(2) { animation-delay: .07s; }
.wsq .wsq-kpis > div:nth-child(3) { animation-delay: .12s; }
.wsq .wsq-kpis > div:nth-child(4) { animation-delay: .17s; }
.wsq .wsq-card { animation: wsqRise .45s cubic-bezier(.2,.7,.3,1) .18s backwards; }

@media (prefers-reduced-motion: reduce) {
  .wsq .wsq-kpis > div,
  .wsq .wsq-card { animation: none !important; }
  .wsq .wsq-kpis > div:hover { transform: none; }
}

/* --- narrow screens ------------------------------------------- */
@media (max-width: 640px) {
  .wsq .wsq-card { padding: 16px 14px 6px !important; border-radius: 14px !important; }
  .wsq .wsq-kpis > div { padding: 15px 16px 13px !important; }
}

/* --- wsq table fit ---------------------------------------------
   The table was 1207px inside a 934px card, so it scrolled sideways.
   The Action column was 220px of that: three buttons forced onto one
   line. Fixed layout gives every column a share of the width instead
   of letting content dictate it, and the action buttons now wrap.

   Below 860px the table keeps its own horizontal scroll rather than
   crushing eight columns — a scroll you opt into beats unreadable. */
.wsq table {
  width: 100% !important;
  table-layout: fixed !important;
  min-width: 0 !important;
}
.wsq thead th, .wsq tbody td { padding: 12px 10px !important; }

/* Fixed pixel widths for everything that has a predictable size, so
   ACTION can never be squeezed short again — it keeps 200px whatever
   the viewport. TITLE is left without a width and takes the remainder,
   because it is the one column that wraps gracefully. */
/* Proportions, not pixels: a fixed px width does not grow with the table,
   which is what left EMPLOYEE and REVIEWER stuck at ~110px on a wide screen
   (breaking "Yaswanth" mid-word) while TITLE took 500px. */
.wsq thead th:nth-child(1), .wsq tbody td:nth-child(1) { width: 15%; }
.wsq thead th:nth-child(2), .wsq tbody td:nth-child(2) { width: 9%; }
.wsq thead th:nth-child(3), .wsq tbody td:nth-child(3) { width: 21%; }
.wsq thead th:nth-child(4), .wsq tbody td:nth-child(4) { width: 10%; }
.wsq thead th:nth-child(5), .wsq tbody td:nth-child(5) { width: 14%; }
.wsq thead th:nth-child(6), .wsq tbody td:nth-child(6) { width: 12%; }
.wsq thead th:nth-child(7), .wsq tbody td:nth-child(7) { width: 6%; }
.wsq thead th:nth-child(8), .wsq tbody td:nth-child(8) { width: 13%; }
.wsq thead th:nth-child(8), .wsq tbody td:nth-child(8) { padding-left: 6px !important; padding-right: 6px !important; }

/* A long name is ellipsised, never broken mid-word. */
.wsq tbody td { overflow: hidden; }
.wsq tbody td:nth-child(1) > div > div:last-child,
.wsq tbody td:nth-child(5) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.wsq tbody td:nth-child(3) { white-space: normal; }

/* the action cell: wrap onto a second line rather than push the table wide */
.wsq tbody td:nth-child(8) > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  justify-content: center;
}
.wsq tbody td:nth-child(8) button {
  padding: 4px 8px !important;
  font-size: 10.5px !important;
  white-space: nowrap;
}

/* the type badge and the date should not force width either */
.wsq tbody td:nth-child(2) { white-space: nowrap; }
.wsq tbody td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Below ~1200px the eight fixed columns no longer fit the card, and a
   fixed layout would starve TITLE down to nothing. Hand back to auto
   layout with a floor, so the table scrolls inside its own box and every
   column stays readable — a scroll beats a collapsed column. */
@media (max-width: 1200px) {
  .wsq table { table-layout: auto !important; min-width: 900px !important; }
  .wsq thead th, .wsq tbody td { padding: 11px 9px !important; }
  .wsq thead th:nth-child(n), .wsq tbody td:nth-child(n) { width: auto; }
  /* Under auto layout a width is only a hint: the browser shrinks a column
     to its MIN-content, and wrapped buttons make that one button wide. Keep
     them on one line and set a real minimum so ACTION claims its space. */
  .wsq tbody td:nth-child(8) > div { flex-wrap: nowrap !important; }
  .wsq thead th:nth-child(8), .wsq tbody td:nth-child(8) {
    min-width: 190px;
    white-space: nowrap;
  }
}
@media (max-width: 860px) {
  .wsq table { min-width: 820px !important; }
}

/* --- wsq: people columns match each other -----------------------
   EMPLOYEE and REVIEWER render the same thing — an avatar and a name —
   but were built at different sizes (32px/13px vs 24px/12px), so the
   reviewer read as a smaller, lighter version of the same block and the
   two columns never lined up with each other. Same treatment for both. */
.wsq tbody td:nth-child(1) > div > div:first-child,
.wsq tbody td:nth-child(5) > div > div:first-child {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  font-size: 10.5px !important;
  flex: 0 0 auto;
}
.wsq tbody td:nth-child(1) > div > span,
.wsq tbody td:nth-child(5) > div > span {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.35;
}
.wsq tbody td:nth-child(1) > div,
.wsq tbody td:nth-child(5) > div {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

/* --- wsq: motion -----------------------------------------------
   Rows arrive in a short stagger on load, capped at ten so a full page
   never turns into a slow cascade. Everything else is a hover or focus
   response — nothing loops, nothing moves on its own after settling. */
@keyframes wsqRowIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.wsq tbody tr { animation: wsqRowIn .32s cubic-bezier(.2,.7,.3,1) backwards; }
.wsq tbody tr:nth-child(1)  { animation-delay: .02s; }
.wsq tbody tr:nth-child(2)  { animation-delay: .05s; }
.wsq tbody tr:nth-child(3)  { animation-delay: .08s; }
.wsq tbody tr:nth-child(4)  { animation-delay: .11s; }
.wsq tbody tr:nth-child(5)  { animation-delay: .14s; }
.wsq tbody tr:nth-child(6)  { animation-delay: .17s; }
.wsq tbody tr:nth-child(7)  { animation-delay: .20s; }
.wsq tbody tr:nth-child(8)  { animation-delay: .23s; }
.wsq tbody tr:nth-child(9)  { animation-delay: .26s; }
.wsq tbody tr:nth-child(n+10) { animation-delay: .28s; }

/* action buttons lift slightly and deepen on hover */
.wsq tbody td:nth-child(8) button,
.wsq .subs-why-btn,
.wsq tbody td:nth-child(3) button {
  transition: transform .14s cubic-bezier(.2,.7,.3,1), filter .14s ease, box-shadow .14s ease;
}
.wsq tbody td:nth-child(8) button:hover,
.wsq .subs-why-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.wsq tbody td:nth-child(8) button:active,
.wsq .subs-why-btn:active { transform: translateY(0); }

/* the attachment chip nudges forward, hinting it opens something */
.wsq tbody td:nth-child(3) button[title^="Open"] { transition: transform .14s ease, background .14s ease; }
.wsq tbody td:nth-child(3) button[title^="Open"]:hover { transform: translateX(2px); }

/* filter chips and the view toggle respond to the pointer */
.wsq-card button { transition: background .15s ease, color .15s ease, transform .12s ease; }

/* the AI ring draws its arc on load rather than snapping to length */
@keyframes wsqRingIn { from { stroke-dashoffset: var(--wsq-circ, 107); } }
.wsq svg[viewBox="0 0 44 44"] circle:last-child {
  animation: wsqRingIn .7s cubic-bezier(.3,.8,.4,1) .15s backwards;
}

/* pager buttons */
.wsq .wsq-pager button { transition: background .15s ease, color .15s ease, transform .12s ease; }
.wsq .wsq-pager button:not(:disabled):hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .wsq tbody tr,
  .wsq svg[viewBox="0 0 44 44"] circle:last-child { animation: none !important; }
  .wsq tbody td:nth-child(8) button:hover,
  .wsq .subs-why-btn:hover,
  .wsq .wsq-pager button:not(:disabled):hover,
  .wsq tbody td:nth-child(3) button[title^="Open"]:hover { transform: none; }
}

/* --- wsq: Type column hidden for the Employee role --------------
   An employee only ever sees their own submissions, so the Type column
   tells them nothing they did not just choose themselves. The cell is
   hidden rather than removed: hrms-perms.js locates the Action column by
   comparing each row's cell count with the header's, so every row must
   keep all eight cells. TITLE absorbs the freed width. */
.wsq.wsq-hide-type thead th:nth-child(2),
.wsq.wsq-hide-type tbody td:nth-child(2) { display: none; }
.wsq.wsq-hide-type thead th:nth-child(3),
.wsq.wsq-hide-type tbody td:nth-child(3) { width: 30%; }

/* --- wsq: fitting a phone ---------------------------------------
   On a 360px screen two rows were wider than the card and could not
   shrink, so they pushed the card itself past the viewport: the whole
   Submission Queue — header, filters and table — ran off the right
   edge, and the status legend lost "Rejected".

   The cause both times is the flexbox default: a flex item's min-width
   is auto, meaning it refuses to shrink below its content. Five status
   pills are ~460px and the legend is ~430px, so each blew out its row,
   and a too-wide child stretches its parent rather than being clipped.

   The fix is per row, not a blanket overflow:hidden on the card — the
   card animates with a transform, which would make it the containing
   block for the modals and trap them inside it. */

/* Neither the page nor the card may be dragged wider than the screen. */
.wsq { min-width: 0; max-width: 100%; }
.wsq .wsq-card,
.wsq .wsq-bar { max-width: 100%; box-sizing: border-box; }

/* Flex children must be allowed to shrink before anything else works. */
.wsq .wsq-barrow > *,
.wsq .wsq-filters > * { min-width: 0; }

/* The table keeps its own scroll and never widens the card. */
.wsq .wsq-tablewrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width: 860px) {
  /* The status pills scroll sideways inside the card instead of
     stretching it. Sized to the content so the pill strip's own
     background ends with the pills, not short of them. */
  .wsq .wsq-tabs {
    flex-wrap: nowrap !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;              /* the row is obviously swipeable */
  }
  .wsq .wsq-tabs::-webkit-scrollbar { display: none; }
  .wsq .wsq-tabs > button {
    flex: 0 0 auto;                     /* pills keep their size, not squashed */
    white-space: nowrap;
  }

  /* The legend wraps onto a second line rather than losing its last
     item. Two clean columns beat four items with one cut in half. */
  .wsq .wsq-legend {
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    width: 100%;
  }
  .wsq .wsq-legend > span { flex: 0 0 auto; }

  /* Search stops demanding 240px and takes the row it is given. */
  .wsq .wsq-search {
    min-width: 0 !important;
    width: 100%;
    flex: 1 1 100%;
  }

  /* Less of the card's padding spent on the edges, more on content. */
  .wsq .wsq-bar { padding: 12px 14px !important; }
}

@media (max-width: 560px) {
  /* Two per line, aligned — the counts stay readable side by side. */
  .wsq .wsq-legend { display: grid !important; grid-template-columns: 1fr 1fr; }

  /* Eight columns will not fit however they are sliced, so the table
     scrolls; 700px keeps every column legible while cutting the swipe
     down from the 820px the desktop rule asks for. */
  .wsq table { min-width: 700px !important; }
  .wsq thead th, .wsq tbody td { padding: 10px 8px !important; }
}

/* ================================================================
   Phone layout
   ================================================================ */

/* --- topbar: the account avatar is never the thing that falls off --
   The bar holds a hamburger, the page title, a presence pill, a bell,
   the theme button, the check-in switch and the avatar. Every one of
   them was allowed to shrink, so the row overflowed and the LAST item
   — the account — was the one pushed off the screen edge.

   The title is the only element here that can lose width without
   losing meaning, so it becomes the only one that may shrink; it
   truncates instead of wrapping to two lines. Everything else keeps
   its size, which means the avatar is always on screen and tappable. */
@media (max-width: 768px) {
  body .topbar {
    gap: 8px;
    padding: 0 12px;
    flex-wrap: nowrap;
    overflow: visible;               /* dropdowns must still escape */
  }
  body .topbar-title {
    flex: 1 1 auto;
    min-width: 0;                    /* yields entirely when the row is full */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 1.25;
  }
  /* The widgets hold their size — a squashed toggle or a 8px-wide
     presence pill is worse than no pill — and the account is pinned
     so it can never be the item pushed past the edge. The title is
     the one element that absorbs the difference, because it is the
     only one that still means something at half its width.

     It is allowed to yield completely. On a 360px screen the widgets
     alone fill the row, so a fixed floor for the title would only push
     the overflow back onto the account. On a wider phone there is room
     left over and the title reappears by itself. */
  body .topbar > * { flex-shrink: 0; }
  body .topbar > .topbar-title { flex: 1 1 auto; }
  /* :not(.hrms-drawer-av): the profile drawer is rendered inside the top bar
     and its 84px photo carries the same .av class — these top-bar rules
     shrank it to 30px, leaving the status dot covering the picture. */
  .topbar .av:not(.hrms-drawer-av) { flex: 0 0 auto; margin-left: 2px; }
}
@media (max-width: 560px) {
  /* Space comes off the chrome first, so the title keeps its words.
     Nothing is dropped: the presence pill and the check-in switch are
     both things people open this page to use.

     These are real size reductions, not transform:scale — a scaled
     element still occupies its original width in the row, so scaling
     would have moved the widgets without giving the avatar any room. */
  body .topbar { gap: 6px; padding: 0 10px; }
  body .topbar-title { font-size: 14px; }
  #hrms-hamburger { width: 32px; height: 32px; margin-right: 0; }
  #hrms-hamburger svg { width: 20px; height: 20px; }
  .topbar .hrms-ci-wrap { padding: 2px 6px 2px 4px; gap: 4px; border-width: 1px; }
  .topbar .av:not(.hrms-drawer-av) { width: 30px !important; height: 30px !important; font-size: 11px !important; }
}
@media (max-width: 400px) {
  /* Last of the slack, for the narrowest phones. */
  body .topbar { gap: 4px; padding: 0 8px; }
  .topbar .av:not(.hrms-drawer-av) { margin-left: 0; }
  /* A ceiling on the one widget whose width is set elsewhere and can
     grow with its label. Without a bound, a long label there is enough
     on its own to push the account off the edge again; the icon and
     the switch both still fit inside this. */
  .topbar .hrms-ci-wrap { max-width: 78px; overflow: hidden; }
}

/* --- wsq summary cards on tablet --------------------------------
   Like Task Tracker (hrms-task-stats.css): up to 1024px the four cards
   stay on one row as equal columns instead of auto-fit wrapping 3 + 1. */
@media (max-width: 1024px) {
  .wsq .wsq-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .wsq .wsq-kpis > div { min-width: 0; }
}

/* --- wsq: the queue as cards, not a table -----------------------
   Eight columns will not fit a phone, and a sideways-scrolling table
   hides half the record behind a swipe — you cannot see a submission's
   status and its actions at the same time. Below 640px each row
   becomes its own card: who and what at the top, the details as
   label/value lines, the buttons across the bottom. Nothing scrolls
   sideways and nothing is hidden.

   The column labels come from nth-child rather than data-label
   attributes, so the markup stays exactly as the desktop table. */
@media (max-width: 640px) {
  /* Real structure, confirmed against the rendered card (one level deeper
     than it first looks — the header row is the card's only child, not a
     sibling of one):

         card > row > [ textColumn(label, value, caption), iconBadge ]

     Every selector below is written against that, not guessed. */
  /* Phone: the Task Tracker's summary row exactly — four equal cards on
     ONE line: coloured top edge, label and the big number. At ~80px a card
     cannot fit the icon BESIDE the label, so the row stacks: a smaller icon
     tile on top, then label and number. The caption only repeated the label,
     so it goes; the label wraps the way "IN PROGRESS" does on Task Tracker. */
  .wsq .wsq-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  /* Square cards. Each card is exactly as tall as it is wide, and the
     content is centred vertically inside it. Text is sized from the
     screen width (vw) with a floor and a ceiling, so it shrinks on a
     narrow phone and grows on a wide one in step with the card. */
  .wsq .wsq-kpis > div {
    min-width: 0;
    aspect-ratio: 1 / 1;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(6px, 2vw, 9px) clamp(6px, 1.9vw, 8px) !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .wsq .wsq-kpis > div > div,
  .wsq .wsq-kpis > div > div > div:first-child { min-width: 0; }
  /* row: [text, icon] -> icon on top, text below */
  .wsq .wsq-kpis > div > div {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: clamp(2px, .9vw, 6px);
  }
  .wsq .wsq-kpis > div > div > div:first-child > div:nth-child(1) {
    font-size: clamp(7px, 2.1vw, 10px) !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
    line-height: 1.25 !important;
    /* wrap between words ("PENDING / REVIEW"), never inside one */
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    /* Every label reserves two lines, so a label that wraps ("PENDING /
       REVIEW") no longer pushes its number below the others: all four
       numbers sit on one straight line. */
    min-height: 2.45em !important;
  }
  .wsq .wsq-kpis > div div[style*="font-size: 32px"],
  .wsq .wsq-kpis > div div[style*="fontSize: 32"] {
    font-size: clamp(13px, 4.2vw, 19px) !important;
    font-weight: 700 !important;
    letter-spacing: -.2px !important;
    line-height: 1.1 !important;
    margin: 2px 0 0 !important;
    overflow-wrap: break-word;
  }
  .wsq .wsq-kpis > div > div > div:first-child > div:nth-child(3) { display: none !important; }
  .wsq .wsq-kpis > div > div > div:last-child {
    display: inline-flex !important;
    padding: clamp(2px, .9vw, 5px) !important;
    border-radius: 6px !important;
    flex: 0 0 auto;
  }
  .wsq .wsq-kpis > div > div > div:last-child svg {
    width: clamp(11px, 3.2vw, 16px);
    height: clamp(11px, 3.2vw, 16px);
  }

  /* The queue stays a table on a phone, scrolling sideways inside its own
     card. It was tried as one card per submission, which removed the swipe
     but made each row about 340px tall — a wall of boxes you scrolled past
     rather than a list you could scan. A compact table you nudge sideways
     shows far more of the queue at once, so the swipe is the better trade.

     Only the sizing changes here: smaller type and tighter cells, and a
     narrower minimum than the desktop rule asks for, so there is less to
     swipe through. */
  .wsq .wsq-tablewrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .wsq table { min-width: 660px !important; }
  .wsq thead th, .wsq tbody td { padding: 9px 8px !important; }
  .wsq thead th { font-size: 10px !important; }
  .wsq tbody td { font-size: 12px !important; }
  /* The people columns keep their avatars but at a size that suits the row. */
  .wsq tbody td:nth-child(1) > div > div:first-child,
  .wsq tbody td:nth-child(5) > div > div:first-child {
    width: 24px !important; height: 24px !important; min-width: 24px; font-size: 9.5px !important;
  }
  .wsq tbody td:nth-child(1) > div > span,
  .wsq tbody td:nth-child(5) > div > span { font-size: 11.5px !important; }
  /* The actions stay on one line so the column cannot collapse to one button. */
  .wsq tbody td:nth-child(8) > div { flex-wrap: nowrap !important; gap: 5px !important; }
  .wsq tbody td:nth-child(8) > div > button { padding: 5px 9px !important; font-size: 10.5px !important; }

  /* Paging stacks instead of squeezing onto one line. */
  .wsq .wsq-pager { justify-content: center; gap: 10px; }
  .wsq .wsq-pager > div:first-child { width: 100%; text-align: center; }
}

/* Type is hidden for employees everywhere; repeated at this width with
   !important so it also beats the sizing rules above. One less column is
   one less thing to swipe past on a phone. */
@media (max-width: 640px) {
  .wsq.wsq-hide-type tbody td:nth-child(2),
  .wsq.wsq-hide-type thead th:nth-child(2) { display: none !important; }
}

/* --- the two floating buttons on a phone ------------------------
   Both sit outside the page content and both got in the way of it. */

@media (max-width: 560px) {
  /* Live Interviews (the pill in the topbar). Its label animates open to
     150px on hover — and on a touch screen a tap counts as a hover. On a
     320px bar there is nowhere for those 150px to go, so the row grew and
     pushed the account off the end. The label stays shut on a phone; the
     button keeps its aria-label and title, so nothing is lost to assistive
     tech or to anyone reading the tooltip. */
  #hrms-live-btn.hrms-live-mini:hover .hrms-live-lbl,
  #hrms-live-btn.hrms-live-mini:focus-visible .hrms-live-lbl {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
  }
  #hrms-live-btn { padding: 6px 9px !important; gap: 5px !important; }

  /* The AI Assistant button floats over the page bottom-right, so at this
     width it covered the search box and the first row of the queue. It is
     smaller, tucked further into the corner, and the page now ends with
     enough room to scroll the last row out from under it. */
  .content > div > button[title*="AI Ass" i],
  button[title*="Open AI Ass" i] {
    width: 44px !important;
    height: 44px !important;
    bottom: 14px !important;
    right: 14px !important;
    font-size: 17px !important;
    box-shadow: 0 6px 18px rgba(79,142,247,.38) !important;
  }
  .wsq { padding-bottom: 76px !important; }
}

@media (max-width: 400px) {
  #hrms-live-btn { padding: 5px 7px !important; }
  #hrms-live-btn #hrms-live-count { font-size: 9px !important; padding: 1px 4px !important; }
  button[title*="Open AI Ass" i] { width: 40px !important; height: 40px !important; font-size: 15px !important; }
}

/* ================================================================
   UI Fix: Recruitment Filters Panel & Filter Chips (Issues #001 - #004)
   ================================================================ */

/* Clear button in Dark & Light modes - clean matching control */
.hrms-filter-clear-btn {
  background: var(--bg3, rgba(255, 255, 255, 0.08)) !important;
  border: 1px solid var(--border2, rgba(255, 255, 255, 0.14)) !important;
  color: var(--text2, #94a3b8) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.hrms-filter-clear-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: var(--danger, #f87171) !important;
}

html[data-theme="light"] .hrms-filter-clear-btn {
  background: var(--bg2, #e2e8f0) !important;
  border: 1px solid var(--border2, #cbd5e1) !important;
  color: var(--text2, #475569) !important;
}

html[data-theme="light"] .hrms-filter-clear-btn:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: var(--danger, #dc2626) !important;
}

/* Light mode styling for filter chips in drawers & toolbars */
html[data-theme="light"] .chip {
  background: var(--surface, #ffffff) !important;
  border: 1px solid var(--border2, #cbd5e1) !important;
  color: var(--text, #0f172a) !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .chip:hover {
  border-color: var(--accent, #4f46e5) !important;
  color: var(--accent, #4f46e5) !important;
}

html[data-theme="light"] .chip.active {
  background: var(--accent, #4f46e5) !important;
  border-color: var(--accent, #4f46e5) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .chip > span:last-child {
  background: var(--bg3, #e2e8f0) !important;
  color: var(--text2, #475569) !important;
}

html[data-theme="light"] .chip.active > span:last-child {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Filter drawer headings & text contrast in light mode */
html[data-theme="light"] div[style*="position: fixed"] span[style*="Pipeline Quick View"],
html[data-theme="light"] div[style*="position: fixed"] span[style*="Job Board Filters"],
html[data-theme="light"] div[style*="position: fixed"] span[style*="Recruiter Quick View"] {
  color: var(--text, #0f172a) !important;
}

/* ================================================================
   UI Fix: Onboarding Dashboard Polish & Mobile Alignment (Issues #001 - #010)
   ================================================================ */

/* Consistent card numbers */
.ob-card .n {
  color: var(--text, #ffffff) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .ob-card .n {
  color: var(--text, #0f172a) !important;
}

/* Light mode panel & card overrides */
html[data-theme="light"] .ob-panel,
html[data-theme="light"] .ob-card {
  background: var(--surface, #ffffff) !important;
  border-color: var(--border2, #cbd5e1) !important;
}

html[data-theme="light"] .ob-panel h3,
html[data-theme="light"] .ob-al-who,
html[data-theme="light"] .ob-rec-title {
  color: var(--text, #0f172a) !important;
}

html[data-theme="light"] .ob-al,
html[data-theme="light"] .ob-rec-item {
  border-color: var(--border2, #e2e8f0) !important;
}

html[data-theme="light"] .ob-al:hover,
html[data-theme="light"] .ob-rec-item:hover {
  background: var(--bg2, #f1f5f9) !important;
}

/* Mobile alignment and full-width utilization */
@media (max-width: 640px) {
  #hrms-onboarding-root {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .ob-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ob-card {
    padding: 12px 10px !important;
    width: 100% !important;
  }
  .ob-card .n {
    font-size: 22px !important;
  }
  .ob-grid1,
  .ob-grid2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .ob-panel {
    padding: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ob-al {
    padding: 10px 6px !important;
    gap: 8px !important;
  }
  .ob-rec-item {
    padding: 9px 6px !important;
    gap: 8px !important;
  }
  .ob-rec-meta {
    max-width: 48% !important;
    overflow: hidden !important;
  }
}

/* Empty table value centering across all themes */
.ob-empty-val {
  text-align: center !important;
  color: var(--muted, #8a9bb8) !important;
  display: block !important;
  width: 100% !important;
  font-weight: 500 !important;
  user-select: none;
}
html[data-theme="light"] .ob-empty-val {
  color: #94a3b8 !important;
}

/* Print Export Styling */
@page {
  size: landscape;
  margin: 8mm;
}
@media print {
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11px !important;
  }
  .sidebar, .topbar, #ob-search, #ob-fstatus, #ob-fauth, #ob-filters,
  #ob-columns, #ob-export, #ob-new, .ob-pg, .ob-actions, .ob-menu,
  #hrms-ob-toast, .ob-ov, #hrms-ob-modal, #ob-doc-modal {
    display: none !important;
  }
  #hrms-onboarding-root, #hrms-ob-root {
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #000000 !important;
  }
  .ob-h {
    display: block !important;
    margin-bottom: 8px !important;
  }
  .ob-h h2 {
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 0 4px 0 !important;
  }
  .ob-sub {
    display: block !important;
    color: #475569 !important;
    font-size: 11px !important;
    margin-bottom: 12px !important;
  }
  .ob-wrap {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    overflow: visible !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 4px !important;
  }
  .ob-panel, .ob-card {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .ob-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10px !important;
  }
  .ob-table th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    padding: 6px 8px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    border: 1px solid #cbd5e1 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .ob-table td {
    color: #0f172a !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
    border: 1px solid #e2e8f0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .ob-badge {
    border: 1px solid #94a3b8 !important;
    padding: 1px 5px !important;
    font-size: 9.5px !important;
    color: #0f172a !important;
  }
}

/* ==========================================================================
   Global Typography & Font Visibility Fix (Letter "g" & Descenders)
   ========================================================================== */
:root {
  --font-d: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.topbar-title,
.sec-head h2,
.card-title,
.hrms-att-title,
.ob-h h2,
h1, h2, h3, h4 {
  font-family: var(--font-d);
  line-height: 1.35 !important;
  overflow: visible !important;
  padding-bottom: 2px !important;
}

/* ==========================================================================
   Check-In / Out Button Alignment & Spacing Fix
   ========================================================================== */
.hrms-checkin-page .card:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  overflow: visible !important;
}

.hrms-checkin-page .card:first-child button#hrms-att-admin-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 12px auto 6px !important;
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.hrms-checkin-page .card:first-child > div:has(button),
.hrms-checkin-page .card:first-child .button-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 8px 0 !important;
}

/* ==========================================================================
   Mobile Responsiveness: Onboarding, Tables, Search, and Alignments
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal page dragging */
  html, body, #root, .app, .main, .content, .ob-root, #hrms-onboarding-root {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Align page content padding with topbar hamburger */
  .content,
  .ob-root,
  #hrms-onboarding-root,
  .app-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .topbar {
    padding: 0 12px !important;
  }

  .topbar-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  /* Onboarding Dashboard Stat Cards: Compact on Mobile */
  .ob-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .ob-cards .ob-card {
    padding: 10px 12px !important;
    min-height: auto !important;
  }
  .ob-cards .ob-card .v {
    font-size: 22px !important;
    margin-bottom: 2px !important;
  }
  .ob-cards .ob-card .k {
    font-size: 11px !important;
  }

  /* Full-width search bar on mobile */
  .ob-search,
  .ob-ctrls .ob-search,
  .ob-ctrls input,
  .ob-ctrls > div:has(input) {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
  }

  .ob-ctrls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .ob-ctrls > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .ob-ctrls select,
  .ob-ctrls button {
    flex: 1 1 auto !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  /* Compact candidate & data tables on mobile */
  .table-wrap,
  .ob-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }

  .ob-table th, .ob-table td,
  table th, table td {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  /* Export dropdown: hrms-onboarding.js keeps it inside the screen (it hangs from the
     button's right edge by default and flips to the left edge when the button is near
     the left of the screen), so left/right are no longer forced here. */
  .ob-menu,
  #hrms-ob-export-menu {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
  }

  /* Settings Page Header Spacing on Mobile */
  .ob-h {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
  }
  .ob-sub {
    margin-bottom: 12px !important;
    font-size: 12px !important;
  }

  /* Candidate Drawer Work Authorization Form on Mobile */
  .ob-dw .ob-f,
  .ob-f {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ob-dw .ob-f > div,
  .ob-f > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ob-act {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  .ob-act .ob-btn {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Recruit Stat Cards on Mobile: 2x2 grid */
  .recruit-stat-cards,
  .recruit-stats-grid,
  .recruit-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Candidate card compact styling on mobile */
  .candidate-card,
  .recruit-candidate-card {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
  }

  /* Task tracker left column on mobile */
  .task-tracker-left,
  .task-summary-col,
  .task-notifications-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }
}

/* ==========================================================================
   Recruit & KPI Dashboard Number Typography & Kanban Centering
   ========================================================================== */
.stat-value,
.kpi-card-val,
.kpi-card .val,
.kpi-val,
.recruit-stat-card .val,
.recruit-stat-num,
.recruit-stat-value,
.stat-card .value,
.stat-box .number {
  font-family: var(--font-d, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Kanban column empty state vertical & horizontal centering */
.kanban-col-empty,
.kanban-empty,
.recruit-empty-state,
.empty-kanban,
.kanban-col:empty::after,
.recruit-column-empty,
.ob-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px !important;
  height: 100% !important;
  text-align: center !important;
  margin: auto !important;
}

/* Pipeline Quick View Drawer contrast & styles */
html[data-theme="light"] div[style*="position: fixed"]:has(span:is([style*="Pipeline Quick View"], [style*="Job Board Filters"], [style*="Quick View"])) {
  background: var(--surface, #ffffff) !important;
  color: var(--text, #0f172a) !important;
  border-left: 1px solid var(--border2, #cbd5e1) !important;
  box-shadow: -10px 0 30px rgba(0,0,0,0.12) !important;
}

/* Task Tracker notification bar and spacing */
.task-notification-banner,
.task-notifications,
.task-tracker-notifications,
.task-notif-box {
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
  border-radius: 8px !important;
  max-height: none !important;
}

/* Check-In / Out element vertical spacing & no overlap */
.hrms-checkin-page .card:first-child,
.checkin-clock-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 24px 20px !important;
}

.hrms-checkin-page .card:first-child #haa-ot,
.hrms-checkin-page .card:first-child #haa-brk,
.hrms-checkin-page .card:first-child button#hrms-att-admin-btn,
.hrms-checkin-page .card:first-child .button-group {
  position: static !important;
  margin: 6px auto !important;
}

/* Sidebar: the nav marks every link whose path prefixes the URL, so "Recruit"
   lit up together with "F2F Interview". Only the most specific link (the last
   active sibling) keeps the highlight; hrms-sidebar.js enforces the same. */
.sidebar .nav-item.active:has(~ .nav-item.active) { color: var(--text2); background: transparent; border-left-color: transparent; font-weight: 400; }
.sidebar .nav-item.active:has(~ .nav-item.active):hover { color: var(--text); background: rgba(79, 142, 247, 0.05); }

/* AI Interviewer candidate list: Active / Completed / Scheduled badges share
   one width. */
.content .badge:has(+ .btn-primary) { min-width: 92px; justify-content: center; text-align: center; }


/* ================================================================
   hrms-motion-language — the Dashboard / Work Submissions / Leave motion
   and hover effects, applied to every other module.

   Scoped to .content, so the sidebar and topbar are untouched. Pages that
   already carry their own treatment (.hrms-dash, .wsq) are excluded or reset
   below, so nothing doubles up. Deleting this block restores the previous
   look; no markup depends on it.

   Entrance motion goes ONLY on elements that exist once per page (the page
   container, the KPI row), never on table rows or list items: several
   modules rebuild their rows on every keystroke or background refresh, and a
   row animation would replay each time. Rows get a hover response instead.
   ================================================================ */

@keyframes hrms-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hrms-kpi-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- the page settles in ------------------------------------------------ */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) .content > *:not(.hrms-dash):not(.wsq):not(#hrms-live-dashboard-wrap):not(#hrms-chat-page):not([style*="position: fixed"]):not([style*="position:fixed"]) {
  animation: hrms-page-in .3s cubic-bezier(.2, .7, .3, 1) backwards; /* not `both`: a finished animation that still holds a transform makes the page the anchor for position:fixed pop-ups */
}

.main > :not(.topbar):not(.content):not(.hrms-dash):not(.wsq):not([style*="position: fixed"]):not([style*="position:fixed"]) {
  animation: hrms-page-in .3s cubic-bezier(.2, .7, .3, 1) backwards; /* not `both`: a finished animation that still holds a transform makes the page the anchor for position:fixed pop-ups */
}

/* --- KPI cards: tinted wash, staggered rise, lift ----------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease, border-color .2s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.blue   { background: linear-gradient(158deg, color-mix(in srgb, var(--accent)  9%, var(--bg2)), var(--bg2) 62%); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.green  { background: linear-gradient(158deg, color-mix(in srgb, var(--accent3) 9%, var(--bg2)), var(--bg2) 62%); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.orange { background: linear-gradient(158deg, color-mix(in srgb, var(--accent4) 9%, var(--bg2)), var(--bg2) 62%); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.purple { background: linear-gradient(158deg, color-mix(in srgb, var(--accent2) 9%, var(--bg2)), var(--bg2) 62%); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card:hover,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(12, 20, 40, .12);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border2));
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card { animation: hrms-kpi-rise .4s cubic-bezier(.2, .7, .3, 1) backwards; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card:nth-child(1) { animation-delay: .02s; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card:nth-child(2) { animation-delay: .07s; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card:nth-child(3) { animation-delay: .12s; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card:nth-child(n+4) { animation-delay: .17s; }
/* the Dashboard keeps its own entrance */
.hrms-dash .stat-grid > .stat-card { animation: none !important; }

/* --- cards: quiet by default, responsive on approach -------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .kpi-card,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .ob-card {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease, border-color .2s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card:hover,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .ob-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(12, 20, 40, .10);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border2));
}

/* --- tables: rows respond to the pointer -------------------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr { transition: background .16s ease; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* --- buttons: lift, press, and a visible focus ring --------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.btn-sm, .ob-btn, .jt-btn, .kpi-fd-btn, .kpi-chart-btn, .kpi-date-btn) {
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              transform .12s ease, box-shadow .16s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.btn-sm, .ob-btn, .jt-btn, .kpi-fd-btn, .kpi-chart-btn, .kpi-date-btn):not(:disabled):hover {
  transform: translateY(-1px);
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.btn-sm, .ob-btn, .jt-btn, .kpi-fd-btn, .kpi-chart-btn, .kpi-date-btn):not(:disabled):active {
  transform: translateY(0) scale(.96);
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(button, a, input, select, textarea):focus-visible:not(#hrms-chat-page *) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- respect the OS setting --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) .content > *,
  .main > :not(.topbar):not(.content),
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-grid > .stat-card { animation: none !important; }
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card,
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card,
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr { transition: none !important; }
}

/* --- phones: no hover, so drop the lift and keep the entrance ----------- */
@media (hover: none) {
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card:hover,
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .kpi-card:hover,
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card:hover,
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .ob-card:hover { transform: none; box-shadow: none; }
}


/* --- hrms-motion-language, part 2: the modules that carry their own class
   names (Onboarding, Bench Sales, Interviews, Attendance, Recruit board,
   Chat). Same effects, same values; only the selectors differ. ------------ */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hram-card, .hrms-iv-status-card, .kanban-card, .ob-panel, .ob-wrap) {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease, border-color .2s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hram-card, .hrms-iv-status-card, .kanban-card, .ob-panel, .ob-wrap):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(12, 20, 40, .10);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border2));
}

/* list rows that are not table rows */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hrms-iv-row, .hrms-iv-fu-row, .ob-row, .ob-rec-item, .jt-mrow, .bss-row2) {
  transition: background .16s ease, box-shadow .16s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hrms-iv-row, .hrms-iv-fu-row, .ob-row, .ob-rec-item, .jt-mrow, .bss-row2):hover {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* buttons that have their own class */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.bss-btn, .hram-period-btn, .hrms-iv-copy, .hrms-iv-save) {
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              transform .12s ease, box-shadow .16s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.bss-btn, .hram-period-btn, .hrms-iv-copy, .hrms-iv-save):not(:disabled):hover {
  transform: translateY(-1px);
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.bss-btn, .hram-period-btn, .hrms-iv-copy, .hrms-iv-save):not(:disabled):active {
  transform: translateY(0) scale(.96);
}

@media (prefers-reduced-motion: reduce) {
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hram-card, .hrms-iv-status-card, .kanban-card, .ob-panel,
    .hrms-iv-row, .hrms-iv-fu-row, .ob-row, .ob-rec-item, .jt-mrow, .bss-row2) { transition: none !important; }
}
@media (hover: none) {
  :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) :is(.hram-card, .hrms-iv-status-card, .kanban-card, .ob-panel):hover {
    transform: none; box-shadow: none;
  }
}


/* --- hrms-motion-language, part 3: the rest of the Dashboard / Work
   Submissions look, shared with every other module: section-title tick,
   KPI icons, banded table headers, status dots on badges, avatar response,
   list-row and button hover. Same rules and values as the Dashboard block
   above; only the scope differs. ------------------------------------------ */
/* --- section titles get a gradient tick ------------------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

/* --- Today's Highlights: living timeline ------------------------------ */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .tl-item {
  position: relative;
  padding-left: 4px;
  border-radius: 8px;
  transition: background .18s ease, padding-left .18s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .tl-item:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  padding-left: 9px;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .tl-dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  transition: box-shadow .18s ease, transform .18s ease;
}
/* the newest entry, i.e. the first .tl-item regardless of what precedes it in
   the card (:first-child fails here — the card title comes first) */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .tl-item:not(.tl-item ~ .tl-item) .tl-dot {
  animation: hrms-dash-pulse 2.2s ease-in-out infinite;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .tl-item:hover .tl-dot { transform: scale(1.25); }

/* --- Pending Actions + Employee Directory rows ------------------------ */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .av-row { transition: transform .18s ease; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr { transition: background .16s ease; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover .av-row { transform: translateX(2px); }

/* --- buttons: lift, press, and a visible focus ring ------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .btn-sm {
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              transform .12s ease, box-shadow .16s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .btn-sm:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .btn-sm:active { transform: translateY(0) scale(.96); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .btn-sm:focus-visible,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- "View all →" links: the arrow leads --------------------------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card-title + * a,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) a[href="#"] { transition: color .16s ease; }


/* ── Dashboard: matching the Work Submissions treatment ───────────────────
   Icons, table styling, badge dots and avatar response. Scoped to .hrms-dash;
   the bundle is untouched, so deleting this block reverts it. */

/* --- an icon per KPI, keyed off the colour class the card already has --- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: currentColor;
  opacity: .85;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card:hover::after { transform: scale(1.12); opacity: 1; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.blue   { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2020v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M22%2020v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75%22%2F%3E%3C%2Fsvg%3E");    color: var(--accent); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.purple { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207a2%202%200%200%201%202-2h13a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%22%2F%3E%3Cpath%20d%3D%22M16%2012h4%22%2F%3E%3Cpath%20d%3D%22M3%209h17%22%2F%3E%3C%2Fsvg%3E");    color: var(--accent2); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.green  { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M2%2013h20%22%2F%3E%3C%2Fsvg%3E"); color: var(--accent3); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-card.orange { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2010h18M8%203v4M16%203v4%22%2F%3E%3Cpath%20d%3D%22M9%2015l2%202%204-4%22%2F%3E%3C%2Fsvg%3E");  color: var(--accent4); }
/* keep a long label clear of the icon */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .stat-label { padding-right: 26px; }

/* --- tables: banded sticky header, and rows that respond ---------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card table { border-collapse: separate; border-spacing: 0; width: 100%; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  padding: 11px 12px;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card thead th:first-child { border-radius: 8px 0 0 8px; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card thead th:last-child  { border-radius: 0 8px 8px 0; }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border2); }
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card tbody tr:last-child td { border-bottom: 0; }

/* the rows are clickable, so give the pointer something to land on */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* --- status badges get a leading dot, as on the submissions queue ------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .leave-request-type-badge {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  text-align: center;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .leave-request-type-badge::before {
  position: static;
  grid-column: 1;
  justify-self: center;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .leave-request-type-label {
  grid-column: 2;
  text-align: center;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .leave-request-status-cell .badge::before {
  position: static;
  grid-column: 1;
  justify-self: center;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .survey-campaign-badge::before {
  position: static;
  grid-column: 1;
  justify-self: center;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .survey-campaign-label {
  grid-column: 2;
  text-align: center;
}

/* --- avatars respond with their row ------------------------------------ */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .av {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover .av,
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .av-row:hover .av {
  transform: scale(1.08);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* --- "Pending Actions" rows read as a list, not loose text -------------- */
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card .av-row {
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background .16s ease, transform .16s ease;
}
:where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card .av-row:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* --- light theme: the header band wants a touch more contrast ----------- */
html[data-theme="light"] :where(body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"]))) :is(.content, .main > :not(.topbar):not(.content)) .card thead th { background: #eef0f5; }


/* --- KPI card labels in normal case on the Payroll and Recruit pages -----
   The base .stat-label is ALL CAPS at 10px. On these two sections the labels
   read as plain names ("Total pay runs", "Open roles") instead. The section is
   told from the sidebar link the app already marks active, so no other page,
   including the Dashboard, changes. */
body:has(.sidebar a.nav-item.active[href^="/payroll"]) .stat-label,
body:has(.sidebar a.nav-item.active[href^="/recruit"]) .stat-label,
body:has(.sidebar a.nav-item.active[href^="/payroll"]) .kpi-card-lbl,
body:has(.sidebar a.nav-item.active[href^="/recruit"]) .kpi-card-lbl,
body:has(.sidebar a.nav-item.active[href^="/payroll"]) .pr-stat-label,
body:has(.sidebar a.nav-item.active[href^="/recruit"]) .pr-stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* --- Payroll and Recruit: card titles, column headers and small labels in
   normal case too. Same scope as the KPI labels above: the sidebar link the
   app marks active decides, so no other page changes. The inline-styled
   labels (stage names, "Stage focus") are reached by their style attribute,
   which is why those two selectors carry !important. ------------------------ */
body:is(:has(.sidebar a.nav-item.active[href^="/payroll"]), :has(.sidebar a.nav-item.active[href^="/recruit"])) .main
  :is(.card-title, thead th, .kpi-tbl th, .jt-lbl, .cc-lbl, .cc-quick-jobs-lbl, .cc-th-actions, .kpi-section-title) {
  text-transform: none;
  letter-spacing: 0;
}
body:is(:has(.sidebar a.nav-item.active[href^="/payroll"]), :has(.sidebar a.nav-item.active[href^="/recruit"])) .main
  .card-title { font-size: 12px; }
body:is(:has(.sidebar a.nav-item.active[href^="/payroll"]), :has(.sidebar a.nav-item.active[href^="/recruit"])) .main
  :is([style*="text-transform: uppercase"], [style*="text-transform:uppercase"]) {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body:is(:has(.sidebar a.nav-item.active[href^="/payroll"]), :has(.sidebar a.nav-item.active[href^="/recruit"])) .main
  :is(.kanban-col-head, .kanban-col-head *, .cc-quick-jobs-total, th.cc-th-actions) {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* --- Every module: a hover you can see, without shouting ------------------
   The first hover (2px lift, a faint dark shadow) disappeared on the dark
   theme. This one is deliberately quiet: a soft accent border and tint plus a
   shadow that shows on both themes. Small cards (stats, candidates, status
   tiles) also rise 2px; big panels (tables, charts, forms) stay put so the
   page does not wobble under the pointer. Check In / Out and Chat keep their
   own look. */
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-card, .stat-card, .kpi-card, .card, .hram-card, .hrms-iv-status-card, .ob-card, .ob-panel, .ts-day) {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease,
              border-color .2s ease, background-color .2s ease;
}
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-card, .stat-card, .kpi-card, .hram-card, .hrms-iv-status-card, .ob-card, .ts-day:not(.locked)):hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border2));
  /* background-color: color-mix(in srgb, var(--accent) 5%, var(--bg2)); */
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
}
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) .ts-day:not(.locked):hover {
  transform: none;
}
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.card, .ob-card, .ob-panel, .ob-wrap):hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border2));
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12), 0 1px 4px rgba(15, 23, 42, .06);
}
:root[data-theme="dark"] body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-card, .stat-card, .kpi-card, .hram-card, .hrms-iv-status-card, .ob-card, .ts-day:not(.locked)):hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .38); }
:root[data-theme="dark"] body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.card, .ob-card, .ob-panel, .ob-wrap):hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .30); }
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) .stat-card:hover { background-image: none; }
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.hrms-iv-row, .hrms-iv-fu-row, .jt-mrow, .bss-row2):hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-card, .stat-card, .kpi-card, .card, .hram-card, .hrms-iv-status-card, .ob-card, .ob-panel, .ts-day):hover { transform: none; }
}
/* Force the Performance cards to use flex layout */
.grid-2 .card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100%;
}

/* Push the chart to the bottom */
.chart-bars {
    margin-top: auto !important;
}

/* --- Recruiter (USA): page title wording --------------------------------
   hrms-usa-nav.js stores the USA name of the page in data-usa-title and
   leaves the title's own text untouched (other scripts keep rewriting it).
   The original text is collapsed to zero size and the USA name is painted
   in its place, at the title's normal size for each screen width. */
.topbar .topbar-title[data-usa-title] { font-size: 0 !important; }
.topbar .topbar-title[data-usa-title]::after { content: attr(data-usa-title); font-size: 16px; }
@media (max-width: 768px) { .topbar .topbar-title[data-usa-title]::after { font-size: 14px; } }
@media (max-width: 400px) { .topbar .topbar-title[data-usa-title]::after { font-size: 13px; } }

/* ==========================================================================
   Hover audit (Nov 2026) — every clickable thing answers the pointer, and
   the answer can be seen on the dark theme.

   A pass over every page, as every role, in both themes found two gaps:

   1. Buttons, tabs and chips with no hover state at all (the pointer turned
      into a hand and nothing else happened).
   2. Cards whose hover was a dark shadow. On the dark theme a dark shadow on
      a near-black page cannot be seen, so only a faint border change was left.

   Nothing here changes how anything looks at rest.
   ========================================================================== */

/* --- 1a. colour-filled buttons: brighten, rise 1px, soft glow ------------ */
:is(.haa-ci-card .btn-sm, .haa-btn, .haa-switch, .hcx-newbtn, .wsq-tabs button,
    .hram-pill.active, .hcx-chip.on, .cc-toggle-tab.active):not(:disabled):hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 38%, transparent) !important;
}
/* round controls in the top bar and the floating assistant button: glow ring */
:is(.topbar .av, .hrms-ci-switch, .app > button):hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent) !important;
}

/* --- 1b. plain buttons, tabs and chips: accent tint, border and full-strength text --- */
:is(.hrms-toolbar-btn, .hrms-toolbar-btn ~ button, .hram-pill, .hcx-chip, .tk-tab, .tk-kpi,
    .ts-tab, .cc-toggle-tab, .hrms-dir-page-btn, .oc-chip, .ob-row):not(.active):not(.on):not(:disabled):hover {
  background-color: color-mix(in srgb, var(--accent) 14%, var(--bg2)) !important;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border2)) !important;
  color: var(--text) !important;
}
:is(.tk-check, .hrms-drawer-signout):hover { color: var(--accent) !important; }
/* column headers that sort or filter: a tinted cell, not just lighter text */
:is(.hrms-table-header-sortable, .jt-th, .cc-th):hover {
  background-color: color-mix(in srgb, var(--accent) 12%, transparent) !important;
  color: var(--text) !important;
}
:is(.hrms-toolbar-btn, .hrms-toolbar-btn ~ button, .hram-pill, .hcx-chip, .tk-tab, .tk-kpi, .ts-tab, .ts-day,
    .cc-toggle-tab, .hrms-dir-page-btn, .oc-chip, .ob-row, .haa-btn, .haa-switch, .hcx-newbtn, .wsq-tabs button,
    .hrms-table-header-sortable, .jt-th, .cc-th) {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
              box-shadow .16s ease, transform .16s ease, filter .16s ease;
}

/* --- 2. dark theme: card hover that shows ---------------------------------
   The dark shadow is replaced by a thin accent ring and a soft accent glow,
   with a brighter border. Check In / Out and Chat keep their own look, as
   before. */
:root[data-theme="dark"] body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page)) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-card, .stat-card, .kpi-card, .card, .ob-card, .ob-panel, .ob-wrap, .hram-card, .hrms-iv-status-card, .pr-stat-card, .ts-day:not(.locked)):hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border2)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
              0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}
:root[data-theme="dark"] .hrms-dash :is(.hrms-dash-pro-card, .hrms-dash-charts > .card):hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border2)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
              0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

/* Recruit cards keep their hover highlights without lifting. */
body:has(.sidebar a.nav-item.active[href^="/recruit"]) :is(.content, .main > :not(.topbar):not(.content)) :is(.kanban-col, .kanban-card, .stat-card, .hram-card, .hrms-iv-status-card, .ob-card, .ob-panel, .card):hover,
body:has(.sidebar a.nav-item.active[href^="/recruit"]) #hrms-kpi-overlay :is(.kanban-col, .kanban-card, .stat-card, .hram-card, .hrms-iv-status-card, .ob-card, .ob-panel, .card):hover {
  transform: none !important;
}

/* Recruit toolbar (Filters, KPI Dashboard): an older rule with a higher rank
   set a hover background one shade from the resting one, and the buttons'
   inline border kept its colour, so nothing visible changed. */
div:has(> #hrms-kpi-btn) button:hover, #hrms-kpi-btn:hover,
html[data-theme="light"] div:has(> #hrms-kpi-btn) button:hover, html[data-theme="light"] #hrms-kpi-btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg2)) !important;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border2)) !important;
  color: var(--text) !important;
}

/* touch screens have no hover: leave everything at rest */
@media (hover: none) {
  :is(.haa-ci-card .btn-sm, .haa-btn, .haa-switch, .hcx-newbtn, .wsq-tabs button, .hram-pill.active, .hcx-chip.on,
      .cc-toggle-tab.active, .topbar .av, .hrms-ci-switch, .app > button):hover { filter: none !important; transform: none; }
}

/* Keep row hover indicators clear of the leading numbers and labels. */
#hrms-ob-root .ob-settings-grid .ob-row {
  padding-left: 6px;
}

/* --- Check In / Out: cards answer the pointer -----------------------------
   This page was left out of the site-wide card hover on purpose ("keeps its
   own look"), which in practice meant its cards did nothing at all under the
   pointer. Same language as everywhere else: the four big panels (clock,
   activity log, work from home, team status) get an accent border and a
   shadow and stay put; the six small tiles (working / overtime / break and
   pending / approved / rejected) also rise 2px. The tiles keep their own
   coloured top edge. On the dark theme the shadow is an accent ring and glow,
   because a dark shadow cannot be seen there. */
:is(.card.haa-ci-card, .card.haa-scope) { transition: border-color .2s ease, box-shadow .2s ease; }
:is(.card.haa-ci-card, .card.haa-scope):hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border2)) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12), 0 1px 4px rgba(15, 23, 42, .06) !important;
}
:root[data-theme="dark"] :is(.card.haa-ci-card, .card.haa-scope):hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border2)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
              0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}
:is(.haa-ci-stat, .haa-stat) {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background-color .2s ease;
}
:is(.haa-ci-stat, .haa-stat):hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--accent) 10%, var(--bg3, var(--bg2))) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16) !important;
}
:root[data-theme="dark"] :is(.haa-ci-stat, .haa-stat):hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent),
              0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent) !important;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  :is(.haa-ci-stat, .haa-stat):hover { transform: none; }
}

/* --- Work Submissions: cards answer the pointer ---------------------------
   The rows inside the Submission Queue reacted to the pointer, but the cards
   themselves did not: the queue card, the status strip above it and the four
   counters at the top are built from their own classes (.wsq-*), so the
   site-wide card hover never reached them. Same language as everywhere else:
   the big queue card and the strip get an accent border and a shadow and stay
   put; the four counters also rise 2px and keep their coloured top edge. On
   the dark theme the shadow is an accent ring and glow. */
/* Stronger than the first version, which read as "barely there": a solid
   accent border, a 2px accent ring, a wide accent glow and a light accent
   wash over the card. */
.wsq :is(.wsq-card, .wsq-bar) { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.wsq :is(.wsq-card, .wsq-bar):hover {
  border-color: var(--accent) !important;
  background-color: color-mix(in srgb, var(--accent) 4%, var(--bg2)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent),
              0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent),
              0 2px 6px rgba(15, 23, 42, .10) !important;
}
:root[data-theme="dark"] .wsq :is(.wsq-card, .wsq-bar):hover {
  border-color: var(--accent) !important;
  background-color: color-mix(in srgb, var(--accent) 7%, var(--bg2)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent),
              0 16px 44px color-mix(in srgb, var(--accent) 38%, transparent) !important;
}
.wsq .wsq-kpis > * {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background-color .2s ease;
}
.wsq .wsq-kpis > *:hover {
  transform: translateY(-4px);
  background-color: color-mix(in srgb, var(--accent) 12%, var(--bg2)) !important;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent),
              0 14px 28px color-mix(in srgb, var(--accent) 28%, transparent) !important;
}
:root[data-theme="dark"] .wsq .wsq-kpis > *:hover {
  background-color: color-mix(in srgb, var(--accent) 16%, var(--bg2)) !important;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent),
              0 14px 34px color-mix(in srgb, var(--accent) 40%, transparent) !important;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .wsq .wsq-kpis > *:hover { transform: none; }
}

/* Match the remaining dashboard panels to the Headcount card without changing it. */
@media (hover: hover) {
  html[data-theme="light"] #hrms-ob-root .ob-card:hover {
    transform: none !important;
    border-color: color-mix(in srgb, var(--accent) 26%, var(--border2)) !important;
    box-shadow: 0 10px 26px rgba(12, 20, 40, .12) !important;
  }
  html[data-theme="light"] #hrms-ob-root :is(.ob-panel, .ob-wrap):hover {
    transform: none !important;
    border-color: #899FCC !important;
    box-shadow: 0 10px 26px rgba(12, 20, 40, .10) !important;
  }
  #hrms-live-dashboard-wrap .hrms-dash-charts > .hrms-dash-pro-card:hover,
  #hrms-live-dashboard-wrap .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(1):hover,
  #hrms-live-dashboard-wrap .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(2):hover,
  #hrms-live-dashboard-wrap .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(3):hover {
    transform: none !important;
    border-color: #899FCC !important;
    box-shadow: 0 10px 26px rgba(12, 20, 40, .10) !important;
  }
  :root[data-theme="dark"] body:not(:has(.sidebar a.nav-item.active[href="/employees/checkin"])):not(:has(#hrms-chat-page))
  :is(.content, .main > :not(.topbar):not(.content)) #hrms-live-dashboard-wrap
  :is(.hrms-dash-charts > .hrms-dash-pro-card,
      .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(1),
      .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(2),
      .hrms-dash-3col-row > .hrms-dash-pro-card:nth-child(3)):hover {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--border2)) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
                0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent) !important;
  }
}
