:root {
  --bg: #f4f6fb; --card: #ffffff; --text: #0f172a; --muted: #5b6b84; --faint: #94a3b8;
  --accent: #2563eb; --accent-2: #7c3aed; --accent-soft: #eef3ff;
  --grad: linear-gradient(120deg, #2563eb, #6d5cf0);
  --navy: #0a1128; --navy-2: #111a3a; --border: #e3e8f2;
  --ok: #0a8754; --ok-bg: #e8f9f0; --bad: #c02626; --bad-bg: #feefef; --neutral-bg: #eef1f7;
  --shadow: 0 1px 2px rgba(10, 17, 40, .05), 0 4px 16px rgba(10, 17, 40, .06);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header (intunecat, sticky, blur) ---------- */
.topbar {
  background: rgba(10, 17, 40, .92); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 26px; height: 60px; }
.brand { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 2px; flex: 1; }
.topbar nav a { color: #c3cbe0; font-weight: 600; padding: 7px 14px; border-radius: 9px; font-size: 14px; }
.topbar nav a:hover { text-decoration: none; background: rgba(255,255,255,.08); color: #fff; }
.topbar nav a.active { background: rgba(78, 108, 255, .25); color: #fff; }
.top-account { display: flex; align-items: center; gap: 10px; }
.top-account .db-badge { font-size: 12.5px; color: #8fa0c2; white-space: nowrap; }
.top-account .db-badge strong { color: #fff; }
.top-account .user-name { color: #e6eaf5; font-size: 13.5px; font-weight: 600; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 700;
  background: var(--grad); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3); transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.secondary { background: var(--neutral-bg); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: var(--border); }
.btn.ghost { background: transparent; color: #dbe3f5; box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 13px; font-size: 13px; }

main { padding: 24px 20px 48px; min-height: 70vh; }
main.full-bleed { padding: 0 0 48px; }

/* ---------- homepage hero ---------- */
.hero {
  background:
    radial-gradient(700px 340px at 12% -10%, rgba(76, 111, 255, .35), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(124, 58, 237, .28), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 70%, #16224d 100%);
  color: #fff; padding: 72px 20px 88px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(rgba(244,246,251,0), var(--bg));
  pointer-events: none;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin: 0 auto 16px; max-width: 860px; letter-spacing: -.03em; line-height: 1.12; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #7ea2ff, #b79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: #b6c2de; font-size: clamp(15px, 1.8vw, 18px); max-width: 680px; margin: 0 auto 34px; }
.hero-search { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.hero-search input {
  flex: 1; font-size: 16px; padding: 15px 20px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; outline: none; background: rgba(255,255,255,.97); color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero-search input:focus { border-color: #7ea2ff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; position: relative; z-index: 2; }
.stat-tile {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px 26px; min-width: 170px; backdrop-filter: blur(6px);
}
.stat-tile .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat-tile .lbl { color: #a9b7d6; font-size: 12.5px; margin-top: 2px; }

/* ---------- sectiuni homepage ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 54px 20px 0; }
.section > h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; text-align: center; }
.section > p.lead { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 34px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10,17,40,.1); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.sources-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.source-pill {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.cta-band {
  margin: 60px auto 0; max-width: 1200px; border-radius: 20px; padding: 44px 30px; text-align: center;
  background:
    radial-gradient(500px 200px at 85% 20%, rgba(124, 58, 237, .35), transparent 60%),
    linear-gradient(120deg, #101b3c, #1a2a5e); color: #fff;
}
.cta-band h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.cta-band p { color: #b6c2de; margin: 0 0 24px; }

/* ---------- auth ---------- */
.auth-wrap { max-width: 420px; margin: 40px auto 0; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- layout cautare / carduri / tabele (aplicatia) ---------- */
.search-layout { display: grid; grid-template-columns: 292px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters { padding: 18px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.filters h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 9px 11px; font-size: 14px; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; background: #fff; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.field .range { display: flex; gap: 8px; }
.checks { display: grid; gap: 8px; margin: 4px 0 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 15px; height: 15px; }

.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.results-head .count { font-weight: 800; font-size: 16px; }
.results-head .count small { color: var(--muted); font-weight: 400; font-size: 13px; }
.results-head .spacer { flex: 1; }
.results-head select { padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; background: #fff; }

.tbl-wrap { overflow-x: auto; }
table.results { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.results th, table.results td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
table.results th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: #f8fafd; position: sticky; top: 0; }
table.results td.num, table.results th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.results tr:hover td { background: #f6f9ff; }
table.results td .sub { display: block; font-size: 12px; color: var(--faint); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
td.neg { color: var(--bad); }
.firm-link { font-weight: 700; }
.pager { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.pager .info { color: var(--muted); font-size: 13px; flex: 1; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2.5px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- detaliu firma ---------- */
.firm-head { padding: 24px; background: linear-gradient(150deg, #fff 60%, #f2f6ff); }
.firm-head .top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.firm-head h1 { font-size: 25px; margin: 0; letter-spacing: -.02em; }
.firm-head .cui { color: var(--muted); font-size: 15px; }
.firm-head .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { padding: 20px 22px; }
.panel h3 { margin: 0 0 14px; font-size: 15.5px; }
dl.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 22px; margin: 0; }
dl.props dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
dl.props dd { margin: 0; font-size: 14px; overflow-wrap: break-word; }
.contact-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.contact-line .lbl { color: var(--muted); min-width: 70px; font-size: 12.5px; }
ul.plain { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--border); }
ul.plain li:last-child { border-bottom: 0; }
ul.plain .muted { color: var(--muted); }
.scroll-y { max-height: 300px; overflow-y: auto; }

/* ---------- grafic ---------- */
.chart { padding: 8px 0 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: #1e4fd6; }
.chart .axis-label { font-size: 11px; fill: var(--muted); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-tip {
  position: fixed; pointer-events: none; z-index: 90; background: var(--navy); color: #fff;
  font-size: 12.5px; padding: 6px 10px; border-radius: 7px; opacity: 0; transition: opacity .1s; white-space: nowrap;
}
.hbar-row { display: grid; grid-template-columns: minmax(120px, 260px) 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.hbar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { background: var(--neutral-bg); border-radius: 4px; height: 14px; }
.hbar-fill { background: var(--grad); border-radius: 4px; height: 14px; min-width: 2px; }
.hbar-row .val { text-align: right; font-variant-numeric: tabular-nums; }

.stats-layout { display: grid; grid-template-columns: 292px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .stats-layout { grid-template-columns: 1fr; } }
.stats-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }

.loading { padding: 40px; text-align: center; color: var(--muted); }
.spinner {
  display: inline-block; width: 22px; height: 22px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { margin: 16px 0; padding: 14px 18px; background: var(--bad-bg); color: var(--bad); border-radius: 10px; font-size: 14px; }
.note { color: var(--muted); font-size: 12.5px; }

.footer { border-top: 1px solid var(--border); background: #fff; margin-top: 48px; }
.footer .container { padding: 20px; color: var(--faint); font-size: 12.5px; }

/* ---------- graf retea administratori ---------- */
.net-scroll { overflow-x: auto; padding-bottom: 6px; }
.net-scroll svg { display: block; width: 100%; height: auto; }
.net-link { fill: none; stroke: #c7d2ea; stroke-width: 1.6; }
.net-root { fill: var(--accent); }
.net-root-txt { fill: #fff; font-size: 13.5px; font-weight: 700; }
.net-root-sub { fill: #cddafd; font-size: 11px; }
.net-admin { fill: #101b3c; }
.net-admin:hover { fill: #1a2a5e; }
.net-admin-txt { fill: #fff; font-size: 12.5px; font-weight: 600; }
.net-admin-sub { fill: #94a3b8; font-size: 10.5px; }
.net-firm { fill: #fff; stroke: var(--border); stroke-width: 1; }
.net-firm:hover { stroke: var(--accent); stroke-width: 1.5; }
.net-firm.inactive { fill: #fafafa; }
.net-firm-txt { fill: var(--text); font-size: 12px; font-weight: 600; }
svg a { text-decoration: none; cursor: pointer; }

/* ---------- butonul de filtre (doar mobil) ---------- */
.filters-toggle { display: none; width: 100%; margin-bottom: 12px; }

@media (max-width: 900px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
}

@media (max-width: 700px) {
  /* header pe doua randuri: brand + cont sus, meniul jos pe toata latimea */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 14px 8px; gap: 8px 10px; }
  .brand { font-size: 18px; }
  .topbar nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .topbar nav a { padding: 7px 12px; font-size: 13.5px; white-space: nowrap; }
  .top-account { margin-left: auto; gap: 6px; }
  .top-account .db-badge { display: none; }
  .top-account .btn.sm { padding: 6px 10px; font-size: 12.5px; }
  .top-account .user-name { display: none; }

  .hero { padding: 44px 16px 60px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .stat-tile { min-width: 44%; flex: 1; padding: 12px 16px; }
  .stat-tile .num { font-size: 21px; }

  main { padding: 16px 12px 40px; }

  /* rezultatele: header-ul listei se stivuieste */
  .results-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .results-head .spacer { display: none; }
  .results-head select { width: 100%; }
  .results-head .btn { width: 100%; }

  .firm-head h1 { font-size: 20px; }
  .panel { padding: 16px; }
  dl.props { grid-template-columns: 1fr; }
}

/* ---------- tabel responsive: carduri pe mobil ---------- */
@media (max-width: 760px) {
  table.results.cards { border-collapse: separate; }
  table.results.cards thead { display: none; }
  table.results.cards, table.results.cards tbody, table.results.cards tr, table.results.cards td { display: block; width: 100%; }
  table.results.cards tr {
    border: 1px solid var(--border); border-radius: 12px; margin: 10px 12px;
    padding: 12px 14px; background: #fff; box-shadow: var(--shadow); width: auto;
  }
  table.results.cards tr:hover td { background: transparent; }
  table.results.cards td {
    border: 0; padding: 3px 0; white-space: normal;
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px; text-align: right;
  }
  table.results.cards td.num { text-align: right; }
  table.results.cards td::before {
    content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600;
    text-align: left; flex-shrink: 0;
  }
  /* prima celula (denumirea) e titlul cardului */
  table.results.cards td[data-label=""] { display: block; text-align: left; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  table.results.cards td[data-label=""]::before { content: none; }
  table.results.cards td[data-label=""] .sub { max-width: none; white-space: normal; }
  /* celulele goale ("–") nu ocupa loc degeaba pe mobil */
  .pager { flex-wrap: wrap; }
}

/* ---------- cardul de risc ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.risk-box { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--neutral-bg); }
.risk-box.ok { background: var(--ok-bg); border-color: #b7e4c7; }
.risk-box.bad { background: var(--bad-bg); border-color: #f5c2c0; }
.risk-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.risk-box.ok .risk-num { color: var(--ok); }
.risk-box.bad .risk-num { color: var(--bad); }
.risk-lbl { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- lista de dosare ---------- */
.dosar-list { display: grid; gap: 10px; }
.dosar-item {
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.dosar-item:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(37, 99, 235, .12); }
.dosar-line1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dosar-numar { font-weight: 800; color: var(--accent); font-size: 15px; }
.dosar-data { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.dosar-line2 { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dosar-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.dosar-obiect { font-size: 13.5px; }
.dosar-solutie { margin-top: 6px; font-size: 13px; color: var(--ok); background: var(--ok-bg); border-radius: 8px; padding: 6px 10px; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 17, 40, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px);
}
.modal-card {
  background: #fff; border-radius: 16px; max-width: 760px; width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.modal-close {
  border: 0; background: var(--neutral-bg); border-radius: 8px; width: 34px; height: 34px;
  font-size: 15px; cursor: pointer; color: var(--muted); flex-shrink: 0;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 16px 22px 22px; overflow-y: auto; }
.modal-body h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.modal-text { margin: 0; font-size: 14px; }
.modal-text.solutie { background: var(--ok-bg); color: var(--ok); padding: 10px 14px; border-radius: 10px; }
.modal-parti { max-height: 220px; overflow-y: auto; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sedinte { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.sedinta { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sedinta-head { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sedinta-sumar { font-size: 13px; color: var(--muted); margin-top: 6px; }

@media (max-width: 700px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 94vh; border-radius: 16px 16px 0 0; }
}

/* ---------- datorii ANAF ---------- */
.debt-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 12px; margin-bottom: 16px; }
.debt-alert.bad { background: var(--bad-bg); border: 1px solid #f5c2c0; }
.debt-alert.ok { background: var(--ok-bg); border: 1px solid #b7e4c7; }
.debt-total-num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--bad); }
.debt-total-lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.debt-breakdown h4 { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.debt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.debt-row:last-child { border-bottom: 0; }
.debt-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- achizitii publice ---------- */
.proc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.proc-stat { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--neutral-bg); }
.proc-stat.highlight { background: var(--accent-soft); border-color: #c7d7fb; }
.proc-num { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.proc-stat.highlight .proc-num { color: var(--accent); font-size: 19px; }
.proc-lbl { color: var(--muted); font-size: 12px; margin-top: 2px; }
.proc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.proc-tab.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.proc-items { display: grid; gap: 10px; }
.proc-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.proc-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.proc-val { font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.proc-date { color: var(--faint); font-size: 12.5px; margin-left: auto; }
.proc-subject { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.proc-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.proc-item .proc-open { display: inline-flex; }
