/* HỆ THỐNG BÁO CÁO TẬP TRUNG i-REPORT - CSS CUSTOM STYLES */

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

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #172554;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-w: 260px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Excel Style Table */
.excel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.excel-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}
.excel-table td {
  border: 1px solid #e2e8f0;
  padding: 7px 10px;
  color: #1e293b;
  white-space: nowrap;
}
.excel-table tr:hover td {
  background-color: #f8fafc;
}
.excel-table tr.total-row td {
  background-color: #e2e8f0;
  font-weight: 700;
  color: #0f172a;
  border-top: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
}
.excel-table tr.growth-row td {
  background-color: #fefce8;
  font-weight: 600;
  font-size: 12px;
}

/* Clickable Cell for Drill-down */
.cell-clickable {
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  position: relative;
}
.cell-clickable:hover {
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #3b82f6;
}

/* Card Styling */
.stat-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* TV Mode Styling */
body.tv-mode-active {
  background-color: #0f172a;
  color: #f8fafc;
}
body.tv-mode-active #main-sidebar,
body.tv-mode-active #top-header-nav {
  display: none !important;
}
body.tv-mode-active #tv-mode-bar {
  display: flex !important;
}
body.tv-mode-active .bg-white {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
body.tv-mode-active .text-slate-800,
body.tv-mode-active .text-slate-900,
body.tv-mode-active .text-gray-800 {
  color: #f8fafc !important;
}
body.tv-mode-active .text-slate-500,
body.tv-mode-active .text-slate-600 {
  color: #94a3b8 !important;
}
body.tv-mode-active .excel-table th {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
body.tv-mode-active .excel-table td {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.tv-mode-active .excel-table tr.total-row td {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}
body.tv-mode-active .excel-table tr.growth-row td {
  background-color: #1e3a5f !important;
  color: #fef08a !important;
}

/* Navigation active item */
.nav-item.active {
  background-color: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.25);
}
.nav-item.active i {
  color: #38bdf8;
}

/* Print Friendly */
@media print {
  #main-sidebar, #top-header, .no-print {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
  }
}

