/* ==========================================================================
   DIVINE FINGERS HEALTHCARE SERVICES INC.
   PREMIUM FUTURISTIC ADMIN DASHBOARD DESIGN SYSTEM (admin.css)
   ========================================================================== */

:root {
  /* Brand Accents - Matching Website Hero & Clinical Theme */
  --brand-cyan: #1BAECF;
  --brand-cyan-light: #38BDF8;
  --brand-teal: #00A896;
  --brand-teal-light: #2DD4BF;
  --brand-turquoise: #0D9488;
  --brand-navy: #0A0F1D;
  --brand-slate: #0F172A;

  /* Semantic Feedback */
  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.12);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.12);
  --status-info: #0284C7;
  --status-info-bg: rgba(2, 132, 199, 0.12);

  /* Light Theme (Default Light Mode) */
  color-scheme: light;
  --bg-app: #F0F4F8;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: rgba(240, 244, 248, 0.92);
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-subtle: #E2E8F0;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --bg-input: #FFFFFF;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-accent: rgba(27, 174, 207, 0.35);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(27, 174, 207, 0.15);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);

  /* Layout dimensions */
  --sidebar-w: 272px;
  --sidebar-collapsed-w: 76px;
  --topbar-h: 70px;
  --bottomnav-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  color-scheme: dark;
  --brand-cyan: #00F5D4;
  --brand-cyan-light: #38BDF8;
  --brand-teal: #00A896;
  --brand-teal-light: #2DD4BF;
  --brand-turquoise: #00F5D4;

  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.16);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.16);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.16);
  --status-info: #38BDF8;
  --status-info-bg: rgba(56, 189, 248, 0.16);

  --bg-app: #0B1220;
  --bg-sidebar: #0F172A;
  --bg-topbar: rgba(15, 23, 42, 0.88);
  --bg-card: #131E33;
  --bg-card-hover: #17243D;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-surface: #131E33;
  --bg-surface-elevated: #17243D;
  --bg-input: #0B1220;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(255, 255, 255, 0.14);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.4);

  --glass-bg: rgba(19, 30, 51, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* App Container */
.admin-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* ==========================================================================
   0. AUTHENTICATION OVERLAY GATE (FULL-SCREEN MODAL)
   ========================================================================== */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
}

.admin-auth-overlay.hidden,
.admin-auth-overlay.authenticated,
.admin-auth-overlay[style*="display: none"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.admin-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.admin-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-teal));
}

.admin-auth-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 245, 212, 0.3));
}

.admin-auth-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.admin-auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-auth-error {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ==========================================================================
   1. SIDEBAR NAVIGATION SYSTEM (PREMIUM EXECUTIVE SAAS)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width var(--transition-normal), transform var(--transition-normal), background-color var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .sidebar {
  background-color: #0c1424;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-w);
}

/* Sidebar Top Header */
.sidebar-header {
  height: var(--topbar-h);
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

[data-theme="dark"] .sidebar-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  white-space: nowrap;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  object-fit: contain;
  border-radius: 8px;
  padding: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.brand-info {
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition-fast);
}

.sidebar.collapsed .brand-info {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.brand-name {
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-collapse-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-collapse-btn:hover {
  color: var(--brand-cyan);
  background: var(--bg-card);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-sm);
}

.sidebar.collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}

/* Nav Menu List */
.sidebar-nav {
  flex: 1;
  padding: 1.15rem 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0.95rem 0.75rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.nav-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.7;
}

.sidebar.collapsed .nav-section-title {
  display: none;
}

/* Nav Action Buttons */
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
  white-space: nowrap;
}

.nav-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-icon i {
  width: 17px;
  height: 17px;
}

.nav-item-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-item-btn:hover .nav-icon {
  color: #FFFFFF;
  background: linear-gradient(135deg, #1BAECF 0%, #00A896 100%);
  box-shadow: 0 2px 6px rgba(27, 174, 207, 0.3);
}

/* Active Nav State - Solid Vibrant Gradient */
.nav-item-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.nav-item-btn.active .nav-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .nav-item-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45), 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

[data-theme="dark"] .nav-item-btn.active .nav-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.nav-label {
  flex: 1;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  display: none;
}

.nav-badge {
  background: #00A896;
  color: #FFFFFF !important; /* White numbers across all badges */
  font-size: 0.72rem;
  font-weight: 900 !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  vertical-align: middle;
  pointer-events: none;
}

[data-theme="dark"] .nav-badge {
  background: #00A896 !important;
  color: #FFFFFF !important; /* Pure white digits */
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 168, 150, 0.45);
}

/* Red / Urgent Count Badges (e.g. Client Requests) */
.nav-badge.danger,
.nav-badge[style*="danger"],
#badge-requests-count {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

/* Amber / Warning Count Badges (e.g. New Facilities / Pending Onboarding) */
.nav-badge.warning,
.nav-badge.pulse,
#badge-facilities-count.warning {
  background: #F59E0B !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

/* When the parent nav item is selected/active */
.nav-item-btn.active .nav-badge {
  background: rgba(0, 0, 0, 0.38) !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.nav-item-btn.active .nav-badge.danger,
.nav-item-btn.active .nav-badge[style*="danger"],
.nav-item-btn.active #badge-requests-count {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.nav-item-btn.active .nav-badge.warning,
.nav-item-btn.active #badge-facilities-count.warning {
  background: #F59E0B !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5) !important;
}

/* Sidebar Collapsed State (Executive Rail Mode) */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-w) !important;
  overflow-x: hidden !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 0 0.5rem !important;
  justify-content: center !important;
  gap: 0.35rem !important;
}

.sidebar.collapsed .brand-link {
  justify-content: center !important;
  gap: 0 !important;
  width: auto !important;
}

.sidebar.collapsed .brand-logo-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

.sidebar.collapsed .sidebar-collapse-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
}

.sidebar.collapsed .brand-info,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .user-meta {
  display: none !important;
}

.sidebar.collapsed .sidebar-nav {
  padding: 0.85rem 0.5rem !important;
  align-items: center !important;
  overflow-x: hidden !important;
}

.sidebar.collapsed .nav-item-btn {
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 10px !important;
  position: relative !important;
  margin: 0 auto !important;
}

.sidebar.collapsed .nav-icon {
  margin: 0 !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sidebar.collapsed .nav-badge {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 3.5px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--bg-sidebar, #FFFFFF) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
  z-index: 5 !important;
  pointer-events: none !important;
  margin: 0 !important;
  transform: none !important;
}

.sidebar.collapsed .sidebar-footer {
  padding: 0.65rem 0.35rem !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.sidebar.collapsed .sidebar-user-pill {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  flex: none !important;
}

.sidebar.collapsed #sidebar-logout-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: var(--radius-sm) !important;
  margin: 0 !important;
}

/* Sidebar Footer & User Clearance */
.sidebar-footer {
  padding: 0.85rem 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--bg-card);
}

[data-theme="dark"] .sidebar-footer {
  background: transparent;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex: 1;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.sidebar-user-pill:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  transform: translateY(-1px);
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-user-name,
#sidebar-user-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-clearance-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-top: 1px;
}

/* ==========================================================================
   2. MAIN CONTENT AREA & TOPBAR
   ========================================================================== */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  transition: margin-left var(--transition-smooth);
}

.sidebar.collapsed ~ .main-wrapper {
  margin-left: var(--sidebar-collapsed-w);
}

/* Topbar Header */
.topbar {
  height: var(--topbar-h);
  background-color: var(--bg-topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 540px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Global Search Bar */
.global-search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 1rem 0 2.4rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-cyan);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(27, 174, 207, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd-hint {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  pointer-events: none;
}

/* Topbar Actions */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-pulse-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--status-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-success);
  font-size: 0.75rem;
  font-weight: 700;
}

.live-clock-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.live-clock-chip:hover {
  border-color: var(--brand-cyan);
  background: rgba(0, 245, 212, 0.06);
  transform: translateY(-1px);
}

.live-tz-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 168, 150, 0.15);
  color: var(--brand-cyan);
  letter-spacing: 0.5px;
}

.pulse-dot {
  display: inline-block;
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-success);
  flex-shrink: 0;
  vertical-align: middle;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  transform: translate(-50%, -50%);
  animation: pulseDotSonar 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseDotSonar {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: translate(-50%, -50%) scale(2.3);
    opacity: 0;
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* High Contrast for Action Buttons, Status Pills & Badges in Light Mode */
.status-pill .pulse-dot,
.badge .pulse-dot,
.admin-action-btn .pulse-dot,
.admin-action-badge-self .pulse-dot,
button .pulse-dot,
.btn-primary-action .pulse-dot,
.btn-secondary-action .pulse-dot {
  background-color: #FFFFFF !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9) !important;
}

.status-pill .pulse-dot::before,
.badge .pulse-dot::before,
.admin-action-btn .pulse-dot::before,
.admin-action-badge-self .pulse-dot::before,
button .pulse-dot::before,
.btn-primary-action .pulse-dot::before,
.btn-secondary-action .pulse-dot::before {
  background-color: #FFFFFF !important;
  animation-name: pulseDotSonarWhite !important;
}

@keyframes pulseDotSonarWhite {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85);
  }
  70% {
    transform: translate(-50%, -50%) scale(2.3);
    opacity: 0;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Dark Mode Overrides for Status Pills & Action Badges */
[data-theme="dark"] .status-pill .pulse-dot,
[data-theme="dark"] .admin-action-btn .pulse-dot,
[data-theme="dark"] .admin-action-badge-self .pulse-dot {
  background-color: currentColor !important;
  box-shadow: 0 0 6px currentColor !important;
}

[data-theme="dark"] .status-pill .pulse-dot::before,
[data-theme="dark"] .admin-action-btn .pulse-dot::before,
[data-theme="dark"] .admin-action-badge-self .pulse-dot::before {
  background-color: currentColor !important;
  animation-name: pulseDotSonar !important;
}

.topbar-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.topbar-action-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--status-danger);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-sidebar);
}

.view-site-link-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(27, 174, 207, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--brand-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.view-site-link-btn:hover {
  background: var(--brand-cyan);
  color: #FFF;
}

/* ==========================================================================
   3. BREADCRUMBS & VIEW HEADER
   ========================================================================== */
.view-header {
  padding: 1.25rem 1.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb-link:hover {
  color: var(--brand-cyan);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.page-title {
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.3;
}

.page-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #FFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 174, 207, 0.3);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 174, 207, 0.4);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-subtle);
}

[data-theme="dark"] .btn-primary-action {
  background: linear-gradient(135deg, #00A896 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.35), 0 0 12px rgba(0, 245, 212, 0.2);
}

[data-theme="dark"] .btn-secondary-action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

[data-theme="dark"] .btn-secondary-action:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* ==========================================================================
   4. DASHBOARD CONTAINER & MODULE VIEWS
   ========================================================================== */
.admin-content-body {
  padding: 1.25rem 1.75rem 2.5rem;
  flex: 1;
}

.admin-view-tab {
  display: none !important;
  opacity: 0;
}

.admin-view-tab.active-tab {
  display: block !important;
  opacity: 1;
  animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. KPI CARDS GRID (6 TOP ROW METRICS)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 14px rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.4);
}

[data-theme="dark"] .kpi-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 245, 212, 0.15);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-teal));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kpi-card:hover::before {
  opacity: 0.85;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.kpi-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-teal) 100%) !important;
  box-shadow: 0 3px 10px rgba(27, 174, 207, 0.3) !important;
}

[data-theme="dark"] .kpi-icon-box {
  background: linear-gradient(135deg, #00A896 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.25) !important;
  border: 1px solid rgba(0, 245, 212, 0.35) !important;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.skeleton-shimmer {
  display: inline-block;
  min-width: 44px;
  height: 1.25em;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.4s infinite linear;
  border-radius: 6px;
  vertical-align: middle;
}

[data-theme="light"] .skeleton-shimmer {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.04) 75%);
}

@keyframes shimmerSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.kpi-trend.positive {
  color: var(--status-success);
  background: var(--status-success-bg);
}

.kpi-trend.negative {
  color: var(--status-danger);
  background: var(--status-danger-bg);
}

.kpi-trend.neutral {
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.kpi-sparkline-canvas {
  width: 100%;
  height: 28px;
  margin-top: 0.4rem;
}

/* ==========================================================================
   6. DATA CHARTS & VISUALIZATIONS SECTION
   ========================================================================== */
.charts-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.charts-grid-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Card Base */
.chart-card.glass-cyber-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.chart-card.glass-cyber-card {
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-card.glass-cyber-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Dark Theme Card Overrides */
[data-theme="dark"] .chart-card.glass-cyber-card {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .chart-card.glass-cyber-card:hover {
  border-color: rgba(0, 245, 212, 0.28);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 245, 212, 0.08);
}

.live-chart-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284C7;
  display: inline-block;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
  animation: chartPulseLight 1.8s infinite;
}

[data-theme="dark"] .live-chart-pulse {
  background: #00F5D4;
  box-shadow: 0 0 10px #00F5D4;
  animation: chartPulseDark 1.8s infinite;
}

@keyframes chartPulseLight {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

@keyframes chartPulseDark {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 245, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.chart-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.chart-title {
  font-size: clamp(0.88rem, 3.2vw, 1.05rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.chart-title span,
.chart-title strong {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.chart-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  line-height: 1.4;
}

.chart-segmented-control {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
}

[data-theme="dark"] .chart-segmented-control {
  background: rgba(11, 25, 44, 0.6);
  border: 1px solid var(--border-color);
}

.segmented-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .segmented-btn {
  color: var(--text-secondary);
}

.segmented-btn:hover {
  color: var(--brand-cyan);
}

.segmented-btn.active {
  background: #FFFFFF;
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

[data-theme="dark"] .segmented-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2) 0%, rgba(0, 180, 216, 0.3) 100%);
  color: #00F5D4;
  border: 1px solid rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.chart-container-box {
  position: relative;
  width: 100%;
  height: 290px;
}

/* Donut legend & Horizontal Progress Bars */
.donut-stat-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}

[data-theme="dark"] .donut-stat-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.donut-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F8FAFC;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .donut-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.donut-stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
}

.donut-stat-val {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.donut-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

.donut-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px currentColor;
}

/* Compliance Bars */
.compliance-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.compliance-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compliance-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .progress-track {
  background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px currentColor;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* Activity Feed (Live Feed List) */
.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: var(--bg-card-hover);
}

.activity-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. DATA TABLES & ADVANCED DATA VIEWS
   ========================================================================== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

[data-theme="dark"] .table-card {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ==========================================================================
   UNIVERSAL SELECT & OPTION STYLING (PERFECT DARK & LIGHT MODE VISIBILITY)
   ========================================================================== */
select,
.filter-select,
.modal-input {
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color-scheme: light dark;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

select:focus,
.filter-select:focus,
.modal-input:focus {
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 0 0 3px rgba(27, 174, 207, 0.2) !important;
}

/* Base Light Mode Option Styles */
select option,
select optgroup,
.filter-select option,
.filter-select optgroup,
.modal-input option,
.modal-input optgroup {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 12px;
}

/* Dark Mode Select and Option Styling */
[data-theme="dark"] select,
[data-theme="dark"] .filter-select,
[data-theme="dark"] .modal-input {
  background-color: #131E33 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #F8FAFC !important;
  color-scheme: dark !important;
}

[data-theme="dark"] select option,
[data-theme="dark"] select optgroup,
[data-theme="dark"] .filter-select option,
[data-theme="dark"] .filter-select optgroup,
[data-theme="dark"] .modal-input option,
[data-theme="dark"] .modal-input optgroup {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  font-weight: 500;
}

[data-theme="dark"] select option:checked,
[data-theme="dark"] .filter-select option:checked,
[data-theme="dark"] .modal-input option:checked {
  background-color: #1E293B !important;
  color: #00F5D4 !important;
  font-weight: 700 !important;
}

.filter-search-box {
  position: relative;
  min-width: 220px;
}

.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive-container::-webkit-scrollbar {
  height: 6px;
}

.table-responsive-container::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 99px;
}

.table-responsive-container::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.3);
  border-radius: 99px;
}

.table-responsive-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 212, 0.6);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  padding: 0.85rem 1.1rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:hover td {
  background-color: var(--bg-subtle);
}

.meta-label {
  display: none;
}

.row-status-top {
  display: none;
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}

.cell-block-item {
  max-width: 420px;
  word-break: break-word;
}

.cell-block-item .meta-value {
  line-height: 1.45;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.table-user-info {
  display: flex;
  flex-direction: column;
}

.table-user-name {
  font-weight: 700;
  color: var(--text-primary);
}

.table-user-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Status Pill Badges & Tags (Solid Gradient Architecture) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.92rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  line-height: 1.25;
}

.status-pill svg,
.status-pill i,
.badge svg,
.badge i,
.admin-action-badge-self svg,
.admin-action-badge-self i {
  width: 13.5px;
  height: 13.5px;
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  stroke-width: 2.3px !important;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

[data-theme="dark"] .status-pill svg,
[data-theme="dark"] .status-pill i,
[data-theme="dark"] .badge svg,
[data-theme="dark"] .badge i,
[data-theme="dark"] .admin-action-badge-self svg,
[data-theme="dark"] .admin-action-badge-self i {
  color: currentColor !important;
  stroke: currentColor !important;
}

.status-pill.available,
.status-pill.verified,
.status-pill.confirmed,
.status-pill.completed,
.status-pill.hired {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
  color: #FFFFFF !important;
}

.status-pill.on-shift,
.status-pill.reviewing,
.status-pill.pending,
.status-pill.review,
.status-pill.interview,
.status-pill.expiring {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.28);
}

.status-pill.off-duty,
.status-pill.new,
.status-pill.matched,
.status-pill.dispatched {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

.status-pill.expired,
.status-pill.urgent,
.status-pill.rejected,
.status-pill.cancelled {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.28);
}

.status-pill.in_session {
  background: linear-gradient(135deg, #10B981 0%, #0D9488 100%) !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Professional Role Badges (Solid Vibrant Gradients) */
.status-pill.role-rn,
.status-pill.role-super-admin {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.28);
}

.status-pill.role-rpn,
.status-pill.role-dispatch {
  background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%) !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}

.status-pill.role-care-coordinator {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

.status-pill.role-recruiter {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
}

.status-pill.role-auditor {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.28);
}

.status-pill.role-custom {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.28);
}

.status-pill.role-psw {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.28);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0284C7 0%, #0D9488 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

/* Dark Mode Status Pills & Badges (Luminous Glass Cyber Accents) */
[data-theme="dark"] .status-pill {
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .status-pill.available,
[data-theme="dark"] .status-pill.verified,
[data-theme="dark"] .status-pill.confirmed,
[data-theme="dark"] .status-pill.completed,
[data-theme="dark"] .status-pill.hired {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.35) 100%) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .status-pill.on-shift,
[data-theme="dark"] .status-pill.reviewing,
[data-theme="dark"] .status-pill.pending,
[data-theme="dark"] .status-pill.review,
[data-theme="dark"] .status-pill.interview,
[data-theme="dark"] .status-pill.expiring {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

[data-theme="dark"] .status-pill.off-duty,
[data-theme="dark"] .status-pill.new,
[data-theme="dark"] .status-pill.matched,
[data-theme="dark"] .status-pill.dispatched {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(2, 132, 199, 0.35) 100%) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .status-pill.expired,
[data-theme="dark"] .status-pill.urgent,
[data-theme="dark"] .status-pill.rejected,
[data-theme="dark"] .status-pill.cancelled {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(220, 38, 38, 0.35) 100%) !important;
  color: #F87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

[data-theme="dark"] .status-pill.in_session {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(13, 148, 136, 0.35) 100%) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-rn,
[data-theme="dark"] .status-pill.role-super-admin {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(79, 70, 229, 0.38) 100%) !important;
  color: #A5B4FC !important;
  border: 1px solid rgba(165, 180, 252, 0.45) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-rpn,
[data-theme="dark"] .status-pill.role-dispatch {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(2, 132, 199, 0.38) 100%) !important;
  color: #5EEAD4 !important;
  border: 1px solid rgba(94, 234, 212, 0.45) !important;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-care-coordinator {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(3, 105, 161, 0.38) 100%) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-recruiter {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.38) 100%) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-auditor {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.38) 100%) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-custom {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.38) 100%) !important;
  color: #C4B5FD !important;
  border: 1px solid rgba(196, 181, 253, 0.45) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .status-pill.role-psw {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.38) 100%) !important;
  color: #7DD3FC !important;
  border: 1px solid rgba(125, 211, 252, 0.45) !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .badge {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(13, 148, 136, 0.35) 100%) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.2) !important;
}

@keyframes liveActivePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(0, 245, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

@keyframes urgentPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   8. KANBAN PIPELINE VIEW (UNIFIED CONNECTED DISPATCH BOARD)
   ========================================================================== */
.mobile-kanban-stage-bar {
  display: none;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 0;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .pipeline-board {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.kanban-col,
.pipeline-col {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.kanban-col:last-child,
.pipeline-col:last-child {
  border-right: none;
}

[data-theme="dark"] .kanban-col,
[data-theme="dark"] .pipeline-col {
  border-right-color: rgba(255, 255, 255, 0.08);
}

.kanban-col-header,
.pipeline-col-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  padding: 0.75rem 0.95rem !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 1.15rem !important;
  border: 1.5px solid var(--border-color) !important;
  background: var(--bg-subtle) !important;
  transition: all 0.2s ease;
}

[data-theme="dark"] .kanban-col-header {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.kanban-header-title,
.pipeline-col-title {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.kanban-header-title i,
.kanban-header-title svg,
.pipeline-col-title i,
.pipeline-col-title svg {
  margin-top: 1px;
  flex-shrink: 0;
  align-self: flex-start;
}

.kanban-count-pill,
.kanban-count,
.pipeline-col-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 26px !important;
  height: 24px !important;
  padding: 0 0.5rem !important;
  border-radius: 99px !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  flex-shrink: 0 !important;
}

.kanban-cards,
.pipeline-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.kanban-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .kanban-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .kanban-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-cyan);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.kanban-card.is-urgent {
  border-left: 3px solid var(--status-danger);
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.kanban-urgency-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--status-danger);
  background: var(--status-danger-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.kanban-card-facility {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.kanban-card-role {
  font-size: 0.8rem;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   SCHEDULER DATE NAVIGATOR TOOLBAR (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */
.scheduler-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.scheduler-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scheduler-controls-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.scheduler-date-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.stepper-btn,
.stepper-today-btn {
  height: 34px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper-btn:hover,
.stepper-today-btn:hover {
  background: var(--bg-card);
  color: var(--brand-cyan);
}

.stepper-today-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.scheduler-week-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

[data-theme="dark"] .scheduler-week-banner {
  background: rgba(0, 245, 212, 0.08) !important;
  border: 1px solid rgba(0, 245, 212, 0.25) !important;
  color: var(--brand-cyan) !important;
  box-shadow: none !important;
}

.scheduler-create-btn {
  height: 38px;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   SCHEDULER 7-DAY INTERACTIVE MATRIX TABLE
   ========================================================================== */
#scheduler-card,
#scheduler-tab .table-card {
  padding: 1.75rem !important;
  box-sizing: border-box !important;
}

#scheduler-tab .scheduler-top-toolbar {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

#scheduler-tab .table-responsive-container {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow-x: auto;
}

[data-theme="dark"] #scheduler-tab .table-responsive-container {
  border-color: rgba(255, 255, 255, 0.12);
}

.scheduler-table {
  width: 100%;
  min-width: 1720px;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  background: var(--bg-card);
}

.scheduler-table th {
  padding: 0.95rem 0.85rem;
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  min-width: 210px;
}

.scheduler-table th:last-child {
  border-right: none;
}

.scheduler-table th.fac-col-header {
  text-align: left;
  min-width: 250px;
  width: 250px;
  padding-left: 1.25rem;
}

.scheduler-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  vertical-align: top;
  background: var(--bg-card);
  transition: background var(--transition-fast);
  min-width: 210px;
}

.scheduler-table td:last-child {
  border-right: none;
}

.scheduler-table td.fac-col-cell {
  background: var(--bg-subtle);
  padding: 1.25rem 1.15rem;
  min-width: 250px;
  width: 250px;
}

[data-theme="dark"] .scheduler-table td.fac-col-cell {
  background: rgba(255, 255, 255, 0.02);
}

.scheduler-table td.is-today-cell {
  background: rgba(0, 245, 212, 0.03);
}

[data-theme="dark"] .scheduler-table td.is-today-cell {
  background: rgba(0, 245, 212, 0.04);
}

/* Facility Info Box */
.scheduler-fac-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.scheduler-fac-unit {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.scheduler-fac-dispatch-btn {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  height: 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

/* Scheduler Shift Mini Card */
.scheduler-shift-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  min-height: 85px;
  box-sizing: border-box;
}

[data-theme="dark"] .scheduler-shift-card {
  background: #17243D !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.scheduler-shift-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .scheduler-shift-card:hover {
  background: #1E2D4A !important;
  border-color: rgba(0, 245, 212, 0.5) !important;
  box-shadow: var(--shadow-md);
}

.scheduler-shift-card.status-in_session {
  border-left: 4px solid var(--status-success) !important;
}

.scheduler-shift-card.status-dispatched {
  border-left: 4px solid #0EA5E9 !important;
}

.scheduler-shift-card.status-pending {
  border-left: 4px solid #D97706 !important;
}

.scheduler-shift-card.status-completed {
  border-left: 4px solid #64748B !important;
}

.scheduler-shift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.scheduler-micro-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scheduler-micro-badge.role-rn {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
}

.scheduler-micro-badge.role-rpn {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #FFFFFF;
}

.scheduler-micro-badge.role-psw {
  background: linear-gradient(135deg, #64748B 0%, #334155 100%);
  color: #FFFFFF;
}

.scheduler-micro-badge.role-travel {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
}

.scheduler-micro-status {
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.scheduler-micro-status.status-in_session {
  color: #047857;
}

.scheduler-micro-status.status-dispatched {
  color: #0284C7;
}

.scheduler-micro-status.status-pending {
  color: #B45309;
}

.scheduler-micro-status.status-completed {
  color: #475569;
}

[data-theme="dark"] .scheduler-micro-status.status-in_session {
  color: #34D399;
}

[data-theme="dark"] .scheduler-micro-status.status-dispatched {
  color: #38BDF8;
}

[data-theme="dark"] .scheduler-micro-status.status-pending {
  color: #FBBF24;
}

[data-theme="dark"] .scheduler-micro-status.status-completed {
  color: #94A3B8;
}

.scheduler-staff-assigned {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.scheduler-shift-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.scheduler-add-shift-btn {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1.5px dashed var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  margin-top: 0.35rem;
}

.scheduler-add-shift-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: rgba(0, 245, 212, 0.05);
}

/* ==========================================================================
   9. SLIDE-IN SIDE PANEL (DETAIL DRAWER)
   ========================================================================== */
.side-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.side-drawer-backdrop.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.side-drawer-backdrop.open .side-drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.drawer-tab-btn {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-tab-btn.active {
  color: var(--brand-cyan);
  border-bottom-color: var(--brand-cyan);
}

/* Detail key-value grids */
.detail-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.detail-item-box {
  background: #FFFFFF !important;
  padding: 1.15rem 1.25rem !important;
  border-radius: 10px !important;
  border: 1.5px solid #E2E8F0 !important;
  margin-bottom: 0.85rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  transition: all 0.2s ease;
}

[data-theme="dark"] .detail-item-box {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.detail-label,
.detail-item-box label {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
}

.detail-value,
.detail-item-box span,
.detail-item-box strong {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
}

/* ==========================================================================
   REPORTS & ANALYTICS STUDIO HUB
   ========================================================================== */
.report-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.report-meta-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

[data-theme="dark"] .report-meta-card {
  background: rgba(19, 30, 51, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

.report-meta-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 12px rgba(2, 132, 199, 0.1);
}

[data-theme="dark"] .report-meta-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 245, 212, 0.12);
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.report-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.report-icon-box.icon-shifts {
  background: linear-gradient(135deg, #1BAECF 0%, #00A896 100%);
  box-shadow: 0 2px 8px rgba(27, 174, 207, 0.25);
}

.report-icon-box.icon-roster {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.report-icon-box.icon-ats {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.report-icon-box.icon-leads {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.report-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.report-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.report-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.report-card-actions .btn-primary-action {
  flex: 1;
  height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: center;
  padding: 0 0.85rem;
}

.report-card-actions .btn-secondary-action {
  height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.85rem;
  justify-content: center;
}

/* Report Studio Segmented Tabs Navigation */
.report-segmented-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.report-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.report-tab-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: var(--bg-subtle);
}

.report-tab-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}

[data-theme="dark"] .report-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

[data-theme="dark"] .report-tab-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35) !important;
}

/* ==========================================================================
   10. BULK ACTIONS FLOATING TOOLBAR
   ========================================================================== */
.bulk-toolbar-floating {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 40px);
  background: var(--bg-sidebar);
  border: 1px solid var(--brand-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  align-items: center;
  gap: 1.2rem;
  z-index: 1050;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.bulk-toolbar-floating.visible {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bulk-selected-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ==========================================================================
   11. SKELETON LOADERS
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-card-hover) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   12. MOBILE BOTTOM NAVIGATION (<768px)
   ========================================================================== */
.bottom-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--bottomnav-h) !important;
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid var(--border-color) !important;
  z-index: 999 !important;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(12, 20, 36, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid var(--border-color) !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  flex: 1;
  max-width: 20%;
  height: 100%;
  transition: color 0.15s ease;
}

.bottom-nav-item.active {
  color: var(--brand-cyan) !important;
}

.bottom-nav-item.active svg,
.bottom-nav-item.active i {
  color: var(--brand-cyan) !important;
}

.bottom-nav-item {
  position: relative !important;
}

/* Bottom Navigation Event Counter Badges */
.bottom-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  background: var(--brand-turquoise, #00A896);
  color: #FFFFFF !important;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 10;
  border: 1.5px solid var(--bg-card, #FFFFFF);
  box-sizing: border-box;
}

.bottom-nav-badge.danger {
  background: #EF4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5) !important;
}

/* Caregiver Drawer Availability Schedule Responsive Grid */
.admin-staff-avail-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-avail-day-card {
  border-radius: 8px;
  padding: 0.65rem 0.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  transition: transform var(--transition-fast);
}

.admin-avail-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-avail-date-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0 3px 0;
}

.admin-avail-status-tag {
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .admin-staff-avail-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 380px) {
  .admin-staff-avail-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }
}

/* ==========================================================================
   13. COMPREHENSIVE RESPONSIVENESS (1440px, 1024px, 768px, <480px)
   ========================================================================== */

/* Laptop / Medium Screens (1024px - 1439px) */
@media (max-width: 1439px) {
  .charts-grid-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    width: var(--sidebar-collapsed-w) !important;
    overflow-x: hidden !important;
  }
  
  .sidebar .sidebar-header {
    padding: 0 0.5rem !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }

  .sidebar .brand-link {
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
  }

  .sidebar .brand-logo-img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .sidebar .sidebar-collapse-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
  }

  .sidebar .brand-info,
  .sidebar .nav-section-title,
  .sidebar .nav-label,
  .sidebar .user-meta {
    display: none !important;
  }

  .sidebar .sidebar-nav {
    padding: 0.85rem 0.5rem !important;
    align-items: center !important;
    overflow-x: hidden !important;
  }

  .sidebar .nav-item-btn {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 10px !important;
    position: relative !important;
    margin: 0 auto !important;
  }

  .sidebar .nav-icon {
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sidebar .nav-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 3.5px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid var(--bg-sidebar, #FFFFFF) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .sidebar .sidebar-footer {
    padding: 0.65rem 0.35rem !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .sidebar .sidebar-user-pill {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
    flex: none !important;
  }

  .sidebar #sidebar-logout-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
  }
  
  .main-wrapper {
    margin-left: var(--sidebar-collapsed-w);
  }
  
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .charts-grid-secondary {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Mobile Backdrop */
.sidebar-backdrop {
  display: none;
}

/* Facilities & Rates Toolbar Desktop/Base */
.facilities-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.facilities-segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
}

.facilities-segmented-control .segmented-btn {
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.facilities-segmented-control .segmented-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

.facilities-segmented-control .segmented-btn .badge {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 9999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.facilities-segmented-control .segmented-btn.active .badge {
  background: #ffffff !important;
  color: #0284C7 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.facilities-segmented-control .segmented-btn:not(.active) .badge {
  background: rgba(2, 132, 199, 0.15) !important;
  color: #0284C7 !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

.results-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-turquoise);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.term-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 148, 136, 0.15);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.35);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 2px 2px;
  white-space: nowrap;
}

[data-theme="dark"] .term-badge-pill {
  background: rgba(13, 148, 136, 0.25) !important;
  color: #2dd4bf !important;
  border: 1px solid rgba(45, 212, 191, 0.4) !important;
}

.facilities-filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  justify-content: flex-end;
}

.facilities-filter-group .filter-search-box {
  min-width: 220px;
  flex: 1;
  max-width: 340px;
}

.facilities-filter-group .filter-select {
  min-width: 180px;
}


/* ==========================================================================
   AUDIT ACTION TAGS & SECURITY BADGES (SETTINGS & AUDIT LEDGER)
   ========================================================================== */
.audit-action-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.38rem !important;
  padding: 0.32rem 0.78rem !important;
  border-radius: var(--radius-full, 9999px) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border: 1px solid #7DD3FC !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.audit-action-tag svg,
.audit-action-tag i {
  width: 12.5px !important;
  height: 12.5px !important;
  color: #0284C7 !important;
  stroke: #0284C7 !important;
  stroke-width: 2.3px !important;
  flex-shrink: 0 !important;
}

/* Category: Info / Default Updates (Cyan / Sky) */
.audit-action-tag.action-info {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border-color: #7DD3FC !important;
}
.audit-action-tag.action-info svg,
.audit-action-tag.action-info i {
  color: #0284C7 !important;
  stroke: #0284C7 !important;
}

/* Category: Creation / Verification / Addition (Emerald / Green) */
.audit-action-tag.action-success {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-color: #86EFAC !important;
}
.audit-action-tag.action-success svg,
.audit-action-tag.action-success i {
  color: #16A34A !important;
  stroke: #16A34A !important;
}

/* Category: Warnings / Auth / MFA (Amber / Orange) */
.audit-action-tag.action-warning {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border-color: #FCD34D !important;
}
.audit-action-tag.action-warning svg,
.audit-action-tag.action-warning i {
  color: #D97706 !important;
  stroke: #D97706 !important;
}

/* Category: Deletion / Security / Reset / Purge (Red / Coral) */
.audit-action-tag.action-danger {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border-color: #FCA5A5 !important;
}
.audit-action-tag.action-danger svg,
.audit-action-tag.action-danger i {
  color: #DC2626 !important;
  stroke: #DC2626 !important;
}

/* Dark Mode Overrides for Audit Action Tags */
[data-theme="dark"] .audit-action-tag,
[data-theme="dark"] .audit-action-tag.action-info {
  background: rgba(14, 165, 233, 0.18) !important;
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.22) !important;
}
[data-theme="dark"] .audit-action-tag svg,
[data-theme="dark"] .audit-action-tag i,
[data-theme="dark"] .audit-action-tag.action-info svg,
[data-theme="dark"] .audit-action-tag.action-info i {
  color: #38BDF8 !important;
  stroke: #38BDF8 !important;
}

[data-theme="dark"] .audit-action-tag.action-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34D399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.22) !important;
}
[data-theme="dark"] .audit-action-tag.action-success svg,
[data-theme="dark"] .audit-action-tag.action-success i {
  color: #34D399 !important;
  stroke: #34D399 !important;
}

[data-theme="dark"] .audit-action-tag.action-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FBBF24 !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22) !important;
}
[data-theme="dark"] .audit-action-tag.action-warning svg,
[data-theme="dark"] .audit-action-tag.action-warning i {
  color: #FBBF24 !important;
  stroke: #FBBF24 !important;
}

[data-theme="dark"] .audit-action-tag.action-danger {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #F87171 !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}
[data-theme="dark"] .audit-action-tag.action-danger svg,
[data-theme="dark"] .audit-action-tag.action-danger i {
  color: #F87171 !important;
  stroke: #F87171 !important;
}

/* Tablet & Mobile (<=900px) */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    width: var(--sidebar-w) !important;
  }

  .sidebar.mobile-open .brand-info,
  .sidebar.mobile-open .nav-label,
  .sidebar.mobile-open .user-meta {
    display: flex !important;
  }

  .sidebar.mobile-open .nav-section-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar.mobile-open .sidebar-header {
    padding: 0 1.15rem !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .sidebar.mobile-open .brand-link {
    width: auto !important;
    justify-content: flex-start !important;
  }

  .sidebar.mobile-open .brand-logo-img {
    width: 36px !important;
    height: 36px !important;
  }

  .sidebar.mobile-open .sidebar-collapse-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .sidebar.mobile-open .sidebar-nav {
    padding: 1.15rem 0.85rem !important;
    align-items: stretch !important;
  }

  .sidebar.mobile-open .nav-item-btn {
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 0.55rem 0.75rem !important;
    justify-content: flex-start !important;
    margin: 0 !important;
  }

  .sidebar.mobile-open .sidebar-footer {
    padding: 0.85rem 0.85rem !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.6rem !important;
  }

  .sidebar.mobile-open .sidebar-user-pill {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: var(--radius-md) !important;
    justify-content: flex-start !important;
    flex: 1 !important;
  }

  .sidebar.mobile-open #sidebar-logout-btn {
    width: 32px !important;
    height: 32px !important;
  }

  /* Mobile Sidebar Badges: full pill display, responsive, white numbers */
  .sidebar.mobile-open .nav-badge,
  .sidebar.mobile-open .sidebar.collapsed .nav-badge,
  .sidebar.mobile-open .nav-item-btn .nav-badge,
  .sidebar.mobile-open [class*="nav-badge"],
  .sidebar .nav-item-btn .nav-badge {
    position: static !important;
    width: auto !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    text-indent: 0 !important;
    border-radius: var(--radius-full) !important;
    margin-left: auto !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    color: #FFFFFF !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .sidebar.mobile-open .nav-badge:not([style*="display: none"]):not([style*="display:none"]),
  .sidebar.mobile-open .sidebar.collapsed .nav-badge:not([style*="display: none"]):not([style*="display:none"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile Sidebar Backdrop Overlay & Drawer Collapsibility */
  .sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(11, 18, 32, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease-in-out !important;
  }

  .sidebar.mobile-open ~ .sidebar-backdrop,
  .sidebar-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.sidebar-open-locked {
    overflow: hidden !important;
  }

  .sidebar.mobile-open .sidebar-collapse-btn {
    transform: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--brand-turquoise) !important;
    border-color: var(--brand-turquoise) !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    padding-bottom: calc(var(--bottomnav-h) + 2rem) !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .bottom-nav {
    display: flex !important;
  }

  /* Mobile 2-in-a-Row Responsive Neo-Cubes (Option 1 with original Lucide icons) */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.15rem !important;
  }

  .kpi-card {
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
    min-height: 105px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .kpi-card:hover {
    transform: none !important;
    border-color: rgba(0, 245, 212, 0.4) !important;
  }

  .kpi-card:active {
    transform: scale(0.985) !important;
  }

  .kpi-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    margin-bottom: 0.35rem !important;
  }

  .kpi-title {
    font-size: clamp(0.68rem, 2.5vw, 0.78rem) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Retain original Lucide icons & gradients while scaling to cube proportion */
  .kpi-icon-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .kpi-icon-box svg,
  .kpi-icon-box i {
    width: 15px !important;
    height: 15px !important;
  }

  .kpi-value-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    margin-bottom: 0 !important;
    margin-top: auto !important;
  }

  .kpi-number {
    font-size: clamp(1.4rem, 4.5vw, 1.7rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
  }

  .kpi-trend {
    font-size: clamp(0.58rem, 2vw, 0.68rem) !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .topbar {
    padding: 0 0.85rem !important;
  }

  .topbar-right {
    gap: 0.35rem !important;
  }

  .live-clock-chip {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.7rem !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .live-tz-badge {
    display: none !important;
  }

  .live-pulse-chip {
    display: none !important;
  }

  .view-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-content-body {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  #scheduler-card,
  #scheduler-tab .table-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.15rem 1rem !important;
    box-shadow: var(--shadow-sm) !important;
  }

  [data-theme="dark"] #scheduler-card,
  [data-theme="dark"] #scheduler-tab .table-card {
    border: 1px solid var(--border-color) !important;
  }

  #overview-admin-accounts-card,
  #admin-accounts-card,
  #dedicated-admin-accounts-card {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .search-kbd-hint,
  .view-site-text,
  .live-pulse-chip .pulse-text {
    display: none;
  }

  .table-toolbar {
    padding: 0.75rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .table-filter-group {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .filter-search-box,
  .filter-select {
    width: 100% !important;
    min-width: 100% !important;
  }

  .bulk-actions-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .bulk-actions-toolbar .btn-secondary-action {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ==========================================================================
     MOBILE DATA TABLE ARCHITECTURE (EXECUTIVE CARD PRESENTATION - FULL PARENT WIDTH)
     ========================================================================== */
  .table-responsive-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .table-responsive-container:has(.mobile-stacked-table) {
    overflow-x: visible !important;
  }

  .mobile-stacked-table {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  /* Scheduler Date Navigator Mobile Responsiveness */
  .scheduler-top-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .scheduler-controls-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .scheduler-date-stepper {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    width: 100% !important;
    height: 42px !important;
    padding: 3px !important;
  }

  .stepper-btn,
  .stepper-today-btn {
    height: 36px !important;
    justify-content: center !important;
    width: 100% !important;
    font-size: 0.84rem !important;
  }

  .scheduler-week-banner {
    width: 100% !important;
    height: 42px !important;
    font-size: 0.92rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .scheduler-create-btn {
    width: 100% !important;
    height: 44px !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
  }

  .mobile-stacked-table thead {
    display: none !important;
  }

  .mobile-stacked-table tbody {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .table-card-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.15rem 0 !important;
    box-sizing: border-box !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 1.1rem 1rem !important;
    gap: 0.45rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  [data-theme="dark"] .table-card-row {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  }

  .table-card-row {
    transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .table-card-row:hover {
    border-color: rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
  }

  [data-theme="dark"] .table-card-row:hover {
    border-color: rgba(0, 245, 212, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 245, 212, 0.08) !important;
    transform: none !important;
  }

  .table-card-row:active {
    background: rgba(0, 245, 212, 0.03) !important;
    transform: scale(0.995) !important;
  }

  /* Reset all table cells on mobile */
  .table-card-row > td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    text-align: left;
    box-sizing: border-box;
  }

  .table-card-row > td::before {
    display: none !important;
  }

  /* 1. Header Row (Primary Title + Status on Top Right) */
  .cell-primary {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1.5px solid var(--border-color) !important;
  }

  .row-header-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .user-meta-name {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .user-display-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .user-role-sub {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 3px !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .row-status-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .row-status-top .status-pill,
  .status-pill.hired {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    padding: 0.3rem 0.75rem !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
  }

  .status-pill.hired {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4) !important;
  }

  [data-theme="dark"] .status-pill.hired {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.5) 100%) !important;
    color: #34D399 !important;
    border: 1px solid rgba(52, 211, 153, 0.6) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
  }

  /* 2. Subtitle / Email Row & Key-Value Items - Streamlined Option 2 Mobile Layout */
  
  /* Unclipped dedicated email row - Left aligned */
  .table-card-row > td.cell-email,
  .cell-email {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    margin-bottom: 0.35rem !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-card-row > td.cell-email .meta-label,
  .cell-email .meta-label {
    display: none !important;
  }

  .table-card-row > td.cell-email .meta-value,
  .cell-email .meta-value {
    font-size: clamp(0.78rem, 2.8vw, 0.85rem) !important;
    font-weight: 600 !important;
    color: var(--brand-teal, #00a896) !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  [data-theme="dark"] .table-card-row > td.cell-email .meta-value,
  [data-theme="dark"] .cell-email .meta-value {
    color: var(--brand-teal, #00f5d4) !important;
  }

  /* Subtitle rows (Facility & Unit, etc.) */
  .table-card-row > td.cell-subtitle,
  .cell-subtitle {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0 !important;
    margin-bottom: 0.35rem !important;
    min-height: auto !important;
  }

  .table-card-row > td.cell-subtitle .meta-label,
  .cell-subtitle .meta-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.15rem !important;
  }

  .table-card-row > td.cell-subtitle .meta-value,
  .cell-subtitle .meta-value {
    font-size: 0.84rem !important;
    color: var(--text-primary) !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-align: left !important;
    margin-left: 0 !important;
  }

  /* Streamlined status badges - side-by-side pill cluster */
  .table-card-row > td[data-pill-cell],
  .table-card-row > td.cell-pill-item {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0.15rem 0.35rem 0.15rem 0 !important;
    min-height: auto !important;
    vertical-align: middle !important;
  }

  .table-card-row > td[data-pill-cell] .meta-label,
  .table-card-row > td.cell-pill-item .meta-label {
    display: none !important;
  }

  .table-card-row > td[data-pill-cell] .meta-value,
  .table-card-row > td.cell-pill-item .meta-value {
    margin-left: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  /* Hide redundant desktop status box on mobile since status is already in the card header */
  .table-card-row > td.cell-status-desktop {
    display: none !important;
  }

  /* Compact key-value rows (Last Login, License #, Date Applied, etc.) */
  .table-card-row > td.cell-grid-item:not([data-pill-cell]):not(.cell-pill-item),
  .cell-grid-item:not([data-pill-cell]):not(.cell-pill-item) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    color: var(--text-primary) !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
    min-height: 38px !important;
  }

  [data-theme="dark"] .table-card-row > td.cell-grid-item:not([data-pill-cell]):not(.cell-pill-item),
  [data-theme="dark"] .cell-grid-item:not([data-pill-cell]):not(.cell-pill-item) {
    background: rgba(255, 255, 255, 0.025) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }

  .table-card-row .meta-label,
  .cell-grid-item .meta-label {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  .table-card-row .meta-label::after,
  .cell-grid-item .meta-label::after {
    content: " :" !important;
    margin-right: 0.35rem !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
  }

  [data-theme="dark"] .table-card-row .meta-label {
    color: #94A3B8 !important;
  }

  [data-theme="dark"] .table-card-row .meta-label::after {
    color: #94A3B8 !important;
  }

  .table-card-row > td.cell-grid-item:not([data-pill-cell]):not(.cell-pill-item) .meta-value,
  .cell-grid-item:not([data-pill-cell]):not(.cell-pill-item) .meta-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
    margin-left: auto !important;
    flex-shrink: 1 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.35 !important;
    min-height: auto !important;
  }

  /* Actions footer row */
  .table-card-row > td.cell-actions {
    width: 100% !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 0.65rem !important;
    margin-top: 0.35rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  /* Hide select checkbox on mobile card view */
  .cell-checkbox {
    display: none !important;
  }

  /* 4. Bottom Action Bar (Tall, Easy-Touch Buttons) */
  .cell-actions {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1.5px solid var(--border-color) !important;
    width: 100% !important;
  }

  .admin-action-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .admin-action-toolbar .admin-action-btn,
  .admin-action-toolbar .btn-secondary-action,
  .admin-action-toolbar .btn-primary-action,
  .cell-actions .btn-secondary-action,
  .cell-actions .btn-primary-action {
    flex: 1 1 calc(50% - 0.65rem) !important;
    min-width: 120px !important;
    height: 44px !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .client-actions-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .client-actions-toolbar .btn-action-compact:not(.btn-icon-only) {
    flex: 1 1 calc(30% - 0.45rem) !important;
    min-width: 75px !important;
    height: 36px !important;
    font-size: 0.78rem !important;
  }

  .client-actions-toolbar .btn-action-compact.btn-icon-only {
    flex: 0 0 36px !important;
    height: 36px !important;
    width: 36px !important;
  }

  .admin-action-badge-self {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-md) !important;
    background: rgba(0, 168, 150, 0.1) !important;
    color: var(--brand-turquoise) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: 1px solid rgba(0, 168, 150, 0.25) !important;
  }

  .admin-action-btn.btn-delete-admin {
    flex: 1 1 100% !important;
    height: 44px !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.08) !important;
  }

  /* 5. Mobile Kanban Stage Switcher Pill Bar (Option 1) */
  .mobile-kanban-stage-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem !important;
    margin-bottom: 0.65rem !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    position: sticky !important;
    top: calc(var(--topbar-h) + 2px) !important;
    background: var(--bg-body) !important;
    z-index: 20 !important;
  }

  .mobile-kanban-stage-bar::-webkit-scrollbar {
    display: none !important;
  }

  .stage-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 9999px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border: 1.5px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
  }

  .stage-pill.active {
    background: var(--brand-cyan, #0284c7) !important;
    color: #ffffff !important;
    border-color: var(--brand-cyan, #0284c7) !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3) !important;
  }

  [data-theme="dark"] .stage-pill.active {
    background: #00f5d4 !important;
    color: #060b18 !important;
    border-color: #00f5d4 !important;
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.35) !important;
  }

  .stage-pill-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 99px !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
  }

  .stage-pill.active .stage-pill-count {
    background: rgba(0, 0, 0, 0.25) !important;
    color: inherit !important;
  }

  .pipeline-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    overflow-x: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  .pipeline-board.hidden-view,
  #requests-kanban-board.hidden-view,
  .mobile-kanban-stage-bar.hidden-view,
  #requests-mobile-stage-bar.hidden-view {
    display: none !important;
  }

  #requests-table-view.active-view {
    display: block !important;
    width: 100% !important;
  }

  /* Option 1: Show ONLY the active stage on mobile (eliminates endless scrolling) */
  .pipeline-board[data-active-stage="pending"] .kanban-col:not([data-col-key="pending"]),
  .pipeline-board[data-active-stage="dispatched"] .kanban-col:not([data-col-key="dispatched"]),
  .pipeline-board[data-active-stage="completed"] .kanban-col:not([data-col-key="completed"]),
  .pipeline-board[data-active-stage="cancelled"] .kanban-col:not([data-col-key="cancelled"]) {
    display: none !important;
  }

  .pipeline-col,
  .kanban-col {
    width: 100% !important;
    min-width: 100% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  [data-theme="dark"] .pipeline-col,
  [data-theme="dark"] .kanban-col {
    background: rgba(19, 30, 51, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  }

  /* 6. Charts & Analytics Mobile Stacking */
  .charts-grid-main,
  .charts-grid-secondary {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .chart-card {
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .donut-stat-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  /* 7. Action Modals & Side Drawers Mobile Polishing */
  .admin-modal-overlay {
    padding: 0.75rem !important;
  }

  .admin-modal-card {
    padding: 1.25rem 1rem !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: var(--radius-md) !important;
  }

  .modal-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .modal-actions {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .modal-actions .btn-primary-action,
  .modal-actions .btn-secondary-action {
    width: 100% !important;
    height: 44px !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
  }

  .side-drawer-panel {
    max-width: 100vw !important;
    width: 100% !important;
  }

  .drawer-header {
    padding: 1rem 1.1rem !important;
  }

  .drawer-body {
    padding: 1.1rem 1rem !important;
  }

  /* 8. Dedicated Admin Provisioning & Settings Grid Mobile */
  #create-admin-form-dedicated > div,
  #create-admin-form > div {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Block-style card section (Primary Contact & Portal, Multi-line details) */
  .table-card-row > td.cell-block-item,
  .cell-block-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 0.35rem !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
    min-height: auto !important;
  }

  [data-theme="dark"] .table-card-row > td.cell-block-item,
  [data-theme="dark"] .cell-block-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }

  .table-card-row > td.cell-block-item .meta-label,
  .cell-block-item .meta-label {
    display: flex !important;
    align-items: center !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--brand-turquoise) !important;
    margin-bottom: 0.2rem !important;
    width: 100% !important;
  }

  .table-card-row > td.cell-block-item .meta-label::after,
  .cell-block-item .meta-label::after {
    display: none !important;
  }

  .table-card-row > td.cell-block-item .meta-value,
  .cell-block-item .meta-value {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.25rem !important;
    margin-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  /* Facilities & Rates Toolbar mobile stacking */
  .facilities-table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.85rem 0.75rem !important;
    gap: 0.75rem !important;
  }

  .facilities-segmented-control {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .facilities-segmented-control .segmented-btn {
    flex: 1 1 50% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.74rem !important;
    padding: 0.5rem 0.35rem !important;
    white-space: nowrap !important;
  }

  .facilities-filter-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  .facilities-filter-group .filter-search-box,
  .facilities-filter-group .filter-select,
  .facilities-filter-group .btn-primary-action {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .facilities-filter-group .btn-primary-action {
    height: 42px !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
  }

  /* Facilities KPI grid 5th card spans full width on 2-col mobile */
  #facilities-tab .kpi-grid > .kpi-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  /* Rate Cards modal responsive table */
  #modal-manage-rate-cards .table-responsive-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #modal-manage-rate-cards .data-table {
    min-width: 620px !important;
  }
}

/* Micro Mobile Screens (<=480px) */
@media (max-width: 480px) {
  .admin-content-body {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .topbar {
    padding: 0 0.65rem !important;
  }

  .view-header {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .table-card-row {
    padding: 1.1rem 0.95rem !important;
    border-radius: var(--radius-lg) !important;
    min-height: auto !important;
    margin-bottom: 1.25rem !important;
    gap: 0.65rem !important;
  }

  .table-card-row > td.cell-grid-item:not([data-pill-cell]):not(.cell-pill-item) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.45rem 0.75rem !important;
    margin-bottom: 0.35rem !important;
    min-height: 36px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  .table-card-row .meta-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
    flex-shrink: 0 !important;
  }

  .table-card-row .meta-value {
    font-size: 0.82rem !important;
  }

  .user-display-name {
    font-size: 1.05rem !important;
  }

  .donut-stat-summary {
    grid-template-columns: 1fr !important;
  }

  .admin-action-toolbar .admin-action-btn,
  .admin-action-toolbar .btn-secondary-action,
  .admin-action-toolbar .btn-primary-action,
  .cell-actions .btn-secondary-action,
  .cell-actions .btn-primary-action {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   OPERATOR ACTION BUTTONS & PERMISSIONS CONFIGURATION SYSTEM (DESKTOP & GLOBAL)
   ========================================================================== */
.admin-action-toolbar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: var(--bg-subtle);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Permissions Edit Button - Solid Turquoise Gradient */
.admin-action-btn.btn-perm-edit {
  background: linear-gradient(135deg, #1BAECF 0%, #00A896 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(27, 174, 207, 0.25);
}

.admin-action-btn.btn-perm-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 174, 207, 0.4) !important;
}

/* Status Toggle (Deactivate / Reactivate) - Solid Amber Gradient */
.admin-action-btn.btn-status-toggle {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.admin-action-btn.btn-status-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4) !important;
}

/* Resend Email Code - Solid Sky Blue Gradient */
.admin-action-btn.btn-resend-mail {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}

.admin-action-btn.btn-resend-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4) !important;
}

/* Reset 2FA Security - Solid Purple Gradient */
.admin-action-btn.btn-reset-mfa {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.25);
}

.admin-action-btn.btn-reset-mfa:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4) !important;
}

/* Delete Admin Operator - Solid Crimson Gradient */
.admin-action-btn.btn-delete-admin {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.admin-action-btn.btn-delete-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4) !important;
}

/* Active Self Session Badge (Solid Gradient Pill) */
.admin-action-badge-self {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 800;
  border: none !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

[data-theme="dark"] .admin-action-badge-self {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.35) 100%) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-perm-edit {
  background: linear-gradient(135deg, rgba(27, 174, 207, 0.22) 0%, rgba(0, 168, 150, 0.35) 100%) !important;
  color: #00F5D4 !important;
  border: 1px solid rgba(0, 245, 212, 0.4) !important;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-perm-edit:hover {
  background: linear-gradient(135deg, #1BAECF 0%, #00A896 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.4) !important;
}

[data-theme="dark"] .admin-action-btn.btn-status-toggle {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-status-toggle:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .admin-action-btn.btn-resend-mail {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(2, 132, 199, 0.35) 100%) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-resend-mail:hover {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4) !important;
}

[data-theme="dark"] .admin-action-btn.btn-reset-mfa {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.35) 100%) !important;
  color: #C084FC !important;
  border: 1px solid rgba(192, 132, 252, 0.4) !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-reset-mfa:hover {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4) !important;
}

[data-theme="dark"] .admin-action-btn.btn-delete-admin {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(220, 38, 38, 0.35) 100%) !important;
  color: #F87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

[data-theme="dark"] .admin-action-btn.btn-delete-admin:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

/* Modal Quick Toggle Buttons (Executive Segmented Pill Container) */
.perm-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-subtle);
  padding: 3px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-perm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-perm-toggle svg,
.btn-perm-toggle i {
  stroke-width: 2.2px;
  vertical-align: middle;
}

.btn-perm-toggle.perm-select-all {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
  background: #FFFFFF;
}

.btn-perm-toggle.perm-select-all svg,
.btn-perm-toggle.perm-select-all i {
  color: #059669;
}

.btn-perm-toggle.perm-select-all:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-perm-toggle.perm-select-all:hover svg,
.btn-perm-toggle.perm-select-all:hover i {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.btn-perm-toggle.perm-clear-all {
  color: #B91C1C;
  border-color: rgba(239, 68, 68, 0.25);
  background: #FFFFFF;
}

.btn-perm-toggle.perm-clear-all svg,
.btn-perm-toggle.perm-clear-all i {
  color: #DC2626;
}

.btn-perm-toggle.perm-clear-all:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.btn-perm-toggle.perm-clear-all:hover svg,
.btn-perm-toggle.perm-clear-all:hover i {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Dark Theme Toggle Buttons */
[data-theme="dark"] .perm-toolbar-actions {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-perm-toggle.perm-select-all {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}

[data-theme="dark"] .btn-perm-toggle.perm-select-all svg {
  color: #34D399;
}

[data-theme="dark"] .btn-perm-toggle.perm-select-all:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .btn-perm-toggle.perm-clear-all {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

[data-theme="dark"] .btn-perm-toggle.perm-clear-all svg {
  color: #F87171;
}

[data-theme="dark"] .btn-perm-toggle.perm-clear-all:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Privilege Checkbox Cards */
.perm-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.perm-checkbox-item:hover {
  border-color: #0284C7;
  background: #F0F9FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.perm-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0284C7;
  cursor: pointer;
  flex-shrink: 0;
}

[data-theme="dark"] .perm-checkbox-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

[data-theme="dark"] .perm-checkbox-item:hover {
  border-color: rgba(0, 245, 212, 0.4);
  background: rgba(0, 245, 212, 0.05);
}

[data-theme="dark"] .perm-checkbox-item input[type="checkbox"] {
  accent-color: #00F5D4;
}

.perm-save-btn {
  height: 42px;
  padding: 0 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.perm-cancel-btn {
  height: 42px;
  padding: 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   14. ACTION MODALS & NOTIFICATION DROPDOWN
   ========================================================================== */
.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.admin-modal-overlay.open {
  display: flex;
  pointer-events: auto;
  animation: modalFadeIn 0.2s ease-out;
}

.admin-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 168, 150, 0.15);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.modal-title i,
.modal-title svg {
  margin-top: 2px;
  flex-shrink: 0;
  align-self: flex-start;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--status-danger);
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.modal-form-grid.full-width {
  grid-template-columns: 1fr;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.modal-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Notification Dropdown */
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  padding: 0.75rem 0;
}

.notif-dropdown.open {
  display: block;
  animation: modalFadeIn 0.2s ease-out;
}

.notif-header {
  padding: 0.5rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-list {
  max-height: 280px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: var(--bg-surface);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.notif-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Admin Custom File Upload Dropzone ── */
.admin-file-upload-box {
  margin-bottom: 0.85rem;
  width: 100%;
  position: relative;
}

.admin-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.admin-file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 245, 212, 0.04);
  border: 2px dashed rgba(0, 245, 212, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.admin-file-upload-label:hover {
  background: rgba(0, 245, 212, 0.09);
  border-color: var(--brand-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 245, 212, 0.18);
}

.admin-file-upload-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.admin-file-upload-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  text-align: left;
  overflow: hidden;
}

.admin-file-upload-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.admin-file-upload-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-file-upload-btn-chip {
  padding: 0.3rem 0.65rem;
  background: var(--brand-gradient);
  color: #051622;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 245, 212, 0.25);
}

/* ── Admin Action Button Toolbar ── */
.admin-action-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  text-decoration: none;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.admin-action-btn.btn-status-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.admin-action-btn.btn-status-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.admin-action-btn.btn-resend-mail {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.35);
  color: var(--brand-cyan);
}

.admin-action-btn.btn-resend-mail:hover {
  background: rgba(0, 245, 212, 0.2);
  border-color: var(--brand-cyan);
}

.admin-action-btn.btn-reset-mfa {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.admin-action-btn.btn-reset-mfa:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
}

.admin-action-btn.btn-delete-admin {
  background: rgba(230, 57, 70, 0.08);
  border-color: rgba(230, 57, 70, 0.35);
  color: #e63946;
}

.admin-action-btn.btn-delete-admin:hover {
  background: #e63946;
  color: #ffffff;
  border-color: #e63946;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.admin-action-badge-self {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: var(--brand-cyan);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   18. UNIVERSAL FLUID & RESPONSIVE HEADERS ENGINE (ACROSS ALL PAGES & TABS)
   ========================================================================== */
.page-title,
.chart-title,
.modal-title,
.drawer-title,
.table-card h2,
.table-card h3,
.section-header h2,
.section-header h3,
.glass-cyber-card h2,
.glass-cyber-card h3,
.report-card-title,
#report-viewer-title {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
}

/* Fluid responsive typography scaling */
.page-title {
  font-size: clamp(1.02rem, 3.8vw, 1.45rem) !important;
  font-weight: 800 !important;
}

.modal-title,
.drawer-title {
  font-size: clamp(0.95rem, 3.4vw, 1.22rem) !important;
  font-weight: 800 !important;
}

.chart-title,
.table-card h2,
.table-card h3,
.section-header h2,
.section-header h3,
.glass-cyber-card h2,
.glass-cyber-card h3,
#report-viewer-title {
  font-size: clamp(0.92rem, 3vw, 1.18rem) !important;
  font-weight: 800 !important;
}

/* Ensure all flex containers wrap gracefully without truncating children */
.page-title-row,
.chart-header-row,
.modal-header,
.drawer-header,
.chart-title-group,
.scheduler-title-group,
.modal-header > div,
.table-card > div:first-child,
.scheduler-top-toolbar,
.card-header,
.mfa-banner-header {
  min-width: 0 !important;
  flex-shrink: 1 !important;
  flex-wrap: wrap !important;
}

/* Fluid responsive subtitles & descriptions */
.chart-subtitle,
.modal-subtitle,
.table-card p,
.page-subtitle,
.breadcrumbs,
#perm-modal-subtitle,
.report-card-desc,
.mfa-banner-text p {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.45 !important;
}

/* 2FA Status Badge & Security Banner Responsive Polish */
#mfa-current-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
}

#mfa-current-status-badge .status-pill {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
  border-radius: var(--radius-full) !important;
}

@media (max-width: 900px) {
  .page-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .page-title {
    width: 100% !important;
  }

  .page-actions-group {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .page-actions-group .btn-secondary-action,
  .page-actions-group .btn-primary-action {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }

  .table-card > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0.85rem !important;
  }

  .table-card > div:first-child > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .mfa-banner-card,
  #settings-tab .table-card:first-child {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.15rem 1rem !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 1.25rem !important;
  }

  .mfa-banner-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0.85rem !important;
  }

  .mfa-banner-text {
    width: 100% !important;
  }

  .mfa-banner-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  #btn-configure-mfa {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ENHANCEMENTS: Credential Vault, Quick-Edit & Delay Alerts
   ───────────────────────────────────────────────────────────────────────────── */
.quick-cred-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.quick-cred-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.quick-cred-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-doc-card {
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.staff-doc-info {
  min-width: 160px;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.staff-doc-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.running-late-drawer-banner {
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.12);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.running-late-badge {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 680px) {
  .quick-cred-grid-2,
  .quick-cred-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .quick-cred-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .quick-cred-actions button {
    width: 100% !important;
    justify-content: center !important;
    height: 38px !important;
  }

  .staff-doc-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.85rem !important;
  }

  .staff-doc-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    margin-top: 0.4rem !important;
  }

  .staff-doc-actions button:first-child:not(.danger-btn) {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    padding: 0.5rem !important;
  }

  .staff-doc-actions a,
  .staff-doc-actions .danger-btn {
    justify-content: center !important;
    padding: 0.45rem !important;
  }

  .running-late-drawer-banner {
    padding: 0.85rem 0.95rem !important;
  }

  .running-late-drawer-banner .banner-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
}


/* ==========================================================================
   Interactive Audit Feed List (Settings & Overview Accordion)
   ========================================================================== */
.audit-search-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  width: 100%;
  flex-wrap: wrap;
}

.audit-search-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.audit-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #64748B;
  pointer-events: none;
  transition: color 0.2s ease;
}

.audit-search-wrapper:focus-within .audit-search-icon {
  color: var(--brand-turquoise, #0D9488);
}

.audit-search-input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.5rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.audit-search-input::placeholder {
  color: var(--text-muted);
}

.audit-search-input:focus {
  border-color: var(--brand-turquoise, #0D9488);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .audit-search-input {
  background: rgba(19, 30, 51, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .audit-search-input:focus {
  border-color: #2DD4BF;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.audit-filter-wrapper {
  position: relative;
  min-width: 170px;
  display: flex;
  align-items: center;
}

.audit-severity-select {
  width: 100%;
  height: 42px;
  padding: 0 2.2rem 0 1rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.audit-severity-select:focus {
  border-color: var(--brand-turquoise, #0D9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .audit-severity-select {
  background: rgba(19, 30, 51, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .audit-severity-select:focus {
  border-color: #2DD4BF;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.audit-filter-arrow {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.audit-filter-wrapper:focus-within .audit-filter-arrow {
  color: var(--brand-turquoise, #0D9488);
}

/* Original Audit Log Tablet Design */
.audit-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.audit-tablet-item {
  background: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.8rem 1.15rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

[data-theme="dark"] .audit-tablet-item {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.audit-tablet-item:hover {
  background: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

[data-theme="dark"] .audit-tablet-item:hover {
  background: rgba(45, 55, 72, 0.85);
  border-color: rgba(0, 245, 212, 0.35);
}

.audit-tablet-item.expanded {
  border-color: #0D9488;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .audit-tablet-item.expanded {
  border-color: #2DD4BF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.audit-tablet-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.audit-tablet-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .audit-tablet-icon {
  background: rgba(45, 212, 191, 0.12);
}

.audit-tablet-content {
  flex: 1;
  min-width: 0;
}

.audit-tablet-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  word-break: break-word;
}

[data-theme="dark"] .audit-tablet-title {
  color: #F8FAFC;
}

.audit-tablet-meta {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 3px;
  font-weight: 500;
}

[data-theme="dark"] .audit-tablet-meta {
  color: #94A3B8;
}

.audit-tablet-details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  animation: auditSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

[data-theme="dark"] .audit-tablet-details {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.audit-feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  padding: 0;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.audit-feed-item:hover {
  border-color: rgba(2, 132, 199, 0.4);
  background: var(--bg-card-hover, var(--bg-subtle));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .audit-feed-item:hover {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 245, 212, 0.08);
}

.audit-feed-item.expanded {
  border-color: var(--brand-cyan, #00a896);
  background: var(--bg-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .audit-feed-item.expanded {
  border-color: rgba(0, 245, 212, 0.65);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 245, 212, 0.12);
}

.audit-item-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.audit-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.audit-icon-badge.verified {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.audit-icon-badge.expiring {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.audit-icon-badge.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.audit-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audit-header-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audit-actor-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.audit-meta-line {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.audit-sub-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.audit-sub-line span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.audit-toggle-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.audit-est-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.audit-chevron-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s, border-color 0.2s;
}

.audit-chevron-btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.audit-feed-item.expanded .audit-chevron-btn {
  transform: rotate(180deg);
  color: var(--brand-cyan, #00a896);
  border-color: var(--brand-cyan, #00a896);
}

/* Expanded details pane */
.audit-item-details {
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.015);
  padding: 1.25rem 1.35rem;
  animation: auditSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .audit-item-details {
  background: rgba(255, 255, 255, 0.015);
}

@keyframes auditSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.audit-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 0.9fr;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .audit-details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .audit-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.audit-detail-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.audit-detail-cell.audit-full-width {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.4rem;
}

.audit-cell-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369A1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.audit-cell-label i {
  color: #0284C7;
}

[data-theme="dark"] .audit-cell-label {
  color: #38BDF8;
}

[data-theme="dark"] .audit-cell-label i {
  color: #00F5D4;
}

.audit-cell-val {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
}

.audit-cell-val-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.audit-id-code {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
  background: #F1F5F9;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

[data-theme="dark"] .audit-id-code {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-copy-id {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 5px 8px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-id:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

[data-theme="dark"] .btn-copy-id {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94A3B8;
}

[data-theme="dark"] .btn-copy-id:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  border-color: #38BDF8;
}

.audit-payload-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #0F172A;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .audit-payload-box {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .audit-item-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.85rem;
  }
  .audit-toggle-indicator {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-color);
  }
  .audit-details-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Centralized Profile Picture & Avatar Display Rules
   ========================================================================== */
.table-user-avatar,
.user-avatar-initials,
#settings-admin-avatar-preview,
#staff-drawer-avatar-img,
.admin-table-avatar,
.avatar-preview-large-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.table-user-avatar img,
.user-avatar-initials img,
#settings-admin-avatar-preview img,
.admin-table-avatar img,
.avatar-preview-large-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 50% !important;
}

#staff-drawer-avatar-img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  border: 2.5px solid var(--brand-turquoise, #0D9488) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.table-user-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s !important;
}

.table-user-avatar:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  border-color: var(--brand-cyan) !important;
}

[data-theme="dark"] .table-user-avatar:hover {
  box-shadow: 0 4px 16px rgba(0, 245, 212, 0.45) !important;
}

.admin-table-avatar {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.admin-table-avatar:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
  border-color: var(--brand-cyan) !important;
}

#settings-admin-avatar-preview {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#settings-admin-avatar-preview:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(0, 168, 150, 0.4) !important;
}

#staff-drawer-avatar-img {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#staff-drawer-avatar-img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.45) !important;
}

#modal-avatar-preview {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10050 !important;
}

/* Stack nested sub-modals cleanly on top of parent management modals */
#modal-rate-card-term,
#modal-rate-exception,
#modal-client-reset-password {
  z-index: 10050 !important;
}

#modal-rate-card-term .admin-modal-card,
#modal-rate-exception .admin-modal-card,
#modal-client-reset-password .admin-modal-card {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(13, 148, 136, 0.25) !important;
}

#modal-avatar-preview .avatar-preview-card {
  animation: avatarModalZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes avatarModalZoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   ARCHIVE RETENTION VAULT (ADAPTIVE LIGHT & DARK THEME)
   ========================================================================== */
.archive-vault-hero-card {
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(27, 174, 207, 0.08) 0%, rgba(0, 168, 150, 0.04) 40%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .archive-vault-hero-card {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(27, 174, 207, 0.25);
  box-shadow: var(--shadow-md);
}

.archive-vault-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(27, 174, 207, 0.14);
  color: var(--brand-teal);
  border: 1px solid rgba(27, 174, 207, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .archive-vault-hero-icon {
  background: rgba(0, 245, 212, 0.15);
  color: var(--brand-turquoise);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.archive-vault-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.archive-vault-hero-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 720px;
  line-height: 1.5;
}

.archive-filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.archive-filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--brand-cyan);
}

.archive-filter-pill.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1px solid #0284C7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
}

[data-theme="dark"] .archive-filter-pill.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.45) !important;
}

.archive-metric-cube {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.archive-metric-cube:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.archive-metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Light/Dark Adaptive Client Table Styles */
.client-portal-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0D9488;
}
[data-theme="dark"] .client-portal-badge {
  color: #2DD4BF;
}

.client-email-link {
  font-weight: 600;
  font-size: 0.82rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0D9488;
}
[data-theme="dark"] .client-email-link {
  color: #2DD4BF;
}

.requests-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  line-height: 1.3;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.requests-count-pill.has-requests {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .requests-count-pill.has-requests {
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.requests-count-pill.no-requests {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .requests-count-pill.no-requests {
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive Action Toolbar for Data Tables */
.client-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-action-compact {
  height: 30px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-action-compact.btn-icon-only {
  width: 30px;
  padding: 0;
}

.btn-action-neutral {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-action-neutral:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-action-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}
.btn-action-primary:hover {
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-action-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}
.btn-action-warning:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.btn-action-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}
.btn-action-success:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.btn-action-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}
.btn-action-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .btn-action-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .btn-action-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="dark"] .btn-action-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}
