/* Financial Table Styles */
.fin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.fin-table th {
  background: #0f172a;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.fin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(30, 49, 82, 0.6);
  color: var(--text-primary);
}

.fin-table tr:hover td {
  background: rgba(30, 49, 82, 0.35);
}

.fin-table .row-header {
  font-weight: 600;
  color: var(--text-primary);
}

.fin-table .row-indent {
  padding-left: 24px;
  color: var(--text-secondary);
}

.fin-table .row-total {
  font-weight: 700;
  color: var(--text-accent);
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.fin-table .num-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Heatmap Grid Cell */
.heatmap-cell {
  padding: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid rgba(30, 49, 82, 0.8);
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.heatmap-cell:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.heatmap-cell.cmp-match {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

/* Range Slider Styling */
.macro-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  transition: background 0.2s;
}

.macro-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.6);
}

.macro-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

/* Tab Button */
.nav-tab-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
}

/* Print / PDF Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-page {
    page-break-after: always;
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
  }
}
