/**
 * Sultify EduSuite AI - Master Design System & Theme Engine
 * High-Tech SaaS Aesthetic with Light / Dark Mode & Glassmorphism
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700&display=swap');

:root {
  /* Dark Mode Default */
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.75);
  --bg-card-secondary: rgba(255, 255, 255, 0.03);
  --bg-input: #1e293b;
  --bg-muted: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(99, 102, 241, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --accent-cyan: #06b6d4;
  
  --sidebar-width: 270px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-body: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-secondary: #f8fafc;
  --bg-input: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-highlight: rgba(99, 102, 241, 0.45);
  --border-color: rgba(0, 0, 0, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Institutional Accent Themes */
[data-accent="emerald"] {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --border-highlight: rgba(16, 185, 129, 0.4);
}
[data-accent="blue"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --border-highlight: rgba(37, 99, 235, 0.4);
}
[data-accent="purple"] {
  --primary: #9333ea;
  --primary-hover: #7e22ce;
  --primary-glow: rgba(147, 51, 234, 0.25);
  --border-highlight: rgba(147, 51, 234, 0.4);
}
[data-accent="rose"] {
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --primary-glow: rgba(244, 63, 94, 0.25);
  --border-highlight: rgba(244, 63, 94, 0.4);
}
[data-accent="amber"] {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  --border-highlight: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Modern Segmented Theme Switch (Matches Header Pill Layout)
   ========================================================================== */
.theme-toggle-switch {
  position: relative;
  width: 66px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  vertical-align: middle;
}

.theme-toggle-switch:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 0 12px var(--primary-glow), inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  z-index: 1;
}

[data-theme="light"] .theme-toggle-switch {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(34px);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.theme-toggle-option {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: color 0.25s ease;
  pointer-events: none;
}

/* In Dark Mode */
.theme-toggle-option.option-dark {
  color: #ffffff;
}
.theme-toggle-option.option-light {
  color: #64748b;
}

/* In Light Mode */
[data-theme="light"] .theme-toggle-option.option-dark {
  color: #94a3b8;
}
[data-theme="light"] .theme-toggle-option.option-light {
  color: #ffffff;
}

/* ==========================================================================
   Written Text Theme Switch (Without Icons - "Dark" / "Light")
   ========================================================================== */
.theme-text-switch {
  position: relative;
  width: 114px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  vertical-align: middle;
}

.theme-text-switch:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 0 12px var(--primary-glow);
}

.theme-text-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 53px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  z-index: 1;
}

[data-theme="light"] .theme-text-switch {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-text-slider {
  transform: translateX(54px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-text-opt {
  position: relative;
  z-index: 2;
  width: 53px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  pointer-events: none;
}

/* In Dark Mode */
.theme-text-opt.opt-dark {
  color: #ffffff;
}
.theme-text-opt.opt-light {
  color: var(--text-muted);
}

/* In Light Mode */
[data-theme="light"] .theme-text-opt.opt-dark {
  color: #94a3b8;
}
[data-theme="light"] .theme-text-opt.opt-light {
  color: #0f172a;
}


/* ==========================================================================
   Brand Accent Palette Popover (Clean & Harmonious)
   ========================================================================== */
.palette-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.palette-trigger-btn {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.palette-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary);
  border-color: var(--border-highlight);
}

[data-theme="light"] .palette-trigger-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.palette-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-card);
  z-index: 1100;
  min-width: 160px;
  backdrop-filter: blur(16px);
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.palette-popover.show {
  display: block;
}

.palette-dots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  justify-items: center;
}

.accent-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.accent-dot:hover {
  transform: scale(1.22);
}

.accent-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px currentColor;
}



/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sleek WebKit Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  border: 2px solid var(--bg-surface);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.75);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-purple);
}

/* Layout Containers */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

.top-navbar {
  height: var(--header-height);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.top-nav-title-group {
  min-width: 0;
}

.top-nav-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.top-nav-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-user-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}

.header-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

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

.header-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.header-user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: 6px;
  transition: var(--transition);
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Native Bottom Navigation Dock */
.mobile-bottom-dock {
  display: none;
}

.content-body {
  padding: 2rem;
  flex: 1;
}

/* Sidebar Brand */
.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
  justify-content: space-between;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.brand-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-input);
  transform: translateX(4px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  box-shadow: var(--shadow-glow);
  font-weight: 600;
}

.nav-link svg, .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.badge-tag {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  font-weight: 700;
}

/* Glassmorphic Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-highlight);
}

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

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Stat Widgets */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 16px var(--primary-glow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-purple { background: rgba(139, 92, 246, 0.18); color: var(--accent-purple); }
.icon-emerald { background: rgba(16, 185, 129, 0.18); color: var(--accent-emerald); }
.icon-indigo { background: rgba(99, 102, 241, 0.18); color: var(--primary); }
.icon-amber { background: rgba(245, 158, 11, 0.18); color: var(--accent-amber); }
.icon-cyan { background: rgba(6, 182, 212, 0.18); color: var(--accent-cyan); }
.icon-rose { background: rgba(239, 68, 68, 0.18); color: var(--accent-rose); }

[data-theme="light"] .icon-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
[data-theme="light"] .icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
[data-theme="light"] .icon-indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
[data-theme="light"] .icon-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
[data-theme="light"] .icon-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
[data-theme="light"] .icon-rose { background: rgba(239, 68, 68, 0.12); color: #e11d48; }

.stat-info h5 {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-info .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0.2rem 0;
}

.stat-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.custom-table th {
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.custom-table td {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr {
  transition: var(--transition);
}

.custom-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.pill-active, .pill-present, .pill-paid, .pill-approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-trial, .pill-pending, .pill-late, .pill-under_review {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-suspended, .pill-absent, .pill-overdue, .pill-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .pill-active, [data-theme="light"] .pill-present, [data-theme="light"] .pill-paid, [data-theme="light"] .pill-approved {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .pill-trial, [data-theme="light"] .pill-pending, [data-theme="light"] .pill-late, [data-theme="light"] .pill-under_review {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .pill-suspended, [data-theme="light"] .pill-absent, [data-theme="light"] .pill-overdue, [data-theme="light"] .pill-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #e11d48;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: var(--bg-surface);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-input);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 14px !important;
  padding-right: 2.5rem;
}

[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 14px !important;
}

select.form-control:focus {
  background-color: var(--bg-surface);
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 14px !important;
}

select.form-control option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   Standardized Universal Modal & Dialog System
   ========================================================================== */
.modal-backdrop, [id$="Modal"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .modal-backdrop, [data-theme="light"] [id$="Modal"] {
  background: rgba(15, 23, 42, 0.55);
}

.modal-backdrop.show, .modal-backdrop.active, [style*="display: flex"].modal-backdrop, [style*="display: flex"][id$="Modal"] {
  display: flex !important;
}

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

.modal-card, [id$="Modal"] > .card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

[data-theme="light"] .modal-card, [data-theme="light"] [id$="Modal"] > .card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.modal-close-btn {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-muted);
}

/* AI Attendance Camera Kiosk */
.kiosk-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  border: 3px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
}

.scanner-laser {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  box-shadow: 0 0 15px var(--accent-emerald);
  animation: laserScan 2.5s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 5%; }
  50% { top: 92%; }
  100% { top: 5%; }
}

.face-box-overlay {
  position: absolute;
  border: 2px solid var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  border-radius: 6px;
  transition: all 0.1s ease;
  pointer-events: none;
}

/* WhatsApp Simulator Device Mockup */
.phone-mockup {
  width: 380px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 36px;
  background: #111b21;
  border: 8px solid #202c33;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.wa-header {
  background: #202c33;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.wa-chat-body {
  flex: 1;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 20px 20px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.wa-bubble-sent {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 0;
}

.wa-bubble-received {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 0;
}

.wa-time {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  float: right;
  margin-top: 4px;
  margin-left: 8px;
}

.wa-bubble strong { font-weight: 700; color: #ffffff; }
.wa-bubble em { font-style: italic; opacity: 0.95; }
.wa-bubble del { text-decoration: line-through; opacity: 0.75; }
.wa-bubble code {
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  color: #53bdeb;
}

.wa-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.wa-chip-btn:hover {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}
.wa-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wa-nav-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.wa-nav-tab.active {
  background: var(--bg-card);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Cloud Sync Banner Indicator */
.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sync-online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sync-offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sync-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sync-working {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints & Mobile Optimization System
   ========================================================================== */
@media (max-width: 1024px) {
  .kiosk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent body background scrolling when mobile sidebar drawer is open */
  body.sidebar-active-lock {
    overflow: hidden !important;
  }

  /* Hamburger and Mobile Drawer Controls */
  #mobileMenuToggle {
    display: inline-flex !important;
    min-width: 42px !important;
    min-height: 42px !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: var(--radius-sm);
  }

  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 1.3rem;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 9999;
    width: min(300px, 84vw) !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.75);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Top Navigation Bar */
  .top-navbar {
    padding: 0 0.75rem !important;
    height: 60px !important;
    gap: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .top-nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .top-nav-title-group {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .top-nav-heading {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
  }

  .top-nav-subtext {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .top-nav-subtext span:first-child {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 130px !important;
    display: inline-block !important;
  }

  /* Streamline Header Right Actions - Hide clutter on mobile viewports */
  .top-nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  /* Completely hide secondary widgets on mobile to prevent header blowout */
  #cloudSyncStatusBadge,
  .sync-indicator,
  #triggerCloudSyncBtn,
  .sync-trigger-btn,
  .theme-text-switch,
  .palette-dropdown-wrapper,
  .header-search-text,
  .header-search-kbd,
  .header-user-info {
    display: none !important;
  }

  .header-search-btn {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .header-user-wrapper {
    padding-left: 0.35rem !important;
    border-left: 1px solid var(--border) !important;
    gap: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 0.88rem !important;
  }

  .header-logout-btn {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile Content Body: add padding-bottom so floating bottom dock doesn't obscure content */
  .content-body {
    padding: 1rem 0.75rem 5.75rem 0.75rem !important;
  }

  /* Native Mobile Bottom Navigation Dock */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 950;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  [data-theme="light"] .mobile-bottom-dock {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .dock-item:active {
    transform: scale(0.92);
  }

  .dock-item .dock-icon {
    font-size: 1.15rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .dock-item .dock-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  .dock-item.active {
    color: var(--primary);
  }

  .dock-item.active .dock-icon {
    transform: translateY(-2px);
    color: var(--primary);
    filter: drop-shadow(0 2px 8px var(--primary-glow));
  }

  .dock-item.active .dock-label {
    font-weight: 800;
    color: var(--primary);
  }

  /* Center Floating Action Button in Dock */
  .dock-item-highlight .dock-fab-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    box-shadow: 0 4px 16px var(--primary-glow), 0 0 0 4px var(--bg-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  [data-theme="light"] .dock-item-highlight .dock-fab-indicator {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 0 0 4px #ffffff;
  }

  .dock-item-highlight .dock-fab-indicator .dock-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #ffffff !important;
  }

  .dock-item-highlight.active .dock-fab-indicator {
    transform: scale(1.08);
  }

  .dock-item-highlight .dock-label {
    margin-top: 3px;
  }

  /* iOS Safari 16px auto-zoom prevention */
  .form-control,
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Touch Targets */
  .btn {
    min-height: 42px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Universal Table Responsiveness - Prevent Viewport Blowout */
  .content-body table:not(.no-responsive),
  .main-content table:not(.no-responsive),
  .table-responsive,
  .table-container,
  .custom-table-wrapper,
  .table-scroll-container,
  .card-body > table,
  .card > table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  .content-body table:not(.no-responsive) th,
  .content-body table:not(.no-responsive) td,
  .main-content table:not(.no-responsive) th,
  .main-content table:not(.no-responsive) td {
    white-space: nowrap !important;
  }

  .custom-table,
  .table {
    min-width: 560px;
  }

  /* Universal Horizontal Swipeable Tab Strips on Mobile */
  .settings-tabs-scroll,
  .portal-tabs-scroll,
  .nav-tabs-scroll,
  [style*="overflow-x: auto"][style*="border-bottom"],
  [style*="overflow-x:auto"][style*="border-bottom"],
  [style*="border-bottom"][style*="overflow-x: auto"],
  [style*="border-bottom"][style*="overflow-x:auto"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 10px !important;
    margin-bottom: 1.25rem !important;
    gap: 8px !important;
    scrollbar-width: thin;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }

  .settings-tabs-scroll .btn,
  .portal-tabs-scroll .btn,
  .nav-tabs-scroll .btn,
  [style*="overflow-x: auto"][style*="border-bottom"] .btn,
  [style*="overflow-x:auto"][style*="border-bottom"] .btn,
  [style*="overflow-x: auto"][style*="border-bottom"] a,
  [style*="overflow-x:auto"][style*="border-bottom"] a,
  [style*="border-bottom"][style*="overflow-x: auto"] .btn,
  [style*="border-bottom"][style*="overflow-x:auto"] .btn,
  [style*="border-bottom"][style*="overflow-x: auto"] a,
  [style*="border-bottom"][style*="overflow-x:auto"] a {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Universal Modal Dialog Fluidity */
  .modal,
  [id$="Modal"],
  .modal-backdrop {
    padding: 0.5rem !important;
  }

  .modal-card,
  .modal-dialog,
  [id$="Modal"] > .card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    margin: auto !important;
    border-radius: 14px !important;
  }

  .modal-card form,
  .modal-dialog form {
    max-width: 100% !important;
  }

  /* Universal Multi-Column Grid Collapse for Mobile Screen (1 Column) */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(2, 1fr"],
  [style*="grid-template-columns:repeat(2, 1fr"],
  [style*="grid-template-columns: repeat(2,1fr"],
  [style*="grid-template-columns:repeat(2,1fr"],
  [style*="grid-template-columns: repeat(3, 1fr"],
  [style*="grid-template-columns:repeat(3, 1fr"],
  [style*="grid-template-columns: repeat(3,1fr"],
  [style*="grid-template-columns:repeat(3,1fr"],
  [style*="grid-template-columns: repeat(4, 1fr"],
  [style*="grid-template-columns:repeat(4, 1fr"],
  [style*="grid-template-columns: repeat(4,1fr"],
  [style*="grid-template-columns: repeat(5, 1fr"],
  [style*="grid-template-columns: repeat(8, 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.2fr 2fr"],
  [style*="grid-template-columns: 2fr 1.2fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns: 3fr 1fr"],
  [style*="grid-template-columns: 1fr 3fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"],
  [style*="grid-template-columns: 2fr 2fr 2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1.2fr auto"],
  [style*="grid-template-columns: 1fr 1.2fr 100px"],
  [style*="grid-template-columns: 1fr 1.2fr 1fr auto"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr auto"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(280px"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(290px"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(320px"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(360px"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(480px"],
  .modal [style*="grid-template-columns"],
  .modal-dialog [style*="grid-template-columns"],
  .modal-card [style*="grid-template-columns"],
  .responsive-form-grid,
  .subscription-modules-grid,
  .grid-2, .grid-3, .grid-4,
  .grid-cols-2, .grid-cols-3, .grid-cols-4,
  .two-column-layout,
  .dashboard-analytics-grid,
  .whatsapp-center-grid,
  .duty-roster-grid,
  .settings-grid,
  .search-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fullscreen Kiosk Mode Mobile Stacking */
  .kiosk-fullscreen {
    grid-template-columns: 1fr !important;
    padding: 0.75rem !important;
    height: 100vh !important;
    overflow-y: auto !important;
  }

  .kiosk-fullscreen .scanner-viewport {
    height: 260px !important;
  }

  /* Dashboard and KPI Stat Grids */
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .stat-card {
    padding: 0.9rem !important;
  }

  .stat-info .stat-value {
    font-size: 1.35rem !important;
  }

  /* Universal Flex Header & Toolbar Wrapping */
  .card-header,
  .content-header,
  .action-bar,
  .page-header,
  .portal-header,
  .table-toolbar,
  .header-actions,
  .tab-actions,
  [style*="justify-content: space-between"],
  [style*="justify-content:space-between"] {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  .card-header .btn {
    width: 100%;
  }

  /* Filter Cards Mobile Stacking */
  .filters-form {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .filter-group {
    width: 100% !important;
  }

  .filters-card form > div[style*="display: flex"] {
    width: 100%;
    justify-content: stretch;
  }

  .filters-card form > div[style*="display: flex"] > .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .top-navbar {
    padding: 0 0.65rem !important;
  }

  .top-nav-heading {
    font-size: 0.98rem !important;
    max-width: 125px !important;
  }

  .theme-text-switch {
    display: none !important;
  }

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

  .btn {
    min-height: 42px;
  }

  .card {
    padding: 1rem 0.85rem !important;
  }
}

@media (max-width: 360px) {
  .stat-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    padding: 0.85rem 0.85rem !important;
  }

  .content-body {
    padding: 0.75rem 0.5rem 5.5rem 0.5rem !important;
  }

  .top-navbar {
    padding: 0 0.5rem !important;
  }

  .top-nav-heading {
    max-width: 95px !important;
  }

  .card {
    padding: 0.85rem 0.75rem !important;
  }

  .btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}

/* Mobile Sidebar Tap-to-Dismiss Overlay */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================================================================
   Flash-message inline elements
   Messages are rendered through Html::message(), which drops style attributes
   (they are an injection surface). These classes carry what those inline
   styles used to do.
   ========================================================================== */
.msg-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 800;
  margin-left: 10px;
}

.msg-badge-wa {
  display: inline-block;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

/* ==========================================================================
   Responsive Multi-Column Layout Utilities
   ========================================================================== */
.dashboard-analytics-grid,
.subscription-modules-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.whatsapp-center-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.qr-kiosk-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.responsive-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

@media (max-width: 992px) {
  .whatsapp-center-grid,
  .qr-kiosk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-analytics-grid,
  .subscription-modules-grid,
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Consolidated Design System Utilities
   ========================================================================== */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.table-scroll-container table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status-pill.info {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.empty-state-card {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Display, Flex & Grid Utilities
   ========================================================================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.5rem !important; }
.w-100 { width: 100% !important; }

/* ==========================================================================
   Quick Actions Shortcut Bar
   ========================================================================== */
.quick-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.quick-actions-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  transition: var(--transition);
}

.quick-actions-bar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Aging Receivables & Defaulters Cohorts Matrix
   ========================================================================== */
.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.cohort-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.cohort-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.cohort-card.emerald { border-left-color: var(--accent-emerald); }
.cohort-card.amber { border-left-color: var(--accent-amber); }
.cohort-card.orange { border-left-color: #f97316; }
.cohort-card.rose { border-left-color: var(--accent-rose); }

.cohort-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cohort-value {
  font-size: 1.22rem;
  font-weight: 800;
  margin-top: 4px;
}

.cohort-card.emerald .cohort-value { color: var(--accent-emerald); }
.cohort-card.amber .cohort-value { color: var(--accent-amber); }
.cohort-card.orange .cohort-value { color: #f97316; }
.cohort-card.rose .cohort-value { color: var(--accent-rose); }

.cohort-sub {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   Filters Bar & Forms
   ========================================================================== */
.filters-card {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.filters-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 170px;
}

.filter-group.flex-2 {
  flex: 2;
  min-width: 220px;
}

.filter-group .form-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
  color: var(--text-secondary);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 280px;
  max-width: 440px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.success { border-left: 4px solid var(--accent-emerald); }
.toast-item.error { border-left: 4px solid var(--accent-rose); }
.toast-item.warning { border-left: 4px solid var(--accent-amber); }
.toast-item.info { border-left: 4px solid var(--primary); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-item.success .toast-icon { color: var(--accent-emerald); }
.toast-item.error .toast-icon { color: var(--accent-rose); }
.toast-item.warning .toast-icon { color: var(--accent-amber); }
.toast-item.info .toast-icon { color: var(--primary); }

.toast-body {
  flex: 1;
  word-break: break-word;
  line-height: 1.35;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  font-size: 1rem;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-primary);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Collapsible Sidebar Navigation
   ========================================================================== */
.nav-group {
  margin-bottom: 0.35rem;
}

.nav-category.collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.nav-category.collapsible:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.nav-chevron {
  font-size: 0.72rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.nav-group.collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.nav-group.collapsed .nav-group-items {
  display: none;
}

.nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ==========================================================================
   Command Palette (Ctrl + K / Cmd + K)
   ========================================================================== */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.header-search-btn:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.header-search-kbd {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: monospace;
}

.cmd-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 1rem;
  padding-right: 1rem;
}

.cmd-palette-backdrop.active {
  display: flex;
  animation: cmdFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmdFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.cmd-palette-box {
  width: 100%;
  max-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.cmd-palette-header i {
  color: var(--primary);
  font-size: 1.1rem;
}

.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
}

.cmd-palette-input::placeholder {
  color: var(--text-muted);
}

.cmd-palette-kbd {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.cmd-palette-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.cmd-palette-item:hover,
.cmd-palette-item.selected {
  background: var(--primary-glow);
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
}

.cmd-palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-palette-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 700;
  pointer-events: none;
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.72rem;
}

/* ==========================================================================
   Top Header Universal Banners
   ========================================================================== */
.banner-god-mode {
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  color: #ffffff;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 100000;
  position: sticky;
  top: 0;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.banner-platform-broadcast {
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.banner-subscription {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.banner-urgent-notice {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18) 0%, rgba(220, 38, 38, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Logout Confirmation Modal
   ========================================================================== */
.logout-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.logout-confirm-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.logout-confirm-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-color);
  position: relative;
  text-align: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.logout-confirm-backdrop.active .logout-confirm-card {
  transform: scale(1) translateY(0);
}

.logout-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.logout-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-card-secondary, rgba(255, 255, 255, 0.06));
}

.logout-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: var(--accent-rose, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin: 0 auto 1.25rem;
}

.logout-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.logout-modal-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.logout-user-preview {
  background: var(--bg-card-secondary, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.logout-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logout-btn-cancel {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  justify-content: center;
}

.logout-btn-proceed {
  padding: 0.75rem 1rem;
  font-weight: 700;
  background: var(--accent-rose, #ef4444) !important;
  border-color: var(--accent-rose, #ef4444) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: filter 0.2s ease, transform 0.1s ease;
}

.logout-btn-proceed:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* =========================================================================
   GLOBAL PRINT CLEANUP ENGINE
   ========================================================================= */
@media print {
  .no-print,
  .mobile-bottom-dock,
  .mobile-bottom-menu-overlay,
  .mobile-bottom-sheet,
  .top-navbar,
  .sidebar,
  .sidebar-overlay,
  .dock-fab-indicator,
  .logout-confirm-backdrop {
    display: none !important;
  }
}
