@charset "utf-8";
/* Paleta: doar alb, verde inchis, verde neon (restul sunt variante transparente ale verdelui inchis). */
:root {
  --w: #ffffff; --g: #0b3d2e; --n: #39ff88;
  --g-72: rgba(11, 61, 46, .72); --g-60: rgba(11, 61, 46, .6); --g-14: rgba(11, 61, 46, .14); --g-08: rgba(11, 61, 46, .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* fara web fonts: CSP permite doar 'self' */
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--w); color: var(--g); font: 16px/1.5 var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--g-72); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.dark :focus-visible, .tabs-dark :focus-visible { outline-color: var(--n); }

/* mesaje */
#msg { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(560px, calc(100% - 24px)); padding: 14px 18px; border-radius: 16px; font-weight: 700; }
#msg:empty { display: none; }
#msg.ok { background: var(--n); color: var(--g); }
#msg.bad { background: var(--g); color: var(--w); border: 2px solid var(--n); }

/* butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--g); border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.btn-primary { background: var(--g); color: var(--w); }
.btn-primary svg { color: var(--n); }
.btn-outline { background: var(--w); color: var(--g); }
.btn-lg { min-height: 52px; font-size: 16px; }

/* autentificare */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand { flex: 1 1 480px; min-width: 0; background: var(--g); color: var(--w); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-brand h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.auth-brand h1 span { color: var(--n); }
.auth-brand p { margin-top: 24px; max-width: 460px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-weight: 600; }
.points li { display: flex; align-items: center; gap: 14px; }
.tick { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--n); color: var(--g); display: flex; align-items: center; justify-content: center; }
.auth-form { flex: 1 1 480px; min-width: 0; padding: 56px 40px; display: flex; align-items: center; justify-content: center; }
.auth-form form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.auth-form h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.field label .muted { font-weight: 500; }
input[type="email"], input[type="password"], input[type="search"], input[type="month"], input:not([type]), input[inputmode] {
  min-height: 52px; padding: 0 16px; border: 1.5px solid var(--g-60); border-radius: 14px; background: var(--w); color: var(--g); font: inherit; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

/* acord GDPR */
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 28px; border: 0; border-radius: 24px; background: var(--w); color: var(--g); }
dialog::backdrop { background: rgba(11, 61, 46, .72); }
dialog form { display: flex; flex-direction: column; gap: 16px; }
dialog h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.consent-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.consent-points a { color: var(--g); font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 600; color: var(--g); }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--g); }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.doc h2 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* antet + navigare */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--g); color: var(--n); display: flex; align-items: center; justify-content: center; }
.logo-n { width: 44px; height: 44px; border-radius: 14px; background: var(--n); color: var(--g); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px 40px; border-bottom: 1px solid var(--g-14); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 440px; min-width: 0; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--g); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.tab svg { display: none; }
.tab:hover { background: var(--g-08); }
.tab[aria-current="page"] { background: var(--g); color: var(--w); }
.user { display: flex; align-items: center; gap: 16px; }

.content { max-width: 1200px; margin: 0 auto; padding: 32px 40px 56px; }
.page { display: flex; flex-direction: column; gap: 24px; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.month input { min-height: 44px; border-radius: 12px; font-weight: 700; }

/* etichete */
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--g); color: var(--w); }
.chip-n { background: var(--n); color: var(--g); }
.chip-up { font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* rezumat */
.hero { background: var(--g); color: var(--w); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.hero > div { flex: 1 1 340px; min-width: 0; }
.hero .big { margin-top: 20px; font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -.03em; color: var(--n); overflow-wrap: anywhere; }
.hero .big small { font-size: 28px; font-weight: 700; color: var(--w); }
.hero .sub { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .88); }
.hero .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .88); }
.hero .row b { font-size: 22px; color: var(--w); }
.hero .bar { background: rgba(255, 255, 255, .18); }
.hero .bar i { background: var(--n); }
.hero .cap { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.bar { height: 10px; border-radius: 999px; background: var(--g-14); overflow: hidden; }
.bar i { display: block; width: var(--v, 0%); height: 100%; border-radius: 999px; background: var(--g); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.kpi { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 24px; border: 1.5px solid var(--g-14); border-radius: 24px; color: inherit; text-decoration: none; }
.kpi .label { font-size: 15px; font-weight: 600; color: var(--g-72); }
.kpi .value { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.kpi .value small { font-size: 18px; font-weight: 600; color: var(--g-72); }
.kpi .chip { align-self: flex-start; }
.kpi.accent { background: var(--n); border-color: var(--n); }
.kpi.accent .label, .kpi.accent .value small { color: var(--g); }
.kpi .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }

/* tabele */
.table-wrap { border: 1.5px solid var(--g-14); border-radius: 24px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--g); color: var(--w); padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--g-14); white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
.num { text-align: right; }
.cell-strong { font-weight: 800; }
.link { display: inline-flex; align-items: center; min-height: 32px; color: var(--g); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.partner b { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.partner small { color: var(--g-72); }
input.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 32px; margin: 0; border: 2px solid var(--g); border-radius: 999px; background: var(--w); cursor: pointer; }
input.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--g); transition: left .15s; }
input.switch:checked { background: var(--n); }
input.switch:checked::before { left: 22px; }

/* filtre */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.seg { display: inline-flex; padding: 4px; border: 1.5px solid var(--g-14); border-radius: 999px; }
.seg button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--g); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--g); color: var(--w); }
.search { flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; min-height: 48px; }

/* reconciliere */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { display: flex; flex-direction: column; padding: 24px; border: 1.5px solid var(--g-14); border-radius: 24px; }
.stat b { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-weight: 700; }
.stat.n { background: var(--n); border-color: var(--n); }
.stat.g { background: var(--g); border-color: var(--g); color: var(--w); }
.section h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.section h2 small { font-size: 16px; font-weight: 600; color: var(--g-72); }
details > summary { cursor: pointer; font-weight: 800; font-size: 20px; min-height: 44px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: 12px; }

/* anomalii */
.banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 24px; background: var(--n); color: var(--g); font-weight: 700; font-size: 17px; }
.banner .ico { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--g); color: var(--n); display: flex; align-items: center; justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; border: 1.5px solid var(--g-14); border-radius: 24px; }
.card .top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card.urgent { background: var(--g); border-color: var(--g); color: var(--w); }
.card.urgent .chip { background: var(--n); color: var(--g); }
.checks { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 8px; }
.panel { border: 1.5px solid var(--g-14); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 18px; font-weight: 800; }

/* mobil: bara de navigare jos, tabelele devin carduri */
@media (max-width: 720px) {
  body { padding-bottom: 92px; }
  .auth { flex-direction: column; flex-wrap: nowrap; background: var(--g); }
  .auth-brand { flex: none; padding: 36px 28px 28px; gap: 20px; }
  .auth-brand h1 { font-size: 34px; }
  .auth-brand p, .points { display: none; }
  .auth-form { flex: 1; align-items: flex-start; padding: 28px 24px; background: var(--w); border-radius: 32px 32px 0 0; }
  .auth-form h2 { font-size: 24px; }
  .auth-form form { gap: 14px; }

  .top { padding: 12px 16px; gap: 8px; justify-content: space-between; }
  .brand { font-size: 18px; }
  .logo { width: 36px; height: 36px; border-radius: 11px; }
  .user #who { display: none; }
  .tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; flex: none; flex-wrap: nowrap; gap: 4px; padding: 8px 12px 14px; background: var(--g); color: var(--w); }
  .tab { flex: 1; min-width: 0; min-height: 56px; flex-direction: column; justify-content: center; gap: 2px; padding: 0; border-radius: 16px; color: var(--w); font-size: 12px; }
  .tab svg { display: block; }
  .tab:hover { background: rgba(255, 255, 255, .12); }
  .tab[aria-current="page"] { background: var(--n); color: var(--g); font-weight: 800; }
  .tabs :focus-visible { outline-color: var(--n); }

  .content { padding: 16px 16px 24px; }
  .page { gap: 16px; }
  .head h1 { font-size: 26px; }
  .hero { padding: 22px; border-radius: 24px; gap: 20px; }
  .hero .big { font-size: 46px; margin-top: 14px; }
  .hero .big small { font-size: 20px; }
  .hero .sub { margin-top: 10px; font-size: 14px; }
  .hero .row b { font-size: 18px; }
  .kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; border-radius: 20px; }
  .kpi .value { font-size: 22px; }
  .kpi .label { font-size: 13px; }
  .stat { padding: 12px 16px; border-radius: 18px; }
  .stat b { font-size: 28px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 0 8px; }
  .search { max-width: none; flex-basis: 100%; }

  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { margin-bottom: 10px; padding: 12px 16px; border: 1.5px solid var(--g-14); border-radius: 20px; }
  td, tbody tr:first-child td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  td::before { content: attr(data-label); flex: none; font-weight: 700; font-size: 13px; color: var(--g-72); text-align: left; }
  .partner b { max-width: none; }
  .card { padding: 14px 16px; border-radius: 20px; gap: 6px; }
  .banner { padding: 14px 16px; border-radius: 20px; font-size: 14px; }
}
