:root {
  --font-heading: 'Bahnschrift', 'Barlow', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --profit-red: #d72132;
  --profit-red-dark: #b51a29;
  --profit-red-light: #f2dee0;
  --profit-black: #000000;
  --profit-dark: #1a1a1a;
  --profit-gray-900: #212121;
  --profit-gray-800: #333333;
  --profit-gray-700: #4a4a4a;
  --profit-gray-600: #666666;
  --profit-gray-400: #999999;
  --profit-gray-300: #cccccc;
  --profit-gray-200: #e5e5e5;
  --profit-gray-100: #f5f5f5;
  --profit-white: #ffffff;
  --positive: #0d9f6e;
  --positive-bg: #e6f7f0;
  --negative: #d72132;
  --negative-bg: #fde8ea;
  --neutral: #666666;
  --neutral-bg: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--profit-gray-100);
  color: var(--profit-gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Upload Screen */
#upload-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--profit-dark) 0%, var(--profit-gray-900) 100%);
  padding: 2rem;
}

.upload-logo {
  margin-bottom: 0.25rem;
}

.upload-logo img { height: 80px; filter: brightness(0) invert(1); }

.upload-subtitle {
  font-family: var(--font-heading);
  color: var(--profit-gray-400);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 3rem;
}

.upload-zone {
  width: 100%;
  max-width: 600px;
  border: 2px dashed var(--profit-gray-600);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--profit-red);
  background: rgba(215,33,50,0.05);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--profit-red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg { width: 32px; height: 32px; }

.upload-zone h2 {
  color: var(--profit-white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  color: var(--profit-gray-400);
  font-size: 0.875rem;
}

.upload-zone input { display: none; }

.uploaded-files {
  width: 100%;
  max-width: 600px;
  margin-top: 1.5rem;
}

.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  color: var(--profit-white);
  font-size: 0.875rem;
}

.uploaded-file .file-name { font-weight: 500; }
.uploaded-file .file-status { color: var(--positive); font-size: 0.75rem; }

.generate-btn {
  margin-top: 2rem;
  padding: 0.875rem 3rem;
  background: var(--profit-red);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.generate-btn:hover { background: var(--profit-red-dark); transform: translateY(-1px); }
.generate-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Dashboard */
#dashboard { display: block; }

.dash-header {
  background: var(--profit-white);
  border-bottom: 1px solid var(--profit-gray-200);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-brand img { height: 36px; }

.dash-controls { display: flex; gap: 0.75rem; align-items: flex-end; }
.dash-control-group { display: flex; flex-direction: column; gap: 0.2rem; }
.dash-control-label { font-family: var(--font-heading); font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--profit-gray-400); padding-left: 2px; }

.dash-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--profit-gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  background: white;
  cursor: pointer;
  color: var(--profit-gray-800);
}

.btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary { background: var(--profit-red); color: white; }
.btn-primary:hover { background: var(--profit-red-dark); }
.btn-outline { background: white; color: var(--profit-gray-800); border: 1px solid var(--profit-gray-300); }
.btn-outline:hover { background: var(--profit-gray-100); }

.dash-body { padding: 1.5rem 2rem 3rem; max-width: 1400px; margin: 0 auto; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--profit-gray-600);
  text-align: center;
}
.empty-state svg { margin-bottom: 1.5rem; opacity: 0.4; }
.empty-state h2 { font-size: 1.25rem; color: var(--profit-gray-800); margin: 0 0 0.5rem; }
.empty-state p { font-size: 0.875rem; margin: 0 0 1.5rem; }
.empty-state .btn { font-size: 0.875rem; }

/* Period selector bar */
.period-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.period-bar label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--profit-gray-700);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tab navigation */
.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--profit-gray-200);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--profit-gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--profit-gray-900); }
.tab-btn.active { color: var(--profit-red); border-bottom-color: var(--profit-red); }

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--profit-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--profit-gray-200);
  border-left: 4px solid var(--profit-gray-300);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.kpi-card:nth-child(1) { border-left-color: #d72132; }
.kpi-card:nth-child(2) { border-left-color: #1a1a1a; }
.kpi-card:nth-child(3) { border-left-color: #e67e22; }
.kpi-card:nth-child(4) { border-left-color: #1a73e8; }
.kpi-card:nth-child(5) { border-left-color: #0d9f6e; }
.kpi-card:nth-child(6) { border-left-color: #f59e0b; }
.kpi-card:nth-child(7) { border-left-color: #8b5cf6; }
.kpi-card:nth-child(8) { border-left-color: #ec4899; }
.kpi-card .kpi-info { flex: 0 0 auto; min-width: 120px; }
.kpi-card .kpi-spark { flex: 1 1 0; min-width: 0; }

.kpi-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--profit-gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--profit-black);
  line-height: 1.1;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kpi-change.positive { background: var(--positive-bg); color: var(--positive); }
.kpi-change.negative { background: var(--negative-bg); color: var(--negative); }
.kpi-change.neutral { background: var(--neutral-bg); color: var(--neutral); }

.kpi-compare-label {
  font-size: 0.6875rem;
  color: var(--profit-gray-400);
  margin-top: 0.25rem;
}

/* Chart containers */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-row.full { grid-template-columns: 1fr; }

.chart-card {
  background: var(--profit-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--profit-gray-200);
  border-left: 4px solid var(--profit-red);
}

.chart-card h3 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--profit-gray-900);
  margin-bottom: 1rem;
}

.chart-card canvas { width: 100% !important; }
.chart-card.chart-compact canvas { max-height: 260px; }

/* Section divider between dashboard groups */
.section-divider {
  border: none;
  border-top: 2px solid var(--profit-gray-200);
  margin: 2rem 0 1.5rem;
}

/* Welded Pipes Summary Card */
.pipes-summary {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.pipes-total {
  flex: 0 0 auto;
  min-width: 120px;
}
.pipes-total-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--profit-black);
  line-height: 1.1;
}
.pipes-total-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--profit-gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.pipes-breakdown {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pipes-dn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pipes-dn-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--profit-gray-700);
  min-width: 52px;
  text-align: right;
}
.pipes-dn-bar-wrap {
  flex: 1;
  min-width: 60px;
  height: 10px;
  background: var(--profit-gray-200);
  border-radius: 5px;
  overflow: hidden;
}
.pipes-dn-bar {
  height: 100%;
  background: var(--profit-red);
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.4s ease;
}
.pipes-dn-value {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--profit-gray-800);
  min-width: 40px;
  text-align: right;
}

/* Data table */
.data-table-wrap {
  background: var(--profit-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--profit-gray-200);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.data-table-wrap h3 {
  font-family: var(--font-heading);
  padding: 1.25rem 1.5rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--profit-gray-900);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

table.data-table thead th {
  padding: 0.75rem 1rem;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--profit-gray-600);
  border-bottom: 2px solid var(--profit-gray-200);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

table.data-table thead th:first-child { text-align: left; }

table.data-table tbody td {
  padding: 0.625rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--profit-gray-100);
  color: var(--profit-gray-800);
  font-variant-numeric: tabular-nums;
}

table.data-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}

table.data-table tbody tr:hover { background: var(--profit-gray-100); }

table.data-table tfoot td {
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 700;
  border-top: 2px solid var(--profit-gray-300);
  color: var(--profit-black);
}

table.data-table tfoot td:first-child { text-align: left; }

.pipe-detail { font-size: 0.75rem; color: var(--profit-gray-400); }

/* Comparison section */
.comparison-section { margin-top: 2rem; }

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comp-card {
  background: var(--profit-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--profit-gray-200);
  border-left: 4px solid var(--profit-red);
}

.comp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.comp-card-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--profit-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-values {
  display: flex;
  gap: 2rem;
  align-items: baseline;
}

.comp-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--profit-black);
}

.comp-previous {
  font-size: 1rem;
  color: var(--profit-gray-400);
  font-weight: 500;
}

.comp-bar {
  height: 4px;
  background: var(--profit-gray-200);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
  position: relative;
}

.comp-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.comp-bar-fill.positive { background: var(--positive); }
.comp-bar-fill.negative { background: var(--negative); }

/* Section headers */
.section-header {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--profit-black);
  margin: 2rem 0 1rem;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 4px solid var(--profit-red);
  border-bottom: 2px solid var(--profit-red);
  display: inline-block;
}

/* Print styles */
@page { size: A4 landscape; margin: 10mm; }
@media print {
  .dash-header { position: relative; }
  .dash-controls { display: none; }
  .tab-nav { display: none; }
  body { background: white; }
  .kpi-grid, .chart-row, .chart-card, .data-table-wrap, .comparison-cards, .section-header {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .section-header {
    break-after: avoid;
    page-break-after: avoid;
  }
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--profit-gray-600);
  font-size: 0.875rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--profit-gray-200);
  border-top-color: var(--profit-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive — tablet & small desktop */
@media (max-width: 900px) {
  .dash-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .dash-brand { width: 100%; margin-bottom: 0.25rem; }
  .dash-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .dash-control-group { flex: 1 1 auto; min-width: 0; }
  .dash-select { width: 100%; font-size: 0.75rem; padding: 0.4rem 0.5rem; }
  .btn { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
  .kpi-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .kpi-card { padding: 1rem 1.25rem; gap: 1rem; }
  .kpi-value { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  .chart-row { grid-template-columns: 1fr; }
  .dash-body { padding: 1rem; }
  .pipes-summary { flex-direction: column; gap: 1rem; }
  .pipes-total { min-width: auto; }
  .pipes-breakdown { width: 100%; }
}

/* Responsive — mobile */
@media (max-width: 480px) {
  .dash-header { padding: 0.5rem 0.75rem; }
  .dash-controls { gap: 0.4rem; }
  .dash-control-group { flex: 1 1 calc(50% - 0.25rem); min-width: 0; }
  .dash-control-label { font-size: 0.5rem; }
  .dash-select { font-size: 0.7rem; padding: 0.35rem 0.4rem; }
  .btn { font-size: 0.7rem; padding: 0.35rem 0.6rem; white-space: nowrap; }
  .dash-body { padding: 0.75rem; }
  .kpi-grid { gap: 0.5rem; }
  .kpi-card {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .kpi-card .kpi-info { min-width: 90px; }
  .kpi-label { font-size: 0.6rem; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
  .kpi-value { font-size: 1.35rem; }
  .kpi-change { font-size: 0.625rem; }
  .kpi-compare-label { font-size: 0.55rem; }
  .period-bar { gap: 0.5rem; }
  .period-bar label { font-size: 0.7rem; }
  .tab-btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .chart-card { padding: 1rem; }
  .chart-card h3 { font-size: 0.8rem; }
  .pipes-total-value { font-size: 1.75rem; }
  .pipes-dn-label { font-size: 0.6875rem; min-width: 44px; }
  .pipes-dn-value { font-size: 0.75rem; }
  .modal-card { width: 98%; max-height: 90vh; }
  .modal-header { padding: 0.75rem 1rem; }
  .modal-body { padding: 1rem; }
  .modal-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* Week day names */
.day-name { color: var(--profit-gray-400); font-weight: 400; }

/* Machine badge */
.machine-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.machine-badge.sherlock { background: #e8f4fd; color: #1a73e8; }
.machine-badge.bond { background: #fef3e2; color: #e67e22; }
.machine-badge.combined { background: var(--profit-red-light); color: var(--profit-red); }

/* Drill-down modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  pointer-events: none;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--profit-white);
  border-radius: 12px;
  width: 95%; max-width: 900px;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  transform: translateY(20px); transition: transform 0.2s ease;
}
.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--profit-gray-200);
}
.modal-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--profit-black); }
.modal-close {
  width: 32px; height: 32px; border: none; background: var(--profit-gray-100);
  border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--profit-gray-600); font-size: 1.25rem; line-height: 1; transition: all 0.15s;
}
.modal-close:hover { background: var(--profit-gray-200); color: var(--profit-black); }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-body table.data-table { font-size: 0.75rem; }
.modal-body table.data-table thead th { font-size: 0.6875rem; padding: 0.5rem 0.75rem; }
.modal-body table.data-table tbody td { padding: 0.5rem 0.75rem; }
.modal-body table.data-table tbody tr:hover { background: var(--profit-gray-100) !important; }
.modal-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.modal-stat { background: var(--profit-gray-100); border-radius: 6px; padding: 0.75rem 1rem; text-align: center; }
.modal-stat-label { font-family: var(--font-heading); font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--profit-gray-600); margin-bottom: 0.25rem; }
.modal-stat-value { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--profit-black); }

.kpi-card { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; position: relative; }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* KPI info tooltip */
.kpi-info-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--profit-gray-100);
  color: var(--profit-gray-400);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  z-index: 2;
  transition: all 0.15s;
  line-height: 1;
}
.kpi-info-icon:hover {
  background: var(--profit-gray-200);
  color: var(--profit-gray-700);
}
.kpi-info-icon .kpi-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: var(--profit-gray-900);
  color: var(--profit-gray-100);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
}
.kpi-info-icon:hover .kpi-tooltip { display: block; }

/* Chart / section info tooltip (inline in headings) */
.chart-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--profit-gray-100);
  color: var(--profit-gray-400);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  font-style: normal;
  cursor: help;
  position: relative;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.15s;
  line-height: 1;
}
.chart-info-icon:hover {
  background: var(--profit-gray-200);
  color: var(--profit-gray-700);
}
.chart-info-icon .kpi-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: -10px;
  width: 240px;
  background: var(--profit-gray-900);
  color: var(--profit-gray-100);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
}
.chart-info-icon:hover .kpi-tooltip { display: block; }

table.data-table tbody tr { cursor: pointer; }
table.data-table tbody tr:hover { background: var(--profit-red-light) !important; }
.chart-card canvas { cursor: pointer; }
