/* ============================================
   BizDeeHub Design System — Light Theme
   ศูนย์รวมเครื่องมือธุรกิจสำหรับ SME ไทย
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  /* Primary - Deep Indigo Blue */
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-300: #A5B4FC;
  --primary-400: #818CF8;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
  --primary-900: #312E81;

  /* Accent - Warm Amber Gold */
  --accent-50: #FFFBEB;
  --accent-100: #FEF3C7;
  --accent-200: #FDE68A;
  --accent-300: #FCD34D;
  --accent-400: #FBBF24;
  --accent-500: #F59E0B;
  --accent-600: #D97706;
  --accent-700: #B45309;

  /* Success */
  --success-50: #ECFDF5;
  --success-500: #10B981;
  --success-600: #059669;

  /* Danger */
  --danger-50: #FEF2F2;
  --danger-500: #EF4444;
  --danger-600: #DC2626;

  /* Warning */
  --warning-50: #FFFBEB;
  --warning-500: #F59E0B;

  /* Neutrals */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.02);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Sarabun', -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }

/* --- Typography --- */
h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.35; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.125rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary-600); }
.text-success { color: var(--success-600); }
.text-danger { color: var(--danger-600); }
.text-accent { color: var(--accent-600); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition-fast);
  border: none; outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.btn-success {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  color: #fff;
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: #fff;
}
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary-400); color: var(--primary-600); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }

/* --- Stat Cards --- */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; margin: 4px 0 2px; line-height: 1.2; }
.stat-card .stat-label { font-size: 0.8125rem; color: var(--gray-500); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.06;
  transform: translate(30%, -30%);
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.875rem;
  font-weight: 500; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: #fff;
  transition: all var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.form-input::placeholder { color: var(--gray-400); }

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-50); }
th {
  padding: 12px 16px; text-align: left;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}
td {
  padding: 14px 16px; font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--primary-50); }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: var(--success-50); color: var(--success-600); }
.badge-warning { background: var(--warning-50); color: var(--accent-700); }
.badge-danger { background: var(--danger-50); color: var(--danger-600); }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* --- Layout: Sidebar --- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform var(--transition-base);
}
.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.125rem;
}
.sidebar-brand .brand-name { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.sidebar-brand .brand-sub { font-size: 0.6875rem; color: var(--gray-400); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-group { margin-bottom: 20px; }
.nav-group-title {
  padding: 0 12px; margin-bottom: 6px;
  font-size: 0.6875rem; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}
.nav-item:hover { background: var(--primary-50); color: var(--primary-700); }
.nav-item.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger-500);
  color: #fff;
  font-size: 0.6875rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}
.header {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky; top: 0;
  z-index: 30;
}
.header-title h2 { font-size: 1.25rem; color: var(--gray-900); }
.header-title .header-date { font-size: 0.8125rem; color: var(--gray-400); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  position: relative;
}
.header-search input {
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  width: 240px;
  background: var(--gray-50);
}
.header-search input:focus {
  outline: none; border-color: var(--primary-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.page-content { padding: 32px; }

/* --- Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded-full { border-radius: 999px; }
.hidden { display: none; }

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 4px;
  cursor: pointer;
  color: var(--gray-700);
  z-index: 50;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); z-index: 100; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90; }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: block; }

  /* Prevent ALL horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .layout { overflow-x: hidden; max-width: 100vw; }
  .main-content { overflow-x: hidden; max-width: 100vw; }
  .page-content { overflow-x: hidden; }

  /* Header */
  .header { padding: 0 12px; gap: 8px; }
  .header-search { display: none; }
  .header-title h2 { font-size: 0.9375rem; }
  .header-date { font-size: 0.6875rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn { font-size: 0.75rem; padding: 6px 10px; white-space: nowrap; }

  /* === GRID OVERRIDES: Force inline grids to stack === */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Override ANY element with inline grid-template-columns → single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Exception: keep 2-col for small internal grids (gap:4px) like quick links */
  [style*="grid-template-columns"][style*="gap:4px"],
  [style*="grid-template-columns"][style*="gap: 4px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Complex data grids (settings prefix table, package comparison, permission matrix) → horizontal scroll wrapper */
  [style*="grid-template-columns: 2fr"],
  [style*="grid-template-columns:2fr"] {
    grid-template-columns: unset !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0 !important;
  }
  [style*="grid-template-columns: 2fr"] > *,
  [style*="grid-template-columns:2fr"] > * {
    min-width: 100px;
    flex-shrink: 0;
  }

  /* === FLEX OVERRIDES: Stack flex containers with inline gap on mobile === */
  /* Settings: main flex container (nav + panel) */
  .settings-nav { width: 100% !important; flex-direction: row !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; flex-wrap: nowrap !important; gap: 0 !important; border-bottom: 1px solid var(--gray-200); padding-bottom: 8px; margin-bottom: 8px; }
  .settings-link { white-space: nowrap; flex-shrink: 0; padding: 8px 12px !important; font-size: 0.8125rem !important; }
  .settings-panel { padding: 16px !important; }

  /* Logo + form grid in settings company */
  .logo-upload { width: 80px !important; height: 80px !important; }
  .logo-upload div[style*="font-size:2rem"] { font-size: 1.25rem !important; }

  /* Tables: horizontal scroll */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }

  /* Page content */
  .page-content { padding: 12px; }
  .card-header { padding: 12px 16px; }
  .card-body { padding: 12px; }

  /* Stat cards */
  .stat-card { padding: 12px; }
  .stat-card .stat-value { font-size: 1.125rem; }
  .stat-card .stat-label { font-size: 0.75rem; }

  /* Subscription bar */
  .subscription-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px !important; }
  .subscription-bar a { margin-left: 0; }
  .subscription-bar span[style*="margin:0 8px"] { display: none; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-bar .search-input,
  .filter-bar input,
  .filter-bar select,
  .filter-bar .form-input { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .filter-bar .btn { margin-left: 0 !important; width: 100%; }

  /* Tab bar */
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 0.8125rem; }

  /* Tab filter buttons row in cards */
  .card-header { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .card-header div[style*="display:flex"][style*="gap:6px"] { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; flex-wrap: nowrap; }
  .card-header div[style*="display:flex"][style*="gap:6px"] button { flex-shrink: 0; }

  /* Buttons & Flex containers */
  .btn-group { flex-wrap: wrap; }

  /* Stepper (register page) */
  .step-indicator { gap: 4px !important; }
  .step-line { width: 16px !important; margin: 0 2px !important; }
  .step-label { display: none; }

  /* Modal / drawer panels */
  .swal2-popup { width: 95vw !important; }
  div[style*="position:fixed"][style*="inset:0"] > div { 
    width: 95vw !important; 
    max-width: 95vw !important; 
    max-height: 90vh !important; 
    margin: auto;
  }

  /* Sub card / plan card stats grid */
  .sub-card [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  .sub-card [style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Inline flex with justify-content:space-between — don't blindly column-ify all */
  .page-content > div[style*="justify-content:space-between"],
  .card-header[style*="justify-content:space-between"] { 
    flex-direction: column; 
    gap: 8px; 
    align-items: flex-start !important; 
  }
}

@media (max-width: 480px) {
  /* Force ALL grids to single column */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns"][style*="gap:4px"],
  [style*="grid-template-columns"][style*="gap: 4px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .header-title h2 { font-size: 0.875rem; }
  .header-date { display: none; }
  .stat-card .stat-value { font-size: 1rem; }
  .page-content { padding: 10px; }
  .form-row { grid-template-columns: 1fr !important; }
  .auth-card { padding: 20px; margin: 12px; }
  .auth-left { padding: 20px; }
  .header-actions .btn-primary { font-size: 0.6875rem; padding: 5px 8px; }

  /* Settings nav: scrollable pills */
  .settings-nav { padding: 4px 8px !important; gap: 4px !important; }
  .settings-link { padding: 6px 10px !important; font-size: 0.75rem !important; }
  .settings-panel { padding: 12px !important; }

  /* Settings: setting-row stack */
  .setting-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .setting-row select, .setting-row .toggle { margin-left: 0 !important; }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-fadeIn { animation: fadeIn 0.4s ease-out; }
.animate-slideUp { animation: slideUp 0.5s ease-out; }

/* --- Login Page Specific --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--accent-50) 100%);
}
.auth-left {
  flex: 1; display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
}
.auth-right {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -200px; right: -200px;
}
.auth-right::after {
  content: '';
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -100px; left: -100px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}
.auth-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.auth-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.25rem;
}

/* Notification dot */
.notification-dot {
  position: relative;
}
.notification-dot::after {
  content: '';
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px;
  background: var(--danger-500);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Avatar */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.875rem;
}

/* Progress bar */
.progress-bar {
  height: 6px; background: var(--gray-200);
  border-radius: 999px; overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  transition: width var(--transition-slow);
}

/* ===== Global Print Styles ===== */
@media print {
  /* Hide app chrome */
  .sidebar,
  .sidebar-overlay,
  .header,
  .subscription-bar,
  .hamburger,
  #darkModeBtn,
  #appUserMenu,
  .no-print { display: none !important; visibility: hidden !important; }

  /* Reset layout */
  .layout { display: block !important; min-height: auto !important; }
  .main-content { margin: 0 !important; margin-left: 0 !important; padding: 0 !important; width: 100% !important; min-height: auto !important; }
  .page-content { padding: 0 !important; overflow: visible !important; }

  /* Prevent mobile grid overrides from breaking print */
  [style*="grid-template-columns"] {
    grid-template-columns: unset; /* Let component styles win */
  }

  /* Reset body */
  html, body {
    overflow: visible !important;
    background: #fff !important;
    max-width: unset !important;
  }

  /* No animations in print */
  .animate-fadeIn, .animate-slideUp { animation: none !important; }

  /* Ensure table fits */
  table { min-width: unset !important; }
  .table-wrapper { overflow: visible !important; }
}
