/* ── Report Panel (Slide-in) ── */
.report-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.report-overlay.open { opacity: 1; pointer-events: all; }
.report-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  /* Responsive width with a cap so the data tables (e.g. Team Utilization) are
     not cramped on larger displays. Mirrors qa-queue's .qa-report-panel. */
  width: min(1100px, 92vw);
  background: var(--panel-bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 401;
  display: flex; flex-direction: column;
  /* Hide via transform (width-independent) so the off-screen parking does not
     depend on the now-variable width; +20px clears the box-shadow. */
  transform: translateX(calc(100% + 20px));
  transition: transform 0.25s ease;
  overflow: hidden;
}
.report-panel.open { transform: translateX(0); }
.report-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.report-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.report-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-muted); padding: 0 4px; line-height: 1;
}
.report-close:hover { color: var(--text-primary); }
.report-body {
  display: flex; flex: 1; overflow: hidden; min-height: 0;
}
.report-sidebar {
  width: 190px; flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 8px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.report-nav {
  background: none; border: none; border-left: 3px solid transparent;
  text-align: left; padding: 10px 16px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s;
}
.report-nav:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.report-nav.active {
  border-left-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.report-content {
  flex: 1; padding: 20px;
  overflow-y: auto; min-height: 0;
}
.report-filters {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.report-filters .filter-label { font-size: 12px; color: var(--text-secondary); margin-right: 2px; }
.report-export-bar {
  display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px;
}
.report-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.report-table th {
  text-align: left; padding: 8px 10px;
  background: var(--bg-secondary); color: var(--text-secondary);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.report-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  white-space: nowrap;
}
.report-table tr:hover td { background: var(--row-hover); }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table .summary-row td {
  font-weight: 700; border-top: 2px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary);
}
.report-empty {
  text-align: center; color: var(--text-muted); padding: 40px 20px; font-size: 13px;
}
.btn-reports {
  background: var(--accent-light); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.btn-reports:hover { background: var(--accent); color: #fff; }
[data-theme="c128"] .btn-reports:hover { background: #0a140a; color: #33ff33; border-color: #33ff33; }
[data-theme="ur6000"] .btn-reports:hover { background: #0d0a00; color: #ffb000; border-color: #ffb000; }
[data-theme="haven3019"] .btn-reports:hover { background: #0d1520; color: #7eb8d4; border-color: #7eb8d4; }
[data-theme="high-contrast"] .btn-reports:hover { background: #ffff00; color: #000000; border-color: #ffff00; }

/* ── Rolling Forecast ── */
.forecast-week-header td {
  background: var(--header-bg); font-weight: 600; font-size: 13px;
  padding: 8px 10px; border-bottom: 2px solid var(--border);
}
.forecast-week-total td { font-weight: 600; }
.forecast-bg-blue { background: rgba(74,108,247,0.08); }
.forecast-bg-green { background: rgba(40,167,69,0.08); }
.forecast-bg-orange { background: rgba(255,152,0,0.10); }
.forecast-bg-red { background: rgba(220,53,69,0.10); }
.forecast-load-badge {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  margin-left: 8px; font-weight: 600;
}
.forecast-load-blue { background: rgba(74,108,247,0.15); color: #4a6cf7; }
.forecast-load-green { background: rgba(40,167,69,0.15); color: #28a745; }
.forecast-load-orange { background: rgba(255,152,0,0.18); color: #e68a00; }
.forecast-load-red { background: rgba(220,53,69,0.15); color: #dc3545; }
.forecast-warning-toggle {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-size: 12px; color: var(--text-secondary);
  width: 100%; text-align: left; margin-top: 12px;
}
.forecast-warning-toggle:hover { background: var(--hover-bg); }
