:root {
  /* Color Palette - Premium Dark/Neon (Default) */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --sidebar-bg: rgba(15, 23, 42, 0.95);
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --title-color: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --input-bg: rgba(15, 23, 42, 0.5);
  --input-text: #ffffff;
  --row-hover: rgba(255, 255, 255, 0.02);
  --grid-color: rgba(255, 255, 255, 0.05);
  --gradient-opacity: 0.15;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Light Theme Overrides */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --sidebar-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --title-color: #0f172a;
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --row-hover: #f1f5f9;
  --grid-color: rgba(0, 0, 0, 0.05);
  --gradient-opacity: 0.05;
}

/* ==========================================================
   RESET & TYPOGRAPHY
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  font-size: clamp(10.5px, 0.8vw, 15px) !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, var(--gradient-opacity)) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, var(--gradient-opacity)) 0%, transparent 40%);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--title-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* ==========================================================
   LAYOUT GRID & UTILITIES (UNIFIED REPLACEMENT FOR BOOTSTRAP)
   ========================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  box-sizing: border-box;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }

@media (min-width: 768px) {
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .col-md-9  { flex: 0 0 75%; max-width: 75%; }
  .col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-3  { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 1024px) {
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
  .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
}

/* Flexbox Utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { 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; }
.flex-1 { flex: 1 1 0% !important; }

/* Gap Utilities */
.gap-xs { gap: 0.25rem !important; }
.gap-sm { gap: 0.5rem !important; }
.gap-md { gap: 1rem !important; }
.gap-lg { gap: 1.5rem !important; }
.gap-xl { gap: 2rem !important; }

/* Width Utilities */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.w-half { width: 50% !important; }
.w-third { width: 33.333333% !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-sm { font-size: 0.85rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.15rem !important; }
.text-xl { font-size: 1.35rem !important; }
.text-2xl { font-size: 1.75rem !important; }
.text-muted { color: var(--text-muted) !important; }
.text-main { color: var(--text-main) !important; }
.text-bold { font-weight: 700 !important; }
.text-semibold { font-weight: 600 !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }

/* Display Utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

/* ==========================================================
   CARDS & CONTAINERS
   ========================================================== */
.card, .glass-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--card-shadow) !important;
  color: var(--text-main) !important;
  padding: var(--spacing-md) !important;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.card-header, .card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  border-top: 1px solid var(--glass-border) !important;
  color: var(--title-color) !important;
  font-weight: 600 !important;
}

/* Page Header Component */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  gap: 1rem;
}

.page-header h1, .page-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

/* Filter Bar Component */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
}

.filter-bar .form-control, .filter-bar .form-select {
  width: auto;
  min-width: 180px;
}

/* Dashboard Stats Grid */
.grid-stats, .data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--title-color);
}

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

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  opacity: 0.1;
  color: var(--text-muted);
}

/* ==========================================================
   BUTTONS & ACTIONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: 'Outfit', 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px var(--primary-glow) !important;
  border: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow) !important;
}

.btn-outline {
  background: transparent !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-main) !important;
}

.btn-outline:hover {
  background: var(--glass-bg) !important;
  border-color: var(--primary) !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35) !important;
}

.btn-success {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
}

.btn-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-sm) !important;
}

.btn-icon, .icon-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 !important;
}

.btn-icon:hover, .icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================
   FORMS & INPUTS
   ========================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row > .form-group {
  flex: 1 1 200px;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
}

.form-control, .form-select, select, input:not([type="checkbox"]):not([type="radio"]), textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background-color: var(--input-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--input-text) !important;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus, select:focus, input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus {
  background-color: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  outline: none !important;
}

.form-check-input {
  background-color: var(--input-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 4px !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

.form-check-input[type="radio"] {
  border-radius: 50% !important;
}

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ==========================================================
   TABLES
   ========================================================== */
.table-container {
  overflow-x: auto;
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-main) !important;
  border-color: var(--glass-border) !important;
  background: transparent !important;
}

.table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid var(--glass-border) !important;
  background-color: rgba(255, 255, 255, 0.01) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.table td {
  padding: 0.85rem 1rem;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.table tr:hover {
  background-color: var(--row-hover) !important;
}

/* ==========================================================
   BADGES & STATUS
   ========================================================== */
.badge, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

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

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

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

.badge-info, .status-badge.info {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* ==========================================================
   TABS COMPONENT
   ========================================================== */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--spacing-md);
  list-style: none;
  padding: 0;
}

.tab-link {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.tab-link:hover, .tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: block;
}

/* ==========================================================
   MODALS COMPONENT
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content, .modal-panel {
  background: var(--bg-dark) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--card-shadow) !important;
  color: var(--text-main) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  max-width: 600px;
  width: 90%;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border) !important;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  color: var(--title-color) !important;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--glass-border) !important;
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ==========================================================
   ALERTS COMPONENT
   ========================================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid transparent !important;
  font-weight: 500 !important;
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #f59e0b !important;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  color: #3b82f6 !important;
}

/* ==========================================================
   EMPTY STATE COMPONENT
   ========================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state-text {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================
   LAYOUT STRUCTURE (APP, SIDEBAR, HEADER)
   ========================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 16.25rem 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--glass-border);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  transition: background-color 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  background: var(--glass-bg);
  color: var(--text-main);
  border-left: 3px solid var(--primary);
}

.main-content {
  padding: var(--spacing-lg);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

/* Dropdown Submenu Styles */
.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.nav-group[open] summary .arrow {
  transform: rotate(180deg);
  color: var(--primary);
}
.submenu {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 5px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.submenu li a {
  font-size: 0.9rem;
  padding: 8px 10px;
  display: block;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.submenu li a:hover, .submenu li a.active {
  color: var(--primary);
}

/* ==========================================================
   DOUBLE TOP HORIZONTAL MENU LAYOUT
   ========================================================== */
.top-double-nav {
  display: none !important;
}

html.menu-layout-top-mega body .app-layout {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
}

html.menu-layout-top-mega body .sidebar {
  display: none !important;
}

html.menu-layout-top-mega body .main-content > header.header {
  display: none !important;
}

html.menu-layout-top-mega body .top-double-nav {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

.top-nav-bar-1 {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, border-color 0.3s;
}

body.light-theme .top-nav-bar-1 {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.top-nav-bar-2 {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(8, 12, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
  transition: background 0.3s, border-color 0.3s;
}

.top-nav-bar-2::-webkit-scrollbar {
  display: none;
}

body.light-theme .top-nav-bar-2 {
  background: rgba(241, 245, 249, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-primary-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  height: 100%;
}

.top-primary-tab {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.top-primary-tab:hover {
  color: var(--title-color);
  background: rgba(255, 255, 255, 0.03);
}

body.light-theme .top-primary-tab:hover {
  background: rgba(0, 0, 0, 0.03);
}

.top-primary-tab.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.top-primary-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  animation: slideInBottom 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInBottom {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.top-submenu-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  width: 100%;
  animation: submenuFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.top-sub-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.top-sub-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.top-sub-link:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.08);
}

.top-sub-link:hover i {
  transform: scale(1.15);
}

.top-sub-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}

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

.top-search-pill {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  width: 170px;
}

body.light-theme .top-search-pill {
  background: rgba(0, 0, 0, 0.04);
}

.top-search-pill:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
  color: var(--title-color);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

body.light-theme .top-search-pill:hover {
  background: rgba(0, 0, 0, 0.08);
}

.top-util-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-util-btn:hover {
  background: var(--glass-border);
  color: var(--primary);
  transform: translateY(-1px);
}

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

html.menu-layout-top-mega body .main-content {
  padding: 1.5rem 2rem !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1600px !important;
}

/* ==========================================================
   SPOTLIGHT SEARCH MODAL STYLES
   ========================================================== */
.spotlight-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  animation: spotlightOverlayFade 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.spotlight-modal-card {
  width: 100%;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
  animation: spotlightCardAppear 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes spotlightCardAppear {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.light-theme .spotlight-modal-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.spotlight-search-header {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}

.spotlight-search-header .search-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.spotlight-search-header input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-main) !important;
  font-size: 1.05rem !important;
  padding: 0 !important;
}

.spotlight-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.15s;
}

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

.spotlight-results-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.6rem;
}

.spotlight-results-container::-webkit-scrollbar {
  width: 4px;
}

.spotlight-results-container::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.spotlight-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid transparent;
}

.spotlight-result-item i {
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
  transition: all 0.15s ease;
}

.spotlight-result-item .result-path {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.spotlight-result-item:hover, .spotlight-result-item.selected {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  transform: translateX(4px);
}

.spotlight-result-item:hover i, .spotlight-result-item.selected i {
  color: var(--primary);
  transform: scale(1.1);
}

.spotlight-no-results {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spotlight-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--glass-border);
  font-size: 0.72rem;
  color: var(--text-muted);
}

body.light-theme .spotlight-footer {
  background: rgba(0, 0, 0, 0.02);
}

.spotlight-footer kbd {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.68rem;
}

/* ==========================================================
   APP LAUNCHER (LAUNCHPAD) & SIDEBAR MODULE STYLES
   ========================================================== */
.app-launcher-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: appLauncherFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.app-launcher-card {
  width: 90%;
  max-width: 960px;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 2rem !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: appLauncherAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appLauncherAppear {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.light-theme .app-launcher-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15) !important;
}

.app-launcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

body.light-theme .app-launcher-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-launcher-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.app-launcher-close-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

body.light-theme .app-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.light-theme .app-card:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.app-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  transition: all 0.25s;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--title-color);
}

.app-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.app-crm .app-icon-wrapper { background: linear-gradient(135deg, #10b981, #059669); }
.app-crm:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important; }

.app-comercial .app-icon-wrapper { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.app-comercial:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 15px rgba(59, 130, 246, 0.15) !important; }

.app-compras .app-icon-wrapper { background: linear-gradient(135deg, #ec4899, #db2777); }
.app-compras:hover { border-color: rgba(236, 72, 153, 0.4); box-shadow: 0 0 15px rgba(236, 72, 153, 0.15) !important; }

.app-stock_fab .app-icon-wrapper { background: linear-gradient(135deg, #f59e0b, #d97706); }
.app-stock_fab:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 0 15px rgba(245, 158, 11, 0.15) !important; }

.app-finanzas .app-icon-wrapper { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.app-finanzas:hover { border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 0 15px rgba(6, 182, 212, 0.15) !important; }

.app-contabilidad .app-icon-wrapper { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.app-contabilidad:hover { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important; }

.app-calidad .app-icon-wrapper { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.app-calidad:hover { border-color: rgba(20, 184, 166, 0.4); box-shadow: 0 0 15px rgba(20, 184, 166, 0.15) !important; }

.app-rrhh .app-icon-wrapper { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.app-rrhh:hover { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 15px rgba(244, 63, 94, 0.15) !important; }

.app-database .app-icon-wrapper { background: linear-gradient(135deg, #64748b, #475569); }
.app-database:hover { border-color: rgba(100, 116, 139, 0.4); box-shadow: 0 0 15px rgba(100, 116, 139, 0.15) !important; }

.app-sistema .app-icon-wrapper { background: linear-gradient(135deg, #f97316, #ea580c); }
.app-sistema:hover { border-color: rgba(249, 115, 22, 0.4); box-shadow: 0 0 15px rgba(249, 115, 22, 0.15) !important; }

.sidebar-app-header {
  padding: 10px 15px;
  margin: 0 0.5rem 15px 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-app-header.crm { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); color: #10b981; }
.sidebar-app-header.comercial { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.15); color: #3b82f6; }
.sidebar-app-header.compras { background: rgba(236, 72, 153, 0.08); border: 1px solid rgba(236, 72, 153, 0.15); color: #ec4899; }
.sidebar-app-header.stock_fab { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.15); color: #f59e0b; }
.sidebar-app-header.finanzas { background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.15); color: #06b6d4; }
.sidebar-app-header.contabilidad { background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.sidebar-app-header.calidad { background: rgba(20, 184, 166, 0.08); border: 1px solid rgba(20, 184, 166, 0.15); color: #14b8a6; }
.sidebar-app-header.rrhh { background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.15); color: #f43f5e; }
.sidebar-app-header.database { background: rgba(100, 116, 139, 0.08); border: 1px solid rgba(100, 116, 139, 0.15); color: #64748b; }
.sidebar-app-header.sistema { background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.15); color: #f97316; }

.sidebar-flat-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-flat-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}
.sidebar-flat-menu li a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}
body.light-theme .sidebar-flat-menu li a:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.03);
}
.sidebar-flat-menu li a.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Scroller Elegante */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================
   FLOATING ACTIONS REPOSITIONING FOR PRINT/VIEW PAGES
   ========================================================== */
@media screen {
  body div.actions, body .actions {
    position: fixed !important;
    top: 85px !important;
    right: 30px !important;
    z-index: 1050 !important;
    display: flex !important;
    gap: 10px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }

  html.menu-layout-top-mega body div.actions,
  html.menu-layout-top-mega body .actions {
    top: 135px !important;
    right: 30px !important;
  }

  body div.actions .btn, body .actions .btn {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
  }

  body div.actions .btn:hover, body .actions .btn:hover {
    transform: translateY(-1px) !important;
  }

  body div.actions .btn-outline, body .actions .btn-outline {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
  }

  body div.actions .btn-outline:hover, body .actions .btn-outline:hover {
    background: var(--glass-border) !important;
  }
/* Quality Audit Component Styles */
.audit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.5rem;
}

.audit-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.audit-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.audit-item.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.audit-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.finding-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.85rem;
}

.finding-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Quality Documents Component Styles */
.doc-container {
  display: flex;
  gap: 2rem;
  position: relative;
  min-height: calc(100vh - 100px);
}

.main-panel {
  flex: 1;
  min-width: 0;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.folder-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.folder-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.folder-card.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.revision-timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.revision-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--glass-border);
}

.revision-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.revision-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
}

@media print {
  @page { margin: 0; }
  .sidebar, .header, .user-profile, .actions, div.actions { display: none !important; }
  .main-content { margin: 0; padding: 1.5cm !important; background: white; }
  .app-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1440px) {
  :root {
    --spacing-lg: 1.25rem;
    --spacing-md: 1rem;
    --spacing-sm: 0.75rem;
  }
  
  .sidebar { padding: var(--spacing-md) !important; }
  .main-content { padding: var(--spacing-md) !important; }
  .glass-card, .card { padding: var(--spacing-md) !important; }
}

@media (max-width: 1024px) {
  .row > [class*="col-md-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr !important; }
  .sidebar { display: none !important; }
}