:root {
  --teal: #36b6b0; --teal-hover: #2a9a94; --teal-deep: #0d9488; --teal-soft: #99f6e4;
  --green: #2d7d6f; --bg: #f8fafc; --panel: #fff; --line: #e2e8f0;
  --text: #0f172a; --text-2: #1e293b; --muted: #64748b; --dark: #0d151c;
  --red: #e5484d; --amber: #d97706;
}
* { box-sizing: border-box; margin: 0; }
body { display: flex; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif; }
.num, td.num, .kpi b { font-variant-numeric: tabular-nums; }
.sidebar { width: 220px; background: var(--dark); color: #cbd5e1; padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.logo { font-size: 22px; font-weight: 700; color: #fff; }
.logo span { display: block; font-size: 12px; font-weight: 400; color: var(--teal); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar a { color: #cbd5e1; text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.sidebar a:hover { background: rgba(255,255,255,.06); }
.sidebar a.active { background: var(--teal); color: #04211f; font-weight: 600; }
.sidebar .nav-section { color: #64748b; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 4px; }
main { flex: 1; padding: 24px 32px; max-width: 1280px; }
.topbar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.topbar:empty { display: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head h2 { margin-bottom: 0; }

/* Rapoarte — index de tile-uri + drill-down */
.rap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.rap-head h1 { margin-bottom: 0; }
.rap-back { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-deep); font-weight: 600; text-decoration: none; margin-bottom: 14px; font-size: 14px; }
.rap-back:hover { text-decoration: underline; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.report-tile { display: flex; flex-direction: column; min-height: 184px; background: var(--dark); border: 1px solid rgba(54,182,176,.22); border-radius: 16px; padding: 22px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.report-tile:hover { border-color: var(--teal); box-shadow: 0 12px 30px rgba(13,21,28,.20); transform: translateY(-3px); }
.report-tile-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.report-tile-desc { font-size: 13px; color: #94a3b8; line-height: 1.55; flex: 1; }
.report-tile-metric { margin-top: 16px; font-size: 23px; font-weight: 700; color: #e2e8f0; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.report-tile-metric small { display: block; font-size: 11px; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.report-tile-cta { margin-top: 14px; color: var(--teal); font-weight: 600; font-size: 14px; }
.report-tile:hover .report-tile-cta { color: var(--teal-soft); }
.report-tile .pos { color: #5eead4; } .report-tile .neg { color: #fb7185; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); margin-bottom: 18px; }
h1 { font-size: 22px; margin-bottom: 14px; } h2 { font-size: 16px; color: var(--text-2); margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); } td.num, th.num { text-align: right; }
tr:hover td { background: #f1f5f9; }
.pos { color: var(--teal-deep); font-weight: 600; } .neg { color: var(--red); font-weight: 600; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.ok { background: var(--teal-soft); color: #065f5b; } .badge.warn { background: #fef3c7; color: #92400e; } .badge.err { background: #fee2e2; color: #991b1b; }
.btn { background: var(--teal); color: #04211f; border: 0; padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--teal-hover); }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid #cbd5e1; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); background: #f0fdfa; }
.btn-ghost.on-light { color: var(--text-2); border-color: var(--line); }
select, input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.dropzone { border: 2px dashed var(--teal); border-radius: 12px; padding: 48px; text-align: center; color: var(--muted); background: #f0fdfa; cursor: pointer; }
.dropzone.over { background: var(--teal-soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer; }
.kpi small { color: var(--muted); display: block; } .kpi b { font-size: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Banner mod demo — bară fixă sus; body.demo-mode compensează înălțimea ei. */
.demo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--teal); color: #04211f; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
body.demo-mode { padding-top: 30px; }
body.demo-mode .sidebar { top: 30px; height: calc(100vh - 30px); }
