/* ERP Group eFactura — stilul FinTech (ErpGroup_FinTech/docs/design-rules.md), redus la ce folosește arhiva. */
:root {
  --navy: #111827;
  --canvas: #eceff3;
  --alb: #ffffff;
  --border: rgba(229, 231, 235, 0.98);
  --umbra: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --text: #111827;
  --text-soft: #64748b;
  --verde: #10b981;
  --galben: #fbbf24;
  --rosu: #ef4444;
  --albastru: #2563eb;
  --accent: #3cb9a0;
  --focus: 0 0 0 2px #fff, 0 0 0 4px rgba(75, 123, 229, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text); background: var(--canvas); }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2 { font-family: "Syne", sans-serif; color: var(--navy); margin: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
.material-symbols-outlined { font-size: 20px; line-height: 1; }

/* shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--navy); color: #cbd5e1; padding: 22px 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f8fafc; font-family: "Syne", sans-serif; font-weight: 700; font-size: 18px; padding: 0 8px 22px; }
.brand img { height: 32px; width: auto; }
.nav-grup { margin-top: 14px; }
.nav-grup__titlu { margin: 0 8px 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.nav-el { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #cbd5e1; }
.nav-el:hover { background: rgba(148, 163, 184, 0.08); color: #f8fafc; }
.nav-el--activ { background: rgba(60, 185, 160, 0.12); color: #f8fafc; }
.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.antet { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; background: var(--alb); border-bottom: 1px solid var(--border); }
.antet__actiuni { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.antet__actiuni form { margin: 0; }
.workspace { padding: 24px 40px 28px; display: grid; gap: 22px; align-content: start; }

/* suprafețe */
.card, .grup { background: var(--alb); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--umbra); padding: 20px 22px; }
.card--evidentiat { border-color: rgba(60, 185, 160, 0.6); }
.grup__cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.grup__sub { margin: 4px 0 0; color: var(--text-soft); font-size: 12px; }
.grup__actiuni { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grup__actiuni form { margin: 0; }
.gol { color: var(--text-soft); margin: 0; }

/* KPI */
.kpiuri { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.kpi { background: var(--alb); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--umbra); padding: 16px 18px; }
.kpi__cap { display: flex; justify-content: space-between; align-items: center; }
.kpi__eticheta { margin: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.kpi__icon { color: var(--text-soft); }
.kpi__valoare { margin: 10px 0 4px; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi__sub { margin: 0; font-size: 12px; color: var(--text-soft); }

/* tabele */
.tabel-container { border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; }
.tabel th { background: #e5e9ef; color: #334155; text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; }
.tabel td { padding: 10px 12px; border-top: 1px solid var(--border); white-space: nowrap; }
.tabel tbody tr:nth-child(even) { background: #f8fafc; }
.tabel tbody tr:hover { background: #eef2f7; }
.tabel .nr { text-align: right; font-variant-numeric: tabular-nums; }
.tabel .lung { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tabel a { text-decoration: none; font-weight: 600; }
.tabel a:hover { text-decoration: underline; }
.tabel input, .tabel select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--alb); }

/* pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill--verde { background: rgba(16, 185, 129, 0.14); color: #047857; }
.pill--galben { background: rgba(251, 191, 36, 0.2); color: #92400e; }
.pill--rosu { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.pill--albastru { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.pill--gri { background: #e5e7eb; color: #475569; }

/* formulare și butoane */
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; margin-top: 14px; }
.formular label { display: grid; gap: 6px; }
.formular label span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.formular input, .formular select { min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--alb); }
.buton { min-height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--navy); color: #f8fafc; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.buton:hover { background: #1f2937; }
.buton--secundar { background: var(--alb); color: var(--navy); border: 1px solid var(--border); }
.buton--secundar:hover { background: #f1f5f9; }

/* detaliu firmă */
.campuri { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.camp { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.camp__eticheta { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.camp__valoare { margin: 0; font-weight: 600; }
.camp small { color: var(--text-soft); font-weight: 400; }
.link-invitatie code { display: block; padding: 12px 14px; background: #f1f5f9; border-radius: 12px; word-break: break-all; }
.mesaj { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.mesaj--ok { background: rgba(16, 185, 129, 0.14); color: #047857; }
.mesaj--avertizare { background: rgba(251, 191, 36, 0.2); color: #92400e; }
.mesaj--eroare { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }

/* login și pagini publice (după FinTech public/login.css) */
.login { background: radial-gradient(circle at top left, rgba(75, 123, 229, 0.1), transparent 28%), radial-gradient(circle at top right, rgba(60, 185, 160, 0.08), transparent 24%), var(--navy); color: #f8fafc; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-panel { width: min(100%, 460px); padding: 28px; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(22, 33, 50, 0.94)), #162132; box-shadow: 0 18px 46px rgba(3, 7, 18, 0.24); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand__logo { height: 40px; width: auto; }
.login-brand h1 { color: #f8fafc; font-size: 34px; line-height: 0.95; }
.login-copy { margin-top: 28px; }
.login-copy__eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.login-copy__text { margin: 0; color: #b8c5d6; font-size: 14px; line-height: 1.7; }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
.login-field { display: grid; gap: 8px; }
.login-field span { color: #b8c5d6; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.login-field input { min-height: 46px; padding: 0 14px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 12px; background: rgba(20, 29, 45, 0.92); color: #f8fafc; }
.login-feedback { min-height: 22px; margin: 0; color: #b8c5d6; font-size: 13px; }
.login-feedback--error { color: #ffc0c0; }
.login-button { min-height: 46px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; background: linear-gradient(135deg, rgba(60, 185, 160, 0.94), rgba(75, 123, 229, 0.9)); color: #f8fafc; font-weight: 700; cursor: pointer; }

@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: auto; padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .brand { padding: 0; }
  .nav-grup { margin: 0; display: flex; gap: 6px; }
  .nav-grup__titlu { display: none; }
  .antet, .workspace { padding-left: 16px; padding-right: 16px; }
}
