/*
 * School ERP Enterprise Architecture Design System v320 (loaded via enterprise_design_system_v310.css)
 * Final authoritative layer unifying shell geometry, 268px sidebar, hidden sidebar scrollbar,
 * 2-line school brand titles, wide branch switcher, collision-free dashboard header,
 * 5-column executive KPI cards, dark/light themes, and crisp enterprise tables/forms.
 */

:root {
  --v310-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --v310-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Light Mode Palette */
  --v310-bg: #f3f6fb;
  --v310-bg-accent: radial-gradient(1200px 480px at 15% -8%, rgba(37, 99, 235, 0.06), transparent 65%),
                    radial-gradient(900px 400px at 90% 0%, rgba(14, 165, 233, 0.05), transparent 60%);
  --v310-surface: #ffffff;
  --v310-surface-elevated: #ffffff;
  --v310-surface-subtle: #f8fafd;
  --v310-surface-hover: #f1f6fd;
  --v310-topbar-bg: rgba(255, 255, 255, 0.92);

  --v310-ink: #0f172a;
  --v310-ink-secondary: #334155;
  --v310-muted: #64748b;
  --v310-subtle: #94a3b8;

  --v310-border: #e2e8f0;
  --v310-border-strong: #cbd5e1;
  --v310-border-subtle: #edf2f7;

  --v310-primary: #1d4ed8;
  --v310-primary-hover: #1e40af;
  --v310-primary-soft: #eff6ff;
  --v310-primary-ring: rgba(29, 78, 216, 0.16);

  --v310-success: #059669;
  --v310-success-soft: #ecfdf5;
  --v310-warning: #d97706;
  --v310-warning-soft: #fffbeb;
  --v310-danger: #dc2626;
  --v310-danger-soft: #fef2f2;
  --v310-purple: #6d28d9;
  --v310-purple-soft: #f5f3ff;

  --v310-sidebar-bg: linear-gradient(180deg, #091929 0%, #0d253c 55%, #0a1e32 100%);
  --v310-sidebar-ink: #e2ecf5;

  --v310-radius-sm: 8px;
  --v310-radius-md: 10px;
  --v310-radius-lg: 14px;
  --v310-radius-xl: 18px;

  --v310-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --v310-shadow-sm: 0 2px 10px -1px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --v310-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --v310-shadow-lg: 0 20px 44px -8px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

  /* Map legacy variables to v310/v320 tokens */
  --ui-sidebar-width: 268px;
  --ws-subtle: #f1f5f9;
  --product-page: var(--v310-bg);
  --product-surface: var(--v310-surface);
  --product-soft: var(--v310-surface-subtle);
  --product-ink: var(--v310-ink);
  --product-heading: var(--v310-ink);
  --product-muted: var(--v310-muted);
  --product-border: var(--v310-border);
  --product-blue: var(--v310-primary);
  --product-blue-hover: var(--v310-primary-hover);
  --ec-page: var(--v310-bg);
  --ec-surface: var(--v310-surface);
  --ec-ink: var(--v310-ink);
  --ec-heading: var(--v310-ink);
  --ec-muted: var(--v310-muted);
  --ec-line: var(--v310-border);
  --ec-blue: var(--v310-primary);
}

/* Complete Dark Mode Support */
html[data-erp-theme="dark"],
html[data-theme="dark"] {
  --v310-bg: #0b1120;
  --v310-bg-accent: radial-gradient(1200px 480px at 15% -8%, rgba(59, 130, 246, 0.10), transparent 65%),
                    radial-gradient(900px 400px at 90% 0%, rgba(14, 165, 233, 0.08), transparent 60%);
  --v310-surface: #111c2d;
  --v310-surface-elevated: #162338;
  --v310-surface-subtle: #152236;
  --v310-surface-hover: #1b2c44;
  --v310-topbar-bg: rgba(17, 28, 45, 0.92);

  --v310-ink: #f1f5f9;
  --v310-ink-secondary: #cbd5e1;
  --v310-muted: #94a3b8;
  --v310-subtle: #64748b;
  --ws-subtle: #1e293b;

  --v310-border: #22344d;
  --v310-border-strong: #314866;
  --v310-border-subtle: #1a2940;

  --v310-primary: #3b82f6;
  --v310-primary-hover: #2563eb;
  --v310-primary-soft: rgba(59, 130, 246, 0.16);
  --v310-primary-ring: rgba(59, 130, 246, 0.25);

  --v310-success: #34d399;
  --v310-success-soft: rgba(16, 185, 129, 0.16);
  --v310-warning: #fbbf24;
  --v310-warning-soft: rgba(245, 158, 11, 0.16);
  --v310-danger: #f87171;
  --v310-danger-soft: rgba(239, 68, 68, 0.16);
  --v310-purple: #a78bfa;
  --v310-purple-soft: rgba(139, 92, 246, 0.16);

  --v310-sidebar-bg: linear-gradient(180deg, #060d18 0%, #091526 100%);
  --v310-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --v310-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --v310-shadow-md: 0 10px 26px rgba(0, 0, 0, 0.35);
  --v310-shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* Base Body & Typography Upgrade */
body.erp-workspace {
  background-color: var(--v310-bg) !important;
  background-image: var(--v310-bg-accent) !important;
  background-attachment: fixed !important;
  color: var(--v310-ink) !important;
  font-family: var(--v310-font-sans) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. SHELL LAYOUT & SIDEBAR (Fixes Blue Circle 1: Brand & Scrollbar)
   ========================================================================== */
body.erp-workspace .admin-shell.enterprise-shell {
  grid-template-columns: 268px minmax(0, 1fr) !important;
  background: transparent !important;
}
body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}

body.erp-workspace .enterprise-sidebar {
  width: 268px !important;
  padding: 14px 12px !important;
  background: var(--v310-sidebar-bg) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 24px rgba(3, 12, 24, 0.14) !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
body.erp-workspace .enterprise-sidebar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
body.erp-workspace .sidebar-collapsed .enterprise-sidebar {
  width: 76px !important;
}

body.erp-workspace .enterprise-brand-row {
  padding: 2px 4px 14px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}
body.erp-workspace .enterprise-brand {
  gap: 11px !important;
  min-height: 48px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  transition: background 0.15s ease !important;
}
body.erp-workspace .enterprise-brand:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
body.erp-workspace .enterprise-brand > b {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
  color: var(--v310-primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
/* Allow 2 lines so school names like TINY TOTS CBSE SCHOOL are never chopped off */
body.erp-workspace .enterprise-brand strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}
body.erp-workspace .enterprise-brand small {
  font-size: 11px !important;
  color: rgba(226, 236, 245, 0.72) !important;
}

body.erp-workspace .nav-section-label {
  margin: 10px 10px 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  color: rgba(226, 236, 245, 0.48) !important;
}

/* Hide ugly native scrollbar while preserving smooth vertical scroll */
body.erp-workspace .enterprise-nav,
body.erp-workspace #enterpriseNav {
  gap: 4px !important;
  padding: 2px 2px 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
body.erp-workspace .enterprise-nav::-webkit-scrollbar,
body.erp-workspace #enterpriseNav::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

body.erp-workspace .enterprise-nav-item,
body.erp-workspace .enterprise-group-toggle {
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: rgba(235, 243, 250, 0.92) !important;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease !important;
}
body.erp-workspace .enterprise-nav-item span,
body.erp-workspace .enterprise-group-toggle span {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}
body.erp-workspace .enterprise-nav-item .erp-icon,
body.erp-workspace .enterprise-group-toggle .erp-icon {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.92;
}
body.erp-workspace .enterprise-nav-item:hover,
body.erp-workspace .enterprise-group-toggle:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}
body.erp-workspace .enterprise-nav-item.active,
body.erp-workspace .enterprise-nav-group.active-group > .enterprise-group-toggle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
body.erp-workspace .enterprise-flyout {
  margin: 4px 0 6px 14px !important;
  padding: 4px 0 4px 10px !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.16) !important;
}
body.erp-workspace .enterprise-flyout > a {
  min-height: 34px !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: rgba(226, 236, 245, 0.82) !important;
  transition: background 0.14s ease, color 0.14s ease !important;
}
body.erp-workspace .enterprise-flyout > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-radius: 999px !important;
}
body.erp-workspace .enterprise-flyout > a.active {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  border-radius: 999px !important;
}
body.erp-workspace .enterprise-nav-badge {
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   2. GLASSMORPHIC TOPBAR & BRANCH SWITCHER (Fixes Blue Circle 2)
   ========================================================================== */
body.erp-workspace .enterprise-topbar {
  left: 268px !important;
  height: 64px !important;
  padding: 0 24px !important;
  background: var(--v310-topbar-bg) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-bottom: 1px solid var(--v310-border) !important;
  color: var(--v310-ink) !important;
  box-shadow: var(--v310-shadow-xs) !important;
}
body.erp-workspace .sidebar-collapsed .enterprise-topbar {
  left: 76px !important;
}
body.erp-workspace .enterprise-main {
  padding: 86px clamp(20px, 2.4vw, 34px) 48px !important;
  background: transparent !important;
  color: var(--v310-ink) !important;
}

body.erp-workspace .topbar-menu {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid var(--v310-border) !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
body.erp-workspace .topbar-menu:hover {
  border-color: var(--v310-primary) !important;
  background: var(--v310-primary-soft) !important;
  color: var(--v310-primary) !important;
}
body.erp-workspace .topbar-search {
  flex: 0 1 390px !important;
  height: 40px !important;
  border: 1px solid var(--v310-border) !important;
  border-radius: 10px !important;
  background: var(--v310-surface-subtle) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}
body.erp-workspace .topbar-search:focus-within {
  border-color: var(--v310-primary) !important;
  background: var(--v310-surface) !important;
  box-shadow: 0 0 0 3px var(--v310-primary-ring) !important;
}
body.erp-workspace .topbar-search input {
  font-size: 13px !important;
  color: var(--v310-ink) !important;
  background: transparent !important;
}
body.erp-workspace .topbar-command-trigger {
  height: 26px !important;
  padding: 0 8px !important;
  margin-right: 6px !important;
  border: 1px solid var(--v310-border) !important;
  border-radius: 6px !important;
  background: var(--v310-surface) !important;
  color: var(--v310-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
body.erp-workspace .topbar-icon-link,
body.erp-workspace .topbar-theme-trigger {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid var(--v310-border) !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink-secondary) !important;
  transition: all 0.15s ease !important;
}
body.erp-workspace .topbar-icon-link:hover,
body.erp-workspace .topbar-theme-trigger:hover {
  border-color: var(--v310-primary) !important;
  background: var(--v310-primary-soft) !important;
  color: var(--v310-primary) !important;
  transform: translateY(-1px);
}

/* CRITICAL FIX (Blue Circle 2): Full Branch Name Display Without Truncation */
body.erp-workspace .branch-scope-trigger,
body.erp-workspace #adminShell .branch-scope-trigger {
  max-width: 340px !important;
  width: auto !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 4px 14px !important;
  margin: 0 4px !important;
  border-radius: 10px !important;
  border: 1px solid var(--v310-border) !important;
  background: var(--v310-surface-subtle) !important;
  color: var(--v310-ink) !important;
  gap: 9px !important;
}
body.erp-workspace .branch-scope-trigger:hover,
body.erp-workspace #adminShell .branch-scope-trigger:hover {
  border-color: var(--v310-primary) !important;
  background: var(--v310-primary-soft) !important;
}
body.erp-workspace .branch-scope-trigger small {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: var(--v310-muted) !important;
}
body.erp-workspace .branch-scope-trigger b,
body.erp-workspace #adminShell .branch-scope-trigger b {
  max-width: 280px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: var(--v310-ink) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.erp-workspace .account-trigger {
  height: 40px !important;
  padding: 4px 10px 4px 5px !important;
  border-radius: 11px !important;
  border: 1px solid var(--v310-border) !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
}
body.erp-workspace .account-copy b {
  max-width: 165px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--v310-ink) !important;
}
body.erp-workspace .account-copy small {
  font-size: 11px !important;
  color: var(--v310-muted) !important;
}
body.erp-workspace .account-dropdown {
  background: var(--v310-surface-elevated) !important;
  border: 1px solid var(--v310-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--v310-shadow-lg) !important;
}
body.erp-workspace .account-dropdown a {
  font-size: 13px !important;
  color: var(--v310-ink) !important;
}
body.erp-workspace .account-dropdown a:hover {
  background: var(--v310-surface-hover) !important;
}

/* ==========================================================================
   3. PAGE HEADERS, PANELS & MODULE KPI CARDS
   ========================================================================== */
body.erp-workspace .product-page-header,
body.erp-workspace :is(.fee-page-heading, .people-directory-head, .separation-workspace-hero, .hr-attendance-hero).product-page-header {
  margin: 0 0 20px !important;
  padding: 4px 2px 18px !important;
  border-bottom: 1px solid var(--v310-border) !important;
}
body.erp-workspace .product-page-header .eyebrow,
body.erp-workspace .eyebrow {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em !important;
  color: var(--v310-primary) !important;
  text-transform: uppercase !important;
}
body.erp-workspace .product-page-header :is(h1, h2) {
  font-size: clamp(22px, 2.2vw, 27px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: var(--v310-ink) !important;
  line-height: 1.2 !important;
}
body.erp-workspace .product-page-header p {
  font-size: 13.5px !important;
  color: var(--v310-muted) !important;
  line-height: 1.5 !important;
}
body.erp-workspace .product-header-stat,
body.erp-workspace .dashboard-context {
  padding: 10px 16px !important;
  border: 1px solid var(--v310-border) !important;
  border-radius: 12px !important;
  background: var(--v310-surface) !important;
  box-shadow: var(--v310-shadow-xs) !important;
}
body.erp-workspace .product-header-stat strong,
body.erp-workspace .dashboard-context strong {
  font-size: 15.5px !important;
  color: var(--v310-primary) !important;
}
body.erp-workspace .product-header-stat small,
body.erp-workspace .dashboard-context span,
body.erp-workspace .dashboard-context small {
  font-size: 11.5px !important;
  color: var(--v310-muted) !important;
}

/* Panels, Cards & Surfaces */
body.erp-workspace .panel,
body.erp-workspace .product-surface,
body.erp-workspace .people-results,
body.erp-workspace .people-directory-tools,
body.erp-workspace .product-data-surface,
body.erp-workspace .pd-card,
body.erp-workspace .td-card,
body.erp-workspace :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero):not(.product-profile-header) {
  border: 1px solid var(--v310-border) !important;
  border-radius: var(--v310-radius-lg) !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
  box-shadow: var(--v310-shadow-sm) !important;
}
body.erp-workspace .panel {
  padding: 20px 22px !important;
}
body.erp-workspace .panel-head {
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--v310-border-subtle) !important;
}
body.erp-workspace .panel-head :is(h2, h3) {
  font-size: 17.5px !important;
  font-weight: 750 !important;
  color: var(--v310-ink) !important;
  letter-spacing: -0.015em !important;
}
body.erp-workspace .panel-head p {
  font-size: 12.5px !important;
  color: var(--v310-muted) !important;
}

/* KPI & Metric Cards Across All Modules */
body.erp-workspace .product-kpi-grid > article,
body.erp-workspace .pd-metrics > article,
body.erp-workspace .access-kpi,
body.erp-workspace .hr-kpi-card,
body.erp-workspace .payroll-stat,
body.erp-workspace .td-metrics > article {
  border: 1px solid var(--v310-border) !important;
  border-radius: var(--v310-radius-lg) !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
  box-shadow: var(--v310-shadow-sm) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}
body.erp-workspace .product-kpi-grid > article:hover,
body.erp-workspace .pd-metrics > article:hover,
body.erp-workspace .access-kpi:hover,
body.erp-workspace .td-metrics > article:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--v310-shadow-md) !important;
  border-color: var(--v310-border-strong) !important;
}
body.erp-workspace .product-kpi-grid strong,
body.erp-workspace .pd-metrics > article strong,
body.erp-workspace .access-kpi strong,
body.erp-workspace .payroll-stat strong {
  font-size: clamp(22px, 1.8vw, 26px) !important;
  font-weight: 800 !important;
  color: var(--v310-ink) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.025em !important;
}
body.erp-workspace .product-kpi-grid small,
body.erp-workspace .pd-metrics > article small,
body.erp-workspace .access-kpi small,
body.erp-workspace .payroll-stat small {
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: var(--v310-ink-secondary) !important;
}
body.erp-workspace .product-kpi-grid em,
body.erp-workspace .pd-metrics > article span {
  font-size: 11.5px !important;
  color: var(--v310-muted) !important;
}

/* ==========================================================================
   4. BUTTONS, FORMS & DATA TABLES
   ========================================================================== */
body.erp-workspace .btn,
body.erp-workspace button.btn {
  min-height: 38px !important;
  padding: 7px 14px !important;
  border: 1px solid var(--v310-border-strong) !important;
  border-radius: 9px !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  box-shadow: var(--v310-shadow-xs) !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
}
body.erp-workspace .btn:hover,
body.erp-workspace button.btn:hover {
  border-color: var(--v310-primary) !important;
  background: var(--v310-surface-hover) !important;
  color: var(--v310-primary) !important;
  transform: translateY(-1px);
}
body.erp-workspace .btn.primary,
body.erp-workspace button.btn.primary {
  border-color: var(--v310-primary) !important;
  background: linear-gradient(180deg, #2563eb 0%, var(--v310-primary) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25) !important;
}
body.erp-workspace .btn.primary:hover,
body.erp-workspace button.btn.primary:hover {
  border-color: var(--v310-primary-hover) !important;
  background: var(--v310-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35) !important;
}
body.erp-workspace .btn.danger,
body.erp-workspace button.btn.danger,
body.erp-workspace .btn.danger-outline {
  border-color: rgba(220, 38, 38, 0.35) !important;
  background: var(--v310-danger-soft) !important;
  color: var(--v310-danger) !important;
}
body.erp-workspace .btn.compact,
body.erp-workspace .btn.small {
  min-height: 32px !important;
  padding: 5px 11px !important;
  font-size: 11.5px !important;
  border-radius: 8px !important;
}

/* Forms, Labels & Inputs */
body.erp-workspace label {
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--v310-ink-secondary) !important;
}
body.erp-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
body.erp-workspace select,
body.erp-workspace textarea {
  border: 1px solid var(--v310-border-strong) !important;
  border-radius: 9px !important;
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
  font-size: 13px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
body.erp-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
body.erp-workspace select {
  min-height: 40px !important;
  padding: 7px 12px !important;
}
body.erp-workspace textarea {
  padding: 10px 12px !important;
  line-height: 1.5 !important;
}
body.erp-workspace :is(input, select, textarea):focus {
  border-color: var(--v310-primary) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px var(--v310-primary-ring) !important;
}
body.erp-workspace :is(input, textarea)::placeholder {
  color: var(--v310-subtle) !important;
}

/* Toolbars & Search Bars */
body.erp-workspace .product-toolbar,
body.erp-workspace .product-toolbar-surface,
body.erp-workspace .erp-filterbar {
  padding: 12px 14px !important;
  border: 1px solid var(--v310-border) !important;
  border-radius: 12px !important;
  background: var(--v310-surface) !important;
  box-shadow: var(--v310-shadow-xs) !important;
}

/* Enterprise Data Tables */
body.erp-workspace .table-wrap,
body.erp-workspace .product-table-wrap,
body.erp-workspace .erp-table-shell,
body.erp-workspace .erp-ws-table {
  border: 1px solid var(--v310-border) !important;
  border-radius: 12px !important;
  background: var(--v310-surface) !important;
  box-shadow: var(--v310-shadow-xs) !important;
  overflow: auto !important;
}
body.erp-workspace table {
  background: var(--v310-surface) !important;
  color: var(--v310-ink) !important;
}
body.erp-workspace table thead th {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--v310-border) !important;
  background: var(--v310-surface-subtle) !important;
  color: var(--v310-muted) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}
body.erp-workspace table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--v310-border-subtle) !important;
  color: var(--v310-ink-secondary) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
}
body.erp-workspace[data-table-density="compact"] table thead th {
  padding: 8px 11px !important;
}
body.erp-workspace[data-table-density="compact"] table tbody td {
  padding: 8px 11px !important;
  font-size: 12px !important;
}
body.erp-workspace table tbody tr:hover td {
  background: var(--v310-surface-hover) !important;
}
body.erp-workspace table td > b,
body.erp-workspace table td > strong {
  color: var(--v310-ink) !important;
  font-weight: 650 !important;
}
body.erp-workspace table small {
  font-size: 11.5px !important;
  color: var(--v310-muted) !important;
}

/* Table Quick Utility Bar (injected by v310 JS) */
.v310-table-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v310-border-subtle);
  background: var(--v310-surface-subtle);
}
.v310-table-utility-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
}
.v310-table-quick-filter {
  max-width: 280px;
  min-height: 34px !important;
  padding: 4px 11px !important;
  font-size: 12px !important;
}
.v310-table-count-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--v310-muted);
}
.v310-density-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--v310-border);
  border-radius: 8px;
  background: var(--v310-surface);
}
.v310-density-btn {
  border: 0 !important;
  background: transparent !important;
  color: var(--v310-muted) !important;
  padding: 4px 9px !important;
  min-height: 26px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  border-radius: 6px !important;
  cursor: pointer;
}
.v310-density-btn.is-active {
  background: var(--v310-primary-soft) !important;
  color: var(--v310-primary) !important;
}

/* Status Badges & Semantic Pills */
body.erp-workspace .status-badge,
body.erp-workspace .status-pill,
body.erp-workspace .product-status,
body.erp-workspace .erp-ws-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
body.erp-workspace :is(.status-pill.ok, .status-pill.present, .status-pill.active, .product-status.is-active, .erp-status-success, .erp-ws-status-success) {
  background: var(--v310-success-soft) !important;
  color: var(--v310-success) !important;
}
body.erp-workspace :is(.status-pill.warn, .status-pill.unrecorded, .erp-status-warning, .erp-ws-status-warning) {
  background: var(--v310-warning-soft) !important;
  color: var(--v310-warning) !important;
}
body.erp-workspace :is(.status-pill.danger, .status-pill.absent, .erp-status-danger, .erp-ws-status-danger) {
  background: var(--v310-danger-soft) !important;
  color: var(--v310-danger) !important;
}

/* Dark Mode Specific Component Overrides */
html[data-erp-theme="dark"] body.erp-workspace :is(.pd-card, .td-card, .payroll-stat, .payroll-card, .payroll-scope-banner, .process-payroll-enterprise, .branch-scope-dialog, .enterprise-command-dialog, .staff-chat-drawer, .floating-chat-list-pane, .floating-chat-search-wrap, .floating-chat-staff, .floating-chat-peer-head, .floating-chat-compose, .floating-chat-footer) {
  background: var(--v310-surface) !important;
  border-color: var(--v310-border) !important;
  color: var(--v310-ink) !important;
}
html[data-erp-theme="dark"] body.erp-workspace :is(.floating-chat-body, .floating-chat-thread-pane, .floating-chat-messages, .floating-chat-search) {
  background: var(--v310-surface-subtle) !important;
  border-color: var(--v310-border) !important;
  color: var(--v310-ink) !important;
}
html[data-erp-theme="dark"] body.erp-workspace :is(.pd-card h3, .td-card h3, .td-welcome h2, .floating-chat-person b, .floating-chat-peer-head b, .payroll-scope-banner b) {
  color: var(--v310-ink) !important;
}

/* Responsive Tablet & Mobile Sidebar Navigation Drawer (<= 1200px) */
@media (max-width: 1200px) {
  body.erp-workspace .admin-shell.enterprise-shell,
  body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.erp-workspace .enterprise-topbar,
  body.erp-workspace .sidebar-collapsed .enterprise-topbar {
    left: 0 !important;
  }
  body.erp-workspace .enterprise-main {
    grid-column: 1 !important;
    padding: 80px 20px 36px !important;
  }
  body.erp-workspace .enterprise-sidebar,
  body.erp-workspace .sidebar-collapsed .enterprise-sidebar {
    width: min(290px, 86vw) !important;
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 12px 0 44px rgba(15, 23, 42, 0.22) !important;
    color: #1e293b !important;
    transform: translateX(-104%) !important;
    z-index: 4200 !important;
  }
  body.erp-workspace .admin-shell.mobile-nav-open .enterprise-sidebar,
  body.erp-workspace .admin-shell.sidebar-mobile-open .enterprise-sidebar,
  body.erp-workspace.mobile-admin-nav-open .enterprise-sidebar {
    transform: translateX(0) !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-brand strong {
    color: #0f172a !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-brand small {
    color: #64748b !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-brand > b {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28) !important;
  }
  body.erp-workspace .enterprise-sidebar .nav-section-label {
    color: #889da8 !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-nav-item,
  body.erp-workspace .enterprise-sidebar .enterprise-group-toggle {
    color: #334155 !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-nav-item:hover,
  body.erp-workspace .enterprise-sidebar .enterprise-group-toggle:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-nav-item.active,
  body.erp-workspace .enterprise-sidebar .enterprise-nav-group.active-group > .enterprise-group-toggle {
    background: #eaf6f9 !important;
    color: #086b7c !important;
    font-weight: 750 !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-flyout {
    border-left-color: #cbd5e1 !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-flyout > a {
    color: #475569 !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }
  body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active {
    background: #eaf6f9 !important;
    color: #086b7c !important;
    font-weight: 750 !important;
  }
  .enterprise-sidebar-close {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .enterprise-sidebar-close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
  body.erp-workspace .admin-shell.mobile-nav-open .floating-staff-chat,
  body.erp-workspace.mobile-admin-nav-open .floating-staff-chat {
    display: none !important;
  }
  body.erp-workspace .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 4150 !important;
    background: rgba(9, 20, 36, 0.52) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    border: 0 !important;
  }
  body.erp-workspace .admin-shell.mobile-nav-open .mobile-nav-backdrop,
  body.erp-workspace .admin-shell.sidebar-mobile-open .mobile-nav-backdrop,
  body.erp-workspace.mobile-admin-nav-open .mobile-nav-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar {
    background: #091929 !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2ecf5 !important;
  }
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-brand strong {
    color: #ffffff !important;
  }
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-item,
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-group-toggle {
    color: rgba(235, 243, 250, 0.88) !important;
  }
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-item.active,
  html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-group.active-group > .enterprise-group-toggle {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
  }
  html[data-erp-theme="dark"] .enterprise-sidebar-close {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2ecf5 !important;
  }
}

@media (max-width: 680px) {
  body.erp-workspace .enterprise-main {
    padding: 74px 14px 32px !important;
  }
  body.erp-workspace .panel {
    padding: 16px !important;
  }
}

/* Staff Login, MFA & Password Recovery Screen Polish */
body.login-body {
  min-height: 100vh !important;
  margin: 0 !important;
  display: block !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  background: #f8fafc !important;
  font-family: var(--v310-font-sans) !important;
}
body.login-body .login-card {
  width: min(440px, 100%) !important;
  padding: 36px 34px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 70px rgba(2, 10, 24, 0.45) !important;
}
body.login-body .login-card.login-card-enrol {
  width: min(560px, 100%) !important;
}
body.login-body .login-card h1 {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 10px 0 6px !important;
}
body.login-body .login-card p {
  font-size: 13.5px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
}
body.login-body .login-card label {
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #334155 !important;
}
body.login-body .login-card input {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 14px !important;
}
body.login-body .login-card .btn.primary,
body.login-body .login-submit-btn {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  margin-top: 8px !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35) !important;
}

/* ==========================================================================
   v330 — 1. Notification Bell Count Badge (Never Clipped, Always High-Contrast)
   ========================================================================== */
body.erp-workspace .topbar-icon-link {
  position: relative !important;
  overflow: visible !important;
}
body.erp-workspace .topbar-icon-link .topbar-badge,
body.erp-workspace #adminShell .topbar-icon-link .topbar-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  z-index: 15 !important;
  display: grid !important;
  place-items: center !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border: 2px solid var(--v310-surface, #ffffff) !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.36) !important;
  pointer-events: none !important;
}
body.erp-workspace .topbar-icon-link.enquiry-topbar .topbar-badge {
  background: #d97706 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.36) !important;
}
body.erp-workspace .topbar-icon-link .topbar-badge[hidden],
body.erp-workspace #adminShell .topbar-icon-link .topbar-badge[hidden] {
  display: none !important;
}

/* ==========================================================================
   v330 — 2. School and Academic Year Modal (Matches image_8c8908.png)
   ========================================================================== */
body.erp-workspace .branch-scope-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9600 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
}
body.erp-workspace .branch-scope-modal[hidden] {
  display: none !important;
}
body.erp-workspace .branch-scope-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(4px) !important;
}
body.erp-workspace .branch-scope-dialog.branch-context-dialog-v330 {
  position: relative !important;
  z-index: 1 !important;
  width: min(740px, calc(100vw - 32px)) !important;
  max-width: 740px !important;
  padding: 24px 26px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 18px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink, #0f172a) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24) !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-head .eyebrow {
  display: block !important;
  margin: 0 0 4px !important;
  color: #2563eb !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-head h2 {
  margin: 0 0 5px !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-head p {
  margin: 0 !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-close {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid var(--v310-border, #cbd5e1) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-close:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}
body.erp-workspace .branch-context-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
body.erp-workspace .branch-context-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 14px !important;
  background: var(--v310-surface, #ffffff) !important;
}
body.erp-workspace .branch-context-col h3 {
  margin: 0 !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
body.erp-workspace .branch-context-col > p {
  margin: 0 0 4px !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
body.erp-workspace .branch-context-col form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
}
body.erp-workspace .branch-choice-list {
  display: grid !important;
  gap: 9px !important;
  max-height: 260px !important;
  overflow-y: auto !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 11px !important;
  background: var(--v310-surface, #ffffff) !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18) !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice input[type="radio"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  accent-color: #2563eb !important;
  flex: 0 0 17px !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice span {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice b {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice small {
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-col footer {
  margin-top: auto !important;
  padding-top: 4px !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-context-col footer .btn.primary {
  width: 100% !important;
  justify-content: center !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
body.erp-workspace .academic-year-context-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 12px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}
body.erp-workspace .academic-year-context-card strong {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
body.erp-workspace .branch-academic-manage-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid var(--v310-border, #cbd5e1) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}
body.erp-workspace .branch-academic-manage-btn:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}
@media (max-width: 680px) {
  body.erp-workspace .branch-context-columns {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   v330 — 3. Favorite Pages (★ Bookmark) in Topbar, Page Headers & Sidebar
   ========================================================================== */
body.erp-workspace .topbar-favorite-trigger.is-favorited {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  color: #d97706 !important;
}
body.erp-workspace .topbar-favorite-trigger.is-favorited svg {
  fill: #f59e0b !important;
  stroke: #d97706 !important;
}
body.erp-workspace .v330-page-fav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
body.erp-workspace .v330-page-fav-btn svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}
body.erp-workspace .v330-page-fav-btn:hover {
  border-color: #f59e0b !important;
  color: #d97706 !important;
  background: #fffbeb !important;
}
body.erp-workspace .v330-page-fav-btn.is-favorited {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  color: #b45309 !important;
}
body.erp-workspace .v330-page-fav-btn.is-favorited svg {
  fill: #f59e0b !important;
  stroke: #d97706 !important;
}

/* Sidebar Favorites Section */
body.erp-workspace .sidebar-favorites-block {
  margin: 0 0 8px !important;
  padding: 0 2px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.erp-workspace .sidebar-favorites-block[hidden] {
  display: none !important;
}
body.erp-workspace .sidebar-favorites-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #fbbf24 !important;
}
body.erp-workspace .sidebar-favorites-label small {
  padding: 1px 6px !important;
  border-radius: 999px !important;
  background: rgba(251, 191, 36, 0.18) !important;
  color: #fde68a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
body.erp-workspace .sidebar-favorites-list {
  display: grid !important;
  gap: 3px !important;
  padding: 0 4px !important;
}
body.erp-workspace .sidebar-fav-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 5px 10px !important;
  border-radius: 9px !important;
  color: rgba(235, 243, 250, 0.9) !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: background 0.14s ease !important;
}
body.erp-workspace .sidebar-fav-row:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
}
body.erp-workspace .sidebar-fav-row.active {
  background: rgba(37, 99, 235, 0.32) !important;
  color: #ffffff !important;
}
body.erp-workspace .sidebar-fav-star {
  color: #fbbf24 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
body.erp-workspace .sidebar-fav-title {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.erp-workspace .sidebar-fav-remove {
  display: grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: rgba(226, 236, 245, 0.55) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  opacity: 0;
  transition: opacity 0.14s ease, background 0.14s ease, color 0.14s ease !important;
}
body.erp-workspace .sidebar-fav-row:hover .sidebar-fav-remove {
  opacity: 1;
}
body.erp-workspace .sidebar-fav-remove:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
}
body.erp-workspace .sidebar-collapsed .sidebar-favorites-block {
  display: none !important;
}

/* ==========================================================================
   v340 — Complete Resolution for All 7 Screenshot Issues & Module Consistency
   ========================================================================== */

/* 1. Root Appearance Token Guard (Prevents legacy DB dark header/banner settings from causing white-on-white in Light Mode) */
:root:not([data-erp-theme="dark"]) {
  --ws-header-bg: #ffffff !important;
  --ws-header-ink: #0f172a !important;
  --ws-banner-bg: #ffffff !important;
  --ws-banner-ink: #0f172a !important;
}

/* 2. Topbar Light Surface, Square Theme Icon Button & High-Contrast Branch Trigger (Fixes image_8b8700.png) */
body.erp-workspace #adminShell .enterprise-topbar {
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink, #0f172a) !important;
  border-bottom: 1px solid var(--v310-border, #dbe4ee) !important;
}
body.erp-workspace #adminShell #enterpriseThemeTrigger.topbar-theme-trigger {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink-secondary, #334155) !important;
  box-shadow: none !important;
}
body.erp-workspace #adminShell #enterpriseThemeTrigger.topbar-theme-trigger::before,
body.erp-workspace #adminShell #enterpriseThemeTrigger.topbar-theme-trigger::after {
  display: none !important;
  content: none !important;
}
body.erp-workspace #adminShell #enterpriseThemeTrigger.topbar-theme-trigger:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}
body.erp-workspace #adminShell #branchScopeTrigger.branch-scope-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 38px !important;
  padding: 4px 12px 4px 8px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 10px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  color: var(--v310-ink, #0f172a) !important;
}
body.erp-workspace #adminShell #branchScopeTrigger.branch-scope-trigger .branch-scope-icon {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 8px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}
body.erp-workspace #adminShell #branchScopeTrigger.branch-scope-trigger small {
  display: block !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.15 !important;
}
body.erp-workspace #adminShell #branchScopeTrigger.branch-scope-trigger b {
  display: block !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* 3. Unified Students-Style Light Module Page Headers & High-Contrast Stat Pills (Fixes image_8b8a02.png, image_8b8683.png, image_8b8626.png, image_8b831b.png, image_8b82fc.png) */
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin: 0 0 16px !important;
  padding: 20px 24px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 16px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink, #0f172a) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero)::before,
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero)::after {
  display: none !important;
  content: none !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero) :is(h1, h2, h3) {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 2px 0 4px !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero) p {
  color: var(--v310-muted, #64748b) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.module-hero, .workspace-hero, .config-hero, .fees-config-hero, .fee-enterprise-hero, .branch-enterprise-hero, .erp-page-hero, .payroll-page-hero, .payroll-process-hero, .procurement-page-hero, .governance-page-hero, .settings-hero, .license-page-hero, .dashboard-hero, .workflow-page-head, .product-page-header):not(.product-profile-header, .student-profile-hero, .staff-profile-hero) .eyebrow {
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Header Stat Pills: .hero-year (LOCATIONS 1), .product-header-stat (103 Students found), .workflow-head-stat (PENDING APPROVAL 0) */
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat, .student-exit-head-stat) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 8px 14px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-left: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 12px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  color: var(--v310-ink, #0f172a) !important;
  box-shadow: none !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat, .student-exit-head-stat) strong {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat, .student-exit-head-stat) small {
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
body.erp-workspace #adminShell .enterprise-main .fee-scope-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 6px 13px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

/* 4. Right-Side Header Group & Icon-Only Favorite Star Button (Prevents middle header displacement in image_8b8683.png & image_8b8626.png) */
body.erp-workspace #adminShell .v330-header-right-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
}
body.erp-workspace #adminShell .v330-page-fav-btn.v340-fav-icon-only {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-ink-secondary, #334155) !important;
}
body.erp-workspace #adminShell .v330-page-fav-btn.v340-fav-icon-only.is-favorited {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  color: #d97706 !important;
}

/* 5. Branches & Locations Search Bar Non-Overlapping Icon Fix (Fixes image_8b8a02.png) */
body.erp-workspace #adminShell .branch-directory-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .branch-directory-search {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 260px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--v310-border, #cbd5e1) !important;
  border-radius: 10px !important;
  background: var(--v310-surface, #ffffff) !important;
}
body.erp-workspace #adminShell .branch-directory-search > span {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}
body.erp-workspace #adminShell .branch-directory-search > input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 13px !important;
}
body.erp-workspace #adminShell .branch-directory-search > input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 6. Class Fees Workspace Full-Width Vertical Stack Fix (Fixes image_8b82fc.png) */
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  margin-top: 14px !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > :is(.config-sidebar, .ws-module-aside, .config-main, .ws-module-content) {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > :is(.config-sidebar, .ws-module-aside) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 14px !important;
  background: var(--v310-surface, #ffffff) !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > :is(.config-sidebar, .ws-module-aside) > :is(.ws-module-aside-head, .ws-module-search) {
  grid-column: 1 / -1 !important;
}

/* ==========================================================================
   v350 — Complete Resolution for 10 New Screenshots:
   Fees Search Fields, Upload Cards, Branch Action Buttons, Communications
   Workspace, Payroll Redesign, Leave Workspace, Meetings & Global Button Alignment
   ========================================================================== */

/* 1. Fees Search Field Label & Left Icon Alignment (Fixes image_811ce2.png, image_81195c.png, image_81191e.png) */
body.erp-workspace #adminShell .fee-search-field {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: stretch !important;
  min-width: 0 !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .fee-search-field > input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 8px 14px 8px 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 15px !important;
  box-sizing: border-box !important;
}
body.fees-route-fees_paid #adminShell .fee-filter-grid {
  display: grid !important;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(125px, 0.95fr) minmax(125px, 0.95fr) minmax(210px, 1.5fr) auto auto !important;
  gap: 10px !important;
  align-items: end !important;
}
body.fees-route-unpaid_fees #adminShell .fee-filter-grid {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(240px, 1.8fr) auto auto !important;
  gap: 10px !important;
  align-items: end !important;
}
body.fees-route-student_fee_optins #adminShell .fee-optin-toolbar {
  display: grid !important;
  grid-template-columns: minmax(130px, 0.9fr) minmax(145px, 1fr) minmax(145px, 1fr) minmax(220px, 1.7fr) auto auto auto !important;
  gap: 10px !important;
  align-items: end !important;
}
@media (max-width: 1100px) {
  body.fees-route-fees_paid #adminShell .fee-filter-grid,
  body.fees-route-unpaid_fees #adminShell .fee-filter-grid,
  body.fees-route-student_fee_optins #adminShell .fee-optin-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.fees-route-fees_paid #adminShell .fee-filter-grid .fee-search-field,
  body.fees-route-unpaid_fees #adminShell .fee-filter-grid .fee-search-field,
  body.fees-route-student_fee_optins #adminShell .fee-optin-toolbar .fee-search-field {
    grid-column: 1 / -1 !important;
  }
}

/* 2. Enterprise Upload Field & Class Fees Workspace Top Navigation (Fixes image_8119b7.png) */
body.erp-workspace #adminShell .enterprise-upload-field {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 14px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  box-sizing: border-box !important;
}
body.erp-workspace #adminShell .enterprise-upload-label {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 6px 12px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .enterprise-upload-label b {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
body.erp-workspace #adminShell .enterprise-upload-label small {
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
}
body.erp-workspace #adminShell .enterprise-upload-field > .upload-image-guidance {
  display: block !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > .ws-module-aside {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px 16px !important;
  padding: 14px 16px !important;
  overflow: visible !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > .ws-module-aside > .ws-module-aside-head {
  grid-column: 1 !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > .ws-module-aside > .ws-module-search {
  grid-column: 2 !important;
  width: min(320px, 100%) !important;
  justify-self: end !important;
}
body.erp-workspace #adminShell :is(.fees-workspace, .ws-fees-module) > .ws-module-aside > .ws-module-nav {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--v310-border, #dbe4ee) !important;
  overflow: visible !important;
}

/* 3. Branches & Locations Action Buttons & Global Button Alignment (Fixes image_80acc0.png, image_80b060.png, image_811541.png, image_810df8.png) */
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--v310-border-subtle, #eef2f6) !important;
}
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  width: auto !important;
  flex: 0 0 auto !important;
}
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions :is(.btn, a.btn, form .btn, button.btn, .branch-text-action, .branch-action-status, .branch-action-delete) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 90px !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 15px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* Global Form & Action Row Button Alignment (Prevents buttons from sticking out of cards or misaligning) */
body.erp-workspace #adminShell :is(.form-actions, .workspace-actions, .inline-actions, .row-actions, .table-actions, .process-form-actions) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell :is(.form-actions, .workspace-actions, .inline-actions, .row-actions, .table-actions) > form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .editor :is(.form-actions, .workspace-actions, .inline-actions) {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--v310-border-subtle, #eef2f6) !important;
}

/* 4. Communications & Payroll Horizontal Subnav & Cards (Fixes image_80b060.png & image_80afe9.png) */
body.erp-workspace #adminShell :is(.comm-subnav-v350, .payroll-subnav-v350) {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 0 0 16px !important;
  padding: 6px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 13px !important;
  background: var(--v310-surface, #ffffff) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
}
body.erp-workspace #adminShell :is(.comm-subnav-v350, .payroll-subnav-v350) > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
body.erp-workspace #adminShell :is(.comm-subnav-v350, .payroll-subnav-v350) > a svg {
  width: 16px !important;
  height: 16px !important;
}
body.erp-workspace #adminShell :is(.comm-subnav-v350, .payroll-subnav-v350) > a:hover {
  background: var(--v310-surface-subtle, #f8fafc) !important;
  color: var(--v310-ink, #0f172a) !important;
}
body.erp-workspace #adminShell :is(.comm-subnav-v350, .payroll-subnav-v350) > a.active {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* Communications Compose Workspace */
body.erp-workspace #adminShell .comm-compose-workspace {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.erp-workspace #adminShell .comm-audience-card {
  padding: 18px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 14px !important;
  background: var(--v310-surface, #ffffff) !important;
}
body.erp-workspace #adminShell .comm-compose-panel {
  padding: 22px 24px !important;
  border-radius: 14px !important;
}

/* Payroll Workflow Cards & Record Cards */
body.erp-workspace #adminShell .payroll-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 13px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  color: var(--v310-ink, #0f172a) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  transform: translateY(-1px) !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a b {
  display: block !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a small {
  display: block !important;
  margin-top: 2px !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
}
body.erp-workspace #adminShell .payroll-record-card {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 12px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}

/* 5. Staff & HR Meetings Header Stats & Form Alignment (Fixes image_811541.png) */
body.erp-workspace #adminShell .meeting-command-stats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .meeting-command-stats > div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 12px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}
body.erp-workspace #adminShell .meeting-command-stats b {
  color: var(--v310-ink, #0f172a) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .meeting-command-stats span {
  color: var(--v310-muted, #64748b) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .meeting-editor {
  padding: 22px 24px !important;
}

/* 6. Leave Workspace Clean Alignment (Fixes image_810df8.png) */
body.erp-workspace #adminShell .leave-workspace {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
@media (max-width: 960px) {
  body.erp-workspace #adminShell .comm-compose-workspace,
  body.erp-workspace #adminShell .leave-workspace,
  body.erp-workspace #adminShell .payroll-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   v360 — Complete Resolution for All 10 Turn-6 Screenshots:
   1. Fees Search Bars (fees_paid, unpaid_fees, student_fee_optins)
   2. Class Directory Grid/Table View Toggle, Button Alignment & Top Workspace Bar
   3. Admissions Page Enterprise Redesign (Header, 4-Col KPIs, Control Card, Pipeline)
   4. Payroll Overview Quick-Action Text Fix & Salary Structure .money-input Fix
   5. Dashboard Learning Resources Book Icon & Workspace Studio Size Pill Polish
   6. License Status Single Header & High-Contrast Active Entitlement Badge
   ========================================================================== */

/* 1. Prevent Duplicate Page Headers When Local Hero Exists (Fixes image_7fcb48.png) */
body.erp-workspace.has-local-page-header #adminShell .enterprise-main > .enterprise-page-head {
  display: none !important;
}

/* 2. License Status High-Contrast Entitlement State Pill (Fixes image_7fcb48.png) */
body.erp-workspace #adminShell .license-hero-state {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 195px !important;
  padding: 10px 15px !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 12px !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}
body.erp-workspace #adminShell .license-hero-state.is-warning {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
}
body.erp-workspace #adminShell .license-hero-state b {
  display: block !important;
  color: #065f46 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
body.erp-workspace #adminShell .license-hero-state.is-warning b {
  color: #92400e !important;
}
body.erp-workspace #adminShell .license-hero-state small {
  display: block !important;
  margin-top: 2px !important;
  color: #047857 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
body.erp-workspace #adminShell .license-hero-state.is-warning small {
  color: #b45309 !important;
}
body.erp-workspace #adminShell .license-state-dot {
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18) !important;
}

/* 3. Fees Search Field & Route Workspace Search Input Fix (Fixes image_7fc3ff.png, image_7fc3bf.png, image_7fc382.png) */
body.erp-workspace #adminShell label.fee-search-field,
body.erp-workspace #adminShell .fee-search-field {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
body.erp-workspace #adminShell .fee-search-field > .erp-ws-search-field,
body.erp-workspace #adminShell .fee-search-field > .erp-search-field {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  pointer-events: auto !important;
}
body.erp-workspace #adminShell .fee-search-field > .erp-ws-search-field > svg,
body.erp-workspace #adminShell .fee-search-field > .erp-search-field > svg {
  display: none !important;
}
body.erp-workspace #adminShell .fee-search-field input {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 14px 8px 36px !important;
  background-color: var(--v310-surface, #ffffff) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 15px !important;
  box-sizing: border-box !important;
}
body.erp-workspace #adminShell .erp-ws-search-field > input {
  padding: 8px 38px 8px 13px !important;
}
body.erp-workspace #adminShell .erp-search-field > input {
  padding: 8px 13px 8px 38px !important;
}

/* 4. Payroll Overview Quick-Action Cards & Salary Structure Money Input Fix (Fixes image_7fbc9d.png, image_7fbc1f.png) */
body.erp-workspace #adminShell .payroll-quick-actions > a > span {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a > .product-kpi-icon {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a > div {
  min-width: 0 !important;
}
body.erp-workspace #adminShell .payroll-quick-actions > a > span:last-child {
  color: var(--v310-muted, #64748b) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .payroll-page-hero .generate-all {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .payroll-page-hero .generate-all label {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .payroll-page-hero .generate-all input,
body.erp-workspace #adminShell .payroll-page-hero .generate-all .btn {
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .money-input {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid var(--v310-border-strong, #cbd5e1) !important;
  border-radius: 9px !important;
  background: var(--v310-surface, #ffffff) !important;
  overflow: hidden !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
body.erp-workspace #adminShell .money-input:focus-within {
  border-color: var(--v310-primary, #2563eb) !important;
  box-shadow: 0 0 0 3px var(--v310-primary-ring, rgba(37, 99, 235, 0.14)) !important;
}
body.erp-workspace #adminShell .money-input > span {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 38px !important;
  padding: 0 10px !important;
  border-right: 1px solid var(--v310-border, #e2e8f0) !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
}
body.erp-workspace #adminShell .money-input > input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.erp-workspace #adminShell .money-input > input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 5. Class Directory Top Workspace Bar, Grid/Table View Toggle & Button Alignment (Fixes image_7fc81f.jpg) */
body.erp-workspace #adminShell :is(.academic-workspace, .product-route-classes .ws-module-workspace) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  margin-top: 14px !important;
}
body.erp-workspace #adminShell .academic-workspace > :is(.config-sidebar, .ws-module-aside, .config-main, .ws-module-content) {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body.erp-workspace #adminShell .academic-workspace > .ws-module-aside {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px 16px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 14px !important;
  background: var(--v310-surface, #ffffff) !important;
}
body.erp-workspace #adminShell .academic-workspace > .ws-module-aside > .ws-module-search {
  width: min(320px, 100%) !important;
  justify-self: end !important;
}
body.erp-workspace #adminShell .academic-workspace > .ws-module-aside > .ws-module-nav {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}
body.erp-workspace #adminShell .class-directory-head-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .class-view-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 3px !important;
  border: 1px solid var(--v310-border, #cbd5e1) !important;
  border-radius: 10px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}
body.erp-workspace #adminShell .class-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
body.erp-workspace #adminShell .class-view-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}
body.erp-workspace #adminShell .class-view-btn.is-active {
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-primary, #1d4ed8) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}
body.erp-workspace #adminShell .academic-class-grid[hidden],
body.erp-workspace #adminShell .academic-class-table-wrap[hidden] {
  display: none !important;
}
body.erp-workspace #adminShell .academic-class-actions,
body.erp-workspace #adminShell .academic-table-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
body.erp-workspace #adminShell .academic-class-actions > form,
body.erp-workspace #adminShell .academic-table-actions > form {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.erp-workspace #adminShell .academic-class-actions .btn,
body.erp-workspace #adminShell .academic-table-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: 96px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
body.erp-workspace #adminShell .academic-table-identity {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
body.erp-workspace #adminShell .academic-table-mark {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 9px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .academic-table-year {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
body.erp-workspace #adminShell .academic-table-students {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: var(--v310-surface-subtle, #f1f5f9) !important;
  color: var(--v310-ink-secondary, #334155) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .teacher-assigned {
  color: var(--v310-ink, #0f172a) !important;
  font-weight: 600 !important;
}
body.erp-workspace #adminShell .teacher-unassigned {
  color: var(--v310-muted, #94a3b8) !important;
  font-style: italic !important;
}

/* 6. Admissions Enterprise Redesign (Fixes image_7fc729.png) */
body.erp-workspace #adminShell .admissions-page-header .product-page-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .admissions-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}
body.erp-workspace #adminShell .admission-control-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
  margin: 0 0 18px !important;
  padding: 22px 24px !important;
  border-left: 4px solid #2563eb !important;
}
body.erp-workspace #adminShell .admission-control-panel.is-closed {
  border-left-color: #d97706 !important;
}
body.erp-workspace #adminShell .admission-control-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
body.erp-workspace #adminShell .admission-control-copy h2 {
  margin: 2px 0 4px !important;
  font-size: 22px !important;
}
body.erp-workspace #adminShell .admission-control-meta {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
body.erp-workspace #adminShell .admission-meta-item {
  padding: 10px 12px !important;
  border: 1px solid var(--v310-border, #e2e8f0) !important;
  border-radius: 10px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}
body.erp-workspace #adminShell .admission-meta-item small {
  display: block !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
body.erp-workspace #adminShell .admission-meta-item strong {
  display: block !important;
  margin-top: 3px !important;
  color: var(--v310-ink, #0f172a) !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
}
body.erp-workspace #adminShell .admission-control-links {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .admission-switch-form {
  display: grid !important;
  gap: 12px !important;
  padding: 18px !important;
  border: 1px solid var(--v310-border, #e2e8f0) !important;
  border-radius: 14px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
}
body.erp-workspace #adminShell .admission-switch-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
body.erp-workspace #adminShell .admission-switch-head h3 {
  margin: 2px 0 0 !important;
  font-size: 15px !important;
}
body.erp-workspace #adminShell .admission-switch-form label {
  margin: 0 !important;
}
body.erp-workspace #adminShell .admission-switch-actions {
  display: flex !important;
  justify-content: flex-end !important;
}
body.erp-workspace #adminShell .admissions-pipeline-tools {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .admissions-empty-state {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  padding: 40px 24px !important;
  margin-top: 12px !important;
  border: 1px dashed var(--v310-border-strong, #cbd5e1) !important;
  border-radius: 14px !important;
  background: var(--v310-surface-subtle, #f8fafc) !important;
  text-align: center !important;
}
body.erp-workspace #adminShell .admissions-empty-icon {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}
body.erp-workspace #adminShell .admissions-empty-icon svg {
  width: 24px !important;
  height: 24px !important;
}
body.erp-workspace #adminShell .admissions-empty-state h3 {
  margin: 4px 0 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .admissions-empty-state p {
  max-width: 540px !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .admissions-empty-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}
@media (max-width: 1024px) {
  body.erp-workspace #adminShell .admissions-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.erp-workspace #adminShell .admission-control-panel {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  body.erp-workspace #adminShell .admissions-kpi-grid,
  body.erp-workspace #adminShell .admission-control-meta {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   v370 — ENTERPRISE POLISH: COLORED COUNTS, PROMOTIONS, FEES, STAFF MOVEMENTS,
   ORG HIERARCHY + PRINT, FRONT OFFICE, SPACING, BRANCH MAPS, COPYRIGHT & LOCK
   ========================================================================== */

/* 1. Global Highlighted Counts & Student Promotion Pending Approval (Fixes image_7ed344.png) */
body.erp-workspace #adminShell .enterprise-main .workflow-head-stat.is-pending-highlight,
body.erp-workspace #adminShell .enterprise-main a.workflow-head-stat.is-pending-highlight {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 16px !important;
  border: 1px solid #f59e0b !important;
  border-left: 4px solid #d97706 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  color: #92400e !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
body.erp-workspace #adminShell .enterprise-main .workflow-head-stat.is-pending-highlight:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.22) !important;
}
body.erp-workspace #adminShell .enterprise-main .workflow-head-stat.is-pending-highlight small {
  color: #92400e !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
body.erp-workspace #adminShell .enterprise-main .workflow-head-stat.is-pending-highlight strong,
body.erp-workspace #adminShell .enterprise-main .count-pill.is-amber {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat:not(.is-pending-highlight), .student-exit-head-stat, .fee-kpi-inline) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 8px 15px !important;
  border: 1px solid #93c5fd !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%) !important;
  color: #1e3a8a !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat:not(.is-pending-highlight), .student-exit-head-stat, .fee-kpi-inline) small {
  color: #1e40af !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.hero-year, .product-header-stat, .workflow-head-stat:not(.is-pending-highlight), .student-exit-head-stat, .fee-kpi-inline) strong,
body.erp-workspace #adminShell .enterprise-main .count-pill.is-blue {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
}
body.erp-workspace #adminShell .enterprise-main .count-pill.is-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .enterprise-main .count-pill.is-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Highlighted Count Badges across Panels, Tabs, and Toolbars */
body.erp-workspace #adminShell .enterprise-main :is(.is-highlighted-count, .panel-head > .badge, .panel-head > .soft-count, .org-hero-actions .badge, .org-chart-toolbar .badge, .branch-count-badge, .count-inline-badge, .workspace-tabs .soft-count, .content-workspace-tabs a em) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 26px !important;
  padding: 3px 11px !important;
  border: 1px solid #93c5fd !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-style: normal !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12) !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.is-highlighted-count.warning, .panel-head > .badge.warning) {
  border-color: #fcd34d !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  color: #b45309 !important;
}
body.erp-workspace #adminShell .enterprise-main :is(.is-highlighted-count.danger, .panel-head > .badge.danger) {
  border-color: #fca5a5 !important;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  color: #b91c1c !important;
}

/* Student Promotion Step Cards (01, 02, 03, 04) with Vibrant Accents */
body.erp-workspace #adminShell .promotion-empty .promotion-steps-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  width: min(860px, 100%) !important;
  margin: 22px auto 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.erp-workspace #adminShell .promotion-empty .promo-step-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 18px 14px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
  text-align: center !important;
}
body.erp-workspace #adminShell .promotion-empty .promo-step-card.is-step-1 { border-top: 4px solid #2563eb !important; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 65%) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-card.is-step-2 { border-top: 4px solid #7c3aed !important; background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 65%) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-card.is-step-3 { border-top: 4px solid #059669 !important; background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 65%) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-card.is-step-4 { border-top: 4px solid #d97706 !important; background: linear-gradient(180deg, #fffbeb 0%, #ffffff 65%) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-num {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15) !important;
}
body.erp-workspace #adminShell .promotion-empty .promo-step-num.is-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-num.is-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-num.is-emerald { background: linear-gradient(135deg, #10b981, #047857) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-num.is-amber { background: linear-gradient(135deg, #f59e0b, #b45309) !important; }
body.erp-workspace #adminShell .promotion-empty .promo-step-card span {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
body.erp-workspace #adminShell .promotion-empty .promo-step-card small {
  color: #64748b !important;
  font-size: 11.5px !important;
}

/* 2. Fees Module: Hide Redundant Scope Banner, Red Collect Button, Colored Manage Opt-ins (Fixes image_7ed059.png, image_7ecf9f.png, image_7ecc80.png) */
body.erp-workspace #adminShell .fee-scope-banner,
body.erp-workspace #adminShell .fees-scope-banner {
  display: none !important;
}
body.erp-workspace #adminShell .collect-fee-btn,
body.erp-workspace.fees-route-unpaid_fees #adminShell td a.btn[href*="fees_collect"] {
  border-color: #b91c1c !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28) !important;
}
body.erp-workspace #adminShell .collect-fee-btn:hover,
body.erp-workspace.fees-route-unpaid_fees #adminShell td a.btn[href*="fees_collect"]:hover {
  border-color: #991b1b !important;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}
body.erp-workspace #adminShell .manage-optins-btn,
body.erp-workspace.fees-route-student_fee_optins #adminShell td a.btn[href*="student_fee_optins"] {
  border-color: #3730a3 !important;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.24) !important;
}
body.erp-workspace #adminShell .manage-optins-btn:hover,
body.erp-workspace.fees-route-student_fee_optins #adminShell td a.btn[href*="student_fee_optins"]:hover {
  border-color: #312e81 !important;
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* 3. Staff Movements Un-Squeezed Full-Width Layout (Fixes image_7ecbe1.png) */
body.erp-workspace #adminShell .staff-movements-workspace .workflow-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .staff-movement-layout.staff-movement-stacked {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
}
body.erp-workspace #adminShell .staff-movement-composer {
  position: static !important;
  width: 100% !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid > .step-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 22px !important;
  border-bottom: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid > .step-card:last-child {
  border-right: 0 !important;
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid .step-badge {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid .step-badge.is-blue { background: #2563eb !important; }
body.erp-workspace #adminShell .staff-movement-composer-grid .step-badge.is-indigo { background: #4f46e5 !important; }
body.erp-workspace #adminShell .staff-movement-composer-grid .step-badge.is-purple { background: #7c3aed !important; }
body.erp-workspace #adminShell .staff-movement-composer-grid .step-badge.is-emerald { background: #059669 !important; }
body.erp-workspace #adminShell .staff-movement-composer-grid .staff-picker {
  height: 156px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 6px !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid .movement-preview {
  margin: 0 0 16px !important;
  flex: 1 1 auto !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid .workflow-actions {
  padding: 0 !important;
  margin-top: auto !important;
}
body.erp-workspace #adminShell .staff-movement-composer-grid .workflow-actions .btn {
  width: 100% !important;
  min-height: 42px !important;
}
body.erp-workspace #adminShell .staff-movement-table .change-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .staff-movement-table .from-pill {
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-style: normal !important;
}
body.erp-workspace #adminShell .staff-movement-table .to-pill {
  padding: 3px 10px !important;
  border-radius: 6px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
@media (max-width: 1100px) {
  body.erp-workspace #adminShell .staff-movement-composer-grid {
    grid-template-columns: 1fr !important;
  }
  body.erp-workspace #adminShell .staff-movement-composer-grid > .step-card {
    border-right: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* 4. Organization Structure & Print Hierarchy (Fixes image_7ec880.png) */
body.erp-workspace #adminShell .org-enterprise-workspace {
  display: grid !important;
  gap: 18px !important;
}
body.erp-workspace #adminShell .org-print-banner {
  display: none !important;
}
body.erp-workspace #adminShell .org-chart-panel {
  width: 100% !important;
  overflow: hidden !important;
}
body.erp-workspace #adminShell .org-chart {
  padding: 24px 20px 32px !important;
  overflow-x: auto !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}
body.erp-workspace #adminShell .org-tree-level {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 28px 10px 10px !important;
  position: relative !important;
}
body.erp-workspace #adminShell .org-tree-level.org-depth-0 {
  padding-top: 4px !important;
}
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 14px !important;
  padding: 16px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level::before,
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level > .org-tree-branch::before {
  display: none !important;
}
body.erp-workspace #adminShell .org-tree-branch {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
}
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level > .org-tree-branch {
  width: 100% !important;
  align-items: stretch !important;
}
body.erp-workspace #adminShell .org-tree-branch > .org-node {
  width: 255px !important;
  max-width: 100% !important;
  min-height: 96px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level > .org-tree-branch > .org-node {
  width: 100% !important;
}
body.erp-workspace #adminShell .org-node.org-node-depth-0 {
  border-color: #2563eb !important;
  border-top: 4px solid #2563eb !important;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 70%) !important;
}
body.erp-workspace #adminShell .org-node.org-node-depth-1 {
  border-color: #6366f1 !important;
  border-top: 3px solid #4f46e5 !important;
}
body.erp-workspace #adminShell .org-management-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.erp-workspace #adminShell .org-governance-guide {
  margin-top: 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e2e8f0 !important;
}
body.erp-workspace #adminShell .org-manage-search-wrap {
  margin-bottom: 12px !important;
}
body.erp-workspace #adminShell .org-manage-list {
  max-height: 560px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}
@media (max-width: 1024px) {
  body.erp-workspace #adminShell .org-management-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Print Stylesheet for Organization Hierarchy */
@media print {
  body.erp-workspace .enterprise-sidebar,
  body.erp-workspace .enterprise-topbar,
  body.erp-workspace .floating-staff-chat,
  body.erp-workspace .org-hero,
  body.erp-workspace .org-kpi-grid,
  body.erp-workspace .org-management-grid,
  body.erp-workspace .org-chart-toolbar,
  body.erp-workspace .org-chart-hint {
    display: none !important;
  }
  body.erp-workspace .admin-shell.enterprise-shell,
  body.erp-workspace .enterprise-main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }
  body.erp-workspace #adminShell .org-print-banner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #0f172a !important;
  }
  body.erp-workspace #adminShell .org-print-banner strong {
    display: block !important;
    font-size: 18px !important;
    color: #0f172a !important;
  }
  body.erp-workspace #adminShell .org-print-banner span {
    font-size: 12px !important;
    color: #475569 !important;
  }
  body.erp-workspace #adminShell .org-chart-panel {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body.erp-workspace #adminShell .org-chart {
    overflow: visible !important;
    background: #ffffff !important;
    border: 0 !important;
    padding: 0 !important;
  }
}

/* 5. Front Office Module Look & Feel */
body.erp-workspace #adminShell .frontoffice-overview-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}
body.erp-workspace #adminShell .fo-module-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 20px 22px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
body.erp-workspace #adminShell .fo-module-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
body.erp-workspace #adminShell .fo-module-card h3 {
  margin: 4px 0 0 !important;
  font-size: 17px !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .fo-module-card p {
  margin: 0 0 8px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  flex: 1 1 auto !important;
}
body.erp-workspace #adminShell .fo-module-card .btn {
  align-self: flex-start !important;
}
body.erp-workspace #adminShell .frontoffice-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
@media (max-width: 980px) {
  body.erp-workspace #adminShell .frontoffice-overview-cards,
  body.erp-workspace #adminShell .frontoffice-split {
    grid-template-columns: 1fr !important;
  }
}

/* 6. Spacing Between Submit/Action Buttons and Helper/Tip Cards (Fixes image_7ec4c1.png) */
body.erp-workspace #adminShell :is(.attendance-note, .info-note, .warning-note, .interview-provider-note, .governance-note, .approval-note) {
  margin-top: 18px !important;
  padding: 14px 16px !important;
  border: 1px solid #dbe4ee !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .meeting-editor form,
body.erp-workspace #adminShell .panel.editor form:not(:last-child) {
  margin-bottom: 18px !important;
}
body.erp-workspace #adminShell .form-actions {
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

/* 7. Branches & Locations Look & Feel, Button Alignment & Embedded Map */
body.erp-workspace #adminShell .branch-directory-row {
  display: grid !important;
  gap: 14px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
body.erp-workspace #adminShell .branch-row-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .branch-eyebrow-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 4px !important;
}
body.erp-workspace #adminShell .branch-eyebrow-row .eyebrow {
  margin: 0 !important;
}
body.erp-workspace #adminShell .branch-directory-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .branch-directory-actions form {
  margin: 0 !important;
  display: inline-flex !important;
}
body.erp-workspace #adminShell .branch-directory-actions .btn {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
body.erp-workspace #adminShell .branch-directory-actions .branch-action-svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}
body.erp-workspace #adminShell .branch-view-panel:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.95fr) minmax(300px, 1.25fr) !important;
  gap: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e2e8f0 !important;
}
body.erp-workspace #adminShell .branch-map-visual-wrap {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
body.erp-workspace #adminShell .branch-map-frame {
  width: 100% !important;
  height: 220px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
}
body.erp-workspace #adminShell .branch-map-pin-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e3a8a !important;
  font-size: 12px !important;
}
body.erp-workspace #adminShell .branch-editor-map-preview:not([hidden]) {
  display: grid !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 12px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .branch-editor-map-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 12px !important;
}
body.erp-workspace #adminShell .advanced-settings > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  padding: 8px 0 !important;
}
@media (max-width: 900px) {
  body.erp-workspace #adminShell .branch-view-panel:not([hidden]) {
    grid-template-columns: 1fr !important;
  }
}

/* 8. Topbar Notification Bell Always Visible + Notification Action Queues */
body.erp-workspace #adminShell .notification-topbar {
  display: inline-grid !important;
}
body.erp-workspace #adminShell .notification-queue-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 14px !important;
}
body.erp-workspace #adminShell .notification-queue-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .notification-queue-card.is-amber { border-left: 4px solid #d97706 !important; background: #fffbeb !important; }
body.erp-workspace #adminShell .notification-queue-card.is-blue { border-left: 4px solid #2563eb !important; background: #eff6ff !important; }
body.erp-workspace #adminShell .notification-queue-card.is-purple { border-left: 4px solid #7c3aed !important; background: #f5f3ff !important; }
body.erp-workspace #adminShell .notification-queue-card.is-emerald { border-left: 4px solid #059669 !important; background: #ecfdf5 !important; }
body.erp-workspace #adminShell .notification-queue-card h3 {
  margin: 8px 0 4px !important;
  font-size: 15px !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .notification-queue-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #475569 !important;
}

/* 9. Global Copyright Footer (kiddzio.in) & License Integrity Lock UI */
body.erp-workspace #adminShell .erp-global-copyright {
  margin-top: 32px !important;
  padding: 16px 4px 8px !important;
  border-top: 1px solid var(--v310-border, #dbe4ee) !important;
  color: var(--v310-muted, #64748b) !important;
  font-size: 12.5px !important;
}
body.erp-workspace #adminShell .erp-copyright-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell .erp-global-copyright a,
body.login-body .login-copyright a {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.login-body .login-copyright {
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e2e8f0 !important;
  text-align: center !important;
  color: #64748b !important;
  font-size: 12px !important;
}
body.erp-workspace #adminShell .license-lock-files-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
body.erp-workspace #adminShell .license-lock-file-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid #d1fae5 !important;
  border-radius: 10px !important;
  background: #f0fdf4 !important;
  font-size: 12px !important;
}
body.erp-workspace #adminShell .license-lock-file-pill .lock-dot {
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .license-lock-file-pill code {
  color: #065f46 !important;
  font-weight: 700 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.erp-workspace #adminShell .license-lock-file-pill em {
  color: #047857 !important;
  font-style: normal !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11px !important;
}


/* ==========================================================================
   v380 — SALARY STRUCTURE ALIGNMENT, PAYROLL MONTH SIZE, SCHEDULED REPORTS,
   DARK MODE CONTRAST, WEBSITE MODULES, FEES PAID, ORG TREE LINKS & BRANCH BTNS
   ========================================================================== */

/* 1. Salary Structure Alignment (Fixes image_7d7e46.png) */
body.erp-workspace #adminShell .salary-template-box {
  padding: 20px 22px !important;
  margin: 16px 0 !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}
body.erp-workspace #adminShell .salary-template-box > .grid2 {
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr) !important;
  gap: 16px !important;
  align-items: end !important;
  margin-top: 12px !important;
}
body.erp-workspace #adminShell .salary-template-box > .grid2 > label:first-child {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .salary-template-box .gross-money-input,
body.erp-workspace #adminShell .salary-template-box .money-input {
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .salary-template-box label.auto-split-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
body.erp-workspace #adminShell .salary-template-box label.auto-split-check input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 !important;
  flex: 0 0 17px !important;
  accent-color: #2563eb !important;
}
body.erp-workspace #adminShell .salary-template-summary {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #edf2f7 !important;
}
body.erp-workspace #adminShell .salary-template-summary span {
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e40af !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .salary-template-summary a {
  margin-left: auto !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
}

/* 2. Reduce Payroll Month Size in Process Payroll & Salary Structure (Fixes image_7d7de4.png) */
body.erp-workspace #adminShell .process-payroll-enterprise .process-form-grid {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.erp-workspace #adminShell .process-payroll-enterprise .process-form-grid > label {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  align-self: start !important;
  min-height: 0 !important;
  height: auto !important;
}
body.erp-workspace #adminShell .process-payroll-enterprise .process-form-grid input[type="month"] {
  width: 230px !important;
  max-width: 230px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
body.erp-workspace #adminShell .process-payroll-enterprise .process-form-grid textarea {
  min-height: 68px !important;
  height: 68px !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell .payroll-page-hero .generate-all input[type="month"],
body.erp-workspace #adminShell .single-generate input[type="month"] {
  width: 175px !important;
  max-width: 185px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
}

/* 3. Beautify Scheduled Reports Look & Feel (Fixes image_7d7a62.png) */
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-reports-kpi-grid {
  margin-bottom: 18px !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-list-panel,
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-editor-panel,
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-runs-panel {
  padding: 20px 22px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  min-height: 0 !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-tab {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-tab.active {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-tab.active::after {
  display: none !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-report-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 18px !important;
  border: 1px solid #dbe4ee !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-report-card h3 {
  margin: 6px 0 3px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-report-card .record-actions,
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-report-card .record-actions form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-editor-panel label {
  display: grid !important;
  gap: 5px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-editor-panel .sr-label-head {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-editor-panel .required-mark {
  display: inline !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
}
body.erp-workspace[data-section="scheduled_reports"] #adminShell .scheduled-editor-panel form > .btn.primary {
  margin-top: 8px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
}

/* 4. Fees Paid / Payment History Beautification (Fixes image_7d7324.png) */
body.erp-workspace #adminShell .fees-paid-kpi-grid {
  margin-bottom: 16px !important;
}
body.erp-workspace #adminShell .fee-ref-receipt {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .fee-ref-txn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}
body.erp-workspace #adminShell .fee-method-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
body.erp-workspace #adminShell .fee-method-badge.is-upi,
body.erp-workspace #adminShell .fee-method-badge.is-online,
body.erp-workspace #adminShell .fee-method-badge.is-razorpay {
  background: #f5f3ff !important;
  border-color: #c4b5fd !important;
  color: #6d28d9 !important;
}
body.erp-workspace #adminShell .fee-method-badge.is-cash {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}
body.erp-workspace #adminShell .fee-method-badge.is-bank,
body.erp-workspace #adminShell .fee-method-badge.is-neft,
body.erp-workspace #adminShell .fee-method-badge.is-cheque {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}
body.erp-workspace #adminShell .fee-method-badge.is-other {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
}
body.erp-workspace #adminShell .fee-paid-amount {
  color: #047857 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .fee-date-cell small {
  display: block !important;
  color: #64748b !important;
  font-size: 11px !important;
}

/* 5. Website Module Pages Beautification */
body.erp-workspace #adminShell .website-module-subnav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  margin: 0 0 18px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  overflow-x: auto !important;
}
body.erp-workspace #adminShell .website-module-subnav > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
body.erp-workspace #adminShell .website-module-subnav > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .website-module-subnav > a.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}
body.erp-workspace #adminShell .website-module-subnav > a.website-live-preview-pill {
  margin-left: auto !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
}
body.erp-workspace #adminShell .pages-workspace {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.erp-workspace #adminShell .pages-admin-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  margin-bottom: 6px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .pages-admin-item.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: inset 3px 0 0 #2563eb !important;
}
body.erp-workspace #adminShell :is(.faq-record-card, .post-record-card, .assistant-record-card, .assistant-answer-card, .doc-admin-card) {
  padding: 16px 18px !important;
  margin-bottom: 10px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
@media (max-width: 980px) {
  body.erp-workspace #adminShell .pages-workspace {
    grid-template-columns: 1fr !important;
  }
}

/* 6. Organization Structure Links, Checkbox Alignment & Print/PDF (Fixes image_7d6f40.png) */
body.erp-workspace #adminShell .org-chart-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace #adminShell label.org-order-toggle {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  min-height: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
body.erp-workspace #adminShell label.org-order-toggle input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px !important;
  accent-color: #2563eb !important;
}
body.erp-workspace #adminShell .org-tree-level::before,
body.erp-workspace #adminShell .org-tree-branch::before,
body.erp-workspace #adminShell .org-tree-branch::after {
  display: none !important;
  content: none !important;
}
body.erp-workspace #adminShell .org-branch-stem-down,
body.erp-workspace #adminShell .org-branch-stem-up {
  display: block !important;
  width: 2px !important;
  height: 22px !important;
  background: #64748b !important;
  margin: 0 auto !important;
  flex: 0 0 22px !important;
}
body.erp-workspace #adminShell .org-tree-level:not(.org-depth-0):not(.org-tree-grid-level) {
  padding-top: 0 !important;
  position: relative !important;
}
body.erp-workspace #adminShell .org-tree-level:not(.org-depth-0):not(.org-tree-grid-level) > .org-tree-branch:not(:only-child)::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -10px !important;
  right: -10px !important;
  height: 2px !important;
  background: #64748b !important;
}
body.erp-workspace #adminShell .org-tree-level:not(.org-depth-0):not(.org-tree-grid-level) > .org-tree-branch:first-child::before {
  left: 50% !important;
}
body.erp-workspace #adminShell .org-tree-level:not(.org-depth-0):not(.org-tree-grid-level) > .org-tree-branch:last-child::before {
  right: 50% !important;
}
body.erp-workspace #adminShell .org-tree-level.org-tree-grid-level {
  margin-top: 0 !important;
  padding: 16px !important;
  border: 2px solid #93c5fd !important;
  border-radius: 14px !important;
  background: rgba(239, 246, 255, 0.55) !important;
}
body.erp-workspace #adminShell .org-grid-level-header {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  margin-bottom: 4px !important;
  border-radius: 8px !important;
  background: #dbeafe !important;
  color: #1e3a8a !important;
  font-size: 12px !important;
}
body.erp-workspace #adminShell .org-grid-level-header em {
  font-style: normal !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
}
body.erp-workspace #adminShell .org-reports-to-pill {
  display: inline-block !important;
  margin-top: 4px !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
body.erp-workspace #adminShell .org-direct-reports-pill {
  display: inline-block !important;
  margin-top: 3px !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* 7. Branch Directory Buttons Alignment (Fixes image_7d6f02.png) */
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions,
body.erp-workspace #adminShell .branch-directory-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions > form,
body.erp-workspace #adminShell .branch-directory-actions > form {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.erp-workspace #adminShell :is(.v146-branches, .v157-branches) .branch-directory-actions :is(.btn, a.btn, button.btn, .branch-text-action),
body.erp-workspace #adminShell .branch-directory-actions :is(.btn, a.btn, button.btn, .branch-text-action) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

/* 8. Comprehensive Dark Mode Contrast & Surface Overrides (Fixes image_7d79e4.png) */
html[data-erp-theme="dark"] body.erp-workspace,
html[data-erp-theme="dark"] body[data-section="settings"],
html[data-erp-theme="dark"] body[data-section="student_staff_fields"],
html[data-erp-theme="dark"] body[data-section="audit_logs"],
html[data-erp-theme="dark"] body[data-section="reports"],
html[data-erp-theme="dark"] body[data-section="scheduled_reports"] {
  background: #0b1120 !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .panel, .settings-data-panel, .settings-nav-panel, .settings-section-head,
  .settings-context-rail > section, .ws-organization-summary, .ws-settings-tile,
  .settings-kpi-grid > article, .product-kpi-grid > article, .reports-kpi-card,
  .settings-branch-view, .audit-guide-card, .settings-entity-tabs,
  .custom-field-admin-card, .salary-template-box, .fo-module-card,
  .branch-directory-row, .org-node, .promo-step-card, .scheduled-report-card,
  .scheduled-list-panel, .scheduled-editor-panel, .scheduled-runs-panel,
  .website-module-subnav, .faq-record-card, .post-record-card,
  .assistant-record-card, .assistant-answer-card, .doc-admin-card,
  .fee-enterprise-panel, .fee-summary-cards > div, .payroll-stat
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hero-year, .product-header-stat, .workflow-head-stat:not(.is-pending-highlight),
  .student-exit-head-stat, .fee-kpi-inline, .settings-branch-view, .audit-guide-card
) {
  background: linear-gradient(135deg, #17253b 0%, #1e293b 100%) !important;
  border-color: #334155 !important;
  border-left-color: #3b82f6 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hero-year small, .product-header-stat small, .workflow-head-stat small,
  .student-exit-head-stat small, .fee-kpi-inline small, .settings-branch-view small,
  .settings-branch-view p, .audit-guide-card p, .settings-kpi-grid small,
  .product-kpi-grid small, .product-kpi-grid em
) {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .settings-branch-view b, .audit-guide-card b, .settings-kpi-grid strong,
  .product-kpi-grid strong, .settings-table-heading h2, .settings-section-head h2,
  .ws-settings-heading h1, .settings-data-head h1, .panel h2, .panel h3,
  .scheduled-report-card h3, .fo-module-card h3, .org-node strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-entity-tabs a,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .website-module-subnav > a,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tab {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-entity-tabs a.active,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tab.active {
  background: #1e293b !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-field-name-icon,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-branch-view > span {
  background: #1e293b !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-fields-table code,
html[data-erp-theme="dark"] body.erp-workspace #adminShell code {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .v150-system-required,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-fields-table .status-badge {
  background: rgba(59, 130, 246, 0.18) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(th, .settings-fields-table th, .audit-report-panel th, .fee-enterprise-panel th) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, .settings-fields-table td, .audit-report-panel td, .fee-enterprise-panel td) {
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell tbody tr:hover {
  background: rgba(30, 41, 59, 0.65) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input:not([type="checkbox"]):not([type="radio"]), select, textarea,
  .ws-settings-search input, .settings-table-search input,
  .salary-template-box label.auto-split-check, label.org-order-toggle
) {
  background: #152236 !important;
  border-color: #314866 !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.attendance-note, .info-note, .warning-note, .interview-provider-note, .governance-note, .approval-note, .org-chart) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   v390 ENTERPRISE RELEASE: CHAT DRAWER, BRANCH MESSAGING, CONTENT WORKSPACE
   ========================================================================== */

/* 1. Floating Staff Chat Drawer: Enterprise dimensions, header, search & cards */
body.erp-workspace .staff-chat-drawer {
  position: fixed !important;
  right: 24px !important;
  bottom: 88px !important;
  width: min(420px, calc(100vw - 32px)) !important;
  height: min(600px, calc(100dvh - 100px)) !important;
  max-height: calc(100dvh - 100px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
  z-index: 1050 !important;
}

body.erp-workspace .floating-chat-head {
  flex: 0 0 60px !important;
  min-height: 60px !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
body.erp-workspace .floating-chat-brand-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  display: grid !important;
  place-items: center !important;
  color: #38bdf8 !important;
}
body.erp-workspace .floating-chat-brand-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}
body.erp-workspace .floating-chat-brand-copy h3 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
body.erp-workspace .floating-chat-online {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}
body.erp-workspace .floating-chat-online i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}
body.erp-workspace .floating-chat-head-actions button {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
}
body.erp-workspace .floating-chat-head-actions button:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

body.erp-workspace .floating-chat-search-wrap {
  padding: 10px 14px 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.erp-workspace .floating-chat-search {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}
body.erp-workspace .floating-chat-search input {
  font-size: 12px !important;
  color: #0f172a !important;
}
body.erp-workspace .floating-chat-search input::placeholder {
  color: #94a3b8 !important;
}

body.erp-workspace .floating-chat-staff {
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: background .15s ease, border-color .15s ease !important;
}
body.erp-workspace .floating-chat-staff:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
body.erp-workspace .floating-chat-person b {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
body.erp-workspace .floating-chat-person small {
  font-size: 11px !important;
  color: #64748b !important;
}
body.erp-workspace .floating-chat-row-meta time {
  font-size: 11px !important;
  color: #94a3b8 !important;
}

body.erp-workspace .floating-chat-peer-head {
  padding: 10px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}
body.erp-workspace .floating-chat-peer-head b {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
body.erp-workspace .floating-chat-peer-head small {
  font-size: 11px !important;
  color: #64748b !important;
}
body.erp-workspace .floating-chat-messages {
  background: #f8fafc !important;
  padding: 14px !important;
}
body.erp-workspace .floating-chat-message.theirs .floating-chat-bubble {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 14px 14px 14px 4px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
body.erp-workspace .floating-chat-message.mine .floating-chat-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-radius: 14px 14px 4px 14px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
}
body.erp-workspace .floating-chat-bubble p {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
body.erp-workspace .floating-chat-compose {
  padding: 10px 12px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}
body.erp-workspace .floating-chat-compose textarea {
  font-size: 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
}
body.erp-workspace .floating-chat-compose button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22) !important;
}

/* 2. Full-Page Staff Chat Shell & Message Compose Pinning */
body.erp-workspace #adminShell .staff-chat-shell {
  height: 640px !important;
  min-height: 520px !important;
  max-height: calc(100vh - 160px) !important;
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
body.erp-workspace #adminShell .chat-conversations {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
}
body.erp-workspace #adminShell .chat-staff-row {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  transition: background .15s ease, border-color .15s ease !important;
}
body.erp-workspace #adminShell .chat-staff-row:hover {
  background: #f1f5f9 !important;
}
body.erp-workspace #adminShell .chat-staff-row.active {
  background: #eff6ff !important;
  border-left: 3px solid #2563eb !important;
}
body.erp-workspace #adminShell .chat-staff-row .chat-row-top b {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .chat-staff-row small {
  font-size: 11px !important;
  color: #64748b !important;
}
body.erp-workspace #adminShell .chat-thread-panel {
  display: grid !important;
  grid-template-rows: 72px 1fr auto !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #ffffff !important;
}
body.erp-workspace #adminShell .chat-message-area {
  overflow-y: auto !important;
  padding: 18px 24px !important;
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .chat-compose {
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* 3. Remove Redundant Left Content Workspace Rail & Give Main Workspace 100% Width */
body.product-route-content_workspace #adminShell .ws-module-workspace {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.product-route-content_workspace #adminShell :is(.ws-module-aside, .content-workspace-tabs) {
  display: none !important;
}
body.product-route-content_workspace #adminShell .ws-module-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* 4. High-Contrast Text in Website Modules (News, Announcements, Documents, Gallery) */
body.erp-workspace #adminShell .content-workspace-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%) !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
  border-radius: 16px !important;
  padding: 22px 26px !important;
  margin-bottom: 16px !important;
}
body.erp-workspace #adminShell .content-workspace-hero h2 {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 4px 0 6px !important;
}
body.erp-workspace #adminShell .content-workspace-hero .eyebrow {
  color: #38bdf8 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
}
body.erp-workspace #adminShell .content-workspace-hero p {
  color: #e2e8f0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
body.erp-workspace #adminShell .content-workspace-status {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  min-width: 200px !important;
  backdrop-filter: blur(8px) !important;
}
body.erp-workspace #adminShell .content-workspace-status span {
  color: #7dd3fc !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
body.erp-workspace #adminShell .content-workspace-status strong {
  color: #34d399 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
body.erp-workspace #adminShell .content-workspace-status small {
  color: #f1f5f9 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

/* Card titles, kickers and timestamps inside Website modules */
body.erp-workspace #adminShell :is(.post-record-card, .announcement-admin-card, .doc-admin-card, .album-admin-row) {
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .post-record-kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  letter-spacing: 0.08em !important;
}
body.erp-workspace #adminShell .post-record-main > b {
  font-size: 14px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .post-record-main > small {
  font-size: 11.5px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}
body.erp-workspace #adminShell .post-record-main > p {
  color: #334155 !important;
  font-size: 12.5px !important;
}
body.erp-workspace #adminShell .announcement-audience {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
body.erp-workspace #adminShell .announcement-admin-card summary b {
  font-size: 13.5px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .announcement-admin-card summary small {
  font-size: 11.5px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}
body.erp-workspace #adminShell .doc-admin-head b {
  font-size: 13.5px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .album-admin-copy b {
  font-size: 14px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
}
body.erp-workspace #adminShell .album-admin-copy small {
  font-size: 11.5px !important;
  color: #475569 !important;
}

/* 5. Dark Mode Compatibility for New Chat & Website Enhancements */
html[data-erp-theme=dark] body.erp-workspace .staff-chat-drawer {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6) !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-search-wrap,
html[data-erp-theme=dark] body.erp-workspace .floating-chat-search,
html[data-erp-theme=dark] body.erp-workspace .floating-chat-peer-head,
html[data-erp-theme=dark] body.erp-workspace .floating-chat-compose {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-search input,
html[data-erp-theme=dark] body.erp-workspace .floating-chat-compose textarea {
  background: #1e293b !important;
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-messages {
  background: #0b1120 !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-person b,
html[data-erp-theme=dark] body.erp-workspace .floating-chat-peer-head b {
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-staff:hover {
  background: #1e293b !important;
}
html[data-erp-theme=dark] body.erp-workspace .floating-chat-message.theirs .floating-chat-bubble {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .branch-chat-broadcast {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .branch-chat-broadcast h2 {
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .staff-chat-shell {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-conversations {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-staff-row .chat-row-top b {
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-staff-row:hover {
  background: #334155 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-staff-row.active {
  background: #1e3a5f !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-thread-panel,
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-thread-head,
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-compose {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-peer h2 {
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .chat-message-area {
  background: #0b1120 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell :is(.post-record-card, .announcement-admin-card, .doc-admin-card, .album-admin-row) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .post-record-main > b,
html[data-erp-theme=dark] body.erp-workspace #adminShell .announcement-admin-card summary b,
html[data-erp-theme=dark] body.erp-workspace #adminShell .doc-admin-head b,
html[data-erp-theme=dark] body.erp-workspace #adminShell .album-admin-copy b {
  color: #f8fafc !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .post-record-main > small,
html[data-erp-theme=dark] body.erp-workspace #adminShell .announcement-admin-card summary small,
html[data-erp-theme=dark] body.erp-workspace #adminShell .album-admin-copy small {
  color: #94a3b8 !important;
}
html[data-erp-theme=dark] body.erp-workspace #adminShell .post-record-main > p {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   v400 ENTERPRISE SUITE: FOOTER PINNING, DEDICATED FOOTER SETTINGS,
   BULK OPT-INS, ONBOARDING BEAUTIFICATION, ZERO DARK-MODE WHITE BOXES,
   WORKSPACE STUDIO REFINEMENTS & CHAT ICON UNREAD BADGE
   ========================================================================== */

/* 1. Global Layout Grid Preservation & Footer Pinning (v410) */
body.erp-workspace {
  min-height: 100vh !important;
}
body.erp-workspace #adminShell,
body.erp-workspace .admin-shell.enterprise-shell {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: 268px minmax(0, 1fr) !important;
  width: 100% !important;
  margin: 0 !important;
}
body.erp-workspace #adminShell.sidebar-collapsed,
body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}
@media (max-width: 1200px) {
  body.erp-workspace #adminShell,
  body.erp-workspace .admin-shell.enterprise-shell,
  body.erp-workspace #adminShell.sidebar-collapsed,
  body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
body.erp-workspace #adminShell .enterprise-main,
body.erp-workspace .admin-shell.enterprise-shell .enterprise-main {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  min-width: 0 !important;
}
body.erp-workspace #adminShell .erp-global-copyright {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 16px 24px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 12px !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .erp-global-copyright {
  background: #0f172a !important;
  border-top-color: #1e293b !important;
  color: #94a3b8 !important;
}
body.erp-workspace .footer-edit-link {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  margin-left: 6px !important;
}
body.erp-workspace .footer-edit-link:hover {
  text-decoration: underline !important;
}

/* 2. Floating Staff Chat Icon Unread Badge Visibility */
.staff-chat-fab {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 58px !important;
  height: 58px !important;
  z-index: 10051 !important;
  overflow: visible !important;
}
.staff-chat-fab-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  z-index: 10055 !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
}
.staff-chat-fab-badge.is-empty,
.staff-chat-fab-badge[data-count="0"],
.staff-chat-fab-badge[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
.staff-chat-fab-badge:not(.is-empty):not([hidden]) {
  display: grid !important;
  place-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 3. Workspace Studio & Floating Chat Clash Resolution */
body:has(#pdWidgetPanel:not([hidden])) .floating-staff-chat,
body.pd-widget-drawer-open .floating-staff-chat,
body:has(.pd-widget-drawer:not([hidden])) .floating-staff-chat,
body:has(.pd-widget-backdrop:not([hidden])) .floating-staff-chat {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body.erp-workspace #adminShell .pd-widget-drawer-foot {
  padding: 16px 22px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
  z-index: 10055 !important;
}
body.erp-workspace #adminShell #pdWidgetReset {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
}
body.erp-workspace #adminShell #pdWidgetDone {
  min-width: 120px !important;
  height: 40px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  border: none !important;
}

/* 4. Student Fee Opt-ins Bulk Toolbar */
.fee-bulk-optin-toolbar {
  padding: 14px 18px !important;
  margin-bottom: 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.bulk-optin-controls {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
.bulk-select-count {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #bfdbfe !important;
}
.bulk-optin-dropdown {
  flex: 1 1 320px !important;
}
.bulk-optin-dropdown select {
  width: 100% !important;
  height: 40px !important;
}
.bulk-optin-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* 5. Beautify Create Staff Member and New Student Onboarding */
body.erp-workspace #adminShell .student-onboarding {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 0 32px !important;
}
body.erp-workspace #adminShell .student-onboarding-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 320px !important;
  gap: 24px !important;
  align-items: start !important;
}
body.erp-workspace #adminShell .student-onboarding-steps {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 16px 12px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
body.erp-workspace #adminShell .student-step {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  width: 100% !important;
}
body.erp-workspace #adminShell .student-step:hover {
  background: #f8fafc !important;
}
body.erp-workspace #adminShell .student-step.is-active {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}
body.erp-workspace #adminShell .student-step i {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: #e0f2fe !important;
  color: #2563eb !important;
  display: grid !important;
  place-items: center !important;
}
body.erp-workspace #adminShell .student-step.is-active i {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3) !important;
}
body.erp-workspace #adminShell .student-form-section {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 20px !important;
}
body.erp-workspace #adminShell .student-live-preview {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}
body.erp-workspace #adminShell .student-preview-photo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #2563eb, #6366f1) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28) !important;
  margin: 0 auto 14px !important;
}

/* 6. Dark Mode Audit: Zero White Boxes Across All Modules */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-metrics article {
  background: #152236 !important;
  border-color: #22344d !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-metrics strong {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-metrics small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-metrics em {
  color: #64748b !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-table-panel,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-table-head,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-data-tools {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-table-head h3 {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-bulk-optin-toolbar {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .bulk-select-count {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #93c5fd !important;
}

/* Dark mode comprehensive safety net for all cards and panels */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .student-onboarding-steps, .student-form-section, .student-live-preview,
  .staff-onboarding, .staff-live-preview, .student-onboarding,
  .footer-settings-panel, .footer-preview-box,
  .optional-optin-card, .user-card, .compact-card,
  .panel, .card, .record-card, .kpi-card, .metric-card,
  .overview-card, .summary-card, .dashboard-card,
  .attendance-kpi, .timetable-card, .homework-card, .exam-card,
  .asset-card, .procurement-card, .leave-card, .fo-card, .fo-stat,
  .report-card, .scheduled-report-card, .table-wrap, .data-table-wrap
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .student-step:not(.is-active),
  .footer-preview-render
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .student-step.is-active {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* ==========================================================================
   v410 ENTERPRISE SUITE: CHAT HEADER, DESIGNATION DISPLAY & PRESENCE STATUS
   ========================================================================== */
body.erp-workspace .floating-chat-peer-head {
  min-height: 66px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}
body.erp-workspace .floating-chat-peer-head .floating-chat-back {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 9px !important;
  display: grid !important;
  place-items: center !important;
}
body.erp-workspace .floating-chat-peer-head .floating-chat-avatar {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 12px !important;
}
body.erp-workspace .floating-chat-peer-head > div,
body.erp-workspace .floating-chat-peer-head .floating-chat-peer-details {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2.5px !important;
}
body.erp-workspace .floating-chat-peer-head b,
body.erp-workspace #floatingChatPeerName {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.erp-workspace .floating-chat-peer-head-sub {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.erp-workspace .floating-chat-peer-role-badge,
body.erp-workspace #floatingChatPeerRole {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 1.5px 7px !important;
  border-radius: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  display: inline-block !important;
}
body.erp-workspace .floating-chat-peer-status,
body.erp-workspace #floatingChatPeerStatus {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  margin-top: 0 !important;
}
body.erp-workspace .floating-chat-peer-status.online {
  color: #059669 !important;
}
body.erp-workspace .floating-chat-peer-status.online i,
body.erp-workspace .floating-chat-status-dot.online {
  background: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}
body.erp-workspace .floating-chat-peer-status.away {
  color: #d97706 !important;
}
body.erp-workspace .floating-chat-peer-status.away i,
body.erp-workspace .floating-chat-status-dot.away {
  background: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
}
body.erp-workspace .floating-chat-peer-status.offline,
body.erp-workspace .floating-chat-peer-status:not(.online):not(.away) {
  color: #64748b !important;
}
body.erp-workspace .floating-chat-peer-status.offline i,
body.erp-workspace .floating-chat-peer-status:not(.online):not(.away) i,
body.erp-workspace .floating-chat-status-dot.offline {
  background: #94a3b8 !important;
  box-shadow: none !important;
}
body.erp-workspace .floating-chat-peer-status i,
body.erp-workspace .floating-chat-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex: 0 0 7px !important;
}

/* Staff Conversation List in Floating Chat */
body.erp-workspace .floating-chat-staff {
  min-height: 66px !important;
  padding: 10px 12px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  align-items: center !important;
  position: relative !important;
}
body.erp-workspace .floating-chat-staff:after {
  display: none !important;
}
body.erp-workspace .floating-chat-staff .floating-chat-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  position: relative !important;
}
body.erp-workspace .floating-chat-staff .floating-chat-presence-dot {
  position: absolute !important;
  right: -2px !important;
  bottom: -2px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-sizing: border-box !important;
}
body.erp-workspace .floating-chat-staff .floating-chat-presence-dot.online,
body.erp-workspace .floating-chat-staff.presence-online .floating-chat-presence-dot {
  background: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}
body.erp-workspace .floating-chat-staff .floating-chat-presence-dot.away,
body.erp-workspace .floating-chat-staff.presence-away .floating-chat-presence-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
}
body.erp-workspace .floating-chat-staff .floating-chat-presence-dot.offline,
body.erp-workspace .floating-chat-staff.presence-offline .floating-chat-presence-dot {
  background: #94a3b8 !important;
  box-shadow: none !important;
}
body.erp-workspace .floating-chat-person {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2.5px !important;
}
body.erp-workspace .floating-chat-person-top {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
body.erp-workspace .floating-chat-name,
body.erp-workspace .floating-chat-person b {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.erp-workspace .floating-chat-designation {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 1.5px 6px !important;
  border-radius: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  flex: 0 0 auto !important;
  max-width: 140px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}
body.erp-workspace .floating-chat-preview,
body.erp-workspace .floating-chat-person small {
  font-size: 11.5px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.erp-workspace .floating-chat-presence-text {
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  margin-top: 1px !important;
}
body.erp-workspace .floating-chat-presence-text.online,
body.erp-workspace .floating-chat-staff.presence-online .floating-chat-presence-text {
  color: #059669 !important;
}
body.erp-workspace .floating-chat-presence-text.away,
body.erp-workspace .floating-chat-staff.presence-away .floating-chat-presence-text {
  color: #d97706 !important;
}
body.erp-workspace .floating-chat-presence-text.offline,
body.erp-workspace .floating-chat-staff.presence-offline .floating-chat-presence-text {
  color: #64748b !important;
}

/* Dark Mode Overrides for Chat & Header */
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-peer-head {
  background: #0f172a !important;
  border-bottom-color: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-peer-head b,
html[data-erp-theme="dark"] body.erp-workspace #floatingChatPeerName,
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-name,
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-person b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-peer-role-badge,
html[data-erp-theme="dark"] body.erp-workspace #floatingChatPeerRole,
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-designation {
  background: #1e3a5f !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-staff {
  border-bottom-color: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-staff:hover {
  background: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-staff.active {
  background: #172554 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-preview,
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-person small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .floating-chat-staff .floating-chat-presence-dot {
  border-color: #0f172a !important;
}

/* ==========================================================================
   ENTERPRISE STAFF LOGIN OVERHAUL (v410)
   ========================================================================== */
body.login-body {
  min-height: 100vh !important;
  margin: 0 !important;
  display: block !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  background: #f8fafc !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-sizing: border-box !important;
}

body.login-body .login-card {
  width: min(450px, 100%) !important;
  padding: 40px 36px 32px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: #ffffff !important;
  box-shadow: 0 30px 80px -10px rgba(0, 10, 25, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

body.login-body .login-header {
  text-align: center !important;
  margin-bottom: 22px !important;
}

body.login-body .login-brand-wrap {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
}

body.login-body .login-brand-emblem {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35) !important;
}

body.login-body .login-eyebrow {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  margin-bottom: 8px !important;
}

body.login-body .login-title {
  font-size: 22px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  margin: 4px 0 6px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

body.login-body .login-subtitle {
  font-size: 13.5px !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  text-align: center !important;
}

body.login-body .login-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 20px !important;
}

body.login-body .login-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.login-body .login-field-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body.login-body .login-field-label {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #334155 !important;
}

body.login-body .login-forgot-link {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  text-decoration: none !important;
}
body.login-body .login-forgot-link:hover {
  text-decoration: underline !important;
}

body.login-body .login-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

body.login-body .login-input-icon {
  position: absolute !important;
  left: 14px !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  pointer-events: none !important;
}

body.login-body .login-input-wrap input {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 10px 14px 10px 38px !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

body.login-body .login-input-wrap input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

body.login-body .login-submit-btn {
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 6px !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 750 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body.login-body .login-submit-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38) !important;
}

body.login-body .login-copyright {
  margin-top: 24px !important;
  text-align: center !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
}

body.login-body .login-copyright a {
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}
body.login-body .login-copyright a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   v420 ENTERPRISE SUITE: EXECUTIVE & FRONT-DESK KPI CARD SEPARATION,
   BRANCH CONTEXT POPUP CONTRAST, UNIVERSAL DARK MODE (SETTINGS & MODULES),
   & MFA ENROLMENT BEAUTIFICATION
   ========================================================================== */

/* 1A. Executive KPI Cards (.ws-dashboard-kpi) — Keep flex-column layout intact! */
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpis {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 14px !important;
}
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpis > article.ws-dashboard-kpi,
body.erp-workspace .pd-metrics.ws-dashboard-kpis > article {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  position: relative !important;
  min-height: 138px !important;
  padding: 18px 18px 16px !important;
}
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpi .ws-kpi-icon {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
}
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpi strong {
  display: block !important;
  width: calc(100% - 48px) !important;
  font-size: clamp(22px, 1.9vw, 27px) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 6px !important;
}
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpi > span:not(.ws-kpi-icon) {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
body.erp-workspace .profile-dashboard-v275 .ws-dashboard-kpi small {
  display: block !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: calc(100% - 64px) !important;
}

/* 1B. Non-Executive Role Summary KPIs (Front Desk / Custom: .pd-metrics:not(.ws-dashboard-kpis)) */
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) article {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 104px !important;
  padding: 16px !important;
  overflow: hidden !important;
}
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article > i,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) article > i {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 20px !important;
  margin: 0 !important;
}
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article > div,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) article > div {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article small,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) small {
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #334155 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article strong,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) strong {
  font-size: 24px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
  margin: 2px 0 !important;
  letter-spacing: -0.02em !important;
}
body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article span,
body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) span {
  font-size: 11.5px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

/* 2. School & Academic Year Context Popup Contrast Fix (Light & Dark Mode) */
body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected b {
  color: #1e3a8a !important;
}
body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected small {
  color: #3b82f6 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .branch-scope-dialog,
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 {
  background: #0f172a !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-context-col {
  background: #111c2d !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected {
  background: linear-gradient(135deg, #1e3a5f 0%, #172554 100%) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected b {
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice.selected small {
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .academic-year-context-card {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}

/* 3. Universal Dark Mode: Settings Accordions, Navigation Tabs, & All White Containers */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-tabs a {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-tabs a:hover {
  background: #152236 !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-tabs a.active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
  box-shadow: inset 3px 0 #3b82f6 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-organization-brand h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-organization-summary dd {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-organization-summary dl div {
  border-left-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-organization-mark {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  details.ws-setting-group,
  details.ws-settings-advanced,
  details.ws-approval-card,
  details.user-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  details.ws-setting-group > summary,
  details.ws-settings-advanced > summary,
  details.ws-approval-card > summary,
  details.user-card > summary
) {
  background: #152236 !important;
  border-bottom-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  details.ws-setting-group[open] > summary,
  details.ws-settings-advanced[open] > summary,
  details.ws-approval-card[open] > summary,
  details.user-card[open] > summary
) {
  background: #17253b !important;
  border-bottom: 1px solid #22344d !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-content label,
html[data-erp-theme="dark"] body.erp-workspace #adminShell details.ws-setting-group label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .settings-content hr,
html[data-erp-theme="dark"] body.erp-workspace #adminShell hr {
  border-top-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .attendance-capture-choice,
  .attendance-capture-save,
  .ws-approval-intro,
  .ws-approval-role,
  .ws-approval-index a,
  .ws-settings-guide,
  .settings-help-card,
  .settings-grid > .settings-tip,
  .branch-settings-card,
  .security-toggle-card,
  .watermark-preview,
  .salary-settings-callout,
  .salary-deduction-row,
  .ws-color-control,
  .ws-custom-text-toggle,
  .ws-color-preview,
  .enterprise-file-picker,
  .logo-preview
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .attendance-capture-choice.selected {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .attendance-capture-choice b,
  .ws-approval-card summary b,
  .ws-approval-role label b,
  .security-toggle-copy b,
  .enterprise-file-copy b,
  .salary-deduction-row b,
  .settings-health-row b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .settings-context-rail > section > a,
  .settings-health-row
) {
  border-bottom-color: #1e293b !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scanner-support-table,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scanner-support-row {
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scanner-support-row.head {
  background: #17253b !important;
  color: #94a3b8 !important;
}

/* Dark Mode Overrides for Certificates & Workflows */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .certificate-workflow,
  .certificate-page .certificate-workflow,
  .certificate-request-card,
  .promotion-approval-card,
  .enterprise-record-card,
  .template-card,
  .approval-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .certificate-workflow {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .certificate-workflow .workflow-step {
  color: #94a3b8 !important;
  background: transparent !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .certificate-workflow .workflow-step b {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .certificate-workflow .workflow-step.active b {
  background: #2563eb !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .certificate-workflow .workflow-line {
  background: #334155 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) {
  background: #152236 !important;
  border-color: #22344d !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) :is(h2, h3, h4) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) p {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) p b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.certificate-request-card, .promotion-approval-card) input[type="text"] {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article,
html[data-erp-theme="dark"] body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) article {
  background: #152236 !important;
  border-color: #22344d !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article strong,
html[data-erp-theme="dark"] body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) strong {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article small,
html[data-erp-theme="dark"] body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) small {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .pd-metrics:not(.ws-dashboard-kpis) > article span,
html[data-erp-theme="dark"] body.erp-workspace .profile-dashboard-v275 .pd-metrics:not(.ws-dashboard-kpis) span {
  color: #94a3b8 !important;
}

/* 4. MFA Enrolment & Verification Screen Beautification (image_f2f00c.jpg) */
body.login-body .login-card.login-card-enrol {
  width: min(560px, 100%) !important;
  padding: 40px 38px 34px !important;
  text-align: center !important;
}
body.login-body .login-card.login-card-enrol .eyebrow {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  margin-bottom: 10px !important;
}
body.login-body .login-card.login-card-enrol h1 {
  font-size: 25px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 4px 0 8px !important;
  text-align: center !important;
}
body.login-body .login-card.login-card-enrol > p {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 auto 22px !important;
  max-width: 460px !important;
  text-align: center !important;
}
body.login-body .login-mfa-enrol {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin-top: 8px !important;
}
body.login-body .login-mfa-qr {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 24px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}
body.login-body .login-mfa-qr img {
  width: 196px !important;
  height: 196px !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}
body.login-body .login-mfa-qr small {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 2px 0 0 !important;
}
body.login-body .login-mfa-secret {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}
body.login-body .login-mfa-secret span {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
}
body.login-body .login-mfa-secret code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: 0.08em !important;
  background: #f1f5f9 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  user-select: all !important;
}
body.login-body .login-mfa-verify {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  text-align: left !important;
}
body.login-body .login-mfa-verify label {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #334155 !important;
  text-align: center !important;
  margin: 0 !important;
}
body.login-body .login-mfa-verify input[name="mfa_enrol_code"],
body.login-body input[name="mfa_code"] {
  height: 52px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.35em !important;
  text-align: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  color: #0f172a !important;
}
body.login-body .login-mfa-verify input[name="mfa_enrol_code"]:focus,
body.login-body input[name="mfa_code"]:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
}
body.login-body .login-mfa-note {
  font-size: 12px !important;
  color: #64748b !important;
  text-align: center !important;
  margin: 2px 0 0 !important;
}
body.login-body .login-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 14px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}
body.login-body .login-secondary:hover {
  background: #dbeafe !important;
}


/* ==========================================================================
   v430 ENTERPRISE SUITE: ZERO DARK-MODE WHITE BOX AUDIT ACROSS ALL MODULES,
   SETTINGS SUB-PANELS, CUSTOM FIELD BUILDER CONTRAST, SCHEDULED REPORT FILTERS & PICKERS
   ========================================================================== */

/* 1. Settings Tab: General -> Branch Policy Editor & Identity (image_e8e7c1.png, image_e8e49f.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-policy-editor,
  .branch-policy-form,
  .branch-settings-card,
  .branch-identity-panel,
  .branch-identity-select,
  .branch-identity-form,
  .payroll-policy-grid,
  .branch-policy-head
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .branch-identity-select,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .branch-settings-card,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .branch-policy-form {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) h3 {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) .muted,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) p,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .branch-policy-scope {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) select,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.branch-policy-editor, .branch-identity-panel) input:not([type="checkbox"]):not([type="radio"]) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}

/* 2. Settings Tab: Design -> Color Preview Card & Inner Page Spacing Block (image_e8e43f.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-color-preview {
  background: #111c2d !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-color-preview-row > div {
  background: #152236 !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-preview-heading {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .ws-color-preview-row p {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.design-spacing-block, .design-preview) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .design-spacing-head h3 {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .design-spacing-head .muted,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .design-spacing-block label small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .design-spacing-block label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .design-spacing-block select {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}

/* 3. Settings Tab: Calendar -> Scope Lock Note & Calendarific (image_e8e3df.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .admin-calendar-scope-note,
  .admin-scope-banner,
  .branch-scope-note,
  .calendarific-settings
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.admin-calendar-scope-note, .admin-scope-banner, .branch-scope-note) b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.admin-calendar-scope-note, .admin-scope-banner, .branch-scope-note) small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .calendarific-clear span {
  color: #cbd5e1 !important;
}

/* 4. Settings Tab: Meetings -> OAuth Status Steps, Manual Drawer, Upload Card (image_e8e0de.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status-grid {
  gap: 12px !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status span {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.warn {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.warn b {
  color: #fde68a !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.warn span {
  color: #fcd34d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.ok {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.ok b {
  color: #a7f3d0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-status.ok span {
  color: #6ee7b7 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell details.oauth-manual {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell details.oauth-manual summary {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-upload-card {
  background: #152236 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-upload-card b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-upload-card input[type=file] {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-callback-card {
  background: #0b1727 !important;
  border: 1px solid #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .oauth-callback-card code {
  background: #152236 !important;
  border-color: #334155 !important;
  color: #93c5fd !important;
}

/* 5. Custom Field Builder: Check Cards, Mandatory/Enabled Toggles, System Badge (image_e8e01e.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.check-card, .compact-check) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.check-card, .compact-check):hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.check-card, .compact-check) b,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.check-card, .compact-check) span {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.check-card, .compact-check) small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .custom-field-admin-card {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .custom-field-admin-card label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .custom-field-admin-card input:not([type="checkbox"]):not([type="radio"]),
html[data-erp-theme="dark"] body.erp-workspace #adminShell .custom-field-admin-card select,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .custom-field-admin-card textarea {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .v150-field-note {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .v150-system-required {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #93c5fd !important;
}

/* 6. Scheduled Reports: Category Tabs, Multi-Select Fieldsets, Scopes & Logs (image_e8dca1.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tabs {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tab {
  color: #94a3b8 !important;
  font-size: 12px !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tab:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-tab.active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .schedule-scope-grid fieldset {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .schedule-scope-grid legend {
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scope-check-list {
  background: #111c2d !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scope-check-list .check {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scope-check-list .check:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .recipient-row input {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-report-card {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-report-card h3 {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-report-card p {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .scheduled-report-card small {
  color: #64748b !important;
}

/* 7. Comprehensive Dark Mode Safety Net Across All Modules */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .sub-panel,
  .inner-card,
  .setting-card,
  .config-card,
  .database-backup-card,
  .database-restore-card,
  .demo-data-card,
  .footer-preview-box,
  .fee-terms-editor
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  select,
  textarea
):not(.floating-chat-compose textarea) {
  background-color: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  select,
  textarea
):focus {
  border-color: #3b82f6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell select option {
  background-color: #111c2d !important;
  color: #f8fafc !important;
}


/* ==========================================================================
   v440 ENTERPRISE SUITE: UNIVERSAL MODULE-WIDE DARK MODE & TEXT CONTRAST ENGINE
   COVERS: HOMEPAGE, PAGES & MENUS, MEDIA GALLERY, FEES REMINDERS,
   BRANCHES, CLASSES & ACADEMIC YEARS, ADD/PROMOTE/EXIT STUDENTS,
   COLLECT PAYMENT, PAYMENT HISTORY, FEE STRUCTURE, OUTSTANDING FEES,
   STAFF DIRECTORY, ADD STAFF, STAFF PROFILES, MOVEMENTS, SEPARATIONS,
   DESIGNATIONS, DEPARTMENTS, RECRUITMENT & HIRING, MASTER TABLE,
   LEAVE SUBSTITUTIONS, PURCHASE REQUESTS, LEARNING RESOURCES,
   HOMEWORK & EXAMINATIONS, INVENTORY/STOCK, WHOLE ATTENDANCE MODULE,
   STAFF LEAVE, STUDENT LEAVE, SALARY STRUCTURE, STAFF LOANS, WHOLE FINANCE MODULE,
   FAQ & KNOWLEDGE BASE TITLE CONTRAST, REPORTS CENTRE METRIC STATS & CONTEXT BANNER
   ========================================================================== */

/* 1. Global Shell & Canvas Darkening Across All Route Sections */
html[data-erp-theme="dark"] body.erp-workspace,
html[data-erp-theme="dark"] body.erp-workspace #adminShell,
html[data-erp-theme="dark"] body.erp-workspace .admin-main,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-main,
html[data-erp-theme="dark"] body.erp-workspace .content-area {
  background: #0b1120 !important;
  color: #f1f5f9 !important;
}

/* 2. Universal Panel, Card & Container Theming Across All 19 Module Groups */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .panel,
  .editor,
  .cards > article,
  .cards > div,
  .metric-card,
  .report-card,
  .record-card,
  .data-card,
  .item-card,
  .list-card,
  .table-card,
  .homepage-workspace-hero,
  .homepage-workspace-summary,
  .homepage-library-panel,
  .homepage-editor-panel,
  .slide-admin-card,
  .program-admin-card,
  .story-admin,
  .future-admin,
  .homepage-copy,
  .homepage-hero-controls,
  .page-builder-panel,
  .page-section-card,
  .page-section-item,
  .pb-card,
  .pb-section-card,
  .page-nav-builder,
  .gallery-album-card,
  .admin-gallery-album-card,
  .album-admin-row,
  .gallery-upload-card,
  .gallery-photo-card,
  .gallery-batch-panel,
  .reminder-card,
  .reminder-log-row,
  .fees-reminder-panel,
  .reminder-config-card,
  .reminder-batch-card,
  .branch-admin-card,
  .branch-card,
  .branch-detail-panel,
  .branch-coverage-card,
  .branch-kpi-card,
  .branch-directory-row,
  .class-admin-card,
  .class-card,
  .class-stream-card,
  .subject-card,
  .academic-year-card,
  .student-form-section,
  .student-live-preview,
  .staff-onboarding,
  .staff-live-preview,
  .promotion-card,
  .promotion-matrix,
  .student-exit-card,
  .exit-clearance-card,
  .exit-request-card,
  .fee-enterprise-panel,
  .fee-summary-cards > div,
  .fee-collect-card,
  .fee-student-card,
  .fee-payment-card,
  .fee-history-card,
  .fee-structure-panel,
  .fee-type-card,
  .fee-discount-card,
  .fee-group-card,
  .unpaid-fee-card,
  .due-report-card,
  .staff-card,
  .staff-grid > article,
  .staff-profile-card,
  .staff-detail-card,
  .movement-card,
  .separation-card,
  .department-card,
  .designation-card,
  .org-node,
  .hr-stat-card,
  .hiring-stage,
  .applicant-card,
  .hiring-candidate-card,
  .job-posting-card,
  .interview-card,
  .substitution-card,
  .period-card,
  .master-table-card,
  .purchase-request-card,
  .procurement-card,
  .rfq-card,
  .po-card,
  .grn-card,
  .vendor-card,
  .resource-card,
  .learning-resource-card,
  .material-card,
  .resource-filter-panel,
  .exam-card,
  .homework-card,
  .lesson-plan-card,
  .exam-question-card,
  .question-builder-panel,
  .saved-question-panel,
  .assessment-card,
  .grading-scale-card,
  .inventory-card,
  .stock-card,
  .asset-card,
  .stock-movement-card,
  .inventory-category-card,
  .attendance-card,
  .attendance-summary-card,
  .attendance-day-box,
  .leave-card,
  .leave-request-card,
  .leave-balance-card,
  .leave-approval-card,
  .student-leave-card,
  .payroll-card,
  .payroll-run-card,
  .payslip-card,
  .salary-structure-card,
  .loan-card,
  .loan-schedule-card,
  .finance-card,
  .finance-kpi-card,
  .account-card,
  .journal-entry-card,
  .expense-card,
  .ledger-card,
  .finance-summary-card,
  .faq-record-card,
  .assistant-record-card,
  .assistant-answer-card,
  .doc-admin-card,
  .post-record-card,
  .announcement-admin-card,
  .table-wrap,
  .data-table-wrap
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

/* 3. Universal High-Contrast Clean White for Headings, Titles & Questions (image_e86f9d.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  h1, h2, h3, h4, h5, h6,
  .panel h1, .panel h2, .panel h3, .panel h4,
  .panel-head h1, .panel-head h2, .panel-head h3,
  .faq-record-main > b,
  .assistant-record-main > b,
  .post-record-main > b,
  .announcement-admin-card summary b,
  .doc-admin-head b,
  .album-admin-copy b,
  .slide-admin-card b,
  .program-admin-card b,
  .branch-card h3,
  .class-card h3,
  .staff-card h3,
  .fee-card h3,
  .inventory-card h3,
  .attendance-card h3,
  .leave-card h3,
  .payroll-card h3,
  .finance-card h3,
  .report-card h3,
  .record-card h3,
  .report-card-copy b,
  .saved-question-panel h3,
  .saved-question-copy b,
  .review-question h3,
  .exam-section-heading h3,
  .exam-setup-panel h3,
  .result-outcome h1,
  .result-metrics b,
  .review-heading h2,
  .page-builder-panel h2,
  .page-builder-panel h3,
  .hiring-stage h3,
  .hiring-candidate-card b,
  .applicant-card b,
  .resource-card h3,
  .material-card b,
  .account-card b,
  .journal-entry-card b,
  .expense-card b,
  .due-report-card b,
  .reminder-card b,
  .stock-card b,
  .asset-card b,
  .report-context-note b,
  .admin-calendar-scope-note b,
  .admin-scope-banner b,
  .branch-scope-note b
) {
  color: #f8fafc !important; /* Pure clean high-contrast white */
}

/* 4. KPI Numbers & Stat Figures Contrast Engine (image_e806c5.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .reports-kpi-card strong,
  .metric-card strong,
  .kpi-card strong,
  .stat strong,
  .hero-year strong,
  .product-kpi-grid strong,
  .settings-kpi-grid strong,
  .lpw-metrics strong,
  .ws-dashboard-kpi strong,
  .homepage-workspace-summary b
) {
  color: #f8fafc !important; /* Fixes dark navy stats like '03' in reports */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .reports-kpi-card small,
  .metric-card small,
  .kpi-card small,
  .stat span,
  .stat small,
  .product-kpi-grid small,
  .settings-kpi-grid small,
  .lpw-metrics small,
  .homepage-workspace-summary small
) {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .reports-kpi-card em,
  .metric-card em,
  .product-kpi-grid em,
  .lpw-metrics em
) {
  color: #64748b !important;
}

/* Reports Centre Branch Context Note (image_e806c5.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .report-context-note {
  background: #152236 !important;
  border: 1px solid #22344d !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .report-context-note b {
  color: #f8fafc !important;
}

/* 5. Subheadings, Descriptions, Paragraphs & Meta Text */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  p,
  .muted,
  .desc,
  .faq-record-main > p,
  .assistant-record-main > p,
  .post-record-main > p,
  .report-card p,
  .record-card p,
  .slide-admin-card p,
  .program-admin-card p
) {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  small,
  .meta,
  .faq-record-main > small,
  .assistant-record-main > small,
  .post-record-main > small,
  .report-card small,
  .record-card small
) {
  color: #94a3b8 !important;
}

/* 6. Eyebrows, Kickers & Category Badges */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .eyebrow,
  .faq-record-kicker,
  .assistant-record-kicker,
  .badge.is-highlighted-count,
  [class*="-kicker"]
) {
  color: #60a5fa !important;
}

/* 7. Comprehensive Table Theming System-Wide */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(table, .data-table, .enterprise-data-table) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(th, thead th) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, tbody td) {
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell tbody tr:hover {
  background: rgba(30, 41, 59, 0.7) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, tbody td) b,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, tbody td) strong {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, tbody td) small,
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(td, tbody td) .muted {
  color: #94a3b8 !important;
}

/* 8. Comprehensive Form Controls, Inputs, Dropdowns & Textareas */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  select,
  textarea
):not(.floating-chat-compose textarea) {
  background-color: #111c2d !important;
  border: 1px solid #22344d !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  select,
  textarea
):focus {
  border-color: #3b82f6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell select option {
  background-color: #111c2d !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell label {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell fieldset {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell legend {
  color: #93c5fd !important;
}

/* 9. Universal Tabs, Subnavs & View Switchers */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .website-module-subnav,
  .homepage-workspace-tabs,
  .workspace-tabs,
  .student-360-tabs,
  .separation-tabs,
  .governance-tabs,
  .config-tabs,
  .module-tabs,
  .tabbar
) {
  background: #152236 !important;
  border-color: #22344d !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .website-module-subnav > a,
  .homepage-workspace-tabs button,
  .workspace-tabs > *,
  .student-360-tabs > *,
  .separation-tabs > *,
  .governance-tabs > *,
  .config-tabs > *,
  .module-tabs > *,
  .tabbar > *
) {
  color: #94a3b8 !important;
  background: transparent !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .website-module-subnav > a:hover,
  .homepage-workspace-tabs button:hover,
  .workspace-tabs > *:hover,
  .student-360-tabs > *:hover,
  .separation-tabs > *:hover,
  .governance-tabs > *:hover,
  .config-tabs > *:hover,
  .module-tabs > *:hover,
  .tabbar > *:hover
) {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .website-module-subnav > a.active,
  .homepage-workspace-tabs button.active,
  .workspace-tabs > *.active,
  .student-360-tabs > *.active,
  .separation-tabs > *.active,
  .governance-tabs > *.active,
  .config-tabs > *.active,
  .module-tabs > *.active,
  .tabbar > *.active
) {
  background: #1e3a5f !important;
  color: #60a5fa !important;
  border-color: #2563eb !important;
}


/* ==========================================================================
   v450 ENTERPRISE SUITE: COMPLETE ZERO-WHITE-BOX DARK MODE ENGINE ACROSS ALL
   39 DOCUMENT SCREENSHOTS, MODULE WORKSPACES, INLINE STYLES, & TEXT CONTRAST
   ========================================================================== */

/* 1. Global Dark Theme Root Variables & Module Page Overrides */
html[data-erp-theme="dark"],
html[data-erp-theme="dark"] body.erp-workspace,
html[data-erp-theme="dark"] #ttw,
html[data-erp-theme="dark"] #subx,
html[data-erp-theme="dark"] .my-enterprise,
html[data-erp-theme="dark"] .progress-cards-v2 {
  --bg: #0b1120 !important;
  --admin-canvas: #0b1120 !important;
  --surface: #111c2d !important;
  --panel: #111c2d !important;
  --card: #152236 !important;
  --line: #22344d !important;
  --border: #22344d !important;
  --text: #f8fafc !important;
  --ink: #f8fafc !important;
  --navy: #f8fafc !important;
  --muted: #cbd5e1 !important;
  --tt-text: #f8fafc !important;
  --tt-muted: #cbd5e1 !important;
  --tt-line: #22344d !important;
  --sx-text: #f8fafc !important;
  --sx-muted: #cbd5e1 !important;
  --sx-border: #22344d !important;
  --ms-ink: #f8fafc !important;
  --ms-muted: #cbd5e1 !important;
  --ms-border: #22344d !important;
  --pc-text: #f8fafc !important;
  --pc-muted: #cbd5e1 !important;
  --pc-border: #22344d !important;
}

html[data-erp-theme="dark"] body.erp-workspace,
html[data-erp-theme="dark"] body.fees-module-page,
html[data-erp-theme="dark"] body.finance-module-page,
html[data-erp-theme="dark"] body.inventory-module-page,
html[data-erp-theme="dark"] body.people-directory-page,
html[data-erp-theme="dark"] body.people-lifecycle-page,
html[data-erp-theme="dark"] body.erp-route-workspace,
html[data-erp-theme="dark"] body.erp-route-polish {
  background: #0b1120 !important;
  color: #f8fafc !important;
}

/* 2. Page 1: Academic Structure Workspace (Classes & Sections) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academic-directory-panel,
  .academic-workspace .academic-kpi,
  .academic-directory-panel .academic-class-card,
  .academic-workspace .academic-class-card,
  .academic-workspace .academic-class-card.current-year,
  .academic-year-row,
  .academic-year-date-editor,
  .class-summary-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academic-directory-panel .academic-search,
  .class-directory-head-tools .academic-search,
  .academic-workspace .academic-class-details > div,
  .academic-class-card .class-attendance-teachers > div,
  .academic-workspace .academic-class-card .class-attendance-teachers > div,
  .academic-workspace .academic-responsibility,
  .attendance-teacher-assignment
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academic-workspace .academic-kpi strong,
  .academic-class-title,
  .academic-year-copy b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academic-workspace .academic-kpi small,
  .academic-workspace .academic-kpi span:not(.academic-kpi-icon),
  .academic-class-meta,
  .academic-year-copy small
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academic-workspace .academic-kpi-icon,
  .academic-card-icon,
  .academic-workspace .academic-class-mark,
  .academic-table-mark
) {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #60a5fa !important;
}

/* 3. Page 2: License Status & Entitlements Matrix */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .license-identity-card,
  .license-health-card,
  .license-entitlements-card,
  .license-integrity-lock-card,
  .license-modules-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .license-key-display,
  .license-limit-grid > div,
  .license-lock-file-pill,
  .license-module,
  .license-module.excluded,
  .license-hero-state,
  .license-renewal-chip,
  .license-module-count,
  .license-module-list span
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .license-key-display b,
  .license-key-display strong,
  .license-key-display code,
  .license-limit-grid strong,
  .license-limit-grid b,
  .license-module b,
  .license-module strong,
  .license-lock-file-pill code,
  .license-lock-file-pill b,
  .license-hero-state b,
  .license-health-list b,
  .license-health-list strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .license-key-display small,
  .license-key-display span,
  .license-limit-grid small,
  .license-limit-grid span:not(.license-limit-icon),
  .license-module small,
  .license-module p,
  .license-module span:not(.license-module-state),
  .license-lock-file-pill small,
  .license-hero-state small,
  .license-health-list span
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .license-key-mark,
  .license-health-icon,
  .license-limit-icon,
  .license-module-state
) {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .license-module em {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6ee7b7 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .capacity-bar {
  background: #1e293b !important;
}

/* 4. Pages 3, 4, 5, 6: Pages & Menus, Media Gallery, Communications, Fee Reminder Rules */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .pages-admin-item,
  .page-menu-check,
  .page-legacy-content,
  .page-legacy-content > summary,
  .page-builder-add,
  .page-builder-empty,
  .page-command-panel,
  .pb-editor-block,
  .pb-link-editor-row,
  .pb-stat-row,
  .pb-table-row-editor
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .pages-admin-item.active,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .pages-admin-item:hover {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .pages-admin-item b,
  .pages-admin-item strong,
  .page-menu-check,
  .page-menu-check span,
  .page-legacy-content summary,
  .page-builder-add b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .pages-admin-item small {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .gallery-limits-banner,
  .gallery-upload-settings,
  .gallery-cover-manager,
  .gallery-cover-preview,
  .gallery-dropzone,
  .gallery-file-summary,
  .gallery-upload-progress,
  .album-admin-empty
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .gallery-limit-grid span,
  .gallery-batch-meta > span,
  .gallery-selected-files > span,
  .gallery-capacity-mini
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .gallery-limits-banner h3,
  .gallery-limit-grid b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .gallery-limits-banner p,
  .gallery-limits-banner small,
  .gallery-limit-grid small
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .channel-picker label,
  .editor form .grid2 > .check,
  .editor form .check,
  .comm-audience-card,
  .comm-compose-panel,
  .provider-block,
  .notification-queue-card,
  .notification-row
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .channel-picker label span,
  .channel-picker label b,
  .editor form .grid2 > .check,
  .editor form .check
) {
  color: #f8fafc !important;
}

/* 5. Page 7: Branches (Directory, Actions, Map Card & GPS Form) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-map-card,
  .v157-branches .branch-map-card,
  .branch-map-empty,
  .v157-branches > .panel.editor .advanced-settings,
  .advanced-settings
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-map-card-head,
  .v157-branches .branch-map-card-head,
  .branch-map-pin-bar
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-map-card-head h4,
  .branch-map-pin-bar b,
  .v146-branches .branch-detail-grid strong,
  .v157-branches .branch-detail-grid strong,
  .branch-view-details strong,
  .branch-view-details b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-map-card-head small,
  .branch-map-pin-bar span,
  .v146-branches .branch-detail-grid small,
  .v157-branches .branch-detail-grid small,
  .branch-view-details small
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .v146-branches .branch-detail-icon,
  .v157-branches .branch-detail-icon
) {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .branch-action-map,
  .branch-action-edit,
  .branch-action-status,
  .branch-action-view,
  .v146-branches .branch-directory-actions .branch-map-action,
  .v146-branches .branch-directory-actions .branch-action-map,
  .v146-branches .branch-directory-actions .branch-action-edit,
  .v146-branches .branch-directory-actions .branch-action-status,
  .v146-branches .branch-directory-actions .branch-view-toggle,
  .v146-branches .branch-directory-actions .branch-text-action
) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .v146-branches .branch-action-delete,
  .v146-branches .branch-directory-actions .branch-action-delete,
  .v146-branches .branch-directory-actions .branch-action-status.danger
) {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fca5a5 !important;
}

/* 6. Pages 8 & 20: Student & Staff Onboarding (Footer Action Bar, Preview Progress, Badges) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .student-onboarding-actions,
  .student-preview-progress,
  .student-review-grid article,
  .student-scope-note,
  .student-review-note,
  .student-photo-upload,
  .student-scope-bar
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .student-preview-progress b,
  .student-preview-progress strong,
  .student-onboarding-actions span,
  .student-scope-pill,
  .student-preview-status
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .student-preview-status {
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fde68a !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .student-scope-pill {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .student-preview-progress small {
  color: #cbd5e1 !important;
}

/* 7. Pages 9, 10, 21, 22, 23: Student Promotion, Student Exit, Staff Directory, Movements, Separation */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav,
  .ws-module-aside,
  body.people-lifecycle-page #adminShell .ws-module-aside,
  body.finance-route-transport_expenses #adminShell .ws-module-aside,
  .config-sidebar,
  .leave-workspace > .config-sidebar,
  .fees-workspace .config-sidebar,
  .promotion-setup,
  .promotion-student-section,
  .promotion-target-layout > section,
  .promotion-summary,
  .workflow-history,
  .workflow-editor,
  .workflow-list-section,
  .promo-step-card,
  .movement-preview,
  .selected-person,
  .current-assignment dl > div,
  .promotion-route,
  .promotion-review,
  .promotion-review-route,
  .promotion-review > footer,
  .workflow-pagination,
  .student-exit-main > .panel,
  .student-exit-history-card,
  .student-exit-student-card,
  .student-exit-request-card,
  .separation-directory-panel,
  .separation-detail-panel,
  .separation-fnf-panel,
  .separation-record-card,
  .separation-staff-card,
  .separation-permission-card,
  .approval-decision-panel,
  .fnf-gross-hint,
  .fnf-total-bar > div,
  .locked-record-banner
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .promo-step-card,
  .movement-preview,
  .selected-person,
  .current-assignment dl > div,
  .promotion-route,
  .fnf-total-bar > div
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav a,
  .ws-module-nav a,
  .config-sidebar .config-nav-item,
  .config-nav-item
) {
  color: #cbd5e1 !important;
  background: transparent !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav a:hover,
  .ws-module-nav a:hover,
  .config-sidebar .config-nav-item:hover,
  .config-nav-item:hover
) {
  background: #152236 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav a.active,
  .ws-module-nav a.active,
  body.people-lifecycle-page #adminShell .ws-module-nav a.active,
  body.finance-route-transport_expenses #adminShell .ws-module-nav > a.active,
  .config-sidebar .config-nav-item.active,
  .config-nav-item.active
) {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav a b,
  .workflow-side-nav a strong,
  .ws-module-nav a b,
  .ws-module-nav a strong,
  .config-nav-item b,
  .config-nav-item strong,
  .promotion-setup h2,
  .promotion-setup h3,
  .workflow-editor h2,
  .workflow-editor h3,
  .workflow-history h2,
  .workflow-history h3,
  .workflow-form-section h3,
  .promo-step-card b,
  .promo-step-card strong,
  .movement-preview b,
  .movement-preview strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .workflow-side-nav a small,
  .ws-module-nav a small,
  .config-nav-item small,
  .promo-step-card small,
  .promo-step-card span:not(.promo-step-num),
  .promotion-setup p,
  .workflow-editor p,
  .workflow-history p
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .workflow-head-stat.is-pending-highlight {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fde68a !important;
}

/* Staff Profiles / Directory (Page 21) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .people-directory-tools,
  .people-results,
  .people-data-header,
  .people-pagination,
  .people-bulk-bar,
  .people-drawer > aside,
  .people-csv-upload [data-csv-dropzone],
  .people-file-selected,
  .people-import-progress,
  .csv-preview-panel,
  .csv-preview-panel > .panel-head,
  .csv-preview-panel > .form-actions,
  .staff-kpi-grid > article,
  body.erp-workspace #adminShell .enterprise-main .staff-kpi-grid > article,
  .staff-profile-searchbar,
  .staff-profile-tabs,
  body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .people-directory-search,
  .people-data-row:not(.people-data-header):hover,
  .people-data-row.is-selected,
  .people-more > div,
  .csv-preview-summary > span,
  .staff-profile-tabs a.active,
  body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a.active
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .people-data-row,
  .people-data-row b,
  .people-data-row strong,
  .staff-kpi-grid strong
) {
  color: #f8fafc !important;
  border-color: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .people-data-row small,
  .people-data-row span:not(.people-status):not(.people-avatar-fallback),
  .staff-kpi-grid small,
  .staff-kpi-grid span
) {
  color: #cbd5e1 !important;
}

/* 8. Pages 11 - 19: Collect Fee, Payment History, Fees Setup (All 7 Tabs), Outstanding Fees */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body.fees-module-page .panel,
  .fees-module-page .panel,
  .fees-module-page .filters,
  .fees-module-page .fee-collector-selector,
  .fee-collector-selector,
  .fee-toolbar-inline,
  .fee-kpi-strip article,
  body.erp-workspace #adminShell .enterprise-main .fee-kpi-strip article,
  .fee-account-summary article,
  .payment-entry-card,
  .fee-payment-lines .fee-pay-line,
  .fee-pay-line,
  .fee-plan-card,
  .fees-workspace .fee-plan-card,
  .fee-component-row,
  .fees-workspace .fee-component-row,
  .fee-term-context,
  .fee-term-row,
  .fee-term-summary article,
  .fee-term-progress-grid article,
  .fee-discount-workspace,
  .fee-discount-workspace > .panel-head,
  .discount-enterprise-summary,
  .discount-stat,
  .discount-policy-card,
  .discount-create-form,
  .manual-discount-form,
  .discount-role-option,
  .fee-global-note,
  .fee-gateway-note,
  .gateway-provider-card,
  .fee-brand-scope,
  .fee-scope-banner,
  .fees-scope-banner,
  .payment-method-row,
  .fee-receipt-header-upload,
  .optional-fee-box,
  .optional-optin-card,
  .optional-optin-student-row
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .fee-plan-card,
  .fee-component-row,
  .fees-workspace .fee-component-row,
  .discount-stat,
  .discount-policy-card,
  .payment-method-row,
  .gateway-provider-card,
  .fee-brand-scope,
  .fee-term-context,
  .fee-global-note
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-gateway-note {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-workflow-steps .is-current {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .fee-workflow-steps .is-current b,
  .fee-workflow-steps .is-current strong,
  .fee-plan-card b,
  .fee-plan-card strong,
  .fee-plan-card h3,
  .fee-plan-card h4,
  .payment-method-row b,
  .payment-method-row strong,
  .gateway-provider-card h3,
  .gateway-provider-card h4,
  .gateway-provider-card b,
  .gateway-provider-card strong,
  .discount-stat strong,
  .discount-stat b,
  .fee-discount-workspace > .panel-head h2,
  .fee-discount-workspace > .panel-head h3,
  .fee-kpi-strip strong,
  .fee-kpi-strip b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .fee-workflow-steps .is-current small,
  .fee-workflow-steps .is-current span,
  .fee-plan-card small,
  .fee-plan-card p,
  .fee-plan-card span:not(.badge):not(.status-pill),
  .payment-method-row small,
  .payment-method-row span,
  .gateway-provider-card p,
  .gateway-provider-card small,
  .discount-stat small,
  .discount-stat span,
  .fee-discount-workspace > .panel-head p,
  .fee-kpi-strip small,
  .fee-kpi-strip span:not(.fee-kpi-symbol)
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .gateway-state.not-ready {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

/* 9. Pages 24, 25, 26: Departments, Designations & Hiring */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-count,
  .hr-master-kpis article,
  .hr-master-tools > section,
  .hr-master-directory,
  .hr-master-filter,
  .hr-master-upload,
  .hr-master-edit-panel,
  .hr-master-create,
  .hr-master-template-card,
  .dept-directory,
  .dept-create,
  .dept-kpi,
  .dept-record,
  .hiring-kpi-grid > article,
  body.erp-workspace #adminShell .enterprise-main .hiring-kpi-grid > article,
  body.product-route-hiring #adminShell .enterprise-main .staff-kpi-grid > article,
  .interview-card,
  .interview-provider-note,
  .convert-staff-box
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-upload,
  .hr-master-filter,
  .interview-card
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-kpis strong,
  .hr-master-count strong,
  .hr-master-count b,
  .hr-master-tools h2,
  .hr-master-tools h3,
  .hr-master-directory h2,
  .hr-master-directory h3,
  .hiring-kpi-grid strong,
  .hiring-kpi-copy strong,
  .hiring-kpi-copy b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-kpis small,
  .hr-master-kpis span:not([class*="is-"]),
  .hr-master-tools p,
  .hr-master-tools small,
  .hr-master-directory p,
  .hr-master-directory small,
  .hiring-kpi-grid small,
  .hiring-kpi-copy small,
  .hiring-kpi-copy span
) {
  color: #cbd5e1 !important;
}

/* 10. Pages 27 & 28: Substitutions (#subx), Timetable (#ttw) & My Schedule (.my-enterprise) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  #subx,
  #subx .sx-head,
  #subx .sx-datebar,
  #subx .sx-summary,
  #subx .sx-table-wrap,
  #subx .sx-empty,
  #subx .sx-note-bar,
  #ttw,
  #ttw .ttw-head,
  #ttw .ttw-kpis,
  #ttw .ttw-main,
  #ttw .ttw-sidebar,
  .ttw-week-wrap,
  .ttw-month-wrap,
  .ttw-year-card,
  .ttw-year-summary-card,
  .ttw-drawer-panel,
  .ttw-conflict-table-wrap,
  .ttw-conflict-empty,
  .my-enterprise,
  .my-enterprise .ms-header,
  .my-enterprise .ms-toolbar,
  .my-enterprise .ms-kpis,
  .my-enterprise .ms-calendar,
  .my-enterprise .ms-day,
  .my-enterprise .ms-footer,
  .my-modal-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  #subx .sx-stat,
  #subx .sx-year,
  #subx .sx-nav-btn,
  #subx .sx-current,
  #subx .sx-clear,
  #ttw .ttw-kpi,
  .ttw-view-tabs,
  .ttw-year-context,
  .ttw-corner,
  .ttw-day-head,
  .ttw-period,
  .ttw-cell,
  .ttw-cell.empty,
  .ttw-month-head,
  .ttw-day,
  .ttw-day.muted,
  .ttw-help,
  .ttw-topic-banner,
  .ttw-import-file,
  .ttw-import-file-enterprise,
  .ttw-import-overview-card,
  .ttw-import-branch-note,
  .ttw-import-requirement,
  .ttw-period-row,
  .my-enterprise .ms-kpi,
  .my-enterprise .ms-day-head,
  .my-enterprise .ms-slot,
  .my-enterprise .ms-slot.free,
  .my-enterprise .ms-branch-card,
  .my-context-item
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .ttw-day-head.today,
  .my-enterprise .ms-day.today .ms-day-head,
  .ttw-side-nav a.active
) {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  #subx .sx-head h2,
  #subx .sx-head h3,
  #subx .sx-stat strong,
  #subx .sx-stat b,
  #subx .sx-empty b,
  #subx .sx-empty strong,
  #ttw .ttw-head h2,
  #ttw .ttw-head h3,
  #ttw .ttw-kpi strong,
  #ttw .ttw-kpi b,
  .ttw-day-head b,
  .ttw-day-head strong,
  .ttw-period b,
  .ttw-period strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  #subx .sx-head p,
  #subx .sx-stat small,
  #subx .sx-stat span:not(.sx-stat-icon),
  #subx .sx-datebar span,
  #subx .sx-empty p,
  #ttw .ttw-head p,
  #ttw .ttw-kpi small,
  #ttw .ttw-kpi span:not(.ttw-kpi-icon),
  .ttw-day-head small,
  .ttw-day-head span,
  .ttw-period small,
  .ttw-period span
) {
  color: #cbd5e1 !important;
}

/* 11. Page 29: Purchase Requests & Procurement */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .proc-form-section,
  .proc-item-row,
  .proc-filter,
  .proc-actions-bar,
  .budget-card,
  .quote-card,
  .vendor-card,
  .grn-line,
  .match-grid > div
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .proc-form-section h3,
  .proc-form-section h4,
  .proc-form-section b,
  .proc-form-section strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .proc-editor .proc-item-row [data-remove-proc-item],
  .proc-item-row [data-remove-proc-item]
) {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fca5a5 !important;
}

/* 12. Pages 30, 31, 32, 33: Learning Resources (Textbooks, Question Papers, Admin, Boards) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .learning-hero,
  .learning-kpi,
  .learning-card,
  .learning-help,
  .learning-tabs,
  .book-row,
  .lr-summary-card,
  .lr-dash-side,
  .lr-result-box,
  .lr-mode-card,
  .lr-mode-card.central,
  .lr-mode-card.state,
  .lr-filter-panel,
  .lr-qp-filter-panel,
  .lr-side-card,
  .lr-right-card,
  .lr-info,
  .lr-result-table,
  .lr-states-panel,
  .lr-state-chip,
  .lr-bottom-bar,
  .lr-pagination,
  .lr-admin-hero,
  .lr-admin-switch,
  .lr-admin-toolbar,
  .lr-admin-directory,
  .lr-admin-editor-card,
  .lr-admin-chapter-card,
  .lr-admin-pagination,
  .lr-qp-sync-card,
  .lr-sync-status,
  .lr-board-hero,
  .lr-board-kpi,
  .lr-board-panel,
  .lr-board-editor,
  .lr-access-card,
  .lr-board-help,
  .lr-note,
  .admin-table-wrap
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-mode-card,
  .lr-mode-card.central,
  .lr-mode-card.state,
  .lr-sync-status,
  .lr-board-kpi,
  .lr-state-chip,
  .lr-note,
  .lr-board-help,
  .lr-bottom-bar
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-mode-card b,
  .lr-mode-card strong,
  .lr-mode-card h3,
  .lr-admin-hero h2,
  .lr-admin-hero h3,
  .lr-board-hero h2,
  .lr-board-hero h3,
  .lr-admin-directory-head h2,
  .lr-admin-directory-head h3,
  .lr-board-panel-head h2,
  .lr-board-panel-head h3,
  .lr-board-editor-head h2,
  .lr-board-editor-head h3,
  .lr-result-head h2,
  .lr-result-head h3,
  .lr-sync-status b,
  .lr-sync-status strong,
  .lr-board-kpi strong,
  .lr-board-kpi b,
  .lr-board-name,
  .lr-admin-book-title,
  .book-title
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-mode-card small,
  .lr-mode-card span:not(.lr-mode-icon),
  .lr-admin-hero p,
  .lr-board-hero p,
  .lr-admin-directory-head p,
  .lr-board-panel-head p,
  .lr-board-editor-head p,
  .lr-sync-status small,
  .lr-sync-status span,
  .lr-board-kpi small,
  .lr-board-kpi span,
  .lr-class-link,
  .lr-popular a,
  .lr-quick a
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-class-link.active,
  .lr-class-link:hover,
  .lr-popular a:hover,
  .lr-popular a.active,
  .learning-tabs a.active
) {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-count,
  .lr-official-chip,
  .lr-type
) {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-table tr,
  .lr-admin-enterprise-table tr,
  .lr-board-table tr
) {
  background: #111c2d !important;
  border-color: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lr-table th,
  .lr-admin-enterprise-table th,
  .lr-board-table th
) {
  background: #152236 !important;
  color: #cbd5e1 !important;
  border-color: #22344d !important;
}

/* 13. Page 34: Academics (Homework, Examinations, Results & Reset) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body[data-section="academics"] .academics-tabs > a,
  .academics-tabs > a,
  .academics-tabs a,
  body[data-section="academics"] .academics-result-kpis > article,
  .academics-result-kpis > article,
  body[data-section="academics"] .academics-result-filter,
  .academics-result-filter,
  .academics-session-card,
  .academics-workspace > .panel,
  .academics-question-help,
  .exam-question-type-control,
  .question-builder-panel,
  .question-builder-panel .academic-objective-field,
  .saved-question-row,
  .review-question,
  .review-option,
  .result-metrics,
  .submitted-writing,
  .reference-answer,
  .answer-feedback
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body[data-section="academics"] .academics-tabs > a.active,
  .academics-tabs > a.active,
  .academics-tabs a.active
) {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academics-tabs a b,
  .academics-tabs a strong,
  .academics-result-kpis strong,
  .academics-result-kpis b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .academics-tabs a small,
  .academics-tabs a span,
  .academics-result-kpis small,
  .academics-result-kpis span
) {
  color: #cbd5e1 !important;
}

/* 14. Pages 35 & 36: Inventory / Stock */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .inventory-session-card,
  body.inventory-module-page .inventory-command-tabs,
  .inventory-command-tabs,
  .inventory-kpi-card,
  body.inventory-module-page .panel,
  .inventory-filter-toolbar,
  .inventory-empty-visual
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .inventory-kpi-card,
  .inventory-filter-toolbar,
  .inventory-session-card
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .inventory-kpi-card strong,
  .inventory-kpi-card b,
  .inventory-session-card strong,
  .inventory-session-card b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .inventory-kpi-card small,
  .inventory-kpi-card span:not(.inventory-kpi-icon),
  .inventory-session-card small,
  .inventory-session-card span
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .inventory-command-tabs > a.active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}

/* 15. Pages 37, 38, 39, 40: Attendance, Student Attendance, Biometric / eSSL */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-quick-actions a,
  .health-item,
  .attendance-active-method,
  .session-lock-card,
  .session-lock-card.locked,
  .attendance-policy-alert,
  .attendance-policy-alert.locked,
  .attendance-policy-alert.holiday,
  .locked-correction-request,
  .locked-correction-request > summary,
  .attendance-policy-card,
  .attendance-save-bar,
  .attendance-student-row,
  .bulk-exception-bar
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-quick-actions a:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-quick-actions a b,
  .hr-quick-actions a strong,
  .health-item b,
  .health-item strong,
  .attendance-policy-alert b,
  .attendance-policy-alert strong,
  .locked-correction-request summary,
  .hr-score-ring strong,
  .attendance-donut strong,
  .donut strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-quick-actions a small,
  .hr-quick-actions a span:not(:first-child),
  .health-item small,
  .attendance-policy-alert span,
  .session-lock-card small,
  .session-lock-card span,
  .hr-score-ring span,
  .attendance-donut small
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-score-ring:after,
  .attendance-donut:before,
  .donut:before
) {
  background: #111c2d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .session-lock-card.locked strong {
  color: #f87171 !important;
}

/* 16. Pages 41, 42, 43: Leave Workspace, Salary Structure & Profiles, Staff Loans */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body[data-section="leave"] .leave-workspace > .config-sidebar,
  body[data-section="leave"] .workspace-panel,
  body[data-section="leave"] .leave-request-row,
  body[data-section="leave"] .leave-approval-card,
  body[data-section="leave"] .leave-approval-card > summary,
  body[data-section="student_leave"] .student-leave-tabs > a,
  body[data-section="student_leave"] .student-leave-workspace,
  .student-leave-record.pending,
  .student-leave-decision-note,
  .enterprise-payslip-list .rowcard,
  .payroll-enterprise-shell .rowcard,
  .rowcard,
  .payroll-card,
  .payroll-card-disabled,
  .payroll-card-disabled > summary,
  .payroll-stat,
  .payroll-stat-active,
  .payroll-stat-disabled,
  .payroll-stat-total,
  .payroll-scope-banner,
  .payroll-status-callout,
  .process-payroll-enterprise,
  .loan-installment-preview
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-payslip-list .rowcard b,
  .rowcard b,
  .rowcard strong,
  .loan-installment-preview span,
  .loan-installment-preview strong,
  .loan-installment-preview b,
  .payroll-name-line > b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-payslip-list .rowcard small,
  .rowcard small,
  .payroll-stat span
) {
  color: #cbd5e1 !important;
}

/* 17. Pages 44 - 51: Finance Module & Transport Expense Workspace */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .finance-session-card,
  body.finance-module-page .finance-shortcuts a,
  .finance-shortcuts a,
  body.finance-module-page .finance-section-tabs,
  .finance-section-tabs,
  body.finance-module-page .finance-metric-card,
  .finance-metric-card,
  body.finance-module-page .finance-scope-inline,
  body.finance-module-page .finance-surface,
  .finance-surface,
  body.finance-module-page .finance-scope-banner,
  .finance-scope-banner,
  body.finance-module-page .finance-total-row > *,
  .finance-result-card,
  .finance-comparison-track,
  .finance-period-badge,
  body.finance-route-transport_expenses .transport-tabs,
  .transport-tabs,
  .transport-kpis article,
  .transport-expense-hero .hero-metric,
  .hero-metric,
  body.finance-route-transport_expenses .empty-state,
  .empty-state,
  .transport-filter-form,
  .transport-report-filter,
  .transport-vehicle-list article,
  .transport-role-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body.finance-module-page .finance-shortcuts a,
  .finance-shortcuts a,
  body.finance-module-page .finance-metric-card,
  .finance-metric-card,
  .finance-session-card,
  .finance-result-card,
  .finance-scope-banner,
  .transport-kpis article,
  body.finance-route-transport_expenses .empty-state,
  .empty-state
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .finance-shortcuts a b,
  .finance-shortcuts a strong,
  .finance-metric-card strong,
  .finance-metric-card b,
  .finance-session-card strong,
  .finance-session-card b,
  .finance-result-card strong,
  .finance-result-card b,
  .finance-scope-banner b,
  .finance-scope-banner strong,
  .transport-kpis article strong,
  .transport-kpis article b,
  .hero-metric strong,
  .empty-state b,
  .empty-state strong,
  .empty-state h3,
  .empty-state h4
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .finance-shortcuts a small,
  .finance-shortcuts a span,
  .finance-metric-card small,
  .finance-metric-card span:not(.finance-metric-icon),
  .finance-session-card small,
  .finance-session-card span,
  .finance-result-card small,
  .finance-result-card span,
  .finance-scope-banner small,
  .finance-scope-banner p,
  .transport-kpis article small,
  .transport-kpis article span,
  .hero-metric span,
  .empty-state p,
  .empty-state small,
  .empty-state span
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  body.finance-route-transport_expenses .transport-overview-grid .panel-head .btn,
  body.finance-route-transport_expenses .transport-recent .panel-head .btn,
  .finance-period-badge
) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* 18. Pages 52 - 55: Users & Access, Access Roles, Custom Roles, Module Availability */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .access-kpi,
  .access-filterbar,
  .access-scope-strip,
  .access-table-wrap,
  .access-table-footer,
  .user-admin-drawer,
  .user-admin-drawer > header,
  .drawer-form-section,
  .drawer-security-note,
  .user-drawer-footer,
  .governance-header-scope,
  .enterprise-access-tabs > a,
  .governance-role-list,
  .governance-editor,
  .module-governance-panel,
  .governance-role-item,
  .custom-role-quick-create,
  .permission-overview,
  .permission-commandbar,
  .permission-policy-note,
  .enterprise-permission-group,
  .role-assigned-users,
  .role-assigned-users > summary,
  .module-filterbar,
  .enterprise-module-governance .module-toggle-card,
  .module-toggle-card,
  .user-branch-access-box,
  .role-branch-access-panel,
  .branch-access-option,
  .role-user-access-card
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .access-filterbar,
  .access-scope-strip,
  .governance-header-scope,
  .governance-role-item,
  .custom-role-quick-create,
  .permission-overview,
  .permission-commandbar,
  .permission-policy-note,
  .module-filterbar,
  .enterprise-module-governance .module-toggle-card,
  .module-toggle-card
) {
  background: #152236 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-access-tabs > a.active,
  .governance-role-item.active
) {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .access-filterbar b,
  .access-filterbar strong,
  .access-scope-strip b,
  .access-scope-strip strong,
  .governance-header-scope b,
  .governance-header-scope strong,
  .governance-role-item b,
  .governance-role-item strong,
  .permission-overview b,
  .permission-overview strong,
  .module-toggle-card b,
  .module-toggle-card strong,
  .enterprise-permission-group h3,
  .enterprise-permission-group h4,
  .enterprise-permission-check span,
  .enterprise-permission-check b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .access-filterbar small,
  .access-filterbar span,
  .access-scope-strip small,
  .access-scope-strip span,
  .governance-header-scope small,
  .governance-header-scope span,
  .governance-role-item small,
  .governance-role-item span,
  .permission-overview small,
  .permission-overview span,
  .permission-policy-note,
  .module-toggle-card small,
  .module-toggle-card p
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .access-role-badge {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* 19. Universal Dark Mode Text Legibility Engine (Eliminates Unreadable Grey Text) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  p,
  .muted,
  small,
  .meta,
  .desc,
  .table-subtext,
  label,
  legend,
  dt,
  .eyebrow + p
) {
  color: #cbd5e1 !important; /* Bright Slate-300 instead of dim unreadable grey */
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  h1, h2, h3, h4, h5, h6,
  strong,
  b,
  dd,
  th,
  td b,
  td strong,
  .panel-head h2,
  .panel-head h3
):not(.btn):not(.badge):not(.status-pill) {
  color: #f8fafc !important; /* Pure crisp white */
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  input::placeholder,
  textarea::placeholder
) {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

/* Secondary / Ghost / Default Buttons in Dark Mode */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .btn:not(.primary):not(.danger):not(.success) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .btn:not(.primary):not(.danger):not(.success):hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}


/* ==========================================================================
   v460 ENTERPRISE SUITE: TARGETED FIXES FOR ALL 10 SCREENSHOTS & HOVER STATES
   1. Attendance Today & Attendance Overview Donut Pseudo-Elements (::after / ::before)
   2. Timetable Date Label Contrast (.ttw-date-label)
   3. Active / Inactive Status Pills in Tables & Directories (.hr-master-status, .status-pill)
   4. Staff Profiles Directory Header Count, Search Bar, Metric Cards & Table Rows (.staff-profiles-directory)
   5. Staff Movements Step 3 Panel, From/To Pills & Pagination Count Badge (.step-card, .from-pill, .to-pill)
   6. Fee Paid & Outstanding Fees Filter Toolbar (.fee-enterprise-toolbar)
   7. Homepage Vision & Mission Cards & File Upload Pickers (.home-story-card, .home-file-picker)
   8. Custom Roles & Access Roles Hover, Active Selection & Inline Role Rename Card (.governance-role-item, .enterprise-inline-edit)
   ========================================================================== */

/* 1. Attendance Today & Attendance Overview Donuts (image_e63cae.png & image_e63c6f.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-score-ring {
  background: conic-gradient(#3b82f6 calc(var(--score, 0) * 1%), #1e293b 0) !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-score-ring::after,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .attendance-donut::before,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .donut::before {
  background: #111c2d !important;
  box-shadow: inset 0 0 0 1px #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-score-ring > div,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .attendance-donut > div,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .donut > div {
  position: relative !important;
  z-index: 2 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-score-ring strong,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .attendance-donut strong,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .donut strong {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-score-ring span,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .attendance-donut small,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .donut small {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .hr-progress {
  background: #1e293b !important;
}

/* 2. Timetable Date Range Label & Toolbar Buttons (image_e638ec.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  #ttw .ttw-date-label,
  .ttw-date-label,
  #ttw .ttw-datebar strong,
  #ttw .ttw-datebar b,
  #ttw .ttw-datebar span,
  #subx .sx-datebar strong,
  #subx .sx-datebar b
) {
  color: #f8fafc !important;
}

/* 3. Active & Inactive Status Pills in Tables (image_e635e0.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-status.is-active,
  .staff-directory-status.active,
  .people-status.is-active,
  .product-status.is-active,
  .access-status-pill.active,
  .status-pill.active,
  .status-pill.ok,
  .status-pill.present,
  .lr-admin-status.active,
  .lr-board-status.active
) {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .hr-master-status.is-inactive,
  .staff-directory-status.inactive,
  .people-status.is-neutral,
  .product-status:not(.is-active),
  .access-status-pill.inactive,
  .status-pill.inactive,
  .lr-admin-status.inactive,
  .lr-board-status.inactive
) {
  background: rgba(148, 163, 184, 0.16) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #e2e8f0 !important;
}

/* 4. Staff Profiles & Student Documents Directory (image_e63588.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .staff-profiles-directory,
  .people-documents-directory
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .people-doc-header-count,
  .staff-profiles-directory .people-doc-header-count,
  .people-documents-directory .people-doc-header-count,
  .module-hero.people-doc-compact-header .people-doc-header-count,
  .staff-profiles-directory .people-directory-tools,
  .people-documents-directory .people-directory-tools,
  .people-doc-toolbar,
  .staff-profile-searchbar.people-doc-toolbar,
  .people-doc-metrics,
  .people-doc-metric,
  .staff-profiles-directory .people-doc-metric,
  .people-documents-directory .people-doc-metric,
  .people-data-table,
  .people-doc-directory-panel,
  .staff-profiles-directory .staff-profile-directory,
  .people-documents-directory .student-profile-directory,
  .people-doc-pagination
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .people-doc-metric,
  .staff-profiles-directory .people-doc-metric,
  .people-documents-directory .people-doc-metric,
  .people-doc-header-count,
  .staff-profiles-directory .people-doc-header-count,
  .people-documents-directory .people-doc-header-count,
  .people-doc-view-toggle
) {
  background: #152236 !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .people-doc-view-toggle button {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .people-doc-view-toggle button.active {
  background: #2563eb !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .people-doc-table-head,
  .staff-profiles-head,
  .student-documents-head,
  .staff-profiles-directory .people-doc-table-head,
  .people-documents-directory .people-doc-table-head
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .staff-directory-card,
  .student-directory-card,
  .staff-profiles-directory .staff-directory-card,
  .people-documents-directory .student-directory-card,
  .staff-profile-directory.is-card-view .staff-directory-card,
  .student-profile-directory.is-card-view .student-directory-card,
  .staff-profiles-directory .staff-profile-directory.is-card-view .staff-directory-card
) {
  background: #111c2d !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .staff-directory-card:hover,
  .student-directory-card:hover,
  .staff-profiles-directory .staff-directory-card:hover,
  .people-documents-directory .student-directory-card:hover
) {
  background: #17253b !important;
  border-color: #3b82f6 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .staff-profiles-directory .staff-person-cell b,
  .staff-profile-directory .staff-person-cell b,
  .staff-profiles-directory .staff-assignment-cell b,
  .staff-profile-directory .staff-assignment-cell b,
  .student-directory-copy > b,
  .people-doc-metric strong,
  .people-doc-header-count strong,
  .module-hero.people-doc-compact-header .people-doc-header-count strong
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .staff-profiles-directory .staff-id-cell,
  .staff-profile-directory .staff-id-cell,
  .staff-profiles-directory .staff-assignment-cell small,
  .staff-profile-directory .staff-assignment-cell small,
  .student-directory-copy > small,
  .people-doc-metric small,
  .people-doc-header-count small,
  .module-hero.people-doc-compact-header .people-doc-header-count small
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .student-directory-avatar,
  .staff-directory-avatar,
  .staff-profiles-directory .staff-profile-identity-cell .staff-directory-avatar
) {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #93c5fd !important;
}

/* 5. Staff Movements Step 3 Panel, From/To Transition Pills & Pagination Badge (image_e63549.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-composer-grid > .step-card,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-composer-grid > .step-card:last-child,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .step-summary-card {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-composer-grid .staff-picker {
  background: #0f172a !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-composer-grid .staff-picker option:checked,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-composer-grid .staff-picker option:hover {
  background: #1e3a5f !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-table .from-pill,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .change-cell .from-pill {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .staff-movement-table .to-pill,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .change-cell .to-pill {
  background: rgba(37, 99, 235, 0.22) !important;
  border: 1px solid rgba(96, 165, 250, 0.4) !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main :is(
  .is-highlighted-count,
  .panel-head > .badge,
  .panel-head > .soft-count,
  .count-pill,
  .tab-count,
  .count-inline-badge,
  .fee-scope-badge
) {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

/* 6. Fee Paid / Payment History & Outstanding Fees Filter Toolbar (image_e634cb.png & image_e63204.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .fee-enterprise-toolbar,
  .fees-paid-enterprise-panel .fee-enterprise-toolbar,
  .fee-enterprise-panel .fee-enterprise-toolbar
) {
  background: #152236 !important;
  border-bottom-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-filter-grid label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(.fee-ref-receipt, .fee-ref-txn) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-method-badge.is-other {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fde68a !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-method-badge.is-upi,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-method-badge.is-online {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  color: #ddd6fe !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .fee-method-badge.is-cash {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}

/* 7. Homepage Vision & Mission Story Cards & File Upload Pickers (image_e62e05.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .story-admin-grid > .home-story-card,
  .home-story-card,
  .story-admin-grid > div
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .home-file-picker,
  .home-current-image,
  .home-record-placeholder
) {
  background: #152236 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .home-file-picker:hover,
  .home-file-picker:focus-within
) {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .home-file-icon,
  .home-file-browse
) {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .home-story-card h3,
  .home-upload-label b,
  .home-file-picker b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .home-upload-label small,
  .home-file-picker small,
  .home-upload-field small
) {
  color: #cbd5e1 !important;
}

/* 8. Custom Roles & Access Roles Hover, Active Selection & Role Rename Card (image_e62d66.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-inline-edit,
  .role-create-form
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-inline-edit label > span,
  .role-create-form label > span
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .governance-role-item {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .governance-role-item:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .governance-role-item.active,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .governance-role-item.active:hover {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  box-shadow: inset 3px 0 0 #60a5fa !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .governance-role-item .role-avatar,
  .role-avatar-large
) {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .governance-role-item.active .role-avatar {
  background: #2563eb !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .governance-role-item em,
  .governance-role-item .role-kind
) {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .governance-role-item.active em,
  .governance-role-item:hover em
) {
  background: rgba(37, 99, 235, 0.3) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .enterprise-permission-check:hover,
  .role-directory-row:hover,
  .enterprise-role-directory .role-directory-row.active
) {
  background: #1e293b !important;
  color: #f8fafc !important;
}


/* ==========================================================================
   v470 ENTERPRISE SUITE: HOLIDAY CALENDAR PUBLISHER, ONBOARDING WHITE LINES,
   LESSON PLAN ROLLOVER DRAWER, SALARY PROFILE EXPANDED BODY, & GPS SUMMARY
   ========================================================================== */

/* 1. Holiday Calendar Publisher (image_e5a6c4.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .community-month-row,
  .community-event-list article,
  .calendar-preview,
  .calendar-preview > header,
  .calendar-category-legend,
  .calendar-day,
  .calendar-week-row .calendar-day,
  .calendar-summary-card,
  .calendar-important-card,
  .calendar-holidays-card,
  .calendar-working-card,
  .calendar-preview-notes,
  .calendar-published-readonly,
  .calendarific-settings,
  .calendar-color-presets button,
  .calendarific-actions .calendarific-clear
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .community-month-row:hover,
  .community-month-row.active,
  .calendar-color-presets button:hover,
  .calendar-color-presets button[aria-pressed="true"]
) {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .community-month-row b,
  .community-month-row strong,
  .calendar-preview h2,
  .calendar-day strong,
  .calendar-week-row .calendar-day strong,
  .calendar-summary-card li,
  .calendar-summary-card li time,
  .calendar-working-card strong,
  .calendar-preview-notes b,
  .calendar-published-readonly h2,
  .calendarific-settings-copy h2,
  .community-editor label,
  .community-main .editor label
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .community-month-row small,
  .community-event-list small,
  .calendar-category-legend span,
  .calendar-working-card small,
  .calendar-preview-notes,
  .calendar-published-readonly p,
  .calendarific-settings-copy p
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .calendar-day.empty,
  .calendar-week-row .calendar-day.empty
) {
  background: #0f172a !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .community-editor input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  .community-editor select,
  .community-editor textarea,
  .community-main .editor input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  .community-main .editor select,
  .community-main .editor textarea
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}

/* 2. Hide White Horizontal Lines in Add Student & Add Staff Onboarding (image_e5a628.png) */
body.erp-workspace #adminShell :is(#studentOnboardingWorkspace, #staffOnboardingWorkspace) :is(
  .student-step-heading,
  .student-form-step > header,
  .student-live-preview > header,
  .student-onboarding-header,
  .student-form-section
) {
  border-bottom: 0 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(#studentOnboardingWorkspace, #staffOnboardingWorkspace) .student-live-preview dl > div {
  border-bottom-color: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(#studentOnboardingWorkspace, #staffOnboardingWorkspace) .student-preview-photo {
  border-color: #22344d !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35) !important;
}

/* 3. Lesson Plans Reuse / Import Tools Summary Header & Grid (image_e5500b.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lpw-data-tools,
  .lpw-data-tools > summary,
  .lpw-data-tools[open] > summary,
  .lpw-tool-grid > section,
  .lpw-transfer-result
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lpw-data-tools > summary b,
  .lpw-data-tools > summary strong,
  .lpw-tool-grid > section h3,
  .lpw-tool-grid > section b,
  .lpw-transfer-result b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lpw-data-tools > summary small,
  .lpw-tool-grid > section p,
  .lpw-tool-grid label,
  .lpw-transfer-result span
) {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-data-tools > summary em,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .lpw-data-tools[open] > summary em::after {
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .lpw-data-tools > summary > span,
  .lpw-tool-icon
) {
  background: #1e3a5f !important;
  border-color: #2563eb !important;
  color: #93c5fd !important;
}

/* 4. Salary Structure & Profiles Expanded Accordion Body (image_e548e9.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .payroll-card > summary,
  .payroll-card .profile-body,
  .profile-body
) {
  background: #111c2d !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .payroll-status-callout,
  .payroll-status-callout.active,
  .payroll-status-callout.disabled,
  .salary-template-box,
  .salary-template-box label.auto-split-check,
  .auto-split-check
) {
  background: #152236 !important;
  border-color: #22344d !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .salary-template-summary span,
  .payroll-employee-status
) {
  background: #1e3a5f !important;
  border: 1px solid #2563eb !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .payroll-employee-status {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .payroll-card-disabled .payroll-employee-status {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fca5a5 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .money-input,
  .gross-money-input
) {
  background: #111c2d !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .money-input > span {
  background: #152236 !important;
  border-right-color: #22344d !important;
  color: #93c5fd !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .payroll-status-callout b,
  .payroll-card .profile-body h3,
  .payroll-card .summary-pay b
) {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  .payroll-status-callout span,
  .payroll-card .profile-body .hint,
  .payroll-card .summary-pay small,
  .payroll-employee-identity small
) {
  color: #cbd5e1 !important;
}

/* 5. GPS Map Coordinates & Display Order Summary Text (image_e541be.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell :is(
  details.advanced-settings > summary,
  details.advanced-settings > summary > span,
  .advanced-settings summary,
  .advanced-settings summary span
) {
  color: #f8fafc !important;
}

/* ==========================================================================
   NAVIGATION ACCORDION & FLYOUT SYSTEM (FIXES MOBILE & DESKTOP ACCESS)
   ========================================================================== */
body.erp-workspace .enterprise-nav-group > .enterprise-flyout {
  display: none !important;
}

body.erp-workspace:not(.sidebar-collapsed) .enterprise-nav-group.open > .enterprise-flyout,
body.erp-workspace:not(.sidebar-collapsed) .enterprise-nav-group.search-open > .enterprise-flyout,
body.erp-workspace #adminShell:not(.sidebar-collapsed) .enterprise-nav-group.open > .enterprise-flyout {
  display: flex !important;
  flex-direction: column !important;
  position: static !important;
  width: auto !important;
  margin: 4px 6px 6px 18px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 2px solid #94a3b8 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 3px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group > .enterprise-flyout,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group > .enterprise-flyout,
body.erp-workspace .sidebar-collapsed .enterprise-nav-group > .enterprise-flyout {
  display: none !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout,
body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  left: calc(100% + 12px) !important;
  top: 0 !important;
  width: 210px !important;
  padding: 8px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
  z-index: 5000 !important;
  gap: 3px !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a,
body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a {
  display: flex !important;
  padding: 8px 12px !important;
  color: #334155 !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover,
body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-erp-theme="dark"] body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout,
html[data-erp-theme="dark"] body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout,
html[data-erp-theme="dark"] body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a,
html[data-erp-theme="dark"] body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a,
html[data-erp-theme="dark"] body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover,
html[data-erp-theme="dark"] body.erp-workspace #adminShell.sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover,
html[data-erp-theme="dark"] body.erp-workspace .sidebar-collapsed .enterprise-nav-group:hover > .enterprise-flyout > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.erp-workspace .enterprise-nav-group.open > .enterprise-group-toggle b,
body.erp-workspace .enterprise-nav-group.open > .nav-group-toggle b {
  transform: rotate(90deg) !important;
}

body.erp-workspace .enterprise-flyout > a {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

body.erp-workspace .enterprise-flyout > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace .enterprise-flyout > a.active {
  background: #eaf6f9 !important;
  color: #086b7c !important;
  font-weight: 750 !important;
}

/* Light theme high-contrast defaults */
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-brand strong {
  color: #0f172a !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-brand small {
  color: #64748b !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .nav-section-label {
  color: #64748b !important;
  font-weight: 800 !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-nav-item,
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-group-toggle {
  color: #1e293b !important;
  font-weight: 600 !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-nav-item:hover,
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-group-toggle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-nav-item.active,
body.erp-workspace:not([data-erp-theme="dark"]) .enterprise-sidebar .enterprise-nav-group.active-group > .enterprise-group-toggle {
  background: #eaf6f9 !important;
  color: #086b7c !important;
  font-weight: 750 !important;
}

/* Dark Mode high-contrast overrides */
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar {
  background: #0f172a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-brand strong {
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-brand small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .nav-section-label {
  color: #94a3b8 !important;
  font-weight: 800 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-item,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-group-toggle {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-item:hover,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-group-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-item.active,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-nav-group.active-group > .enterprise-group-toggle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout {
  border-left-color: rgba(255, 255, 255, 0.25) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active {
  background: rgba(2, 132, 199, 0.25) !important;
  color: #38bdf8 !important;
  font-weight: 750 !important;
}

/* Full-bleed Login Page: ZERO white margins/padding on left and right */
html,
body.login-body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   LICENSE MANAGER INSPIRED MENU & SIDEBAR PERFECTION (image_767088.png)
   ========================================================================== */
body.erp-workspace #adminSidebar.enterprise-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 24px 24px 0 !important;
  box-shadow: 6px 0 32px rgba(15, 23, 42, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

body.erp-workspace .enterprise-brand-row {
  padding: 4px 6px 12px !important;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.erp-workspace .enterprise-brand {
  gap: 12px !important;
  padding: 4px 6px !important;
}

body.erp-workspace .enterprise-brand > b,
body.erp-workspace .enterprise-brand .enterprise-brand-emblem {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28) !important;
  display: grid !important;
  place-items: center !important;
}

body.erp-workspace .enterprise-brand strong {
  font-size: 14.5px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

body.erp-workspace .enterprise-brand small {
  font-size: 11px !important;
  font-weight: 750 !important;
  color: #086b7c !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Organization Pill matching image_767088.png */
body.erp-workspace .enterprise-org-pill {
  background: #f1f7f9 !important;
  border: 1px solid #e0edf2 !important;
  border-radius: 12px !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 8px 6px 14px !important;
}

body.erp-workspace .enterprise-org-info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #1e293b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.erp-workspace .enterprise-org-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  stroke: #475569 !important;
  stroke-width: 1.8 !important;
  fill: none !important;
}

/* Section labels matching image_767088.png */
body.erp-workspace .nav-section-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #889da8 !important;
  text-transform: uppercase !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
}

/* Pill navigation items */
body.erp-workspace .enterprise-nav-item,
body.erp-workspace .enterprise-group-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 14px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

body.erp-workspace .enterprise-nav-item:hover,
body.erp-workspace .enterprise-group-toggle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace .enterprise-nav-item.active,
body.erp-workspace .enterprise-nav-group.active-group > .enterprise-group-toggle {
  background: #eaf6f9 !important;
  color: #086b7c !important;
  font-weight: 750 !important;
}

body.erp-workspace .enterprise-group-toggle b {
  margin-left: auto !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
  transition: transform 0.2s ease !important;
}

body.erp-workspace .enterprise-nav-group.open > .enterprise-group-toggle b {
  transform: rotate(90deg) !important;
  color: #086b7c !important;
}

/* Submenu items with legible colors */
body.erp-workspace .enterprise-flyout > a {
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

body.erp-workspace .enterprise-flyout > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace .enterprise-flyout > a.active {
  background: #eaf6f9 !important;
  color: #086b7c !important;
  font-weight: 750 !important;
}

/* Floating Edge Toggle Tab on Sidebar Right Edge (image_767088.png) */
body.erp-workspace .sidebar-edge-toggle {
  position: absolute !important;
  right: -14px !important;
  top: 36px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  padding: 0 !important;
  color: #64748b !important;
  transition: transform 0.2s ease, background 0.15s ease !important;
}

body.erp-workspace .sidebar-edge-toggle:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.erp-workspace .sidebar-edge-toggle svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .sidebar-edge-toggle svg {
  transform: rotate(180deg) !important;
}

/* Topbar Menu Button with > Icon */
body.erp-workspace .topbar-menu {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid var(--v310-border, #e2e8f0) !important;
  background: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  color: #475569 !important;
  transition: all 0.15s ease !important;
}

body.erp-workspace .topbar-menu:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.erp-workspace .topbar-menu svg.topbar-menu-svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: transform 0.2s ease !important;
}

body.erp-workspace .admin-shell.mobile-nav-open .topbar-menu svg.topbar-menu-svg {
  transform: rotate(180deg) !important;
}

/* Bottom User Pill matching image_767088.png */
body.erp-workspace .enterprise-bottom-section {
  margin-top: auto !important;
  padding: 10px 4px 6px !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.erp-workspace .enterprise-user-pill {
  background: #f1f7f9 !important;
  border: 1px solid #e0edf2 !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

body.erp-workspace .enterprise-user-pill:hover {
  background: #e6f2f6 !important;
}

body.erp-workspace .enterprise-user-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

body.erp-workspace .enterprise-user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.erp-workspace .enterprise-user-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.erp-workspace .enterprise-user-role {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Mobile Sidebar Drawer Perfection (<= 1200px) */
@media (max-width: 1200px) {
  body.erp-workspace #adminSidebar.enterprise-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(295px, 86vw) !important;
    height: 100dvh !important;
    background: #ffffff !important;
    border-radius: 0 24px 24px 0 !important;
    box-shadow: 12px 0 44px rgba(15, 23, 42, 0.2) !important;
    transform: translateX(-105%) !important;
    visibility: visible !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  body.erp-workspace .admin-shell.mobile-nav-open #adminSidebar.enterprise-sidebar,
  body.erp-workspace.mobile-admin-nav-open #adminSidebar.enterprise-sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  body.erp-workspace #mobileNavBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99990 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    border: 0 !important;
  }

  body.erp-workspace .admin-shell.mobile-nav-open #mobileNavBackdrop,
  body.erp-workspace.mobile-admin-nav-open #mobileNavBackdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.erp-workspace .sidebar-edge-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   ROUNDED FLOATING SIDEBAR & INTERACTIVE BRANCH/USER MENU (image_767088.png)
   ========================================================================== */

/* 1. Strict Grid Alignment: Sidebar and Main side-by-side in Row 1 (Fixes page pushed down bug image_6c61bb.png & image_6c615d.png) */
body.erp-workspace #adminShell,
body.erp-workspace .admin-shell.enterprise-shell {
  display: grid !important;
  grid-template-columns: 282px minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: start !important;
  min-height: 100vh !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.erp-workspace #adminShell.sidebar-collapsed,
body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
  grid-template-columns: 90px minmax(0, 1fr) !important;
}

body.erp-workspace #adminSidebar.enterprise-sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 268px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  margin: 14px 0 14px 14px !important;
  padding: 18px 12px 14px !important;
  box-shadow: 0 4px 24px rgba(13, 38, 59, 0.07) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  height: calc(100vh - 28px) !important;
  position: sticky !important;
  top: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.22s ease !important;
}

body.erp-workspace .enterprise-main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 80px clamp(20px, 2.4vw, 34px) 44px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.erp-workspace .enterprise-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 282px !important;
  right: 0 !important;
  height: 64px !important;
  z-index: 4000 !important;
  transition: left 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.erp-workspace #adminShell.sidebar-collapsed .enterprise-topbar,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-topbar {
  left: 90px !important;
}

body.erp-workspace .mobile-nav-backdrop {
  display: none !important;
}

/* 2. Collapsed Sidebar State (Fixes image_6c6197.png) */
body.erp-workspace #adminShell.sidebar-collapsed #adminSidebar.enterprise-sidebar,
body.erp-workspace .admin-shell.sidebar-collapsed #adminSidebar.enterprise-sidebar {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  padding: 18px 8px 14px !important;
  margin: 14px 0 14px 14px !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-brand > span,
body.erp-workspace .admin-shell.sidebar-collapsed .nav-section-label,
body.erp-workspace .admin-shell.sidebar-collapsed .sidebar-favorites-block,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-item > span,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-group-toggle > span,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-group-toggle > b,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-badge,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill .enterprise-org-info span,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill .org-pill-caret,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-user-info,
body.erp-workspace .admin-shell.sidebar-collapsed .cz-user-caret {
  display: none !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-brand {
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 8px auto 14px !important;
  justify-content: center !important;
  border-radius: 12px !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-info {
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-item,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-group-toggle {
  justify-content: center !important;
  padding: 10px 0 !important;
  margin: 2px auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-nav-item i,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-group-toggle i {
  margin: 0 !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-user-pill {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  justify-content: center !important;
  border-radius: 12px !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .cz-user-dropdown {
  width: auto !important;
  display: flex !important;
  justify-content: center !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .cz-user-menu {
  left: calc(100% + 14px) !important;
  bottom: 0 !important;
  width: 210px !important;
}

/* 3. Floating Edge Toggle Tab on Sidebar Border */
body.erp-workspace .sidebar-edge-toggle {
  position: absolute !important;
  right: -13px !important;
  top: 36px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  padding: 0 !important;
  color: #475569 !important;
  transition: transform 0.2s ease, background 0.15s ease !important;
}

body.erp-workspace .sidebar-edge-toggle:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.erp-workspace .sidebar-edge-toggle svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: transform 0.2s ease !important;
}

body.erp-workspace .admin-shell.sidebar-collapsed .sidebar-edge-toggle svg {
  transform: rotate(180deg) !important;
}

/* 4. Branch Selector Pill & Bottom Sysadmin Card */
body.erp-workspace #adminShell:not(.sidebar-collapsed) .enterprise-org-pill,
body.erp-workspace .admin-shell:not(.sidebar-collapsed) .enterprise-org-pill,
body.erp-workspace .enterprise-org-pill {
  width: 100% !important;
  background: #f1f7f9 !important;
  border: 1px solid #e0edf2 !important;
  border-radius: 12px !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 8px 0 14px !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

body.erp-workspace .enterprise-org-pill:hover {
  background: #e6f3f7 !important;
  border-color: #bcdbe5 !important;
}

body.erp-workspace .enterprise-org-info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #1e293b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.erp-workspace .enterprise-org-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  stroke: #475569 !important;
  stroke-width: 1.8 !important;
  fill: none !important;
}

body.erp-workspace .enterprise-bottom-section {
  margin-top: auto !important;
  padding: 10px 0 4px !important;
  border-top: 1px solid #f1f5f9 !important;
  position: relative !important;
}

body.erp-workspace .cz-user-dropdown {
  position: relative !important;
  width: 100% !important;
}

body.erp-workspace .enterprise-user-pill {
  list-style: none !important;
  background: #f1f7f9 !important;
  border: 1px solid #e0edf2 !important;
  border-radius: 14px !important;
  padding: 7px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

body.erp-workspace .enterprise-user-pill::-webkit-details-marker {
  display: none !important;
}

body.erp-workspace .enterprise-user-pill:hover,
body.erp-workspace .cz-user-dropdown[open] .enterprise-user-pill {
  background: #e6f3f7 !important;
  border-color: #bcdbe5 !important;
}

body.erp-workspace .enterprise-user-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

body.erp-workspace .enterprise-user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.erp-workspace .enterprise-user-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.erp-workspace .enterprise-user-role {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.erp-workspace .cz-user-menu {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  width: 100% !important;
  min-width: 210px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14) !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

body.erp-workspace .cz-menu-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

body.erp-workspace .cz-menu-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace .cz-menu-link.danger {
  color: #ef4444 !important;
}

body.erp-workspace .cz-menu-link.danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

body.erp-workspace .cz-menu-divider {
  height: 1px !important;
  background: #f1f5f9 !important;
  margin: 4px 0 !important;
}

/* 5. Submenu Links Legibility & Contrast (Fixes image_765375.png) */
body.erp-workspace .enterprise-flyout a,
body.erp-workspace .enterprise-flyout a span,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a span,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a span {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

body.erp-workspace .enterprise-flyout a:hover,
body.erp-workspace .enterprise-flyout a:hover span,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover span,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a:hover,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a:hover span {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace .enterprise-flyout a.active,
body.erp-workspace .enterprise-flyout a.active span,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active span,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active span {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

body.erp-workspace .enterprise-flyout a.active:hover,
body.erp-workspace .enterprise-flyout a.active:hover span,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active:hover,
body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active:hover span,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active:hover,
body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active:hover span {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

/* 6. Mobile Floating Drawer (<= 1200px) */
@media (max-width: 1200px) {
  body.erp-workspace #adminShell,
  body.erp-workspace .admin-shell.enterprise-shell {
    display: block !important;
    width: 100% !important;
  }
  body.erp-workspace #adminSidebar.enterprise-sidebar {
    position: fixed !important;
    top: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: min(295px, calc(100vw - 32px)) !important;
    height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    margin: 0 !important;
    border-radius: 20px !important;
    box-shadow: 12px 0 44px rgba(15, 23, 42, 0.22) !important;
    transform: translateX(-110%) !important;
    visibility: visible !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  body.erp-workspace .admin-shell.mobile-nav-open #adminSidebar.enterprise-sidebar,
  body.erp-workspace.mobile-admin-nav-open #adminSidebar.enterprise-sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  body.erp-workspace .enterprise-topbar {
    left: 0 !important;
  }
  body.erp-workspace .enterprise-main {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    padding: 78px 16px 32px !important;
  }
  body.erp-workspace .mobile-nav-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 4150 !important;
    background: rgba(9, 20, 36, 0.52) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    border: 0 !important;
  }
  body.erp-workspace .admin-shell.mobile-nav-open .mobile-nav-backdrop,
  body.erp-workspace.mobile-admin-nav-open .mobile-nav-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* 7. Dark Mode Clean Look & Extra Line Removal (Fixes image_6c5ad0.png) */
html[data-erp-theme="dark"] body.erp-workspace #adminSidebar.enterprise-sidebar {
  background: #091929 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-info {
  color: #e2ecf5 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-user-pill {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-user-name {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-user-role {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-bottom-section {
  border-top: none !important;
  border-top-width: 0 !important;
  padding-top: 12px !important;
}
html[data-erp-theme="dark"] body.erp-workspace .cz-user-menu {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .cz-menu-link {
  color: #e2ecf5 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .cz-menu-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .cz-menu-divider {
  background: rgba(255, 255, 255, 0.1) !important;
}
html[data-erp-theme="dark"] body.erp-workspace .sidebar-edge-toggle {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #e2ecf5 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .sidebar-edge-toggle:hover {
  background: #1e293b !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a span {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a:hover,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a:hover span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a:hover span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a:hover,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a:hover span {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a.active,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-flyout a.active span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-sidebar .enterprise-flyout > a.active span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-nav-group.open > .enterprise-flyout a.active span {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   TOPBAR REMOVED, FLOATING QUICK-ACTION RAIL & LIVE FILTERS (image_6b84fb.png)
   ========================================================================== */

/* Topbar Removed as Requested */
body.erp-workspace .enterprise-topbar {
  display: none !important;
}

/* Main Content Padding Adjusted with Topbar Removed */
body.erp-workspace .enterprise-main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 22px clamp(20px, 2.4vw, 34px) 44px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  body.erp-workspace .enterprise-main {
    padding: 16px 14px 32px !important;
  }
}

/* User Card Reverse Caret Removed */
body.erp-workspace .cz-user-caret,
.enterprise-user-pill .cz-user-caret {
  display: none !important;
}

/* Branch Modal Radio Button Alignment & Distortion Fix (image_6be1f3.png) */
body.erp-workspace .branch-choice,
body.erp-workspace .branch-context-dialog-v330 .branch-choice {
  display: flex !important;
  align-items: center !important;
}
body.erp-workspace .branch-choice input[type="radio"],
body.erp-workspace .branch-context-dialog-v330 .branch-choice input[type="radio"] {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 18px !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  accent-color: #2563eb !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Floating Right-Edge Quick-Action Rail (image_6b84fb.png) */
.cz-quick-action-rail {
  position: fixed !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12) !important;
  z-index: 3000 !important;
}

.cz-rail-btn {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.cz-rail-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.cz-rail-btn svg {
  width: 18px !important;
  height: 18px !important;
}

.cz-rail-badge {
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid #ffffff !important;
  line-height: 1 !important;
}

/* Docked Red Floating Edge Chat Tab (Matching image_6b84fb.png & image_6b80da.png) */
.cz-edge-chat-dock {
  position: fixed !important;
  right: 0 !important;
  top: calc(50% + 140px) !important;
  z-index: 3050 !important;
  display: flex !important;
  align-items: center !important;
}

.cz-edge-chat-tab {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px 0 0 12px !important;
  padding: 10px 14px 10px 12px !important;
  box-shadow: -4px 6px 20px rgba(239, 68, 68, 0.38) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, background 0.15s ease !important;
}

.cz-edge-chat-tab:hover {
  background: #dc2626 !important;
  transform: translateX(-4px) !important;
}

.cz-edge-chat-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.cz-edge-chat-label {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
}

.cz-edge-chat-badge {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #dc2626 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
}

.cz-edge-chat-tooltip {
  position: absolute !important;
  right: calc(100% + 10px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.cz-edge-chat-dock:hover .cz-edge-chat-tooltip {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(-2px) !important;
}

/* CloudZero Filter Bar CSS matching License Manager (image_6b84fb.png) */
.cz-top-nav-bar {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 90 !important;
  width: 100% !important;
}
.cz-filter-toggle-wrap {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
.cz-filter-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px 0 14px !important;
  border-radius: 999px !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.32) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}
.cz-filter-pill-btn:hover {
  background: #f44336 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(255, 87, 34, 0.42) !important;
}
.cz-filters-capsule {
  display: none;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06) !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
}
.cz-capsule-icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
.cz-capsule-icon-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.cz-capsule-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}
.cz-capsule-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.cz-capsule-group .sparkle {
  color: #ff5722 !important;
  font-size: 14px !important;
}
.cz-capsule-group .group-label {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #334155 !important;
  white-space: nowrap !important;
}
.cz-capsule-group .group-info {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  cursor: help !important;
}
.cz-capsule-divider {
  width: 1px !important;
  height: 22px !important;
  background: #e2e8f0 !important;
  margin: 0 4px !important;
}
.cz-custom-select-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
.cz-capsule-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 5px 24px 5px 10px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  min-height: 32px !important;
  height: 32px !important;
  transition: all 0.15s ease !important;
}
.cz-capsule-select:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}
.cz-custom-select-wrap .select-caret {
  position: absolute !important;
  right: 8px !important;
  font-size: 11px !important;
  color: #64748b !important;
  pointer-events: none !important;
}
.cz-filter-clause {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}
.cz-clause-del-btn {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}
.cz-clause-del-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}
.cz-capsule-ghost-btn {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.cz-capsule-ghost-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
.cz-capsule-apply-btn {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  background: #ff5722 !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.28) !important;
  transition: all 0.15s ease !important;
}
.cz-capsule-apply-btn:hover {
  background: #f44336 !important;
}
.cz-live-count-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

/* Dark Mode Overrides for Rail, Filter Bar & Edge Tab */
html[data-erp-theme="dark"] .cz-quick-action-rail {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-erp-theme="dark"] .cz-rail-btn {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] .cz-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
html[data-erp-theme="dark"] .cz-rail-badge {
  border-color: #0f172a !important;
}
html[data-erp-theme="dark"] .cz-filters-capsule {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}
html[data-erp-theme="dark"] .cz-capsule-icon-btn {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .cz-capsule-group .group-label {
  color: #e2ecf5 !important;
}
html[data-erp-theme="dark"] .cz-capsule-divider {
  background: rgba(255, 255, 255, 0.1) !important;
}
html[data-erp-theme="dark"] .cz-capsule-select {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] .cz-filter-clause {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-erp-theme="dark"] .cz-capsule-ghost-btn {
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .cz-capsule-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-erp-theme="dark"] .cz-live-count-badge {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   ENHANCED STICKY SIDEBAR, REMOVED SCROLLBAR, BEAUTIFIED ACCOUNT & MFA (v510)
   ========================================================================== */

/* 1. Remove Browser Scrollbar / Slider (image_6b00de.png) */
html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body.erp-workspace::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
  background: transparent !important;
}

/* 2. Pinned Sticky Sidebar on Scroll (image_6af9d8.png) */
html, body.erp-workspace {
  overflow-x: visible !important;
}
body.erp-workspace #adminSidebar.enterprise-sidebar {
  position: sticky !important;
  top: 14px !important;
  height: calc(100vh - 28px) !important;
  max-height: calc(100vh - 28px) !important;
  align-self: start !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
body.erp-workspace #adminSidebar.enterprise-sidebar::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* 3. Favorites Color & Count Contrast Fix in Light Mode (image_6b0859.jpg) */
body.erp-workspace .sidebar-favorites-block {
  margin-bottom: 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.erp-workspace .sidebar-favorites-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #b45309 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 6px 8px 4px !important;
}
body.erp-workspace .sidebar-favorites-label small {
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: #fef3c7 !important;
  color: #92400e !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  border: 1px solid #fde68a !important;
}
body.erp-workspace .sidebar-fav-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 3px !important;
  transition: all 0.14s ease !important;
}
body.erp-workspace .sidebar-fav-row:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
body.erp-workspace .sidebar-fav-row.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
body.erp-workspace .sidebar-fav-star {
  color: #f59e0b !important;
  font-size: 14px !important;
}
body.erp-workspace .sidebar-fav-remove {
  color: #94a3b8 !important;
  border-radius: 6px !important;
}
body.erp-workspace .sidebar-fav-remove:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

/* 4. Right-Edge Red Drawer Tab Trigger & Quick Actions (image_6b04fa.png) */
.cz-quick-drawer-wrapper {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3000 !important;
  display: flex !important;
  align-items: center !important;
}
.cz-quick-edge-tab {
  width: 14px !important;
  height: 64px !important;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  border: none !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: -3px 4px 14px rgba(220, 38, 38, 0.4) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: width 0.18s ease, background 0.18s ease !important;
}
.cz-quick-edge-tab:hover {
  width: 18px !important;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
}
.cz-quick-action-rail {
  display: none !important;
  position: absolute !important;
  right: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14) !important;
}
.cz-quick-drawer-wrapper.is-open .cz-quick-action-rail {
  display: flex !important;
}
.cz-edge-chat-dock {
  display: none !important;
}

/* 5. Compact Modern Enterprise Footer per specification */
body.erp-workspace #adminShell .erp-global-copyright {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  height: 52px !important;
  min-height: 50px !important;
  max-height: 56px !important;
  padding: 0 clamp(20px, 2.4vw, 34px) !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
body.erp-workspace #adminShell .erp-copyright-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}
body.erp-workspace #adminShell .erp-copyright-inner > span:first-child {
  text-align: left !important;
}
body.erp-workspace #adminShell .erp-copyright-inner > span.erp-copyright-brand {
  text-align: right !important;
  margin-left: auto !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .erp-global-copyright {
  background: #091929 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] body.erp-workspace #adminShell .erp-global-copyright a {
  color: #60a5fa !important;
}

/* 6. Account & MFA Setup Page Beautification (image_6afd95.png & image_6afd15.png) */
.account-workspace {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.account-profile-hero {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 24px 28px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
.account-avatar-circle {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff5722 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.3) !important;
}
.account-hero-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.account-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
.account-title-row h2 {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
}
.account-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}
.account-hero-sub {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
}
.account-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}
@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr !important;
  }
}
.account-card, .mfa-account-panel {
  padding: 24px !important;
  border-radius: 18px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
.account-form label, .mfa-confirm-form label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #334155 !important;
  margin-bottom: 14px !important;
}
.account-form input, .mfa-confirm-form input {
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  color: #0f172a !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.account-form input:focus, .mfa-confirm-form input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: 0 !important;
}
.mfa-enroll-layout {
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  gap: 20px !important;
  align-items: start !important;
  margin-top: 14px !important;
}
@media (max-width: 650px) {
  .mfa-enroll-layout {
    grid-template-columns: 1fr !important;
  }
}
.mfa-qr-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}
.mfa-qr-canvas {
  width: 148px !important;
  height: 148px !important;
  background: #ffffff !important;
  padding: 6px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #cbd5e1 !important;
}
.mfa-qr-canvas svg {
  width: 100% !important;
  height: 100% !important;
}
.mfa-qr-hint {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  text-align: center !important;
}
.mfa-enroll-details h3 {
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.mfa-secret-box {
  margin: 12px 0 16px !important;
}
.mfa-secret-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 4px !important;
}
.mfa-secret-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
}
.mfa-secret-pill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: 0.08em !important;
}
.btn-copy-secret {
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.btn-copy-secret:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}
.mfa-code-input {
  letter-spacing: 0.25em !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  max-width: 180px !important;
}
.mfa-active-state {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 20px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 14px !important;
  flex-wrap: wrap !important;
}
.mfa-active-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}
.mfa-active-info b {
  display: block !important;
  color: #15803d !important;
  font-size: 14.5px !important;
  margin-bottom: 2px !important;
}
.mfa-active-info p {
  margin: 0 !important;
  color: #166534 !important;
  font-size: 12.5px !important;
}
.mfa-inactive-features {
  display: grid !important;
  gap: 12px !important;
  margin-top: 14px !important;
}
.mfa-feat-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.mfa-feat-icon {
  font-size: 20px !important;
  flex-shrink: 0 !important;
}
.mfa-feat-item b {
  display: block !important;
  color: #0f172a !important;
  font-size: 13px !important;
  margin-bottom: 2px !important;
}
.mfa-feat-item p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
.recovery-codes-card {
  margin-bottom: 16px !important;
  padding: 16px 18px !important;
  background: #fefce8 !important;
  border: 1px solid #fef08a !important;
  border-radius: 14px !important;
}
.recovery-codes-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.recovery-codes-head b {
  color: #854d0e !important;
  font-size: 13.5px !important;
}
.recovery-codes-head p {
  margin: 2px 0 0 !important;
  color: #a16207 !important;
  font-size: 12px !important;
}
.recovery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 8px !important;
}
.recovery-grid code {
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 1px solid #fde047 !important;
  border-radius: 8px !important;
  font-family: ui-monospace, monospace !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #713f12 !important;
  text-align: center !important;
  display: block !important;
}

/* Dark mode overrides for Account & MFA */
html[data-erp-theme="dark"] .account-profile-hero,
html[data-erp-theme="dark"] .account-card,
html[data-erp-theme="dark"] .mfa-account-panel {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-erp-theme="dark"] .account-title-row h2 {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] .account-form input,
html[data-erp-theme="dark"] .mfa-confirm-form input {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] .mfa-qr-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-erp-theme="dark"] .mfa-secret-pill {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-erp-theme="dark"] .mfa-secret-pill code {
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] .btn-copy-secret {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #60a5fa !important;
}
html[data-erp-theme="dark"] .mfa-feat-item {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-erp-theme="dark"] .mfa-feat-item b {
  color: #f1f5f9 !important;
}


/* ==========================================================================
   v520 REFINEMENTS: RED POPUP X, TRANSPARENT FOOTER, UNCLIPPED TOGGLE, HELP DARK MODE
   ========================================================================== */

/* 1. Transparent Footer Background as Requested */
body.erp-workspace #adminShell .erp-global-copyright,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .erp-global-copyright {
  background: transparent !important;
  background-color: transparent !important;
}

/* 2. Red Close "X" Across All Popups & Modals (image_6a7e35.png) */
body.erp-workspace :is(.branch-context-close, .branch-scope-dialog > header button, .enterprise-command-close, .modal-close, button[data-branch-close], dialog .close, .modal .close) {
  color: #ef4444 !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  transition: all 0.15s ease !important;
}

body.erp-workspace :is(.branch-context-close, .branch-scope-dialog > header button, .enterprise-command-close, .modal-close, button[data-branch-close], dialog .close, .modal .close):hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #ef4444 !important;
}

html[data-erp-theme="dark"] body.erp-workspace :is(.branch-context-close, .branch-scope-dialog > header button, .enterprise-command-close, .modal-close, button[data-branch-close], dialog .close, .modal .close) {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.3) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

html[data-erp-theme="dark"] body.erp-workspace :is(.branch-context-close, .branch-scope-dialog > header button, .enterprise-command-close, .modal-close, button[data-branch-close], dialog .close, .modal .close):hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  border-color: #f87171 !important;
}

/* 3. Hide In-Page Favorite Star Buttons across all modules (image_6a8cd4.jpg) */
body.erp-workspace .v330-page-fav-btn,
body.erp-workspace .v340-fav-icon-only,
body.erp-workspace .enterprise-page-head .v330-page-fav-btn {
  display: none !important;
}

/* 4. Fix Sidebar Unclipped Edge Toggle Tab (image_6a8cd4.jpg) */
body.erp-workspace #adminSidebar.enterprise-sidebar {
  overflow: visible !important;
}

body.erp-workspace #adminSidebar.enterprise-sidebar .enterprise-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding-right: 2px !important;
}

body.erp-workspace #adminSidebar.enterprise-sidebar .enterprise-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

body.erp-workspace .sidebar-edge-toggle {
  position: absolute !important;
  right: -13px !important;
  top: 32px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
  display: grid !important;
  place-items: center !important;
  z-index: 1000 !important;
  cursor: pointer !important;
  padding: 0 !important;
  color: #334155 !important;
  transition: transform 0.2s ease, background 0.15s ease !important;
}

body.erp-workspace .sidebar-edge-toggle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.erp-workspace .sidebar-edge-toggle svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #334155 !important;
  stroke-width: 2.8 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html[data-erp-theme="dark"] body.erp-workspace .sidebar-edge-toggle {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .sidebar-edge-toggle svg {
  stroke: #f8fafc !important;
}

/* 5. Help Page Dark Mode & Card Contrast (image_6a8594.png) */
html[data-erp-theme="dark"] .help-search-panel {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .help-search-panel input {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .help-quick button {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] .help-quick button:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] .help-module {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-erp-theme="dark"] .help-module > summary:hover {
  background: #1e293b !important;
}

html[data-erp-theme="dark"] .help-card-icon {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] .help-module-heading b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .help-module-heading small {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .help-module-count {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .help-module-chevron {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] .help-page-entry {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] .help-page-title h3 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .help-page-title a {
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] .help-page-entry > p {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .help-workflow {
  background: rgba(14, 165, 233, 0.1) !important;
  border-left-color: #38bdf8 !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] .help-workflow b {
  color: #38bdf8 !important;
}


/* ==========================================================================
   ENTERPRISE V500: COLLAPSED SIDEBAR OVERFLOW FIX & TOP CONTEXT STRIP
   ========================================================================== */

/* 1. Strict Collapsed Sidebar Rules: #sidebarBranchScopeTrigger strictly 44px centered */
body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger,
body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger,
body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-pill,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill,
body.erp-workspace .sidebar-collapsed .enterprise-org-pill {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 10px auto 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  background: #f1f7f9 !important;
  border: 1px solid #e0edf2 !important;
  box-shadow: none !important;
}

body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info,
body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info,
body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-info,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-info,
body.erp-workspace .sidebar-collapsed .enterprise-org-info {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info span,
body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger .org-pill-caret,
body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info span,
body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger .org-pill-caret,
body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-info span,
body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger .org-pill-caret,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-pill .enterprise-org-info span,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-pill .org-pill-caret,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill .enterprise-org-info span,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill .org-pill-caret,
body.erp-workspace .sidebar-collapsed .enterprise-org-pill .enterprise-org-info span,
body.erp-workspace .sidebar-collapsed .enterprise-org-pill .org-pill-caret {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-icon,
body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-icon,
body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger .enterprise-org-icon,
body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-icon,
body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-icon,
body.erp-workspace .sidebar-collapsed .enterprise-org-icon {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell.sidebar-collapsed #sidebarBranchScopeTrigger,
html[data-erp-theme="dark"] body.erp-workspace .admin-shell.sidebar-collapsed #sidebarBranchScopeTrigger,
html[data-erp-theme="dark"] body.erp-workspace .sidebar-collapsed #sidebarBranchScopeTrigger,
html[data-erp-theme="dark"] body.erp-workspace #adminShell.sidebar-collapsed .enterprise-org-pill,
html[data-erp-theme="dark"] body.erp-workspace .admin-shell.sidebar-collapsed .enterprise-org-pill,
html[data-erp-theme="dark"] body.erp-workspace .sidebar-collapsed .enterprise-org-pill {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 2. Top Filter Line Layout with Permanent Context Strip */
.cz-top-nav-bar {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  position: relative !important;
  z-index: 90 !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.cz-filter-toggle-wrap {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.cz-top-context-strip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.cz-context-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.16s ease !important;
  white-space: nowrap !important;
}

/* Academic Session Pill: e.g. 2026-27 */
.cz-session-pill {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}

.cz-pill-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
  flex-shrink: 0 !important;
}

/* Branch Selector Pill */
.cz-branch-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.cz-branch-pill:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.cz-pill-svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #0284c7 !important;
  stroke-width: 2 !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

.cz-caret-svg {
  width: 12px !important;
  height: 12px !important;
  stroke: #64748b !important;
  stroke-width: 2 !important;
  fill: none !important;
  flex-shrink: 0 !important;
  margin-left: 2px !important;
}

/* License Status Pill */
.cz-license-pill {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.06) !important;
}

.cz-license-pill:hover {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12) !important;
}

.cz-license-svg {
  stroke: #16a34a !important;
}

/* Dark Mode Overrides for Permanent Top Context Strip */
html[data-erp-theme="dark"] .cz-session-pill {
  background: #082f49 !important;
  border-color: #0284c7 !important;
  color: #7dd3fc !important;
}

html[data-erp-theme="dark"] .cz-branch-pill {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}

html[data-erp-theme="dark"] .cz-branch-pill:hover {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

html[data-erp-theme="dark"] .cz-branch-pill .cz-pill-svg {
  stroke: #38bdf8 !important;
}

html[data-erp-theme="dark"] .cz-branch-pill .cz-caret-svg {
  stroke: #94a3b8 !important;
}

html[data-erp-theme="dark"] .cz-license-pill {
  background: #052e16 !important;
  border-color: #16a34a !important;
  color: #86efac !important;
}

html[data-erp-theme="dark"] .cz-license-pill:hover {
  background: #14532d !important;
  border-color: #22c55e !important;
}

html[data-erp-theme="dark"] .cz-license-pill .cz-pill-svg {
  stroke: #4ade80 !important;
}

/* Hide middle dashboard context box since it has moved to top filter line */
body.erp-workspace .dashboard-context {
  display: none !important;
}

body.erp-workspace .dashboard-welcome-v2,
body.erp-workspace .profile-dashboard-v275 .dashboard-welcome-v2 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

@media (max-width: 768px) {
  .cz-top-nav-bar {
    gap: 10px !important;
  }
  .cz-top-context-strip {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
  }
  .cz-context-pill {
    padding: 0 10px !important;
    font-size: 11.5px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
}


/* 3. Popup Backdrop & Hover Color Fix: No weird red/pink color on hover */
body.erp-workspace .branch-scope-backdrop,
body.erp-workspace .branch-scope-backdrop:hover,
body.erp-workspace [data-branch-close].branch-scope-backdrop,
body.erp-workspace [data-branch-close].branch-scope-backdrop:hover {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(4px) !important;
  border: none !important;
  color: transparent !important;
  box-shadow: none !important;
}

body.erp-workspace .branch-choice:hover,
body.erp-workspace .branch-context-dialog-v330 .branch-choice:hover {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .branch-scope-backdrop,
html[data-erp-theme="dark"] body.erp-workspace .branch-scope-backdrop:hover {
  background: rgba(0, 0, 0, 0.72) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .branch-choice:hover,
html[data-erp-theme="dark"] body.erp-workspace .branch-context-dialog-v330 .branch-choice:hover {
  border-color: #38bdf8 !important;
  background: #1e293b !important;
}

/* 4. Strict Horizontal Alignment: Filters and Licensed in the same line */
.cz-top-nav-bar {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  position: relative !important;
  z-index: 90 !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  line-height: 1 !important;
}

.cz-filter-toggle-wrap {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  height: 36px !important;
}

.cz-top-context-strip {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  height: 36px !important;
}

.cz-filter-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px 0 14px !important;
  border-radius: 999px !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.32) !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.cz-license-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  cursor: pointer !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.06) !important;
  transition: all 0.16s ease !important;
  white-space: nowrap !important;
  margin: 0 !important;
  vertical-align: middle !important;
}


/* ==========================================================================
   ENTERPRISE V510: TOP FILTER ALIGNMENT, FILTER EXPANSION & DARKMODE BRANCH
   ========================================================================== */

/* 1. Strict Horizontal Alignment: Filters on Left and Licensed on Right in EXACT Same Row (image_68bbb9.jpg) */
body.erp-workspace .cz-top-nav-bar,
.cz-top-nav-bar {
  margin-bottom: 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  position: relative !important;
  z-index: 90 !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

body.erp-workspace .cz-filter-toggle-wrap,
.cz-filter-toggle-wrap {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 130px) !important;
  margin: 0 !important;
  height: 36px !important;
}

body.erp-workspace .cz-top-context-strip,
.cz-top-context-strip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 36px !important;
}

body.erp-workspace .cz-filter-pill-btn,
.cz-filter-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px 0 14px !important;
  border-radius: 999px !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.32) !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

body.erp-workspace .cz-license-pill,
.cz-license-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  cursor: pointer !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.06) !important;
  transition: all 0.16s ease !important;
  white-space: nowrap !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* 2. Filter Capsule Behavior & Empty Badge Removal (image_68bb1a.png) */
.cz-filter-toggle-wrap.is-expanded #czFilterPillBtn,
#czTopNavBar.filters-open #czFilterPillBtn {
  display: none !important;
}

.cz-filter-toggle-wrap.is-expanded #czFiltersCapsule,
#czTopNavBar.filters-open #czFiltersCapsule {
  display: inline-flex !important;
}

.cz-live-count-badge:empty,
.cz-live-count-badge[style*="display: none"],
.cz-live-count-badge[style*="display:none"],
.cz-live-count-badge[hidden] {
  display: none !important;
}

.cz-capsule-icon-btn.cz-collapse-btn {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
}

/* 3. Dark Mode Sidebar Branch Scope Trigger (image_68b75a.png) */
html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill,
html[data-erp-theme="dark"] body.erp-workspace #adminSidebar .enterprise-org-pill {
  background: #112236 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger:hover,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill:hover,
html[data-erp-theme="dark"] body.erp-workspace #adminSidebar .enterprise-org-pill:hover {
  background: #19314d !important;
  border-color: #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger .enterprise-org-info,
html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger .enterprise-org-info span,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill .enterprise-org-info,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill .enterprise-org-info span,
html[data-erp-theme="dark"] body.erp-workspace #adminSidebar .enterprise-org-pill .enterprise-org-info span {
  color: #f8fafc !important;
  font-weight: 750 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger .enterprise-org-icon,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill .enterprise-org-icon {
  stroke: #38bdf8 !important;
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #sidebarBranchScopeTrigger .org-pill-caret,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-org-pill .org-pill-caret {
  stroke: #94a3b8 !important;
  color: #94a3b8 !important;
}

/* 4. Users & Access Directory Pagination Styles */
.access-table-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-top: 1px solid var(--access-line, #e2e8f0) !important;
  background: var(--ui-surface-soft, #f8fafc) !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  border-radius: 0 0 14px 14px !important;
}

.access-footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

.access-footer-left b {
  color: #1e293b !important;
}

.access-pagination-controls {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-left: auto !important;
}

.access-page-size-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.access-page-size-select {
  padding: 4px 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.access-pagination-buttons {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.access-page-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.access-page-btn:hover:not(:disabled) {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}

.access-page-btn:disabled,
.access-page-btn.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.access-page-counter {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  white-space: nowrap !important;
  padding: 0 4px !important;
}

/* Dark Mode Overrides for Users Pagination */
html[data-erp-theme="dark"] .access-table-footer {
  background: #0d1e30 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .access-footer-left {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .access-footer-left b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .access-page-size-label {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .access-page-size-select {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .access-page-btn {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .access-page-btn:hover:not(:disabled) {
  background: #19314d !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] .access-page-btn:disabled,
html[data-erp-theme="dark"] .access-page-btn.disabled {
  background: #091929 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #475569 !important;
}

html[data-erp-theme="dark"] .access-page-counter {
  color: #cbd5e1 !important;
}


/* ==========================================================================
   WORKSPACE STUDIO: WIDGETS & VISUAL BUILDER (image_68523e.jpg)
   ========================================================================== */

/* Centered Dialog Modal */
body.erp-workspace #pdWidgetPanel.pd-widget-drawer {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  right: auto !important;
  bottom: auto !important;
  width: min(780px, 94vw) !important;
  max-height: min(88vh, 840px) !important;
  height: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28) !important;
  z-index: 9600 !important;
  border: 1px solid #dbe4ee !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.erp-workspace #pdWidgetPanel.pd-widget-drawer:not(.is-open),
body.erp-workspace #pdWidgetPanel.pd-widget-drawer[hidden] {
  display: none !important;
}

body.erp-workspace #pdWidgetBackdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9590 !important;
  background: rgba(15, 23, 42, 0.52) !important;
  backdrop-filter: blur(4px) !important;
}

body.erp-workspace #pdWidgetBackdrop:not(.is-open),
body.erp-workspace #pdWidgetBackdrop[hidden] {
  display: none !important;
}

/* Modal Header */
.pd-widget-drawer-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 22px 26px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.pd-widget-modal-title-wrap {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.pd-widget-modal-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: #eff6ff !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.pd-widget-modal-title-wrap .eyebrow {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #2563eb !important;
  margin-bottom: 2px !important;
}

.pd-widget-modal-title-wrap h2 {
  margin: 0 0 4px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.pd-widget-modal-title-wrap p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
}

.pd-widget-drawer-close {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-widget-drawer-close:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

/* Tabs */
.pd-widget-drawer-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 26px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.pd-widget-drawer-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-widget-drawer-tabs button:hover {
  background: #edf2f7 !important;
  color: #0f172a !important;
}

.pd-widget-drawer-tabs button.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

/* Modal Body */
.pd-widget-drawer-body {
  padding: 0 !important;
  max-height: calc(88vh - 210px) !important;
  overflow-y: auto !important;
}

/* Quick Layouts */
.pd-quick-layouts-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 14px 18px !important;
  margin: 18px 26px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}

.pd-quick-layouts-heading b {
  display: block !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.pd-quick-layouts-heading small {
  color: #64748b !important;
  font-size: 12px !important;
}

.pd-quick-layouts-grid {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.pd-quick-layout-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  min-width: 80px !important;
  transition: all 0.15s ease !important;
}

.pd-quick-layout-card:hover {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
}

.pd-quick-layout-card.is-active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px #2563eb !important;
}

.pd-quick-layout-card span {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
}

.pd-ql-preview {
  display: flex !important;
  gap: 2px !important;
  width: 42px !important;
  height: 20px !important;
}

.pd-ql-preview span {
  flex: 1 !important;
  height: 100% !important;
  border-radius: 3px !important;
  background: #93c5fd !important;
}

.pd-quick-layout-card.is-active .pd-ql-preview span {
  background: #3b82f6 !important;
}

/* Widget Control List & Cards */
.pd-widget-controls-list {
  padding: 0 26px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.pd-widget-control-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  transition: all 0.15s ease !important;
}

.pd-widget-control-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.pd-widget-control-card.is-hidden {
  opacity: 0.55 !important;
  background: #f8fafc !important;
}

.pd-widget-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.pd-widget-drag-handle {
  color: #94a3b8 !important;
  cursor: grab !important;
  font-size: 16px !important;
  line-height: 1 !important;
  user-select: none !important;
}

.pd-widget-icon-box {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.pd-widget-icon-box.is-blue { background: #eff6ff !important; color: #2563eb !important; }
.pd-widget-icon-box.is-green { background: #f0fdf4 !important; color: #16a34a !important; }
.pd-widget-icon-box.is-purple { background: #faf5ff !important; color: #9333ea !important; }
.pd-widget-icon-box.is-amber { background: #fffbeb !important; color: #d97706 !important; }

.pd-widget-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.pd-widget-title-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pd-widget-num-badge {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
}

.pd-widget-info strong {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pd-widget-info p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pd-widget-card-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.pd-widget-move-btns {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.pd-widget-move-btn {
  height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-widget-move-btn:hover:not(:disabled) {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}

.pd-widget-move-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

.pd-widget-size-group {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.pd-widget-size-btn {
  height: 28px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-widget-size-btn:last-child {
  border-right: 0 !important;
}

.pd-widget-size-btn:hover {
  background: #f1f5f9 !important;
}

.pd-widget-size-btn.active {
  background: #eff6ff !important;
  color: #2563eb !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}

.pd-widget-toggle-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
}

.pd-widget-toggle-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.pd-switch {
  position: relative !important;
  width: 36px !important;
  height: 20px !important;
  display: inline-block !important;
}

.pd-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.pd-switch-slider {
  position: absolute !important;
  inset: 0 !important;
  background: #cbd5e1 !important;
  border-radius: 999px !important;
  transition: 0.2s !important;
}

.pd-switch-slider:before {
  content: "" !important;
  position: absolute !important;
  height: 14px !important;
  width: 14px !important;
  left: 3px !important;
  bottom: 3px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  transition: 0.2s !important;
}

.pd-switch input:checked + .pd-switch-slider {
  background: #2563eb !important;
}

.pd-switch input:checked + .pd-switch-slider:before {
  transform: translateX(16px) !important;
}

/* Modal Footer */
.pd-widget-drawer-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 26px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.pd-reset-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-reset-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.pd-foot-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.pd-cancel-btn {
  height: 38px !important;
  padding: 0 18px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.pd-cancel-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.pd-done-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.15s ease !important;
}

.pd-done-btn:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

/* Dark Mode Overrides for Workspace Studio */
html[data-erp-theme="dark"] body.erp-workspace #pdWidgetPanel.pd-widget-drawer {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .pd-widget-drawer-head {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .pd-widget-modal-title-wrap h2 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .pd-widget-modal-title-wrap p {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .pd-widget-drawer-tabs {
  background: #0b1929 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .pd-widget-drawer-tabs button {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] .pd-quick-layouts-bar,
html[data-erp-theme="dark"] .pd-widget-control-card {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .pd-quick-layouts-heading b,
html[data-erp-theme="dark"] .pd-widget-info strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .pd-quick-layout-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-erp-theme="dark"] .pd-quick-layout-card span,
html[data-erp-theme="dark"] .pd-widget-toggle-label {
  color: #f1f5f9 !important;
}

html[data-erp-theme="dark"] .pd-widget-move-btn,
html[data-erp-theme="dark"] .pd-widget-size-group {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-erp-theme="dark"] .pd-widget-move-btn {
  color: #e2e8f0 !important;
}

html[data-erp-theme="dark"] .pd-widget-size-btn {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] .pd-widget-drawer-foot {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-erp-theme="dark"] .pd-reset-btn,
html[data-erp-theme="dark"] .pd-cancel-btn {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}


/* ==========================================================================
   ENTERPRISE V520: FROZEN STICKY HEADER, BEAUTIFIED ORG SETTINGS & CALENDAR
   ========================================================================== */

/* 1. Normal Flow Header (Removed sticky per user request) */
body.erp-workspace .cz-top-nav-bar {
  position: static !important;
  top: auto !important;
  z-index: 10 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 8px 0 12px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html[data-erp-theme="dark"] body.erp-workspace .cz-top-nav-bar {
  background: transparent !important;
  border-bottom: none !important;
}

/* User avatar image display */
body.erp-workspace .enterprise-user-avatar {
  overflow: hidden !important;
}
body.erp-workspace .enterprise-user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Enhanced Staff Profile Workspace (Best-in-market UI/UX) */
body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  margin: 16px 0 20px !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a i {
  display: flex !important;
  align-items: center !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-card {
  padding: 18px 20px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-head {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: grid !important;
  place-items: center !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-icon.is-blue {
  background: #eff6ff !important;
  color: #2563eb !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-icon.is-green {
  background: #f0fdf4 !important;
  color: #16a34a !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-icon.is-purple {
  background: #faf5ff !important;
  color: #9333ea !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-icon.is-amber {
  background: #fffbeb !important;
  color: #d97706 !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-card strong {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.erp-workspace #adminShell .enterprise-main .staff-kpi-card small {
  font-size: 12px !important;
  color: #64748b !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs {
  background: #101d2d !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-tabs a.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-kpi-card {
  background: #101d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-kpi-card strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-kpi-card small {
  color: #94a3b8 !important;
}

@media (max-width: 900px) {
  body.erp-workspace #adminShell .enterprise-main .staff-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  body.erp-workspace #adminShell .enterprise-main .staff-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Beautified Organization & Payroll Settings (image_5e4aef.png) */
.org-identity-form-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 16px 4px 6px !important;
}

.org-identity-form-wrap .grid2 {
  gap: 16px 20px !important;
}

.org-identity-form-wrap label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #1e293b !important;
}

.org-identity-form-wrap input,
.org-identity-form-wrap textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.org-identity-form-wrap input:focus,
.org-identity-form-wrap textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* 3. Modern Public Website Appearance Block (image_5e4a5a.png) */
details.ws-settings-advanced {
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  margin-top: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

details.ws-settings-advanced > summary {
  padding: 18px 22px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  border-bottom: 1px solid transparent !important;
  transition: background 0.15s ease !important;
}

details.ws-settings-advanced[open] > summary {
  border-bottom-color: #e2e8f0 !important;
}

details.ws-settings-advanced > summary:hover {
  background: #f1f5f9 !important;
}

/* 4. Calendar & Attendance Architecture Explainer Card (image_5e4697.png) */
.calendar-architecture-card {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 16px 0 20px !important;
}

.cal-arch-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.cal-arch-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.cal-arch-icon.is-blue { background: #eff6ff !important; }
.cal-arch-icon.is-green { background: #f0fdf4 !important; }
.cal-arch-icon.is-purple { background: #faf5ff !important; }

.cal-arch-item b {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

.cal-arch-item p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

/* Dark Mode Overrides */
html[data-erp-theme="dark"] .org-identity-form-wrap label {
  color: #e2e8f0 !important;
}

html[data-erp-theme="dark"] .org-identity-form-wrap input,
html[data-erp-theme="dark"] .org-identity-form-wrap textarea {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] details.ws-settings-advanced {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-erp-theme="dark"] details.ws-settings-advanced > summary {
  background: #0b1929 !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .cal-arch-item {
  background: #112236 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-erp-theme="dark"] .cal-arch-item b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] .cal-arch-item p {
  color: #94a3b8 !important;
}

@media (max-width: 900px) {
  .calendar-architecture-card {
    grid-template-columns: 1fr !important;
  }
}


/* Mobile Navigation & Viewport Fixes (image_5cf8d5.png & image_5cfc1d.png) */
.cz-mobile-hamburger {
  display: none !important;
}

@media (max-width: 1200px) {
  body.erp-workspace .admin-shell.enterprise-shell,
  body.erp-workspace #adminShell,
  body.erp-workspace .admin-shell.enterprise-shell.sidebar-collapsed {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  body.erp-workspace #adminSidebar.enterprise-sidebar,
  body.erp-workspace .enterprise-sidebar,
  body.erp-workspace .sidebar-collapsed .enterprise-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: min(300px, 86vw) !important;
    margin: 0 !important;
    border-radius: 0 20px 20px 0 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5000 !important;
    box-shadow: 14px 0 45px rgba(15, 23, 42, 0.28) !important;
  }

  body.erp-workspace .admin-shell.mobile-nav-open #adminSidebar.enterprise-sidebar,
  body.erp-workspace .admin-shell.sidebar-mobile-open #adminSidebar.enterprise-sidebar,
  body.erp-workspace .admin-shell.mobile-nav-open .enterprise-sidebar {
    transform: translateX(0) !important;
  }

  body.erp-workspace .enterprise-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    padding: 14px 16px 36px !important;
    margin-top: 0 !important;
  }

  .cz-mobile-hamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
  }

  html[data-erp-theme="dark"] .cz-mobile-hamburger {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
  }

  .cz-filter-toggle-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
}


/* ==========================================================================
   ENTERPRISE V510: STAFF PROFILE UNIVERSAL DARK MODE & MOBILE WIDGET HIDE
   ========================================================================== */

/* 1. Hide Widget Layout on Mobile (image_5cde52.png) */
@media (max-width: 1200px) {
  #pdWidgetToggle,
  .pd-widget-toolbar {
    display: none !important;
  }
}

/* 2. Mobile Drawer Backdrop Interactive Click-Through Fix */
@media (max-width: 1200px) {
  body.erp-workspace.mobile-admin-nav-open #mobileNavBackdrop,
  body.erp-workspace .admin-shell.mobile-nav-open ~ #mobileNavBackdrop,
  body.erp-workspace #adminShell.mobile-nav-open ~ #mobileNavBackdrop,
  body.erp-workspace .admin-shell.sidebar-mobile-open ~ #mobileNavBackdrop,
  body.erp-workspace #adminShell.sidebar-mobile-open ~ #mobileNavBackdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 18, 29, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 4500 !important;
    cursor: pointer !important;
  }
}

/* 3. Staff Profile Universal Dark Mode (Fixes All 9 Dark Mode Screenshots) */
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid > .panel,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero + .staff-profile-tabs + .dashboard-grid > .panel,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero + .staff-profile-tabs + .panel,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-main .staff-profile-hero ~ .panel,
html[data-erp-theme="dark"] body.erp-workspace .enterprise-main .staff-profile-hero ~ .dashboard-grid > .panel,
html[data-erp-theme="dark"] body.erp-workspace .staff-profile-hero ~ .panel,
html[data-erp-theme="dark"] body.erp-workspace .staff-profile-hero ~ .dashboard-grid > .panel {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .panel-head,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .panel-head h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .panel-head h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid h2,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel h3,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid h3 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .eyebrow,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .eyebrow {
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .muted,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .muted,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel p,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid p {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel label,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid label {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel input,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel select,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel textarea,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid input,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid select,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid textarea {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel input:disabled,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid input:disabled {
  background: #112032 !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-info-grid > div,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .profile-info-grid > div {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-info-grid span,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .profile-info-grid span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-info-grid b,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .profile-info-grid b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .rowcard,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .rowcard {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .rowcard b,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .rowcard b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .compact-card,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .compact-card {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .table-wrap,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .table-wrap {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #0f1d2d !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .table-wrap th,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .table-wrap th {
  background: #162a42 !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .table-wrap td,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .table-wrap td {
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .table-wrap tbody tr:nth-child(even),
html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .dashboard-grid .table-wrap tbody tr:nth-child(even) {
  background: #132438 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-activity-list article {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-activity-list b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-activity-list p {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace #adminShell .enterprise-main .staff-profile-hero ~ .panel .profile-activity-list small {
  color: #94a3b8 !important;
}


/* ==========================================================================
   ENTERPRISE V520: STUDENT 360 LIGHT MODE CONTRAST & UNIVERSAL DARK MODE
   (Fixes image_5c0150.jpg & image_5c0114.jpg)
   ========================================================================== */

/* 1. Student 360 Light Mode High-Contrast Typography & Chips */
body.erp-workspace .student-hero-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.erp-workspace .student-hero-chip .chip-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
}

body.erp-workspace .student-hero-chip.status-chip {
  border-color: #a7f3d0 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

body.erp-workspace .student-360-overview-kpi span {
  color: #475569 !important;
}

body.erp-workspace .student-360-overview-kpi strong {
  color: #0f172a !important;
}

body.erp-workspace .student-360-detail-card h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.erp-workspace .student-360-detail-card > p {
  color: #475569 !important;
}

body.erp-workspace .student-360-record span {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.erp-workspace .student-360-record b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.erp-workspace .mini-calendar-weekday {
  color: #475569 !important;
  font-weight: 800 !important;
}

body.erp-workspace .mini-calendar-day > b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.erp-workspace .student-parent-contact-box b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.erp-workspace .student-parent-contact-box small {
  color: #475569 !important;
}

body.erp-workspace .student-personal-field span {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.erp-workspace .student-personal-field b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* 2. Student 360 Universal Dark Mode (Fixes All White Cards in image_5c0114.jpg) */
html[data-erp-theme="dark"] body.erp-workspace .student-profile-hero {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-profile-hero h2 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-hero-chip {
  background: #17283c !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-hero-chip.status-chip {
  background: #064e3b !important;
  border-color: #059669 !important;
  color: #a7f3d0 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-sidebar {
  background: #0f1d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-sidebar-heading span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-sidebar-heading strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-nav a {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-nav a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-nav a.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi {
  background: #0f1d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi .student-360-kpi-status {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi.has-outstanding strong {
  color: #f87171 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-overview-kpi.all-clear strong {
  color: #34d399 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-kpi-progress {
  background: #17283c !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-detail-card {
  background: #0f1d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-detail-card h3 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-detail-card > p {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-attendance-card-head {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-month-control a:not(.btn) {
  background: #17283c !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-month-control strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-attendance-summary span {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-attendance-summary b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-calendar {
  background: transparent !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-weekday {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-day {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-day > b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-day.today {
  border-color: #38bdf8 !important;
  background: #1e3a5f !important;
  box-shadow: inset 0 0 0 1px #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-day.sunday {
  background: #112032 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-calendar-day.sunday > b {
  color: #64748b !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-day-statuses i {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-day-statuses i.present {
  background: #064e3b !important;
  color: #6ee7b7 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-day-statuses i.absent {
  background: #7f1d1d !important;
  color: #fca5a5 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-day-statuses i.leave {
  background: #78350f !important;
  color: #fcd34d !important;
}

html[data-erp-theme="dark"] body.erp-workspace .mini-day-statuses i.other {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-legend {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-legend span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-mini-legend a {
  color: #38bdf8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-record {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-record span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-record b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-record-status {
  background: #17283c !important;
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-360-record-status.is-set {
  background: #064e3b !important;
  color: #6ee7b7 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-parent-contact-box {
  background: #17283c !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-parent-contact-box b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-parent-contact-box small {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-panel {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-panel h2 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-panel p {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-field {
  background: #17283c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-field span {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-personal-field b {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-stat {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-stat strong {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-stat small {
  color: #94a3b8 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-toolbar {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-views {
  background: #17283c !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-views a {
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-views a.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-log {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-log th {
  background: #162a42 !important;
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-log td {
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-attendance-log tbody tr:hover td {
  background: #132438 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-progress-workspace {
  background: #0f1d2d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-progress-heading h2 {
  color: #f8fafc !important;
}

html[data-erp-theme="dark"] body.erp-workspace .student-progress-heading p {
  color: #94a3b8 !important;
}


/* Issue 2 Fix: Perfect alignment of bulk opt-in buttons */
.bulk-optin-buttons {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.bulk-optin-buttons .btn {
  height: 40px !important;
  min-height: 40px !important;
  line-height: 40px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  margin: 0 !important;
}


/* ==========================================================================
   ENTERPRISE POLISH: CHAT OVERLAP PREVENTION & DARK MODE REFINEMENTS
   ========================================================================== */

/* Prevent floating chat button from overlapping modal/drawer action buttons */
body.has-active-modal:not(.staff-chat-open) .staff-chat-fab,
body:has(.ttw-drawer.open):not(.staff-chat-open) .staff-chat-fab,
body:has(.user-admin-drawer-layer:not([hidden])):not(.staff-chat-open) .staff-chat-fab {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.floating-staff-chat.open .staff-chat-drawer {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 10060 !important;
}

/* User Branch Access & All Branches Option Dark Mode Theme */
html[data-erp-theme="dark"] .branch-access-all,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-all,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .branch-access-all {
  background: #14243b !important;
  border: 1px dashed #2e4d73 !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] .branch-access-all:hover,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-all:hover {
  background: #172b44 !important;
  border-color: #3b82f6 !important;
}
html[data-erp-theme="dark"] .branch-access-all:has(input:checked),
html[data-erp-theme="dark"] body.erp-workspace .branch-access-all:has(input:checked) {
  background: #183354 !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: inset 0 0 0 1px #3b82f6 !important;
}
html[data-erp-theme="dark"] .branch-access-all b,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-all b,
html[data-erp-theme="dark"] .branch-access-option b,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-option b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] .branch-access-all small,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-all small,
html[data-erp-theme="dark"] .branch-access-option small,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-option small {
  color: #94a3b8 !important;
}
html[data-erp-theme="dark"] .user-branch-access-box,
html[data-erp-theme="dark"] body.erp-workspace .user-branch-access-box {
  background: #111c2d !important;
  border-color: #22344d !important;
}
html[data-erp-theme="dark"] .user-branch-access-box legend,
html[data-erp-theme="dark"] body.erp-workspace .user-branch-access-box legend {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .branch-access-option,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-option {
  background: #101c2e !important;
  border-color: #22344d !important;
  color: #f1f5f9 !important;
}
html[data-erp-theme="dark"] .branch-access-option:hover,
html[data-erp-theme="dark"] body.erp-workspace .branch-access-option:hover {
  border-color: #3b82f6 !important;
  background: #14243b !important;
}
html[data-erp-theme="dark"] .branch-access-option:has(input:checked),
html[data-erp-theme="dark"] body.erp-workspace .branch-access-option:has(input:checked) {
  background: #183354 !important;
  border-color: #3b82f6 !important;
  box-shadow: inset 0 0 0 1px #3b82f6 !important;
}

/* Mobile Branding & Palette Settings Dark Mode Refinements */
.mobile-palette-card-light {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.mobile-palette-card-light b {
  color: #0f172a;
}
.mobile-palette-card-light label {
  color: #334155;
}
.mobile-palette-card-light input[type="text"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
.mobile-palette-card-dark {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #f8fafc;
}
.mobile-palette-card-dark b {
  color: #f8fafc;
}
.mobile-palette-card-dark label {
  color: #cbd5e1;
}
.mobile-palette-card-dark input[type="text"] {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

html[data-erp-theme="dark"] .mobile-palette-card-light {
  background: #152236 !important;
  border-color: #243851 !important;
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] .mobile-palette-card-light b {
  color: #f8fafc !important;
}
html[data-erp-theme="dark"] .mobile-palette-card-light label {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .mobile-palette-card-light input[type="text"] {
  background: #101c2e !important;
  color: #f8fafc !important;
  border-color: #243851 !important;
}
html[data-erp-theme="dark"] .mobile-palette-card-dark {
  background: #0c1422 !important;
  border-color: #1e324a !important;
}

.mobile-active-logo-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}
html[data-erp-theme="dark"] .mobile-active-logo-bar {
  background: #152236 !important;
  border-color: #243851 !important;
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .mobile-active-logo-bar span {
  color: #cbd5e1 !important;
}
html[data-erp-theme="dark"] .mobile-active-logo-bar span b {
  color: #f8fafc !important;
}

.module-matrix-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef2f6;
  color: #1e293b;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
html[data-erp-theme="dark"] .module-matrix-icon {
  background: #1e293b !important;
  color: #93c5fd !important;
  border: 1px solid #334155;
}

.mobile-api-endpoint-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
html[data-erp-theme="dark"] .mobile-api-endpoint-box {
  background: rgba(6, 78, 59, 0.25) !important;
  border-color: rgba(5, 150, 105, 0.45) !important;
}
html[data-erp-theme="dark"] .mobile-api-endpoint-box b {
  color: #34d399 !important;
}
html[data-erp-theme="dark"] .mobile-api-endpoint-box p,
html[data-erp-theme="dark"] .mobile-api-endpoint-box code {
  color: #6ee7b7 !important;
  background: transparent !important;
}


/* ==========================================================================
   ENTERPRISE POLISH: PAYROLL STATUS BADGE, BUTTON ALIGNMENT & WORKSPACE NAV
   ========================================================================== */

/* 1. Payroll Salary Profiles: Refined smaller ACTIVE/DISABLED status badge (image_2aa963.png) */
.payroll-employee-status,
body.erp-workspace #adminShell .payroll-employee-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
  text-transform: uppercase !important;
}

.payroll-status-label,
body.erp-workspace #adminShell .payroll-status-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.payroll-status-dot,
body.erp-workspace #adminShell .payroll-status-dot {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
  border-radius: 50% !important;
  background: #059669 !important;
  display: inline-block !important;
  flex: 0 0 5px !important;
}

.payroll-status-dot.is-disabled,
body.erp-workspace #adminShell .payroll-status-dot.is-disabled {
  background: #dc2626 !important;
}

.payroll-card-disabled .payroll-employee-status,
body.erp-workspace #adminShell .payroll-card-disabled .payroll-employee-status {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}

html[data-erp-theme="dark"] .payroll-employee-status,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .payroll-employee-status {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #6ee7b7 !important;
}

html[data-erp-theme="dark"] .payroll-card-disabled .payroll-employee-status,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .payroll-card-disabled .payroll-employee-status {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fca5a5 !important;
}

/* 2. Workspace Sidebar Typography & Icons (image_2aae1f.png) */
body.erp-workspace .ws-module-nav > a,
.ws-module-nav > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 6px 10px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.erp-workspace .ws-module-nav-label,
.ws-module-nav-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  flex: 1 1 auto !important;
}

body.erp-workspace .ws-module-nav-icon,
.ws-module-nav-icon {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border: 1px solid var(--v310-border, #dbe4ee) !important;
  border-radius: 8px !important;
  background: var(--v310-surface, #ffffff) !important;
  color: var(--v310-primary, #2563eb) !important;
  box-sizing: border-box !important;
}

body.erp-workspace .ws-module-nav-icon svg,
.ws-module-nav-icon svg {
  width: 14px !important;
  height: 14px !important;
}

body.erp-workspace .ws-module-nav > a :is(.soft-count, em),
.ws-module-nav > a :is(.soft-count, em) {
  margin-left: auto !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* 3. Button Alignment & Spacing: Leave Approvals & Overtime Review (image_2aaa1e.png & image_2aa657.png) */
.inline-form,
body.erp-workspace #adminShell .inline-form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

.inline-form input[name="manager_comment"],
.inline-form input,
body.erp-workspace #adminShell .inline-form input {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--v310-border, #cbd5e1) !important;
  font-size: 12.5px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

.inline-form .btn,
body.erp-workspace #adminShell .inline-form .btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  line-height: normal !important;
}

.inline-form .btn[value="reject"],
body.erp-workspace #adminShell .inline-form .btn[value="reject"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.inline-form .btn[value="reject"]:hover,
body.erp-workspace #adminShell .inline-form .btn[value="reject"]:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.leave-approval-card .form-actions,
.leave-approval-list .form-actions,
body.erp-workspace #adminShell .leave-approval-card .form-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.leave-approval-card .form-actions .btn,
.leave-approval-list .form-actions .btn,
body.erp-workspace #adminShell .leave-approval-card .form-actions .btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: normal !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.leave-approval-card .form-actions .btn.danger,
.leave-approval-list .form-actions .btn.danger,
body.erp-workspace #adminShell .leave-approval-card .form-actions .btn.danger {
  background: #ffffff !important;
  border: 1px solid #fca5a5 !important;
  color: #dc2626 !important;
}

.leave-approval-card .form-actions .btn.danger:hover,
.leave-approval-list .form-actions .btn.danger:hover,
body.erp-workspace #adminShell .leave-approval-card .form-actions .btn.danger:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}

/* Dark mode button alignment & colors */
html[data-erp-theme="dark"] .leave-approval-card .form-actions .btn.danger,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .leave-approval-card .form-actions .btn.danger {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-erp-theme="dark"] .inline-form .btn[value="reject"],
html[data-erp-theme="dark"] body.erp-workspace #adminShell .inline-form .btn[value="reject"] {
  background: #152236 !important;
  border-color: #243851 !important;
  color: #cbd5e1 !important;
}

html[data-erp-theme="dark"] .inline-form .btn[value="reject"]:hover,
html[data-erp-theme="dark"] body.erp-workspace #adminShell .inline-form .btn[value="reject"]:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}


/* --- PAYROLL KPI METRIC CARDS: ICON IN FRONT OF NUMBER --- */
.payroll-stats,
.payroll-stats-extended,
.payroll-stats-process,
body.erp-workspace .product-kpi-grid.payroll-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}

.payroll-stat,
body.erp-workspace .payroll-stat,
.product-kpi-grid.payroll-stats > article,
body.erp-workspace .product-kpi-grid.payroll-stats > article {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  min-height: 88px !important;
  border: 1px solid #dde7ef !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 39, 66, 0.04) !important;
}

.payroll-stat .product-kpi-icon,
body.erp-workspace .payroll-stat .product-kpi-icon,
.product-kpi-grid.payroll-stats .product-kpi-icon {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}

.payroll-stat > div,
body.erp-workspace .payroll-stat > div,
.product-kpi-grid.payroll-stats > article > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.payroll-stat strong,
body.erp-workspace .payroll-stat strong,
.product-kpi-grid.payroll-stats strong {
  display: block !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #102b44 !important;
  margin: 0 !important;
  text-align: left !important;
}

.payroll-stat small,
body.erp-workspace .payroll-stat small,
.product-kpi-grid.payroll-stats small {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  color: #72879b !important;
  margin: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.payroll-stat-active {
  border-color: #cfe5d7 !important;
  background: #fbfefc !important;
}
.payroll-stat-active strong {
  color: #177245 !important;
}

.payroll-stat-disabled {
  border-color: #efcccc !important;
  background: #fff9f9 !important;
}
.payroll-stat-disabled strong {
  color: #c33434 !important;
}

.payroll-stat-total {
  border-color: #d7e3ec !important;
  background: #fbfcfe !important;
}
.payroll-stat-total strong {
  color: #183b56 !important;
}

@media (max-width: 900px) {
  .payroll-stats,
  .payroll-stats-extended,
  .payroll-stats-process,
  body.erp-workspace .product-kpi-grid.payroll-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .payroll-stats,
  .payroll-stats-extended,
  .payroll-stats-process,
  body.erp-workspace .product-kpi-grid.payroll-stats {
    grid-template-columns: 1fr !important;
  }
}


/* --- PAYROLL STATS GAP FIX: TIGHT COUPLING BETWEEN ICON & VALUE --- */
.payroll-stats,
.payroll-stats-extended,
.payroll-stats-process,
body.erp-workspace .product-kpi-grid.payroll-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}

.payroll-stat,
body.erp-workspace .payroll-stat,
.product-kpi-grid.payroll-stats > article,
body.erp-workspace .product-kpi-grid.payroll-stats > article {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  min-height: 88px !important;
  border: 1px solid #dde7ef !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 39, 66, 0.04) !important;
}

.payroll-stat .product-kpi-icon,
body.erp-workspace .payroll-stat .product-kpi-icon,
.product-kpi-grid.payroll-stats .product-kpi-icon {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}

.payroll-stat > div,
body.erp-workspace .payroll-stat > div,
.product-kpi-grid.payroll-stats > article > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.payroll-stat strong,
body.erp-workspace .payroll-stat strong,
.product-kpi-grid.payroll-stats strong {
  display: block !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #102b44 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  width: auto !important;
}

.payroll-stat small,
body.erp-workspace .payroll-stat small,
.product-kpi-grid.payroll-stats small {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  color: #72879b !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
}
