:root {
  color-scheme: dark;
  --bg: #081322;
  --surface: #101f32;
  --line: #293d53;
  --text: #edf4fc;
  --muted: #b4c4d7;
  --dim: #91a5bc;
  --gold: #7dbdff;
  --gold-soft: #7dbdff1a;
  --green: #64c98c;
}

body {
  background: radial-gradient(ellipse at top, #10223a 0, transparent 450px), var(--bg);
}

.reports-shell { padding-top: 26px; }
.reports-head { align-items: flex-end; }
.reports-head .back-link { margin-bottom: 16px; }
.reports-shell :is(h1, h2) { font-family: Inter, Arial, sans-serif; line-height: 1.2; }
.reports-shell h1 { font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; }
.reports-shell h2 { font-size: 18px; letter-spacing: -.015em; }
.reports-shell .eyebrow { font-size: 10px; }
.reports-shell .button { color: #081322; }
.reports-shell .button.secondary { color: #edf4fc; background: #14263c; border-color: var(--line); }
.reports-shell .button:hover { filter: brightness(1.1); }
.reports-shell :focus-visible { outline: 2px solid #9ed1ff; outline-offset: 2px; }
.reports-shell .filters, .reports-shell .panel { background: var(--surface); }
.reports-shell .filters label { font-size: 12px; color: var(--muted); }
.reports-shell .filters :is(input, select) { background: #0b192a; font: inherit; font-size: 14px; }

.reports-shell .metric { background: linear-gradient(145deg, #14263c, #101f32); }
.metric-label { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.metric-value { font: 650 clamp(22px, 2.5vw, 30px)/1.2 Inter, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 11px; }

.alerts-clear .panel-head { display: none; }
.alerts-clear .alerts-list { display: block; }
.alerts-clear .empty { padding: 0; text-align: left; font-size: 13px; }
.reports-shell .alert:hover { background: #14263c; border-color: #527aa1; }
.reports-shell .alert strong { font-size: 13px; }
.reports-shell .alert span { font-size: 12px; }
.reports-shell .alert :is(strong, span) { white-space: normal; overflow-wrap: anywhere; }
.reports-shell .alert { grid-template-columns: 8px minmax(0, 1fr) minmax(0, 32%); }

.report-grid > .panel { min-width: 0; }
.status-row { font-size: 12px; grid-template-columns: 110px minmax(0, 1fr) 32px; }
.status-row b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.status-fill { min-width: 0; background: #7dbdff; }
.monthly-chart { height: 168px; gap: 4px; padding-top: 18px; }
.month { font-size: 11px; }
.month-series { width: 48%; }
.month-series span { color: var(--text); font-size: 11px; }
.month-bar { width: 16px; }
.chart-legend { font-size: 12px; }

.reports-shell .table-wrap { max-height: 490px; border: 1px solid var(--line); border-radius: 9px; }
.reports-shell table { min-width: 540px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.reports-shell th { position: sticky; top: 0; z-index: 1; background: #14263c; color: var(--muted); font-size: 11px; }
.reports-shell td { font-variant-numeric: tabular-nums; }
.reports-shell tbody tr:nth-child(even) { background: #0d1c2e; }
.reports-shell td:first-child a:hover { color: #b5dcff; text-decoration: underline; }
.progress-cell { display: flex; align-items: center; gap: 8px; }
.progress-cell span { min-width: 36px; text-align: right; }
.report-status { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #7dbdff18; color: #b5dcff; white-space: nowrap; }
.report-status[data-status="finalizat"] { background: #64c98c1a; color: #a7e0bd; }
.report-status[data-status="anulat"] { background: #91a5bc1a; color: #b4c4d7; }
.reports-shell .retention-note { border-color: var(--line); background: #0c1b2d; }

@media (max-width: 640px) {
  .reports-head { align-items: flex-start; }
  .monthly-chart { gap: 2px; }
  .month, .month-series span { font-size: 10px; }
}
/* achizitii-auto/styles.css poziționa .back-link absolut în colțul ecranului, sub bara de cont (neclicabil). */
.reports-head .back-link.gls-back { position: static; margin-bottom: 16px; }
/* Antet: Înapoi stânga + acțiuni dreapta pe un rând, titlul centrat dedesubt. */
.reports-head.reports-head-centered { display: block; }
.reports-head-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.reports-head-bar .back-link.gls-back { margin: 0; }
.reports-head-bar .head-actions { width: auto; margin: 0; }
.reports-head-title { text-align: center; }
.reports-head-title .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .reports-head-bar .head-actions { width: auto; } .reports-head-bar .head-actions .button { flex: 0 0 auto; } }
