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

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #172554;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-orange: #f97316;
  --bg: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --card: rgba(255, 255, 255, 0.85);
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: rgba(226, 232, 240, 0.8);
  --border-focus: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;
}

/* Global resets & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Glass Card */
.glass-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Header & Nav */
.header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions, .nav-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn, .nav-btn {
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  font-family: var(--font-family);
  text-decoration: none;
}
.btn:hover, .nav-btn:hover {
  transform: translateY(-1px);
}
.btn:active, .nav-btn:active {
  transform: translateY(0);
}

.btn-upload, .btn-accent, .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-upload:hover, .btn-accent:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-export {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
.btn-export:hover {
  background: linear-gradient(135deg, #ea580c 0%, #ca8a04 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.btn-clear, .btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.btn-clear:hover, .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.btn-clear.btn-clear {
  /* Some uses of btn-clear are actually outline buttons in the original UI */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  box-shadow: none;
}
.btn-clear.btn-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.nav-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Month Bar / Tabs */
.month-tabs, .month-bar, .month-row {
  background: white;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.month-tab, .month-btn {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  background: white;
  color: var(--text-light);
}
.month-tab.active, .month-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
  font-weight: 600;
}
.month-tab:hover:not(.active), .month-btn:hover:not(.active) {
  background: #f1f5f9;
  color: var(--text);
  border-color: #cbd5e1;
}
.month-tab .del, .month-tab .delete-month {
  margin-left: 6px;
  opacity: 0.6;
  font-size: 14px;
  transition: var(--transition);
}
.month-tab .del:hover, .month-tab .delete-month:hover {
  opacity: 1;
  color: var(--danger);
}
.tab-label, .month-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 700;
  margin-right: 8px;
}
.month-tab-compare {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--accent);
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  transition: var(--transition);
  background: white;
}
.month-tab-compare.active {
  background: var(--accent);
  color: white;
  border-style: solid;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* Main Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px;
}

/* Upload Area & Zone */
.upload-zone, .upload-area {
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  background: rgba(59, 130, 246, 0.02);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.upload-zone:hover, .upload-zone.dragover, .upload-area:hover, .upload-area.dragover {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.upload-zone .icon, .upload-area div[style*="font-size:36px"] {
  font-size: 44px !important;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(59, 130, 246, 0.15));
}
.upload-zone h3, .upload-area div[style*="font-weight:600"] {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700 !important;
}
.upload-zone p, .upload-area div[style*="color:#999"] {
  color: var(--text-light) !important;
  font-size: 13px;
}
.upload-zone input, .upload-area input {
  display: none;
}

/* KPI Cards Layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.kpi-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
.kpi-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 700;
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.kpi-unit {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}
.kpi-change {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi-change.up {
  color: var(--success);
}
.kpi-change.down {
  color: var(--danger);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.chart-card:hover {
  box-shadow: var(--shadow-md);
}
.chart-card.full {
  grid-column: 1 / -1;
}
.chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sections */
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary-light);
  letter-spacing: -0.01em;
}

/* Controls Bar / Filters */
.controls-bar, .filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-box input, .filter-bar input, .filter-bar select {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  font-family: var(--font-family);
  transition: var(--transition);
  color: var(--text);
  background-color: white;
}
.filter-bar input, .filter-bar select {
  padding-left: 14px;
  min-width: 150px;
}
.search-box input:focus, .filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* Filter Chips / Buttons */
.filter-btn, .status-btn, .cat-filter-btn, .stock-status-btn, .stock-cat-btn, .toggle-btn {
  padding: 7px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  background: white;
  color: var(--text-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-family);
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover, .status-btn:hover, .cat-filter-btn:hover, .stock-status-btn:hover, .stock-cat-btn:hover, .toggle-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: #f8fafc;
}
.filter-btn.active, .status-btn.active, .cat-filter-btn.active, .stock-status-btn.active, .stock-cat-btn.active, .toggle-btn.active {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Tables */
.table-card, .table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 20px 0;
  overflow: hidden;
}
.table-scroll {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: #1e293b;
  color: #f8fafc;
  padding: 14px 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid #0f172a;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
  font-weight: 500;
}
tr:hover {
  background: #f8fafc !important;
}
tr:nth-child(even) {
  background: #fafafb;
}

/* Badges */
.badge {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}
.badge-danger {
  background: #fee2e2;
  color: #ef4444;
}
.badge-warning {
  background: #fef3c7;
  color: #d97706;
}
.badge-success {
  background: #d1fae5;
  color: #059669;
}
.badge-info {
  background: #dbeafe;
  color: #2563eb;
}
.badge-ot {
  background: #f3e8ff;
  color: #7c3aed;
}
.badge-weekend {
  background: #fdf2f8;
  color: #db2777;
}

/* Rank Badges for Top 30 */
.rank-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 3px 9px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.rank-silver {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: white;
  padding: 3px 9px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.3);
}
.rank-bronze {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  color: white;
  padding: 3px 9px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(161, 98, 7, 0.3);
}

/* Cells styles */
.code-cell {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.desc-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.highlight {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 2px;
}
.prod-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.prod-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Login Screen Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, #1e3a8a 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.login-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: white;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-box h2 {
  color: white;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-box .subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-bottom: 32px;
}
.login-box .lock-icon {
  font-size: 52px;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3));
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.login-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  color: white;
  box-sizing: border-box;
}
.login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.login-input:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light) 0%, #2563eb 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.login-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}
.login-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 14px;
  font-weight: 600;
  display: none;
}
.login-footer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin-top: 24px;
  font-weight: 500;
}

/* Modals */
.modal-overlay, #productModalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.show {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.modal, .modal-box, #productModalOverlay > div {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  padding: 32px;
  position: relative;
  margin: 20px auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close, .modal-box .modal-close, #productModalOverlay span[onclick*="closeProductModal"] {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.modal-close:hover {
  background: #f1f5f9;
  color: var(--text);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loading-box {
  background: white;
  padding: 36px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top: 4px solid var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#loadingText {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 28px;
  border-radius: var(--radius);
  color: white;
  font-weight: 700;
  z-index: 2100;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-success {
  background: var(--success);
}
.toast-error {
  background: var(--danger);
}
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Empty States */
.empty-state, .no-data-msg {
  text-align: center;
  padding: 80px 20px;
}
.empty-state .icon, .no-data-msg .icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: grayscale(0.2) drop-shadow(0 4px 8px rgba(0,0,0,0.05));
  display: inline-block;
  opacity: 0.8;
}
.empty-state h2, .no-data-msg h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
}
.empty-state p, .no-data-msg p {
  color: var(--text-light);
  max-width: 460px;
  margin: 0 auto;
  font-size: 14px;
}
.no-data-msg a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed var(--primary-light);
  transition: var(--transition);
}
.no-data-msg a:hover {
  color: var(--primary);
  border-bottom-style: solid;
}

/* Responsive Grid adjustments */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  .container {
    padding: 16px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kpi-value {
    font-size: 22px;
  }
  .kpi-card {
    padding: 16px 12px;
  }
}
