﻿/* ---------- font: Inter (open source, SIL OFL), servit de pe server — nu se încarcă nimic din afară ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* WindTrack · EASTSHIP-MS — temă luminoasă pe culorile firmei (logo: bleumarin, galben, albastru). */
:root {
  --navy: #242e61; --navy-2: #323d7a; --brand: #242e61; --brand-2: #323d7a; --navy-soft: #e9ebf4;
  --yellow: #fec006; --yellow-soft: #fff6d6;
  --blue: #49b4e6; --blue-soft: #e6f5fc;
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #f7f8fa; --line: #e3e6ec; --line-2: #d3d8e1;
  --ink: #1b2132; --ink-2: #4a5263; --muted: #7a8293;
  --ok: #1a7a45; --ok-soft: #e4f4ea; --warn: #8a5a00; --warn-soft: #fff3d6; --err: #b42318; --err-soft: #fdecea;
  --hl: #fff6d6;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 28, 60, .06), 0 1px 1px rgba(20, 28, 60, .03);
  --shadow-lg: 0 12px 32px rgba(20, 28, 60, .16);
  /* culori proiecte: ordine categorială validată (dataviz), atribuite în ordine fixă */
  --p1: #2a78d6; --p2: #eb6834; --p3: #1baf7a; --p4: #eda100; --p5: #e87ba4; --p6: #008300; --p7: #4a3aa7; --p8: #e34948;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; color: var(--navy); }
h1 { font-size: 21px; letter-spacing: .01em; }
h2 { font-size: 15px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- antet ---------- */
.top { background: #f7f7f7; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line-2); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo { height: 51px; width: auto; display: block; }
.brand-text { border-left: 2px solid var(--yellow); padding-left: 18px; min-width: 0; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.sub b { color: var(--ink-2); font-weight: 600; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.tabs-bar { background: var(--brand); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-weight: 600; font-size: 14px; color: #c5cae0; background: none; border: 0; border-bottom: 3px solid transparent; padding: 11px 16px 8px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--yellow); }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn .ico { font-size: 15px; line-height: 1; }
.link-btn { border: 0; background: none; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
.icon-btn { border: 0; background: var(--surface-2); color: var(--ink-2); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: var(--line); }

/* ---------- bara de sincronizare ---------- */
.syncbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.syncbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.sync-item b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; background: var(--surface-2); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.sync-msg { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }

.banner { border-radius: 10px; padding: 10px 14px; margin: 14px 0 0; font-size: 13.5px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f3dc9a; }
.banner.err { background: var(--err-soft); color: var(--err); border: 1px solid #f5c2bd; }
.banner.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe3cc; }

/* ---------- proiecte ---------- */
.projbar { margin: 18px 0 12px; }
.projbar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.projbar-btns button { flex: none; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; box-shadow: var(--shadow); }
.projbar-btns button:hover { border-color: var(--navy); }
.projbar-btns button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.projbar-btns .n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.pdot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- căutare & filtre ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 300px; display: block; }
.search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 17px; pointer-events: none; }
.search input[type=search] { width: 100%; padding-left: 32px; }
input[type=search], input[type=date], select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
input[type=search]:focus, input[type=date]:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.period { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.seg button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--ink-2); border-radius: 6px; padding: 6px 11px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--brand); color: #fff; font-weight: 600; }
.weeknav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.weeknav button { font: inherit; border: 0; background: none; color: var(--navy); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-weight: 600; }
.weeknav button:hover { background: var(--surface-2); }
.weeknav .wk { padding: 0 8px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters-btn .count { background: var(--yellow); color: var(--brand); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.filters-btn[aria-expanded="true"] { border-color: var(--navy); background: var(--navy-soft); }
.filters-panel { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.ms-row { display: flex; flex-wrap: wrap; gap: 8px; }
.date-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.date-row label { display: flex; align-items: center; gap: 6px; }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px; font-size: 13px; color: var(--ink-2); background: var(--surface); user-select: none; white-space: nowrap; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: "▾"; margin-left: 6px; color: var(--muted); }
.ms.active summary { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); font-weight: 600; }
.ms-panel { position: absolute; z-index: 25; top: calc(100% + 4px); left: 0; min-width: 230px; max-width: 320px; max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: var(--shadow-lg); }
.ms-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ms-panel label:hover { background: var(--surface-2); }
.ms-panel input { accent-color: var(--navy); }
.ms-panel .cnt { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-panel .zero { opacity: .5; }
.ms-panel .clear { width: 100%; text-align: left; border: 0; background: none; color: var(--navy); padding: 6px 7px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; min-height: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-soft); color: var(--navy); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 12.5px; font-weight: 600; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; border-radius: 50%; }
.chip button:hover { background: rgba(36, 46, 97, .12); }

/* ---------- indicatori ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 12px; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow); }
.kpi .lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kpi .val { font-size: 28px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.kpi .val small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.kpi .extra { font-size: 12px; color: var(--muted); margin-top: 2px; }
.info { border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); width: 20px; height: 20px; border-radius: 50%; font: 600 11px/1 Georgia, serif; font-style: italic; cursor: pointer; flex: none; }
.info[aria-expanded="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi .exp { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 8px 2px 0; }
.scope { margin: 0; font-size: 12.5px; color: var(--muted); }
.dq-btn { color: var(--warn); text-decoration-color: var(--warn); }
.dq-list { margin: 6px 0 0; padding: 10px 14px 10px 30px; background: var(--warn-soft); border-radius: 10px; color: var(--ink-2); font-size: 13px; }
.dq-list li { margin: 3px 0; }

/* ---------- grafice ---------- */
.charts-box { margin-top: 12px; }
.charts-box > summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 13px; padding: 4px 2px; width: max-content; list-style: none; }
.charts-box > summary::-webkit-details-marker { display: none; }
.charts-box > summary::before { content: "▸ "; }
.charts-box[open] > summary::before { content: "▾ "; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 6px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.chart h2 { font-size: 14px; }
.chart p { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 2px; }
.bar { display: grid; grid-template-columns: minmax(80px, 36%) 1fr 30px; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 6px; font: inherit; color: var(--ink-2); cursor: pointer; text-align: left; font-size: 13px; }
.bar:hover, .bar.on { background: var(--surface-2); }
.bar .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.bar .track { height: 10px; }
.bar .fill { display: block; height: 10px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar.on .fill { background: var(--brand); }
.bar .bv { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- carduri conținut ---------- */
.card-box { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.card-head.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.foot { font-size: 12px; color: var(--muted); margin: 18px 2px 36px; }

/* ---------- tabel ---------- */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.data th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--ink-2); font-size: 12px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:hover { color: var(--navy); }
th button:focus-visible { outline: 2px solid var(--blue); }
th .arr { color: var(--navy); font-size: 10px; }
#tbl tbody tr { cursor: pointer; }
#tbl tbody tr:hover td { background: #f5f7fc; }
tr.today td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
tr.changed td, .mcard.changed, .cal-entry.changed { background: var(--hl) !important; }
.nowrap { white-space: nowrap; }
.l1 { font-weight: 600; color: var(--ink); white-space: nowrap; }
.l2 { font-size: 12px; color: var(--muted); white-space: nowrap; }
.obs { min-width: 160px; max-width: 280px; color: var(--ink-2); }
.dt-day { font-weight: 600; color: var(--navy); }
.flag { color: var(--warn); font-weight: 700; margin-left: 4px; cursor: help; }
.ptag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ptag.none { color: var(--muted); font-weight: 500; font-style: italic; }
.stag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--navy-soft); color: var(--navy); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.18); }
.mk { white-space: nowrap; font-size: 12.5px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; border-top: 1px solid var(--line); }
.pager .pg { display: flex; gap: 4px; }
.pager button { font: inherit; min-width: 32px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.cards { display: none; }

/* ---------- calendar ---------- */
.cal-scroll { overflow: auto; max-height: calc(100vh - 160px); }
table.cal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: 12.5px; table-layout: fixed; }
.cal th, .cal td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); padding: 9px 8px; text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.cal thead th.today { background: var(--yellow-soft); color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); }
.cal thead th .dn { display: block; font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.cal thead th.today .dn { color: var(--navy); }
.cal .truck-h { width: 210px; }
.cal th.truck { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 8px 10px; vertical-align: top; font-weight: 400; box-shadow: 1px 0 0 var(--line-2); }
.cal thead th.truck-h { left: 0; z-index: 4; position: sticky; box-shadow: 1px 0 0 var(--line-2); }
.cal .truck .l1 { color: var(--navy); }
.cal .truck .l2 { white-space: normal; }
.cal td { vertical-align: top; padding: 4px; background: var(--surface); }
.cal td.today { background: #fffcf0; }
.cal td.empty-cell { background-image: repeating-linear-gradient(135deg, transparent 0 6px, #f3f4f7 6px 7px); }
.cal tbody tr:hover th.truck, .cal tbody tr:hover td { filter: brightness(.985); }
.cal-entry { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--pc, var(--line-2)); border-radius: 6px; background: var(--surface); padding: 5px 7px; cursor: pointer; margin-bottom: 4px; }
.cal-entry:last-child { margin-bottom: 0; }
.cal-entry:hover { border-color: var(--navy); border-left-color: var(--pc, var(--navy)); box-shadow: var(--shadow); }
.cal-entry .ce1 { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-entry .ce2 { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-entry .ce3 { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.cal-entry .stag { font-size: 11px; padding: 0 6px; margin-top: 3px; }
.cal-entry.mk-GALBEN { background: #fff8db; }
.cal-entry.mk-ROSU { background: #fde8e8; }
.cal-entry.mk-PORTOCALIU { background: #ffeedd; }
.cal-entry.mk-VERDE { background: #e3f5ea; }
.pz { display: block; font-size: 11.5px; font-weight: 600; color: var(--navy); background: #eceff8; border: 1px dashed #9aa3c7; border-radius: 6px; padding: 3px 7px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz.pz-mini { display: inline-block; padding: 0 5px; margin: 0; }
.zcard .pz { margin: 8px 0 0; font-size: 12.5px; white-space: normal; }
.pz-loose { background: #eceff8; border: 1px dashed #9aa3c7; border-radius: 10px; padding: 10px 14px; margin: 12px 16px; font-size: 13px; color: var(--ink-2); }
.zi-list .pz-loose, #zi-list > .pz-loose { margin: 0 0 14px; }
.pz-loose ul { margin: 6px 0 0; padding-left: 18px; }
.pz-loose li { margin: 2px 0; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- export / printare ---------- */
.out-btns { display: flex; gap: 6px; }
.out-btns .btn { padding: 8px 11px; }
.aux-tools { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; justify-content: flex-end; flex-wrap: wrap; }
.print-head { display: none; }

/* ---------- Azi / Mâine ---------- */
.zi-wrap { margin-top: 14px; }
.zi-hint { margin: 0 2px 10px; }
.zi-group { margin-bottom: 18px; }
.zi-gh { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 2px 8px; }
.zi-gh .muted { font-weight: 500; font-size: 13px; }
.zi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.zcard { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--pc, var(--line-2)); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.zmain { all: unset; cursor: pointer; padding: 12px 14px 8px; display: block; }
.zmain:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.z1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.z1 .l1 { font-size: 17px; color: var(--navy); }
.z2 { font-size: 16px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.z2 .arrow { color: var(--muted); font-weight: 400; margin: 0 2px; }
.z3 { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.z4 { margin-top: 6px; font-size: 13px; color: var(--ink-2); background: rgba(36, 46, 97, .05); border-radius: 6px; padding: 5px 8px; }
.zdrv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 12px; border-top: 1px dashed var(--line-2); margin-top: auto; }
.zname { font-weight: 600; color: var(--ink-2); }
.btn.call { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 600; padding: 8px 14px; }
.btn.call:hover { background: #156339; }

/* ---------- Pe proiecte ---------- */
table.rez th[scope=row] { text-align: left; font-weight: 400; background: var(--surface); position: sticky; left: 0; }
table.rez .num { text-align: center; width: 1%; white-space: nowrap; }
table.rez thead .num .dn { color: var(--muted); font-weight: 500; }
table.rez .today { background: var(--yellow-soft); }
table.rez td.num { padding: 6px; }
table.rez td.zero { color: var(--line-2); }
table.rez .tot { font-weight: 700; color: var(--navy); }
table.rez tfoot th, table.rez tfoot td { border-top: 2px solid var(--line-2); background: var(--surface-2); padding: 10px 12px; font-weight: 600; }
.rz { font: inherit; font-weight: 700; font-size: 15px; min-width: 44px; padding: 7px 10px; border: 0; border-radius: 8px; cursor: pointer; color: var(--navy); background: rgba(73, 180, 230, var(--a, .2)); }
.rz:hover { outline: 2px solid var(--navy); }
.rez-note { padding: 0 16px 14px; }

/* ---------- Modificări ---------- */
#changes-body { padding: 4px 16px 16px; }
.ch-group { padding-top: 12px; }
.ch-time { font-size: 13px; color: var(--navy); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ch-time .muted { font-weight: 500; }
.ch-list { list-style: none; margin: 0; padding: 0; }
.ch { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ch:last-child { border-bottom: 0; }
.ch-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ch.add .ch-ico { background: var(--ok-soft); color: var(--ok); }
.ch.del .ch-ico { background: var(--err-soft); color: var(--err); }
.ch.mod .ch-ico { background: var(--navy-soft); color: var(--navy); }
.ch-main { min-width: 0; flex: 1; }
.ch-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ch-head a { color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.ch-sum { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ch-fields { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.ch-fields li { margin: 2px 0; }
.ch-fields del { color: var(--err); background: var(--err-soft); text-decoration: line-through; padding: 0 4px; border-radius: 4px; }
.ch-fields ins { color: var(--ok); background: var(--ok-soft); text-decoration: none; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- panou de administrare ---------- */
.admin-main { padding-bottom: 40px; }
.adm-tab { margin-top: 16px; }
.adm-kpis { margin-top: 0; }
.adm-kpis .val { font-size: 24px; }
.kpi.warn-kpi::before { background: var(--err); }
.kpi-pill { font-size: 14px; }
.small-kpis { padding: 12px 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 14px; }
.adm-grid > .card-box { margin-top: 14px; }
.abadge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.abadge.ok { background: var(--ok-soft); color: var(--ok); }
.abadge.err { background: var(--err-soft); color: var(--err); }
.abadge.warn { background: var(--warn-soft); color: var(--warn); }
.abadge.muted { background: var(--surface-2); color: var(--muted); }
.adm-list { list-style: none; margin: 0; padding: 8px 16px 14px; }
.adm-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.adm-list li:last-child { border-bottom: 0; }
.adm-list code, .adm-kv code, .hint code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.adm-kv { padding: 12px 16px 16px; grid-template-columns: 200px 1fr; }
.adm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-actions .search { flex: 0 1 240px; }
.adm-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px 16px; }
.adm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex: 1 1 200px; }
.adm-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.adm-form input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.btn.danger { color: var(--err); border-color: #f0b8b3; }
.btn.danger:hover { background: var(--err-soft); }
.small-btn { padding: 4px 10px; font-size: 12.5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pad { padding: 0 16px 14px; }
.adm-tab del { color: var(--err); background: var(--err-soft); padding: 0 4px; border-radius: 4px; }
.adm-tab ins { color: var(--ok); background: var(--ok-soft); text-decoration: none; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.srvlog { margin: 0; padding: 12px 16px; max-height: 70vh; overflow: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; background: #fbfbfc; }
.srvlog .lerr { color: var(--err); font-weight: 600; }
.srvlog .lwarn { color: var(--warn); }

/* ---------- detaliu ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(20, 26, 50, .4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--surface); z-index: 41; overflow: auto; box-shadow: var(--shadow-lg); }
.dr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 3px solid var(--yellow); position: sticky; top: 0; background: var(--surface); z-index: 1; }
#dr-body { padding: 16px 18px 32px; }
.dr-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.kv.mini { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dr-sec { margin-top: 20px; }
.dr-sec h3 { font-size: 12px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dr-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.dr-list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.dr-list li.cur { font-weight: 600; }
.dr-list a { color: var(--navy); cursor: pointer; text-decoration: none; }
.dr-list a:hover { text-decoration: underline; }
.dr-src { font-size: 12px; color: var(--muted); }
.flags { margin: 0; padding: 10px 14px 10px 28px; background: var(--warn-soft); border-radius: 8px; color: var(--warn); font-size: 13px; }
.tel { color: var(--navy); font-weight: 600; }

/* ---------- autentificare ---------- */
.login-body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 85% -10%, #3a4aa0 0%, transparent 60%), linear-gradient(160deg, #1d2552 0%, var(--brand) 55%, #2b3876 100%); }
.login-shell { width: min(940px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; background: #f7f7f7; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(8, 12, 40, .45); animation: fadeUp .4s ease-out both; }
.login-brand { position: relative; background: linear-gradient(170deg, #2c3a80 0%, var(--brand) 100%); color: #fff; padding: 40px 36px 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; overflow: hidden; }
.lb-text { position: relative; z-index: 1; order: -1; }
.lb-kicker { margin: 0 0 8px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lb-text h2 { color: #fff; font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
.lb-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #d4d8ec; font-size: 14px; }
.lb-text li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 10px; vertical-align: 1px; }
.lb-art { display: block; width: calc(100% + 72px); margin: 24px -36px 0; height: 230px; }
.lb-art .tw { fill: #e8ebf7; }
.lb-art .rt { fill: #fff; }
.lb-art .rt circle { fill: var(--yellow); }
.lb-art .hill2 { fill: #3a4994; }
.lb-art .hill1 { fill: #4a5bb0; }
.login { background: #f7f7f7; padding: 44px 40px 28px; display: grid; gap: 12px; align-content: center; color: var(--navy); }
.login .logo { height: 51px; width: auto; justify-self: start; margin-bottom: 12px; }
.login h1 { font-size: 22px; }
.login p { margin: 0; }
.login input { font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.login input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-soft); }
.login .btn.primary { justify-content: center; padding: 12px; margin-top: 6px; font-size: 15px; border-radius: 10px; }
.login-err { color: var(--err) !important; font-weight: 600; background: var(--err-soft); border: 1px solid #f5c2bd; border-radius: 8px; padding: 8px 10px; }
.login .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: -6px; }
.login-foot { margin-top: 14px !important; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .login-body { place-items: start center; padding: 0; background: var(--brand); }
  .login-shell { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; min-height: 100vh; align-content: start; }
  .login-brand { min-height: 0; padding: 22px 20px 0; }
  .lb-text h2 { font-size: 19px; margin-bottom: 0; }
  .lb-text ul { display: none; }
  .lb-art { height: 170px; margin: 0 -20px 0; width: calc(100% + 40px); }
  .login { padding: 26px 20px 28px; }
  .login .logo { height: 42px; }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .top { position: static; }
  .top-inner { flex-wrap: wrap; gap: 10px; }
  .brand { gap: 12px; }
  .logo { height: 32px; }
  .brand-text { padding-left: 10px; }
  h1 { font-size: 14.5px; white-space: nowrap; }
  .sub { display: none; }
  .top-actions { width: 100%; }
  .top-actions .btn.primary { flex: 1; justify-content: center; }
  .tabs button { padding: 10px 12px 8px; font-size: 13.5px; }
  .hide-sm { display: none; }
  .syncbar-inner { gap: 2px 12px; }
  .projbar { margin-top: 12px; }
  .projbar-btns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 4px; }
  .projbar-btns::-webkit-scrollbar { display: none; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .period { flex: 1; }
  .kpis { display: flex; overflow-x: auto; gap: 8px; margin: 8px -14px 0; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 138px; scroll-snap-align: start; padding: 10px 12px; }
  .kpi .val { font-size: 22px; }
  .kpi .extra { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi .exp { white-space: normal; }
  /* pe telefon, doar lista principală devine carduri; celelalte tabele (Componente, Pe proiecte, admin) rămân, cu derulare */
  #table-card .table-scroll { display: none; }
  .cards { display: grid; gap: 8px; padding: 10px; }
  .mcard { border: 1px solid var(--line); border-left: 4px solid var(--pc, var(--line-2)); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
  .mcard .c1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
  .mcard .c1 .l1 { color: var(--navy); }
  .mcard .c2 { font-weight: 600; margin-top: 4px; }
  .mcard .c3 { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
  .mcard .c4 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
  .cal-scroll { max-height: none; }
  table.cal { min-width: 860px; }
  .cal .truck-h { width: 130px; }
  .cal th.truck { padding: 6px 8px; }
  .kv { grid-template-columns: 105px 1fr; }
  .ms-panel { max-width: calc(100vw - 40px); }
  .aux-search { flex-basis: 100%; }
  .aux-tools { flex-basis: 100%; }
  .out-btns .lbl-sm { display: none; }
  .zi-cards { grid-template-columns: 1fr; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-kv { grid-template-columns: 130px 1fr; }
  .top-actions .btn.ghost { flex: none; }
  .toolbar .period { flex: 1 1 auto; }
}

/* ---------- printare: doar conținutul vederii curente, fără butoane ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 10.5px; }
  .top, .syncbar, .projbar, .toolbar, .filters-panel, .chips-row, .meta-row, .dq-list, .charts-box, .kpis,
  .pager, .foot, .banner, .sync-msg, .drawer, .drawer-bg, .out-btns, .aux-search, .hint, .card-head .muted, #page-size { display: none !important; }
  .print-head { display: block; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--yellow); }
  .print-head h1 { font-size: 15px; }
  .print-head p { margin: 2px 0 0; color: #555; font-size: 10px; }
  .wrap { max-width: none; padding: 0; }
  .card-box, .chart, .zcard { box-shadow: none; }
  .card-box { border: 0; margin-top: 0; }
  .card-head { padding: 0 0 6px; border: 0; }
  .table-scroll, #view-aux .table-scroll { display: block !important; overflow: visible; }
  .cards { display: none !important; }
  table.data td, table.data th { padding: 4px 6px; }
  table.data th { position: static; }
  .cal-scroll { max-height: none; overflow: visible; }
  table.cal { min-width: 0; font-size: 9px; }
  .cal thead th, .cal th.truck, .cal thead th.truck-h { position: static; }
  .cal .truck-h { width: 120px; }
  .cal-entry { padding: 2px 4px; break-inside: avoid; }
  .cal tr, table.data tr, .zcard, .ch { break-inside: avoid; }
  .cal-entry, .zcard, .ptag, .sw, .rz, .stag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .zi-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .btn.call { display: none; }
  .zdrv::after { content: attr(data-phone); }
}

/* =====================================================================
   Varianta minimalistă (oct. 2026): mai puține elemente la vedere,
   restul la un click (stare, meniuri, statistici).
   ===================================================================== */
.top-inner { padding-top: 10px; padding-bottom: 10px; }
.logo { height: 40px; }
h1.brand-text { font-size: 18px; font-weight: 700; border-left: 2px solid var(--yellow); padding-left: 16px; margin: 0; color: var(--navy); white-space: nowrap; }
.top-actions { gap: 6px; }
.top-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; font-size: 18px; text-decoration: none; background: #fff; border: 1px solid var(--line-2); color: var(--navy); }
.top-icon:hover { background: var(--navy-soft); }
.top-icon.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* indicatorul de stare + detalii la click */
.status-wrap { position: relative; }
.status-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.status-btn .pill { padding: 6px 12px; font-size: 13px; }
.status-btn:focus-visible .pill { outline: 2px solid var(--blue); outline-offset: 2px; }
.status-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 35; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.status-pop .sync-msg { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.status-pop .sync-msg.err { color: var(--err); }
.status-pop .sync-msg.warn { color: var(--warn); }
.status-kv { grid-template-columns: 130px 1fr; font-size: 13px; }
.status-pop .hint { margin-top: 10px; }

/* navigare: 4 tab-uri + „Mai mult” */
.tabs { overflow: visible; }
.tabs > button, .tabs .more > summary { font: inherit; font-weight: 600; font-size: 14.5px; color: #c5cae0; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px 9px; cursor: pointer; white-space: nowrap; list-style: none; }
.tabs .more > summary::-webkit-details-marker { display: none; }
.tabs .more > summary::after { content: " ▾"; font-size: 11px; }
.tabs .more > summary:hover, .tabs > button:hover { color: #fff; }
.tabs .more.on > summary { color: #fff; border-bottom-color: var(--yellow); }
.more { position: relative; }
.more-menu { position: absolute; z-index: 36; top: calc(100% + 4px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.more-menu.right { left: auto; right: 0; }
.more-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.more-menu button:hover, .more-menu button[aria-selected="true"] { background: var(--navy-soft); }
.more-menu button b { display: block; font-weight: 600; color: var(--navy); }
.more-menu button span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.out-menu > summary { list-style: none; font-size: 18px; line-height: 1; padding: 7px 12px; }
.out-menu > summary::-webkit-details-marker { display: none; }

/* proiecte: mai discret */
.projbar { margin: 16px 0 10px; }
.projbar-btns button { box-shadow: none; padding: 6px 12px; font-weight: 500; }
.projbar-btns button.on { font-weight: 600; }

/* bara de căutare: perioada prima, căutarea în mijloc */
.toolbar { gap: 8px; }
.toolbar .search { flex: 1 1 240px; }

/* rezumat pe o linie */
.summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 12px 2px 0; font-size: 14px; color: var(--ink-2); }
.summary b { color: var(--navy); font-size: 15px; }
.summary .sep { color: var(--line-2); margin: 0 10px; }
.summary .muted { font-size: 12.5px; }
.dq-mini { margin-left: 14px; font-size: 12.5px; color: var(--warn); text-decoration-color: var(--warn); }
.stats-box { margin-top: 8px; }
.stats-box > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy); padding: 4px 2px; width: max-content; list-style: none; }
.stats-box > summary::-webkit-details-marker { display: none; }
.stats-box > summary::before { content: "▸ "; }
.stats-box[open] > summary::before { content: "▾ "; }
.stats-box[open] { padding-bottom: 4px; }
.stats-box .kpis { margin-top: 6px; }

/* calendar */
.cal-legend { border-top: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
.pbar { display: inline-block; width: 4px; height: 14px; border-radius: 2px; vertical-align: -2px; }
.cal .truck .l3 { font-size: 11px; color: var(--muted); white-space: normal; }
.cal .truck .l2 { color: var(--ink-2); }
.pz-loose { margin: 10px 14px; padding: 8px 12px; }
.pz-loose > summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.pz-loose p { margin: 6px 0 0; }
#zi-list > .pz-loose { margin: 0 0 12px; }

/* secțiuni secundare */
.aux-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 18px 2px 10px; }
.aux-head h2 { font-size: 18px; }
.aux-box { margin-top: 0; }
.pager .pgsize select { padding: 2px 6px; margin-left: 4px; }
.zi-wrap { margin-top: 10px; }

@media (max-width: 760px) {
  .top-inner { flex-wrap: nowrap; gap: 8px; }
  .logo { height: 28px; }
  h1.brand-text { font-size: 14px; padding-left: 8px; border-left-width: 2px; }
  .brand { gap: 8px; min-width: 0; }
  .top-actions { width: auto; }
  .status-btn .pill { padding: 5px 9px; font-size: 12px; }
  .top-icon { width: 32px; height: 32px; font-size: 16px; }
  .status-pop { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  .tabs { overflow-x: auto; }
  .tabs > button, .tabs .more > summary { padding: 11px 12px 8px; font-size: 14px; }
  .more-menu { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; }
  .toolbar .period { flex: 1 1 100%; order: 0; }
  .toolbar .search { order: 1; flex: 1 1 0; }
  .toolbar .filters-btn { order: 2; }
  .toolbar .out-menu { order: 3; }
  .summary .muted { flex-basis: 100%; }
  .summary .muted + .sep, .summary .sep:has(+ .muted) { display: none; }
}
@media (max-width: 420px) {
  h1.brand-text { display: none; }
}
@media print {
  .status-wrap, .top-icon, .more, .summary, .stats-box, .pz-loose { display: none !important; }
}

/* ---------- Verificări și Componente ---------- */
.cbadge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; margin-left: 4px; vertical-align: 1px; }
.tabs .more.alert > summary::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff6b5e; margin-right: 6px; vertical-align: 1px; }
.chk-sec { padding: 14px 16px 6px; }
.chk-sec h3 { font-size: 15px; margin: 0 0 4px; color: var(--navy); }
.chk-sec .hint { margin: 0 0 10px; }
.chk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chk { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.chk.bad { border-left-color: var(--err); background: #fffafa; }
.chk-title { font-weight: 600; color: var(--ink); }
.chk-days { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.chk-recs { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; }
.chk-recs a { color: var(--navy); cursor: pointer; text-decoration: none; }
.chk-recs a:hover { text-decoration: underline; }
.ok-line { color: var(--ok); font-weight: 600; margin: 4px 0 12px; }
.cal-entry.conflict { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.cal-entry.conflict .ce1::before { content: "⚠ "; color: var(--err); }
.zcard.conflict { border-color: #f0b8b3; }
.zconflict { all: unset; cursor: pointer; display: block; background: var(--err-soft); color: var(--err); font-size: 12.5px; font-weight: 600; padding: 6px 14px; }
.zconflict:hover { text-decoration: underline; }
#comp-card table.rez th[scope=row] b { color: var(--navy); }
@media print { .zconflict { display: none; } }

/* ---------- Proiecte (rapoarte zilnice) ---------- */
:root { --st-livrat: #1a7a45; --st-pe_site: #49b4e6; --st-tranzit: #2a5fd6; --st-planificat: #f2b01e; --st-neplanificat: #dfe3ea; }
.st-livrat { background: var(--st-livrat); } .st-pe_site { background: var(--st-pe_site); } .st-tranzit { background: var(--st-tranzit); }
.st-planificat { background: var(--st-planificat); } .st-neplanificat { background: var(--st-neplanificat); }
.proj-wrap { margin-top: 8px; }
.proj-src { margin: 4px 2px 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.pc-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pc-src { font-size: 12.5px; color: var(--ink-2); }
.pc-big { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; margin-bottom: 8px; }
.pc-num { font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pc-pct { font-weight: 700; color: var(--st-livrat); margin-left: 4px; }
.sbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--st-neplanificat); }
.sbar > span { display: block; height: 100%; border-right: 2px solid var(--surface); }
.sbar > span:last-child { border-right: 0; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); margin: 8px 0 14px; }
.pc-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wcell { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
.pc-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 18px; }
.pc-cats { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-cats th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 5px 8px 5px 0; white-space: nowrap; }
.pc-cats .pc-catbar { width: 100%; padding: 5px 8px; }
.pc-cats .pc-catbar .sbar { height: 9px; }
.pc-cats td.num { white-space: nowrap; color: var(--muted); }
.pc-cats td.num b { color: var(--ink); }
.pc-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pc-list h3 { font-size: 13px; margin: 0 0 6px; color: var(--navy); }
.pc-list ul { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.truckq { font-size: 13px; padding: 0; }
.pc-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.pc-more > summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 13px; }
.pc-comments { font-size: 13px; color: var(--ink-2); padding-left: 18px; }
.pc-comments li { margin: 4px 0; }
.wmatrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; margin-top: 8px; }
.wmatrix th { font-weight: 600; color: var(--ink-2); text-align: left; white-space: nowrap; padding: 0 6px 0 0; }
.wmatrix thead th { vertical-align: bottom; height: 96px; padding: 0; }
.wmatrix thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; color: var(--muted); padding: 2px; }
.wmatrix td { padding: 0; text-align: center; }
.wmatrix .wcell { width: 18px; height: 18px; }
.wmatrix tr.wdone th { color: var(--st-livrat); }
@media (max-width: 760px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pcard { padding: 14px; }
  .pc-num { font-size: 22px; }
}
@media print { .pc-more:not([open]) { display: none; } }

.wm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================= Panoramă (conducere) ================= */
:root { --map-sea-1: #d7ecf8; --map-sea-2: #bfe0f3; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }
#i-more circle, .i use[href="#i-more"] { fill: currentColor; }
.top-icon { display: inline-grid; place-items: center; }
.top-icon .i { width: 17px; height: 17px; }
.search-ico .i { width: 16px; height: 16px; }
.btn.call .i { width: 15px; height: 15px; }
.more-menu b .i { width: 15px; height: 15px; margin-right: 4px; color: var(--navy); }
.spin .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeUp .28s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pano { margin-top: 18px; display: grid; gap: 18px; }
.pano-hero { background: linear-gradient(135deg, var(--brand) 0%, #2d3a7c 60%, #33468f 100%); color: #fff; border-radius: 16px; padding: 22px 24px 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.pano-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 192, 6, .22), transparent 70%); pointer-events: none; }
.ph-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 20px; }
.ph-kicker { margin: 0 0 2px; color: var(--yellow); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pano-hero h2 { color: #fff; font-size: 22px; font-weight: 700; }
.ph-note { margin: 0; color: #c5cae0; font-size: 13px; }
.pk-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; position: relative; z-index: 1; }
.pk { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 14px; backdrop-filter: blur(2px); }
.pk-val { font-size: 32px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pk-val small { font-size: 17px; font-weight: 600; color: #c5cae0; margin-left: 2px; }
.pk-lbl { font-size: 13px; color: #e6e9f5; margin-top: 4px; font-weight: 600; }
.pk-sub { font-size: 12px; color: #aab1d1; margin-top: 3px; }
.pk-sub .up { color: #7fe0a8; font-weight: 700; }
.pk-sub .down { color: #ffb4a8; font-weight: 700; }
.pk-go { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.pk-go:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); transform: translateY(-2px); }
.pk-go:focus-visible { outline: 2px solid var(--yellow, #fec006); outline-offset: 2px; }

.pano-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 18px; align-items: start; }
.pano-grid.two { grid-template-columns: 1fr 1fr; }
.pano .card-box { padding: 16px 18px; border-radius: 14px; }
.pc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-h h3 { font-size: 15px; color: var(--navy); margin: 0; }

.pp-list { display: grid; gap: 10px; }
.pp { all: unset; box-sizing: border-box; display: block; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--pc); border-radius: 10px; background: var(--surface); transition: box-shadow .15s, transform .15s, border-color .15s; }
.pp:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--line-2); border-left-color: var(--pc); }
.pp:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pp-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14px; }
.pp-pct { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-bar { height: 8px; background: var(--surface-2); border-radius: 999px; margin: 8px 0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pp-bar span { display: block; height: 100%; background: var(--pc); border-radius: 999px; transform-origin: left; }
.pano.anim .pp-bar span { animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.pp-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.pp-meta b { color: var(--ink); }
.eta b { color: var(--navy); }
.eta.done { color: var(--ok); font-weight: 600; }
.pp-trucks { display: inline-flex; align-items: center; gap: 5px; background: var(--yellow-soft); color: var(--warn); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.pp-trucks .i { width: 14px; height: 14px; }

.map { width: 100%; height: auto; display: block; border-radius: 10px; }
.map .land { fill: #f3f1ea; }
.map .sea { stroke: #9ccbe6; stroke-width: 1; }
.map .river { fill: none; stroke: #8ec5e6; stroke-width: 2.4; stroke-linejoin: round; }
.map .border { fill: none; stroke: #b9b3a3; stroke-width: 1; stroke-dasharray: 4 3; }
.map .country { font-size: 10px; letter-spacing: .2em; fill: #a49d8c; font-weight: 600; }
.map .sea-name { font-size: 11px; fill: #5f9cc2; font-style: italic; }
.map .river-name { font-size: 9.5px; fill: #5f9cc2; font-style: italic; }
.map .city { fill: #8d8778; }
.map .c-name { font-size: 9.5px; fill: #7d7767; }
.map .route { fill: none; stroke: var(--c); stroke-width: 2; opacity: .35; stroke-dasharray: 2 4; }
.map .route.on { opacity: .9; stroke-dasharray: 7 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -13; } }
.map .port rect { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.map .site { cursor: pointer; }
.map .site .dot { fill: var(--c); stroke: #fff; stroke-width: 2.5; }
.map .site .pulse { fill: var(--c); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.map .s-name { font-size: 12px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: #f3f1ea; stroke-width: 3px; }
.map .s-sub { font-size: 10px; fill: var(--ink-2); paint-order: stroke; stroke: #f3f1ea; stroke-width: 3px; }
.map .site:hover .s-name { fill: var(--blue); }
.map-note { margin: 8px 0 0; }

.pano-chart { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.pchart { position: relative; width: 100%; }
.pc-svg { display: block; max-width: 100%; touch-action: pan-y; }
.pc-svg .grid { stroke: var(--line); stroke-width: 1; }
.pc-svg .ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pc-svg .ln { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pc-svg .end { fill: var(--c); stroke: #fff; stroke-width: 2; }
.pc-svg .hover-x { stroke: var(--navy); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-svg .hover-zone { fill: transparent; cursor: crosshair; }
.pc-tip { position: absolute; top: 8px; width: 220px; background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow-lg); pointer-events: none; }
.pc-tip .tt-d { font-weight: 700; color: var(--yellow); margin-bottom: 4px; }
.pc-tip div:not(.tt-d) { display: flex; align-items: center; gap: 6px; }
.pc-tip div b { margin-left: auto; font-variant-numeric: tabular-nums; }
.pc-tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed li:first-child { border-top: 0; }
.f-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-side { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pano-src { margin: 0; text-align: center; }

/* schelet de încărcare */
.sk-box, .sk-line { background: linear-gradient(90deg, var(--surface-2) 0%, #eceef3 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 10px; }
.pano-hero.sk .sk-line { height: 22px; opacity: .25; }
.pano-hero.sk .pk { height: 92px; opacity: .25; }
.sk-line.w40 { width: 40%; }
.sk-box.tall { height: 360px; border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .pk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pano-grid, .pano-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pano-hero { padding: 16px; border-radius: 14px; }
  .pano-hero h2 { font-size: 18px; }
  .pk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk { padding: 10px 12px; }
  .pk-val { font-size: 26px; }
  .pk-row .pk:last-child { grid-column: span 2; }
  .f-side .muted { display: none; }
  .pano .card-box { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .map .route.on, .map .site .pulse, .pp-bar span, .fade-in, .sk-box, .sk-line { animation: none !important; }
}
@media print {
  .pano-hero { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pano-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= Atenție (semnale de risc) ================= */
.risk-card .pc-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.rk-count { background: var(--err); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 8px; line-height: 20px; }
.risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.risk { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; background: var(--warn-soft); color: #5c3d00; }
.risk.high { background: var(--err-soft); color: #7a1a12; }
.rk-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2a400; flex: none; margin-top: 5px; }
.risk.high .rk-dot { background: var(--err); }
.risk-ok { padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 13.5px; }
.ph-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pano-hero .lang-seg { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.pano-hero .lang-seg button { color: #dfe3f3; }
.pano-hero .lang-seg button.on { background: var(--yellow); color: var(--brand); }
.lang-seg button { min-width: 38px; font-weight: 700; }

/* ================= Pagina proiectului ================= */
.pg { display: grid; gap: 18px; }
.pg-head { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--pc); border-radius: 14px; padding: 14px 20px 18px; box-shadow: var(--shadow); }
.pg-back { padding: 0; margin-bottom: 6px; }
.pg-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; }
.pg-title h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.pg-title h2 .pdot { width: 14px; height: 14px; }
.pg-head .ph-kicker { color: var(--muted); }
.pg-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pgk-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pgk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.pgk-v { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pgk-v small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pgk-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.pgk-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pg-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg .card-box { padding: 16px 18px; border-radius: 14px; }
.wkbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; }
.wkb { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.wkb .wkc { align-self: end; border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .85; }
.wkb .wkn { font-weight: 700; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wkb .wkd { font-size: 12px; color: var(--ink-2); font-weight: 600; line-height: 1.2; }
.wkb .wkd small { color: var(--muted); font-weight: 400; }
.wkb.today .wkd { color: var(--navy); }
.wkb.today .wkc { opacity: 1; box-shadow: 0 0 0 2px var(--yellow); }
.pg-cats { width: 100%; border-collapse: collapse; font-size: 13px; }
.pg-cats th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 5px 10px 5px 0; white-space: nowrap; }
.pg-cats td.num { white-space: nowrap; color: var(--muted); text-align: right; }
.pg-cats td.num b { color: var(--ink); }
.pg-bar { width: 100%; padding: 5px 10px 5px 0; }
.pgb { display: flex; height: 10px; width: 100%; border-radius: 5px; overflow: hidden; background: var(--st-neplanificat); }
.pgb span { height: 100%; display: block; }
.pg-bar .st-livrat { background: var(--st-livrat); } .pg-bar .st-pe_site { background: var(--st-pe_site); } .pg-bar .st-tranzit { background: var(--st-tranzit); }
.pg-bar .st-planificat { background: var(--st-planificat); } .pg-bar .st-neplanificat { background: var(--st-neplanificat); }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.wt { position: relative; border-radius: 8px; padding: 6px 4px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; font-size: 11px; color: var(--muted); }
.wt::before { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--f); background: var(--st-tranzit); }
.wt b { display: block; font-size: 13px; color: var(--ink); }
.wt span { position: relative; }
.wt.part { background: #eef3fd; border-color: #cfdcf6; }
.wt.full { background: var(--ok-soft); border-color: #bfe3cc; }
.wt.full::before { background: var(--st-livrat); }
.wt.full b { color: var(--ok); }
.wt.moving { box-shadow: inset 0 0 0 2px var(--blue); }

/* ================= Raport (PDF) ================= */
body.report-mode { background: #fff; }
body.report-mode .top, body.report-mode #stale, body.report-mode #toast, body.report-mode .projbar, body.report-mode .toolbar, body.report-mode .chips-row, body.report-mode #summary, body.report-mode #stats-box { display: none !important; }
body.report-mode .wrap { max-width: 760px; padding: 0; }
body.report-mode .pano { margin: 0; }
body.report-mode *, body.report-mode *::before { animation: none !important; transition: none !important; }
.rpt { display: grid; gap: 0; }
.rpage { display: grid; gap: 14px; padding: 4px 0 18px; break-after: page; page-break-after: always; }
.rpage:last-child { break-after: auto; page-break-after: auto; }
.rp-brand { display: flex; align-items: center; gap: 20px; border-bottom: 3px solid var(--yellow); padding-bottom: 14px; }
.rp-brand .logo { height: 54px; width: auto; }
.rp-brand h1 { font-size: 26px; }
.rp-brand .ph-kicker { color: var(--muted); }
.rpt .pano-hero { padding: 14px; box-shadow: none; }
.rpt .pk-row { margin-top: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rpt .pk-val { font-size: 24px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 6px; }
.rp-table td { border-bottom: 1px solid var(--line); padding: 7px 6px; }
.rp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-grid { grid-template-columns: 1fr 1fr !important; }
.rpt .card-box { box-shadow: none; padding: 12px 14px; break-inside: avoid; }
.rpt .pgk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rpt .pgk { box-shadow: none; padding: 10px 12px; }
.rpt .pg-head { box-shadow: none; }
.rpt .pg-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.rpt .feed li { font-size: 11.5px; padding: 5px 0; }
.rpt .map-note { display: none; }
.rpt .pchart svg { width: 100%; height: auto; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .pg .pg-back, .pg .pg-actions, .pano-hero .lang-seg { display: none !important; }
  .pg .card-box, .pgk, .pg-head { box-shadow: none; break-inside: avoid; }
  .pg-grid, .pg-grid.three { grid-template-columns: 1fr 1fr; }
  .pgk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pano-hero, .wt, .pg-bar span, .risk, .risk-ok, .rk-dot, .wkc, .pdot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 1100px) {
  .pgk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-grid, .pg-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pgk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pg-title h2 { font-size: 21px; }
  .pg-head { padding: 12px 14px 14px; }
  .pgk-v { font-size: 22px; }
  .ph-right { align-items: flex-start; }
}

/* admin: avizare și costuri */
.av-form { flex-wrap: wrap; align-items: flex-end; }
.av-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.av-form label.small { flex-direction: row; align-items: center; font-weight: 500; }
.av-text { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; background: var(--surface-2); color: var(--ink); resize: vertical; }
.cost-proj { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.cost-proj h3 { font-size: 14px; color: var(--navy); margin: 0 0 6px; }
.cost-proj p { margin: 0 0 8px; font-size: 13.5px; }

/* raport PDF: o pagină A4 pe proiect */
.rpt .pg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.rpt .pg-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.rpt .rpage { gap: 10px; }
.rpt .pg-head { padding: 10px 14px 12px; }
.rpt .pg-title h2 { font-size: 21px; }
.rpt .pgk-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.rpt .pgk { padding: 8px 9px; }
.rpt .pgk-v { font-size: 18px; }
.rpt .pgk-l, .rpt .pgk-s { font-size: 10.5px; }
.rpt .wkbars { height: 96px; gap: 4px; }
.rpt .risk, .rpt .risk-ok { font-size: 11.5px; padding: 6px 9px; }
.rpt .pg-cats { font-size: 11.5px; }
.rpt .pg-cats th, .rpt .pg-bar { padding-top: 2px; padding-bottom: 2px; }
.rpt .wtiles { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.rpt .wt { padding: 3px 2px; font-size: 9.5px; }
.rpt .wt b { font-size: 11px; }
.rpt .pc-h { margin-bottom: 6px; }
.rpt .pc-h h3 { font-size: 13px; }
.rpt .pc-legend { font-size: 10.5px; }
.rpt .f-side .muted { display: none; }
.rpt .wkbars { height: 70px; }
.rpt .pano-map .map { max-height: 300px; width: auto; margin: 0 auto; }
@media print { body.report-mode .rpt { zoom: .78; } }

/* ================= timpi, recorduri, repere ================= */
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 8px; white-space: nowrap; }
.tt-table td { border-bottom: 1px solid var(--line); padding: 8px; }
.tt-table tr:last-child td { border-bottom: 0; }
.tt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend { font-size: 11.5px; font-weight: 700; margin-left: 4px; }
.trend.good { color: var(--ok); }
.trend.bad { color: var(--err); }
.rec-badge { display: inline-block; background: var(--yellow); color: var(--brand); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.tr-box { display: grid; gap: 7px; font-size: 13px; }
.tr-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tr-row > span { color: var(--ink-2); }
.tr-row b { font-variant-numeric: tabular-nums; text-align: right; }
.tr-note { margin: 0; }
.tr-sep { border-top: 1px dashed var(--line-2); margin: 3px 0; }
.msl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; }
.msl li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 0 0 12px 22px; font-size: 13px; color: var(--muted); }
.msl li::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -2px; width: 2px; background: var(--line-2); }
.msl li:last-child { padding-bottom: 0; }
.msl li:last-child::before { display: none; }
.msl .ms-dot { position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); box-sizing: border-box; }
.msl li.done { color: var(--ink); }
.msl li.done .ms-dot { background: var(--st-livrat); border-color: var(--st-livrat); }
.msl li.done::before { background: var(--st-livrat); }
.msl .ms-d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.msl li.done .ms-d { font-weight: 600; }

/* ================= fișa turbinei ================= */
button.wt { font: inherit; cursor: pointer; width: 100%; }
button.wt:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.tsheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 35, .45); display: grid; place-items: center; padding: 16px; animation: fadeUp .18s ease-out both; }
.tsheet { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px 20px; }
.ts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-left: 5px solid var(--pc); padding-left: 12px; }
.ts-head h2 { font-size: 24px; }
.ts-head .ph-kicker { color: var(--muted); }
.ts-bar { height: 8px; border-radius: 999px; background: var(--st-neplanificat); overflow: hidden; margin: 14px 0; }
.ts-bar span { display: block; height: 100%; background: var(--st-livrat); }
.ts-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ts-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 8px; white-space: nowrap; }
.ts-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.ts-com { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 280px; }
.st-chip { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-chip.st-livrat { background: var(--ok-soft); color: var(--ok); }
.st-chip.st-pe_site { background: var(--blue-soft); color: #1b6f99; }
.st-chip.st-tranzit { background: #e5ecfc; color: #2a5fd6; }
.st-chip.st-planificat { background: var(--warn-soft); color: var(--warn); }
.st-chip.st-neplanificat { background: var(--surface-2); color: var(--muted); }
.rpt .tr-box, .rpt .msl li { font-size: 11px; }
.rpt .msl li { padding-bottom: 6px; }

/* ================= temă întunecată (doar pe ecran; printarea și PDF-ul rămân luminoase) ================= */
.theme-ico-sun { display: none; }
@media screen {
  :root[data-theme="dark"] {
    --bg: #0d1220; --surface: #151b2e; --surface-2: #1b2238; --line: #262e4a; --line-2: #343d62;
    --ink: #e8ebf6; --ink-2: #b9c0dc; --muted: #8b93b6;
    --navy: #a9b8ff; --navy-2: #c3ceff; --navy-soft: #232c52; --brand: #2f3d8f;
    --yellow-soft: #3a3013; --blue-soft: #12304a;
    --ok: #5fd394; --ok-soft: #12301f; --warn: #f1c75e; --warn-soft: #33290f; --err: #ff8f85; --err-soft: #3b1714; --hl: #3a3013;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
    --st-neplanificat: #2c3456; --map-sea-1: #132a44; --map-sea-2: #17324f;
    color-scheme: dark;
  }
  :root[data-theme="dark"] .theme-ico-sun { display: inline; }
  :root[data-theme="dark"] .theme-ico-moon { display: none; }
  :root[data-theme="dark"] .top { background: #111729; box-shadow: 0 1px 0 var(--line); }
  :root[data-theme="dark"] .top .logo { border-radius: 8px; }
  :root[data-theme="dark"] .tabs-bar { background: #0a0f1d; border-bottom: 1px solid var(--line); }
  :root[data-theme="dark"] .banner.warn { border-color: #5a4612; }
  :root[data-theme="dark"] .banner.err { border-color: #6a2a24; }
  :root[data-theme="dark"] .banner.ok { border-color: #1f5a37; }
  :root[data-theme="dark"] #tbl tbody tr:hover td { background: #1e2643; }
  :root[data-theme="dark"] .cal td.today { background: #262312; }
  :root[data-theme="dark"] .cal td.empty-cell { background: #121829; }
  :root[data-theme="dark"] .cal-entry.mk-GALBEN { background: #2f2a12; }
  :root[data-theme="dark"] .cal-entry.mk-ROSU { background: #33181a; }
  :root[data-theme="dark"] .cal-entry.mk-PORTOCALIU { background: #33230f; }
  :root[data-theme="dark"] .cal-entry.mk-VERDE { background: #13291c; }
  :root[data-theme="dark"] .pz, :root[data-theme="dark"] .pz-loose { background: #222a48; border-color: #4a557f; }
  :root[data-theme="dark"] .srvlog { background: #0f1424; }
  :root[data-theme="dark"] .chk.bad { background: #2a1416; }
  :root[data-theme="dark"] .pano-hero { background: linear-gradient(135deg, #1b2350 0%, #222d66 60%, #29367a 100%); }
  :root[data-theme="dark"] .map .land { fill: #1a2035; }
  :root[data-theme="dark"] .map .sea { stroke: #24496e; }
  :root[data-theme="dark"] .map .river { stroke: #2f6a96; }
  :root[data-theme="dark"] .map .border { stroke: #3d4670; }
  :root[data-theme="dark"] .map .country { fill: #59628c; }
  :root[data-theme="dark"] .map .sea-name, :root[data-theme="dark"] .map .river-name { fill: #6fa6cf; }
  :root[data-theme="dark"] .map .city { fill: #6b7499; }
  :root[data-theme="dark"] .map .c-name { fill: #8b93b6; }
  :root[data-theme="dark"] .map .s-name { fill: #e8ebf6; stroke: #1a2035; }
  :root[data-theme="dark"] .map .s-sub { fill: #b9c0dc; stroke: #1a2035; }
  :root[data-theme="dark"] .map .port rect, :root[data-theme="dark"] .map .site .dot { stroke: #0d1220; }
  :root[data-theme="dark"] .pc-svg .end { stroke: #151b2e; }
  :root[data-theme="dark"] .pc-tip { background: #0a0f1d; border: 1px solid var(--line-2); }
  :root[data-theme="dark"] .sk-box, :root[data-theme="dark"] .sk-line { background: linear-gradient(90deg, #1b2238 0%, #252e4b 50%, #1b2238 100%); background-size: 200% 100%; }
  :root[data-theme="dark"] .risk { color: #f3d48a; }
  :root[data-theme="dark"] .risk.high { color: #ffb4ab; }
  :root[data-theme="dark"] .wt.part { background: #1b2747; border-color: #2c3d6b; }
  :root[data-theme="dark"] .wt.full { border-color: #24563a; }
  :root[data-theme="dark"] .st-chip.st-pe_site { color: #7fcbf0; }
  :root[data-theme="dark"] .st-chip.st-tranzit { background: #1a2852; color: #9fb7ff; }
  :root[data-theme="dark"] .rec-badge { color: #1b2350; }
  :root[data-theme="dark"] .top-icon { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-2); }
  :root[data-theme="dark"] .top-icon:hover { background: var(--line); color: var(--ink); }
  :root[data-theme="dark"] .btn.call { background: #1a7a45; border-color: #1a7a45; color: #fff; }
  :root[data-theme="dark"] .btn.call:hover { background: #20925a; }
  :root[data-theme="dark"] .tsheet-bg { background: rgba(0, 0, 0, .6); }
  :root[data-theme="dark"] input[type=search], :root[data-theme="dark"] input[type=date], :root[data-theme="dark"] select { background: var(--surface-2); }
}

@media (max-width: 640px) {
  .tsheet { padding: 14px; }
  .ts-table thead { display: none; }
  .ts-table, .ts-table tbody, .ts-table tr, .ts-table td { display: block; width: 100%; }
  .ts-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .ts-table td { border: 0; padding: 2px 0; }
  .ts-table td:first-child { display: flex; flex-direction: column; }
  .ts-table td:nth-child(2) { margin: 4px 0; }
  .ts-table td[data-l] { display: flex; justify-content: space-between; font-size: 12.5px; }
  .ts-table td[data-l]::before { content: attr(data-l); color: var(--muted); }
  .ts-com { max-width: none; }
}

/* ================= desenul turbinei din fișă ================= */
.ts-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.ts-fig { position: sticky; top: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 12px; }
.tb-svg { width: 100%; height: auto; display: block; }
.tb-ground { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.tb-part { stroke: rgba(0, 0, 0, .12); stroke-width: .8; transition: opacity .15s; }
.tb-part:hover { opacity: .8; }
.tb-part.st-livrat, .tb-key.st-livrat { fill: var(--st-livrat); background: var(--st-livrat); }
.tb-part.st-pe_site, .tb-key.st-pe_site { fill: var(--st-pe_site); background: var(--st-pe_site); }
.tb-part.st-tranzit, .tb-key.st-tranzit { fill: var(--st-tranzit); background: var(--st-tranzit); }
.tb-part.st-planificat, .tb-key.st-planificat { fill: var(--st-planificat); background: var(--st-planificat); }
.tb-part.st-neplanificat, .tb-part.tb-none { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 2; }
.tb-key.st-neplanificat { background: var(--surface); border: 1px dashed var(--line-2); }
.tb-legend { display: grid; gap: 4px; font-size: 11.5px; color: var(--ink-2); margin-top: 8px; padding: 0 4px; }
.tb-legend span { display: flex; align-items: center; gap: 6px; }
.tb-key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
@media (max-width: 640px) {
  .ts-body { grid-template-columns: 1fr; }
  .ts-fig { position: static; display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; }
}

/* ================= turbine decorative: siluetă în antet + turbină în banda Sintezei ================= */
.top-farm { position: absolute; left: 420px; right: 300px; top: 0; height: 60px; color: var(--navy); opacity: .3; pointer-events: none; overflow: hidden; }
.top-farm svg { position: absolute; right: 0; bottom: 0; height: 58px; width: auto; }
.top-inner { position: relative; z-index: 1; }
.ft-rot, .ht .ft-rot { transform-box: view-box; animation: bt-spin 10s linear infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
.hero-turbine { position: absolute; right: 26%; bottom: 0; height: 100%; width: auto; color: #fff; opacity: .09; pointer-events: none; }
.pano-hero > *:not(.hero-turbine) { position: relative; z-index: 1; }
:root[data-theme="dark"] .top-farm { color: #a9b8ff; opacity: .12; }
@media (max-width: 900px) { .top-farm { display: none; } .hero-turbine { right: 4%; } }
@media (prefers-reduced-motion: reduce) { .ft-rot { animation: none !important; } }
@media print { .top-farm, .hero-turbine { display: none !important; } }

/* admin: calculator de planificare */
.plan-form { flex-wrap: wrap; align-items: flex-end; }
.plan-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.plan-form input[type=number] { width: 120px; font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.plan-now { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--ink-2); margin: 12px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.plan-out { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; font-size: 13px; }
.plan-out.ok { border-left-color: var(--ok); }
.plan-out.warn { border-left-color: #e2a400; }
.po-big { font-size: 26px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.po-big small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* numele aplicației: Wind + Track (accent albastru din logo) */
.bt-accent { color: var(--blue); }
.login h1 .bt-accent { color: var(--blue); }

/* ================= dimensiuni componente ================= */
.dims-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.dims-kpis > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: grid; gap: 2px; }
.dims-kpis b { font-size: 19px; color: var(--navy); font-variant-numeric: tabular-nums; }
.dims-kpis span { font-size: 12px; color: var(--muted); }
.dims-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dims-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 8px; white-space: nowrap; }
.dims-table td { border-bottom: 1px solid var(--line); padding: 7px 8px; }
.dims-table tr:last-child td { border-bottom: 0; }
.dims-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dim-bar { width: 16%; min-width: 70px; }
.dim-barh { width: 16%; }
.dim-bar span { display: block; height: 7px; border-radius: 4px; background: var(--blue); opacity: .75; }
.dim-bar.w span { background: var(--navy); opacity: .55; }
.dims-note { margin: 8px 0 0; }
.ts-dim { font-size: 12px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .dims-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dim-bar, .dim-barh { display: none; } }

/* ================= schema parcului ================= */
.park-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.park-sum b { color: var(--navy); font-size: 15px; }
.park { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 2px 4px; padding: 16px 12px 10px; border-radius: 12px;
  background: linear-gradient(180deg, #e6f2fb 0%, #f4f8fb 100%); border: 1px solid var(--line); }
.park .tb-part.st-neplanificat, .park .tb-part.tb-none { fill: #d9e0ea; stroke: none; }
.park .pk-t .tb-ground { display: block; stroke: #9cc59a; stroke-width: 6; }
.pk-t { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; padding: 2px 0 4px; border-radius: 8px; transition: background .15s, transform .15s; }
.pk-t:hover { background: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.pk-t:focus-visible { outline: 2px solid var(--blue); }
.pk-t .tb-svg { width: 100%; max-width: 64px; height: auto; }

.pk-t b { font-size: 12px; color: var(--ink); line-height: 1.1; }
.pk-t span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-t.full b { color: var(--ok); }
.park-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.park-note { margin: 6px 0 0; }
:root[data-theme="dark"] .park { background: linear-gradient(180deg, #15223a 0%, #161d31 100%); }
:root[data-theme="dark"] .park .tb-part.st-neplanificat, :root[data-theme="dark"] .park .tb-part.tb-none { fill: #34405f; }
:root[data-theme="dark"] .park .pk-t .tb-ground { stroke: #2f5a3a; }
:root[data-theme="dark"] .pk-t:hover { background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) { .park { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); padding: 10px 6px 6px; } }
.park-legend .tb-key.st-neplanificat { background: #d9e0ea; border: 0; }
:root[data-theme="dark"] .park-legend .tb-key.st-neplanificat { background: #34405f; }

/* ================= 1. fotografii ================= */
.pano-hero.photo { background:
    linear-gradient(105deg, var(--sk0, rgba(27, 35, 80, .95)) 0%, var(--sk1, rgba(36, 46, 97, .82)) 38%, var(--sk2, rgba(36, 46, 97, .38)) 70%, var(--sk3, rgba(36, 46, 97, .18)) 100%),
    var(--hero) center 60% / cover no-repeat, var(--brand); }
.pano-hero.photo::after { display: none; }
.pano-hero.photo .pk { background: rgba(15, 20, 50, .42); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.login-brand.photo { background:
    linear-gradient(180deg, rgba(27, 35, 80, .92) 0%, rgba(36, 46, 97, .75) 45%, rgba(36, 46, 97, .25) 100%),
    url("/img/login.jpg") center 70% / cover no-repeat, var(--brand); justify-content: flex-start; }
.login-brand.photo .lb-text { order: 0; }
@media (max-width: 760px) { .login-brand.photo { min-height: 190px; padding-bottom: 20px; } }
.rp-photo { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; display: block; }

/* ================= 2. inele de progres + mini-grafic ================= */
.pp.has-ring { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.pp-ring .ring { width: 56px; height: 56px; display: block; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; }
.pano.anim .ring-fg { animation: ringIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--len); } }
.ring text { font-size: 12.5px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.pp-body { min-width: 0; }
.pp-spark .spark { width: 73px; height: 22px; display: block; }
.has-ring .pp-bar { margin: 6px 0; height: 5px; }

/* ================= 3. ecran de pornire ================= */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(900px 500px at 70% 10%, #3a4aa0 0%, transparent 60%), linear-gradient(160deg, #1d2552 0%, #242e61 60%, #2b3876 100%); transition: opacity .4s ease, visibility .4s; }
.splash.out { opacity: 0; visibility: hidden; }
.sp-inner { display: grid; justify-items: center; gap: 12px; color: #fff; }
.sp-turbine { width: 92px; height: auto; color: #fff; opacity: .95; }
.sp-turbine .sp-hub { fill: var(--yellow); }
.sp-rot { transform-box: view-box; transform-origin: 60px 62px; animation: bt-spin 1.6s linear infinite; }
.sp-logo { height: 44px; width: auto; border-radius: 8px; }
.sp-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.sp-name span { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .sp-rot { animation: none; } }

/* ================= 4. bara de jos pe telefon ================= */
.bottom-nav, .bn-sheet { display: none; }
@media (max-width: 760px) {
  .tabs-bar { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { all: unset; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 10px; cursor: pointer; }
  .bottom-nav button .i { width: 22px; height: 22px; }
  .bottom-nav button[aria-selected="true"] { color: var(--navy); }
  .bottom-nav button[aria-selected="true"] .i { color: var(--brand); background: var(--yellow-soft); border-radius: 999px; padding: 2px 10px; box-sizing: content-box; }
  .bn-sheet:not([hidden]) { display: grid; position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 41; background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; animation: fadeUp .18s ease-out both; }
  .bn-sheet button { all: unset; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .bn-sheet button:active, .bn-sheet button[aria-selected="true"] { background: var(--navy-soft); color: var(--navy); }
  .bn-sheet .i { width: 20px; height: 20px; color: var(--navy); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
:root[data-theme="dark"] .bottom-nav { background: rgba(17, 23, 41, .94); }

/* ================= 5. antet care se micșorează la derulare ================= */
.top, .top-inner, .logo, .brand-text, .top-farm { transition: all .25s ease; }
body.scrolled .top { background: rgba(247, 247, 247, .86); backdrop-filter: blur(10px); box-shadow: 0 4px 18px rgba(20, 28, 60, .10); }
body.scrolled .top-inner { padding-top: 6px; padding-bottom: 6px; }
body.scrolled .top .logo { height: 34px; }
body.scrolled .brand-text { font-size: 17px; }
body.scrolled .top-farm { opacity: 0; }
:root[data-theme="dark"] body.scrolled .top { background: rgba(17, 23, 41, .86); }

/* ================= 6. tranziții între pagini ================= */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
::view-transition-group(hero-card) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ================= 7. iconițe pe tipuri de componente ================= */
.ci { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-right: 6px; color: var(--navy); opacity: .75; flex: none; }
.feed .ci { margin-right: 5px; }
.pg-cats th .ci, .dims-table td .ci, .ts-table td .ci { margin-right: 7px; }


/* bara de jos și ecranul de pornire nu apar la printare și nici în raportul PDF */
@media print { .bottom-nav, .bn-sheet, .splash { display: none !important; } body { padding-bottom: 0 !important; } }
body.report-mode .bottom-nav, body.report-mode .bn-sheet, body.report-mode .splash { display: none !important; }
body.report-mode { padding-bottom: 0 !important; }

/* ================= salut personalizat ================= */
.ph-hello { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.pano-hero .ph-kicker { margin-bottom: 6px; }
.pano-hero h2.ph-today { font-size: 16px; font-weight: 600; color: #dfe4f6; max-width: 760px; line-height: 1.4; }
@media (max-width: 640px) { .ph-hello { font-size: 21px; } .pano-hero h2.ph-today { font-size: 14px; } }

/* ================= camioane în mișcare pe hartă ================= */
.map .mtruck rect { fill: var(--c); stroke: #fff; stroke-width: .8; }
.map .mtruck .w { fill: #1b2132; stroke: #fff; stroke-width: .5; }
:root[data-theme="dark"] .map .mtruck rect { stroke: #0d1220; }

/* ================= previzualizare proiect la trecerea cu mouse-ul ================= */
.pv-card { position: fixed; z-index: 70; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; opacity: 0; transform: translateY(4px) scale(.98); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.pv-card.on { opacity: 1; transform: none; }
.pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pv-head b { color: var(--navy); }
.pv-park { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 2px; padding: 8px 6px; border-radius: 10px; background: linear-gradient(180deg, #e6f2fb 0%, #f4f8fb 100%); max-height: 260px; overflow: hidden; }
.pv-t .tb-svg { width: 100%; height: auto; display: block; }
.pv-t .tb-ground { display: none; }
.pv-park .tb-part.st-neplanificat, .pv-park .tb-part.tb-none { fill: #d9e0ea; stroke: none; }
.pv-foot { margin-top: 6px; text-align: right; }
:root[data-theme="dark"] .pv-park { background: linear-gradient(180deg, #15223a 0%, #161d31 100%); }
:root[data-theme="dark"] .pv-park .tb-part.st-neplanificat, :root[data-theme="dark"] .pv-park .tb-part.tb-none { fill: #34405f; }

/* ---------- Azi: etape Port → Pe drum → Site ---------- */
.zst-flow { display: flex; align-items: stretch; gap: 6px; margin: 0 0 16px; }
.zst-step { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; font: inherit; color: var(--ink); }
.zst-step:hover { border-color: var(--blue); }
.zst-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.zst-step.zero { opacity: .5; cursor: default; box-shadow: none; }
.zst-step .zst-ic { grid-row: 1 / 3; }
.zst-n { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.05; }
.zst-l { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zst-arrow { align-self: center; color: var(--muted); font-size: 16px; }
.zst-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(73, 180, 230, .14); color: var(--navy); flex: none; }
.zst-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-port .zst-ic, .zst-step[data-zst="port"] .zst-ic { background: rgba(36, 46, 97, .1); }
.st-drum .zst-ic, .zst-step[data-zst="drum"] .zst-ic { background: rgba(254, 192, 6, .22); }
.st-site .zst-ic, .zst-step[data-zst="site"] .zst-ic { background: rgba(63, 182, 123, .18); }
.zi-stage { margin: 0 0 22px; scroll-margin-top: 120px; }
.zst-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 17px; margin: 0 2px 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.zst-h .zst-c { font-size: 13px; font-weight: 700; color: var(--navy); background: rgba(36, 46, 97, .07); border-radius: 999px; padding: 2px 9px; }
.zst-h .zst-sub { flex-basis: 100%; font-size: 12.5px; font-weight: 500; padding-left: 44px; margin-top: -4px; }
.zi-stage .zi-group { margin: 0 0 14px; }
.zi-stage .zi-gh { font-size: 14px; margin: 0 2px 8px; }
.z2 { display: flex; align-items: center; gap: 7px; }
.z2 .ci { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
@media (max-width: 760px) {
  .zst-flow { gap: 4px; }
  .zst-step { padding: 8px; column-gap: 6px; grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .zst-step .zst-ic { grid-row: auto; width: 28px; height: 28px; }
  .zst-step .zst-ic svg { width: 17px; height: 17px; }
  .zst-n { font-size: 19px; }
  .zst-l { font-size: 11.5px; }
  .zst-arrow { font-size: 13px; }
}
@media print { .zst-flow { display: none; } .zi-stage { break-inside: auto; } }
:root[data-theme="dark"] .zst-ic { color: #dfe6ff; }
:root[data-theme="dark"] .z2 .ci { stroke: #dfe6ff; }
:root[data-theme="dark"] .zst-h .zst-c { color: #dfe6ff; background: rgba(255, 255, 255, .08); }

/* ---------- Azi: marcaj discret, legendă, compact, rezumat componente, titluri fixe ---------- */
.zcard[style*="--mk"] { box-shadow: inset 0 3px 0 var(--mk), var(--shadow); }
.zst-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -6px 2px 14px; }
.zst-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; }
.zst-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.zst-legend b { color: var(--ink-2); font-weight: 600; }
.zst-view button { font-size: 12.5px; }
.zst-comp { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: -2px 2px 12px; }
.zc { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px 2px 6px; }
.zc b { color: var(--navy); }
.zc .ci { width: 15px; height: 15px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zst-h { position: sticky; top: var(--top-h, 0px); z-index: 6; background: var(--bg); padding-top: 8px; }
/* rânduri compacte */
.zi-stage.compact .zi-cards { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 6px; }
.zrow { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pc, var(--line-2)); border-radius: 10px; min-width: 0; }
.zrow[style*="--mk"] { box-shadow: inset -3px 0 0 var(--mk); }
.zrow .zmain { flex: 1; min-width: 0; padding: 7px 10px; }
.zr1 { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; }
.zr1 .ci { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.zr-cap { color: var(--navy); flex: none; }
.zr-what { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zr-what .arrow { color: var(--muted); font-weight: 400; }
.zr1 .stag { flex: none; }
.zr-mk { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.zr-pz { flex: none; font-size: 10.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 0 4px; }
.zr2 { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 24px; margin-top: 1px; }
.zr-obs { color: var(--ink-2); }
.zr-call { flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-right: 6px; border-radius: 10px; background: #1f7a45; color: #fff; }
.zr-call svg { width: 18px; height: 18px; }
.zr-call:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) { .zi-stage.compact .zi-cards { grid-template-columns: 1fr; } }
/* pagina de proiect: azi pe etape */
.pg-stages .pc-h { flex-wrap: wrap; gap: 4px 12px; }
.pg-stages .pc-h .link-btn { margin-left: auto; }
.pgs-flow { display: flex; align-items: stretch; gap: 8px; }
.pgs-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.pgs-step:hover { border-color: var(--blue); }
.pgs-step.zero { opacity: .5; cursor: default; }
.pgs-top { display: flex; align-items: center; gap: 8px; }
.pgs-step .zst-comp { margin: 0; }
.pgs-step .zc { background: var(--surface); }
.pgs-step.st-port .zst-ic { background: rgba(36, 46, 97, .1); }
.pgs-step.st-drum .zst-ic { background: rgba(254, 192, 6, .22); }
.pgs-step.st-site .zst-ic { background: rgba(63, 182, 123, .18); }
@media (max-width: 760px) { .pgs-flow { flex-direction: column; } .pgs-flow .zst-arrow { display: none; } }
@media print { .zst-bar { display: none; } .zst-h { position: static; } }
:root[data-theme="dark"] .zc b, :root[data-theme="dark"] .zr-cap { color: #dfe6ff; }
:root[data-theme="dark"] .zc .ci, :root[data-theme="dark"] .zr1 .ci { stroke: #dfe6ff; }

/* ---------- cifre de aceeași lățime: coloanele de numere se aliniază, iar numerele animate nu „tremură” ---------- */
.num, td.num, th.num, .pk-val, .pgk-v, .zst-n, .kv dd, .dims-kpis b, .rp-table td, [data-count] { font-variant-numeric: tabular-nums; }
h1, h2, .pk-val, .pgk-v, .zst-n { letter-spacing: -.01em; }

/* ---------- capul paginii de proiect cu fotografie ---------- */
.pg-head.photo { position: relative; overflow: hidden; color: #fff; border: 0; border-top: 5px solid var(--pc); min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(100deg, rgba(20, 27, 64, .94) 0%, rgba(36, 46, 97, .82) 38%, rgba(36, 46, 97, .35) 72%, rgba(36, 46, 97, .12) 100%), var(--hero) center 55% / cover no-repeat, var(--brand); }
.pg-head.photo .pg-back { color: #fff; text-decoration-color: var(--yellow); align-self: flex-start; margin-bottom: auto; }
.pg-head.photo .ph-kicker { color: var(--yellow); }
.pg-head.photo .pg-title h2 { color: #fff; font-size: 30px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pg-head.photo .pg-sub { color: rgba(255, 255, 255, .78); }
.pg-head.photo .pg-title h2 .pdot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.pg-head.photo .btn:not(.primary) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); }
.pg-head.photo .btn:not(.primary):hover { background: rgba(255, 255, 255, .24); }
.pg-head.photo .btn.primary { background: var(--yellow); border-color: var(--yellow); color: #1b2132; }
.pg-head.photo .seg { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.pg-head.photo .seg button { color: #fff; }
.pg-head.photo .seg button.on { background: #fff; color: var(--navy); }
@media (max-width: 760px) { .pg-head.photo { min-height: 230px; } .pg-head.photo .pg-title h2 { font-size: 24px; } }
@media print { .pg-head.photo { background: var(--surface) !important; color: var(--ink); min-height: 0; } }

/* ================= panoul admin pe telefon =================
   site-ul ascunde pe telefon bara de taburi (are bara de jos); panoul admin nu are bară de jos, deci taburile rămân sus */
@media (max-width: 760px) {
  body.admin { padding-bottom: 24px; }
  body.admin .top { position: sticky; top: 0; z-index: 30; }
  body.admin .top-inner { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  body.admin .logo { height: 24px; }
  body.admin .brand { gap: 8px; flex: 1 1 auto; }
  body.admin .brand-text { padding-left: 8px; }
  body.admin .brand-text h1 { font-size: 0; white-space: nowrap; } /* pe telefon titlul scurt „Admin” */
  body.admin .brand-text h1::after { content: "Admin"; font-size: 15px; }
  body.admin .top-actions { width: auto; flex: none; display: flex; gap: 6px; }
  body.admin .top-actions .btn { padding: 6px 10px; font-size: 12.5px; }
  body.admin .top-actions .btn.primary { flex: none; }
  body.admin .tabs-bar { display: block; }
  body.admin .tabs { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 0 6px; }
  body.admin .tabs button { flex: none; padding: 10px 11px 8px; font-size: 13px; scroll-snap-align: start; }
  body.admin .syncbar-inner .sync-item:last-child { display: none; }
  body.admin .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 8px 0 0; padding: 0; }
  body.admin .kpi { flex: initial; min-width: 0; }
  body.admin .kpi .val { font-size: 21px; }
  body.admin .kpi .extra { white-space: normal; }
  body.admin .card-head { padding: 12px 12px 8px; }
  body.admin .card-head.row .adm-actions { width: 100%; }
  body.admin .card-head.row .adm-actions .btn { flex: 1 1 auto; justify-content: center; }
  body.admin table.data { font-size: 12.5px; }
  body.admin table.data th, body.admin table.data td { padding: 8px 10px; }
  body.admin .adm-kv { grid-template-columns: 110px 1fr; padding: 10px 12px 12px; }
  body.admin .adm-kv dd { min-width: 0; overflow-wrap: anywhere; }
  body.admin .adm-form { padding: 10px 12px 12px; }
  body.admin .adm-form label { flex-basis: 100%; }
  body.admin .adm-form .btn { flex: 1 1 auto; justify-content: center; }
  body.admin .av-text { font-size: 12px; }
  body.admin .banner { margin-left: 0; margin-right: 0; }
  body.admin #toast { position: sticky; top: 92px; z-index: 29; }
}

/* subtitlu mic sub capul de coloana (ex. componente descarcate) */
.th-sub { font-weight: 400; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap; }

/* ---------- reluarea proiectului (schema parcului, zi cu zi) ---------- */
.park-card .pc-h { flex-wrap: wrap; gap: 6px 12px; }
.park-card .rp-btn { margin-left: auto; font-weight: 700; }
.replay { margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-date { font-size: 18px; font-weight: 800; color: var(--navy); }
.rp-nums b { color: var(--ink); }
.rp-ctl { display: flex; gap: 8px; }
.rp-ctl [data-rpplay] { min-width: 46px; justify-content: center; }
.rp-range { width: 100%; margin: 12px 0 2px; accent-color: var(--navy); }
.rp-ends { display: flex; justify-content: space-between; }
.park-card.replaying .park .pk-t { cursor: default; }
.pk-t.just { animation: rpJust .9s ease-out; border-radius: 10px; }
@keyframes rpJust { 0% { background: rgba(254, 192, 6, .55); transform: scale(1.12); } 100% { background: transparent; transform: scale(1); } }
@media (max-width: 760px) { .rp-ctl { width: 100%; } .rp-ctl .btn { flex: 1; justify-content: center; } .park-card .rp-btn { margin-left: 0; } }
@media print { .rp-btn, .replay { display: none !important; } }

/* ---------- cerul după ora reală (Sinteză): stele noaptea, strălucirea soarelui la răsărit / apus ---------- */
.pano-hero.photo > :not(.sky-stars):not(.sky-glow):not(.sky-wind) { position: relative; z-index: 1; }
.sky-stars, .sky-glow { position: absolute; inset: 0; pointer-events: none; }
.sky-stars { opacity: var(--stars, 0); transition: opacity 1.2s ease;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 31% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 41%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 47% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 73%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 63% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 69% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 83% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 89% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 16% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 38%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 72% 66%, #fff 50%, transparent 51%);
  animation: skyTwinkle 5s ease-in-out infinite alternate; }
@keyframes skyTwinkle { from { filter: brightness(.75); } to { filter: brightness(1.25); } }
.sky-glow { background: radial-gradient(420px 260px at 86% var(--glow-y, 80%), var(--glow, transparent), transparent 70%); mix-blend-mode: screen; }
.pano-hero[data-sky="night"] .pk, .pano-hero[data-sky="blue"] .pk { background: rgba(8, 12, 34, .5); }
.ph-sun { margin: 2px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
@media (prefers-reduced-motion: reduce) { .sky-stars { animation: none; } }
@media print { .sky-stars, .sky-glow, .ph-sun { display: none; } }

/* ---------- vânt pe ecran (Sinteză) ---------- */
.sky-wind { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pano-hero.photo > canvas.sky-wind { position: absolute; top: 0; left: 0; }
@media print { .sky-wind { display: none; } }

/* ---------- turbinele se asamblează la prima deschidere a paginii de proiect ---------- */
.park.assemble .tb-part { animation: tbIn .42s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--t, 0) * 22ms + var(--i, 0) * 55ms); }
.park.assemble .pk-t b, .park.assemble .pk-t span { animation: tbFade .4s ease both; animation-delay: calc(var(--t, 0) * 22ms + 500ms); }
@keyframes tbIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes tbFade { from { opacity: 0; } }

/* ---------- harta noaptea, odată cu cerul de pe Sinteză ---------- */
.pano-map .map, .pano-map .map * { transition: fill .8s ease, stroke .8s ease; }
.pano-map.night { --map-sea-1: #0d1f38; --map-sea-2: #11294a; }
.pano-map.night .map .land { fill: #141a2e; }
.pano-map.night .map .sea { stroke: #1f4166; }
.pano-map.night .map .river { stroke: #2e6a99; }
.pano-map.night .map .border { stroke: #39426a; }
.pano-map.night .map .country { fill: #4f5884; }
.pano-map.night .map .sea-name, .pano-map.night .map .river-name { fill: #5f95c4; }
.pano-map.night .map .city { fill: #ffd27a; filter: drop-shadow(0 0 3px rgba(255, 196, 90, .9)); }
.pano-map.night .map .c-name { fill: #c9b98a; }
.pano-map.night .map .route { opacity: .55; filter: drop-shadow(0 0 2px var(--c)); }
.pano-map.night .map .route.on { opacity: 1; filter: drop-shadow(0 0 4px var(--c)); }
.pano-map.night .map .site .dot { stroke: #141a2e; filter: drop-shadow(0 0 5px var(--c)); }
.pano-map.night .map .s-name { fill: #eef1fb; stroke: #141a2e; }
.pano-map.night .map .s-sub { fill: #b9c0dc; stroke: #141a2e; }
.pano-map.night .map .port rect { fill: #fec006; stroke: #141a2e; filter: drop-shadow(0 0 4px rgba(254, 192, 6, .8)); }
.park.pre-assemble .tb-part, .park.pre-assemble .pk-t b, .park.pre-assemble .pk-t span { opacity: 0; } /* turbinele așteaptă să ajungă pe ecran */
@media print { .park.pre-assemble .tb-part, .park.pre-assemble .pk-t b, .park.pre-assemble .pk-t span { opacity: 1; } }

/* Atenție: componentele din spatele fiecărui semnal, clicabile → camionul în Listă / fișa turbinei */
.rk-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-its { display: flex; flex-wrap: wrap; gap: 5px; }
.rk-it { font: inherit; font-size: 12.5px; color: inherit; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 3px 10px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.rk-it:hover { background: #fff; border-color: currentColor; transform: translateY(-1px); }
.rk-it:focus-visible { outline: 2px solid var(--accent, #3b5bdb); outline-offset: 2px; }
.rk-pl { font-variant-numeric: tabular-nums; font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.rk-age { opacity: .7; margin-left: 2px; }
:root[data-theme="dark"] .rk-it { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .rk-it:hover { background: rgba(255,255,255,.14); }
@media (max-width: 600px) { .rk-it { width: 100%; border-radius: 10px; } }

/* Sărbătorire: turbină completă / prag de proiect — confetti + card jos */
.cele-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.cele { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; width: min(460px, calc(100vw - 32px));
  background: var(--card, #fff); color: var(--ink, #1b2240); border-radius: 16px; box-shadow: 0 18px 50px rgba(20,30,70,.28), 0 0 0 1px rgba(0,0,0,.05);
  padding: 14px 14px 10px; animation: celeIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.cele.out { animation: celeOut .35s ease-in both; }
@keyframes celeIn { from { opacity: 0; transform: translate(-50%, 40px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes celeOut { to { opacity: 0; transform: translate(-50%, 30px) scale(.96); } }
.cele-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.cele-x { border: 0; background: transparent; color: inherit; opacity: .55; font-size: 15px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.cele-x:hover { opacity: 1; background: rgba(0,0,0,.06); }
.cele-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.cele-it { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; font-size: 13.5px; color: inherit; cursor: pointer;
  background: var(--ok-soft, #e7f7ee); border: 0; border-radius: 10px; padding: 8px 10px; transition: transform .15s, filter .15s; }
.cele-it.ms { background: linear-gradient(90deg, #fff4d6, #ffe9b8); }
.cele-it:hover { transform: translateY(-1px); filter: brightness(.97); }
.cele-ic { font-size: 18px; line-height: 1.1; }
:root[data-theme="dark"] .cele { background: #151c33; color: #e8ecf8; box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="dark"] .cele-it { background: rgba(34,197,94,.14); }
:root[data-theme="dark"] .cele-it.ms { background: linear-gradient(90deg, rgba(245,158,11,.22), rgba(245,158,11,.12)); }
@media print { .cele, .cele-fx { display: none !important; } }

/* Atenție: casetă retractabilă */
.rk-toggle { width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rk-toggle:focus-visible { outline: 2px solid var(--accent, #3b5bdb); outline-offset: 4px; border-radius: 8px; }
.rk-side { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.rk-chev { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(36,46,97,.07); color: var(--navy); font-size: 13px; transition: transform .25s ease, background .15s; }
.rk-toggle:hover .rk-chev { background: rgba(36,46,97,.14); }
.risk-card.closed .rk-chev { transform: rotate(-90deg); }
.rk-peek { display: none; font-weight: 600; }
.risk-card.closed .rk-peek { display: inline; }
.risk-card.closed .rk-sub { display: none; }
.rk-count.med { background: #e2a400; }
.rk-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.rk-inner { overflow: hidden; min-height: 0; }
.risk-card.closed .rk-wrap { grid-template-rows: 0fr; }
.risk-card.closed .pc-h { margin-bottom: 0; }
.risk-card .pc-h { transition: margin .3s ease; }
:root[data-theme="dark"] .rk-chev { background: rgba(255,255,255,.08); color: #dbe2f5; }
@media print { .risk-card.closed .rk-wrap { grid-template-rows: 1fr; } .rk-chev { display: none; } }

/* Săptămâna: componente încărcate / livrate (din rapoartele zilnice) */
.wk-comp { margin-bottom: 14px; }
.wkc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wkc-k { border-radius: 12px; padding: 12px 14px; background: var(--bg-soft, #f4f6fb); border-left: 4px solid #9aa6c7; }
.wkc-k.ld { border-left-color: #3b82f6; }
.wkc-k.dv { border-left-color: #16a34a; background: var(--ok-soft, #e9f8ef); }
.wkc-k.sb { border-left-color: #86d6a4; }
.wkc-k.op { border-left-color: #e2a400; }
.wkc-v { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wkc-l { font-weight: 700; font-size: 13px; margin-top: 2px; }
.wkc-s { font-size: 12px; color: var(--muted, #6b7390); margin-top: 3px; }
.wkc-t { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.wkc-t th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted, #6b7390); padding: 6px 8px; border-bottom: 1px solid var(--line, #e3e7f0); }
.wkc-t td { padding: 7px 8px; border-bottom: 1px solid var(--line, #eef1f6); font-variant-numeric: tabular-nums; }
.wkc-t td .pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.wkc-d { margin-top: 10px; }
.wkc-d > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--navy); }
.wkc-gs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 10px; }
.wkc-g h4 { margin: 0 0 6px; font-size: 13px; }
.wkc-g ul { margin: 0; padding-left: 18px; font-size: 12.5px; display: grid; gap: 3px; }
:root[data-theme="dark"] .wkc-k { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .wkc-k.dv { background: rgba(34,197,94,.10); }
:root[data-theme="dark"] .wkc-v, :root[data-theme="dark"] .wkc-d > summary { color: #e8ecf8; }
@media (max-width: 1100px) { .wkc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wkc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wkc-v { font-size: 24px; } .wkc-gs { grid-template-columns: 1fr; } }

/* Fundal: parc eolian la orizont, fix jos, în spatele conținutului (bg-scene.js) */
.bg-scene { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(160px, 36vh, 380px); z-index: -1; pointer-events: none; }
.bg-scene svg { width: 100%; height: 100%; display: block; }
.bgs-far { fill: rgba(36, 46, 97, .06); }
.bgs-near { fill: rgba(36, 46, 97, .10); }
.bgs-far .bgs-t { fill: rgba(36, 46, 97, .13); }
.bgs-near .bgs-t { fill: rgba(36, 46, 97, .19); }
.bgs-rot { animation: bgsSpin 10s linear infinite; }
@keyframes bgsSpin { to { transform: rotate(360deg); } }
.bgs-light { display: none; }
:root[data-theme="dark"] .bgs-far { fill: rgba(140, 160, 230, .05); }
:root[data-theme="dark"] .bgs-near { fill: rgba(140, 160, 230, .08); }
:root[data-theme="dark"] .bgs-far .bgs-t { fill: rgba(160, 180, 240, .08); }
:root[data-theme="dark"] .bgs-near .bgs-t { fill: rgba(160, 180, 240, .15); }
:root[data-theme="dark"] .bgs-light { display: inline; fill: #ff3b30; animation: bgsBlink 2s steps(1) infinite; filter: drop-shadow(0 0 3px rgba(255, 59, 48, .9)); }
:root[data-theme="dark"] .bgs-far .bgs-light { opacity: .55; }
@keyframes bgsBlink { 0% { fill-opacity: 1; } 50% { fill-opacity: .08; } }
@media (prefers-reduced-motion: reduce) { .bgs-rot, .bgs-light { animation: none !important; } }
@media print { .bg-scene { display: none !important; } }

/* ===== Centrul de comandă (cc.js) ===== */
html.cc-open, html.cc-open body { overflow: hidden; }
.cc { position: fixed; inset: 0; z-index: 10050; background: #050a14; color: #e8eefc; font-family: "Inter", system-ui, sans-serif; overflow: hidden; }
.cc-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-lbls { position: absolute; inset: 0; pointer-events: none; }
.cc-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; color: #c9d6f2; text-shadow: 0 1px 6px rgba(0,0,0,.9); will-change: transform; }
.cc-lbl.site { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 10px; border-radius: 10px; background: rgba(8,16,34,.72); border: 1px solid rgba(120,160,255,.25); backdrop-filter: blur(4px); }
.cc-lbl.site b { font-size: 13px; color: #fff; border-bottom: 2px solid var(--c); padding-bottom: 1px; }
.cc-lbl.site span { font-size: 11px; color: #9fb4dc; }
.cc-lbl.port { font-weight: 700; color: #fec006; }
.cc-lbl.city { font-size: 10.5px; color: #7f92b8; }
.cc-lbl.place { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(254,192,6,.14); border: 1px solid rgba(254,192,6,.45); color: #ffe39a; }
.cc-lbl.place b { color: #fff; margin-left: 3px; }
.cc-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 24px; padding: 18px 26px; background: linear-gradient(180deg, rgba(5,10,20,.92), rgba(5,10,20,0)); }
.cc-brand { display: flex; align-items: center; gap: 12px; }
.cc-brand img { height: 34px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.cc-brand b { display: block; font-size: 22px; letter-spacing: -.3px; color: #fff; }
.cc-brand b span { color: #49b4e6; }
.cc-brand small { color: #8ea3cc; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.cc-kpis { display: flex; gap: 12px; margin-left: auto; }
.cc-k { min-width: 120px; padding: 8px 14px; border-radius: 12px; background: rgba(20,32,62,.6); border: 1px solid rgba(120,160,255,.18); }
.cc-k b { display: block; font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cc-k b small { font-size: 14px; color: #8ea3cc; font-weight: 600; }
.cc-k span { font-size: 11px; color: #8ea3cc; }
.cc-clock { text-align: right; }
.cc-clock b { display: block; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.cc-clock small { color: #8ea3cc; font-size: 12px; text-transform: capitalize; }
.cc-card { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); width: 270px; padding: 18px 20px; border-radius: 18px; background: rgba(8,16,34,.78); border: 1px solid rgba(120,160,255,.22); backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cc-card.in { animation: ccCard .7s cubic-bezier(.2,1,.3,1) both; }
@keyframes ccCard { from { opacity: 0; transform: translate(-30px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.cc-ck { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #fff; border-left: 4px solid var(--c); padding-left: 10px; }
.cc-ring { --p: 0; width: 120px; height: 120px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #0b1530 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.cc-ring b { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.cc-ring small { color: #8ea3cc; font-size: 11px; }
.cc-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.cc-card dt { color: #8ea3cc; } .cc-card dd { margin: 0; text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cc-bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: linear-gradient(0deg, rgba(5,10,20,.95), rgba(5,10,20,0)); }
.cc-ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.cc-tk { display: inline-flex; gap: 40px; white-space: nowrap; animation: ccTick 60s linear infinite; font-size: 14px; color: #c9d6f2; }
.cc-tk b { color: #fff; }
@keyframes ccTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cc-ctl { display: flex; gap: 6px; }
.cc-ctl button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(120,160,255,.25); background: rgba(20,32,62,.7); color: #fff; font-size: 15px; cursor: pointer; }
.cc-ctl button:hover { background: rgba(60,90,160,.6); }
.cc-note { position: absolute; right: 22px; bottom: 66px; margin: 0; font-size: 10.5px; color: #5d6f96; }
@media (max-width: 900px) {
  .cc-top { flex-wrap: wrap; gap: 10px; padding: 12px 14px; } .cc-kpis { order: 3; width: 100%; margin: 0; overflow-x: auto; } .cc-k { min-width: 96px; } .cc-k b { font-size: 20px; }
  .cc-clock b { font-size: 24px; } .cc-card { top: auto; bottom: 74px; left: 12px; right: 12px; width: auto; transform: none; padding: 12px 14px; }
  .cc-card.in { animation: none; } .cc-ring { display: none; } .cc-note { display: none; }
}

/* butonul din antet */
.cc-btn svg { width: 19px; height: 19px; }

/* Proiecte finalizate (Sinteză + Proiecte) */
.fin-card .pc-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.fin-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ok-soft, #e7f7ee); color: var(--ok, #1a7a45); font-size: 12px; font-weight: 800; }
.fin-list { display: grid; gap: 8px; }
.fin-row { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: inherit;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line, #e3e6ec); background: var(--surface-2, #f7f8fa); cursor: pointer; transition: border-color .15s, transform .15s; }
.fin-row:hover { border-color: var(--ok, #1a7a45); transform: translateY(-1px); }
.fin-ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok, #1a7a45); color: #fff; font-weight: 800; }
.fin-name b { display: block; font-size: 14.5px; color: var(--navy); }
.fin-name small, .fin-num small { color: var(--muted, #6b7390); font-size: 12px; }
.fin-num { text-align: right; } .fin-num b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--navy); }
.fin-go { color: var(--muted, #6b7390); font-size: 18px; }
#proj-list .fin-card { margin-top: 18px; }
:root[data-theme="dark"] .fin-row { background: rgba(255,255,255,.03); }
:root[data-theme="dark"] .fin-name b, :root[data-theme="dark"] .fin-num b { color: #e8ecf8; }
@media (max-width: 640px) { .fin-row { grid-template-columns: auto 1fr auto; gap: 10px; } .fin-num:nth-of-type(4), .fin-go { display: none; } }

/* Proiecte finalizate: fișa de închidere (statistici + livrări pe săptămâni) */
.fin-item { border: 1px solid var(--line, #e3e6ec); border-radius: 14px; background: var(--surface-2, #f7f8fa); padding: 4px 4px 12px; }
.fin-item .fin-row { border: 0; background: transparent; }
.fin-item .fin-row:hover { transform: none; }
.fin-item:hover { border-color: var(--ok, #1a7a45); }
.fin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 2px 14px 10px; }
.fin-st { background: var(--surface, #fff); border: 1px solid var(--line, #e3e6ec); border-radius: 10px; padding: 8px 11px; }
.fin-st b { display: block; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.fin-st span { font-size: 11.5px; color: var(--muted, #6b7390); }
.fin-weeks { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin: 0 14px; padding-top: 4px; border-bottom: 1px solid var(--line, #e3e6ec); }
.fin-weeks span { flex: 1; min-width: 3px; height: max(2px, var(--h)); background: color-mix(in srgb, var(--ok, #1a7a45) 55%, transparent); border-radius: 3px 3px 0 0; }
.fin-weeks span.best { background: #fec006; }
.fin-wl { display: flex; justify-content: space-between; margin: 4px 14px 0; font-size: 11px; }
:root[data-theme="dark"] .fin-item { background: rgba(255,255,255,.03); }
:root[data-theme="dark"] .fin-st { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .fin-st b { color: #e8ecf8; }
@media print { .fin-item { break-inside: avoid; } }

/* Prezentarea de portofoliu (PowerPoint RO / EN) */
.pf-bar { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-top .proj-src { margin: 0; }
.pf-btns { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-l { font-size: 12.5px; color: var(--muted, #6b7390); font-weight: 600; }
.pf-btn { font-size: 12.5px; padding: 6px 12px; }

/* Centrul de comandă: drumuri, poduri, proiecte finalizate, fereastra unui camion, control manual */
.cc-cv { cursor: grab; }
.cc-cv:active { cursor: grabbing; }
.cc-lbl.road { font-size: 10.5px; font-weight: 700; color: #aab6d6; padding: 1px 6px; border-radius: 4px; background: rgba(60,75,120,.55); border: 1px solid rgba(170,182,214,.35); }
.cc-lbl.bridge { font-size: 10.5px; color: #9fd8ff; }
.cc-lbl.site.done { background: rgba(30,36,52,.72); border-color: rgba(154,163,184,.35); }
.cc-lbl.site.done b { color: #d6dbe6; }
.cc-pop { position: absolute; right: 22px; top: 120px; width: 300px; padding: 16px 18px; border-radius: 16px; background: rgba(8,16,34,.9); border: 1px solid rgba(120,160,255,.28);
  backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: ccCard .35s cubic-bezier(.2,1,.3,1) both; }
.cc-px { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #8ea3cc; cursor: pointer; font-size: 14px; }
.cc-px:hover { background: rgba(255,255,255,.08); color: #fff; }
.cc-pt { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }
.cc-pt small { font-size: 12px; color: #8ea3cc; font-weight: 600; }
.cc-pp { margin: 2px 0 10px; color: #fec006; font-weight: 700; font-size: 13px; }
.cc-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.cc-pop dt { color: #8ea3cc; } .cc-pop dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.cc-pmk { margin: 10px 0 0; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.cc-pmk.galben { background: rgba(255,211,77,.15); color: #ffd34d; }
.cc-pmk.rosu { background: rgba(255,77,77,.15); color: #ff8a8a; }
.cc-hint { position: absolute; left: 50%; top: 108px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(254,192,6,.15);
  border: 1px solid rgba(254,192,6,.4); color: #ffe39a; font-size: 12.5px; font-weight: 600; pointer-events: none; }
@media (max-width: 900px) { .cc-pop { left: 12px; right: 12px; width: auto; top: auto; bottom: 74px; } .cc-hint { top: auto; bottom: 130px; } }

/* Atenție: notă informativă (ex. DELIVERED fără dată de descărcare în raport) */
.risk.rnote { background: #eef3fb; color: #2b3a67; }
.risk.rnote .rk-dot { background: #7d93c6; }
:root[data-theme="dark"] .risk.rnote { background: rgba(125,147,198,.12); color: #c9d6f2; }

/* „livrat, fără dată de descărcare” (STATUS DELIVERED în raport, dar fără dată) — verde deschis, hașurat */
:root { --st-livrat_nd: #7cc79c; }
.tb-part.st-livrat_nd { fill: var(--st-livrat_nd); stroke: var(--st-livrat); stroke-width: 1.2; stroke-dasharray: 3 2; }
.tb-key.st-livrat_nd, .wcell.st-livrat_nd { background: repeating-linear-gradient(135deg, var(--st-livrat_nd) 0 3px, #b9e4c9 3px 6px); border: 1px dashed var(--st-livrat); }
.st-chip.st-livrat_nd { background: repeating-linear-gradient(135deg, #e3f5ea 0 6px, #f2faf5 6px 12px); color: var(--ok); border: 1px dashed var(--ok); }
.nd-plus { font-style: normal; font-weight: 700; color: #3f9a68; }
.park-sum .nd-sum b { color: #3f9a68; }
:root[data-theme="dark"] .tb-key.st-livrat_nd, :root[data-theme="dark"] .wcell.st-livrat_nd { background: repeating-linear-gradient(135deg, #3f8f63 0 3px, #2a5f43 3px 6px); }
:root[data-theme="dark"] .st-chip.st-livrat_nd { background: rgba(124,199,156,.12); color: #8fdcb0; }

/* Timp mediu pe tip de componentă (pagina proiectului) */
.ct-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct-table th, .ct-table td { padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e6ec); text-align: left; white-space: nowrap; }
.ct-table thead th { font-size: 12px; color: var(--muted, #6b7390); font-weight: 700; }
.ct-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-table tbody th { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ct-table tbody th .ci { width: 18px; height: 18px; flex: none; }
.ct-table .ct-bar { width: 22%; min-width: 90px; }
.ct-table .ct-bar span { display: block; height: 8px; border-radius: 4px; background: var(--navy, #242e61); opacity: .75; }
.ct-table tr.ct-all th, .ct-table tr.ct-all td { background: var(--surface-2, #f7f8fa); font-weight: 700; border-bottom: 0; }
:root[data-theme="dark"] .ct-table .ct-bar span { background: #7f9be0; }

/* Bara proiectului în antet (apare la derulare pe pagina unui proiect) */
.pg-bar { display: none; position: fixed; left: 0; right: 0; top: var(--top-h, 0px); z-index: 29; background: var(--surface, #fff); border-top: 1px solid var(--line, #e3e6ec); border-bottom: 1px solid var(--line, #e3e6ec); box-shadow: 0 6px 16px rgba(20,28,60,.08); }
.pg-bar.on { display: block; }
@keyframes pgbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pgb-in { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.pgb-back, .pgb-up { border: 1px solid var(--line, #e3e6ec); background: var(--surface-2, #f7f8fa); color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pgb-back:hover, .pgb-up:hover { border-color: var(--navy); }
.pgb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pgb-name { font-size: 15px; color: var(--navy); white-space: nowrap; }
.pgb-meta { font-size: 12.5px; color: var(--muted, #6b7390); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgb-bar { flex: 1; min-width: 60px; max-width: 260px; height: 6px; border-radius: 3px; background: var(--line, #e3e6ec); overflow: hidden; margin-left: auto; }
.pgb-bar span { display: block; height: 100%; background: var(--st-livrat, #1a7a45); }
:root[data-theme="dark"] .pg-bar { background: #111729; border-top-color: var(--line); }
:root[data-theme="dark"] .pgb-name { color: #e8ecf8; }
@media (max-width: 760px) {
  /* pe telefon antetul nu e fix: bara se lipește singură de marginea de sus */
  .pgb-in { gap: 8px; min-height: 40px; }
  .pgb-bar, .pgb-up { display: none; }
  .pgb-meta { font-size: 11.5px; }
}

/* „Filmul anului” (panorama.js → playFilm) */
.film-btn { margin-left: auto; font-size: 12.5px; padding: 6px 12px; background: var(--navy, #242e61); color: #fff; border-color: var(--navy, #242e61); }
.film-btn:hover { filter: brightness(1.15); }
.film { position: fixed; inset: 0; z-index: 10050; background: #070d1c; color: #e8eefc; font-family: "Inter", system-ui, sans-serif; overflow: hidden; }
.film-cv { position: absolute; inset: 0; }
.film-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 28px; pointer-events: none; }
.film-k { margin: 0; font-size: 12px; letter-spacing: 3px; font-weight: 700; color: #fec006; }
.film-date { margin: 4px 0 0; font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; text-transform: capitalize; }
.film-kpis { display: flex; gap: 12px; }
.film-kpis div { min-width: 120px; padding: 10px 14px; border-radius: 14px; background: rgba(20,32,62,.7); border: 1px solid rgba(120,160,255,.2); }
.film-kpis b { display: block; font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.film-kpis span { font-size: 11.5px; color: #8ea3cc; }
.film-legend { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 20px; }
.fl { display: flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(20,32,62,.6); border: 1px solid rgba(120,160,255,.15); font-size: 12.5px; opacity: .45; transition: opacity .3s, transform .2s; }
.fl.on { opacity: 1; }
.fl.pop { transform: scale(1.12); border-color: var(--c); }
.fl i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.fl b { color: #fff; font-variant-numeric: tabular-nums; }
.film-ctl { position: absolute; right: 20px; bottom: 14px; display: flex; gap: 6px; }
.film-ctl button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(120,160,255,.25); background: rgba(20,32,62,.75); color: #fff; font-size: 15px; cursor: pointer; }
.film-note { position: absolute; left: 20px; bottom: 22px; margin: 0; font-size: 11px; color: #5d6f96; max-width: 60%; }
.film.done .film-date::after { content: " ✓"; color: #3fb67b; }
@media (max-width: 760px) { .film-top { flex-direction: column; padding: 14px; } .film-kpis div { min-width: 0; flex: 1; } .film-legend { bottom: 60px; } .film-note { display: none; } }
.ct-pdf { display: inline-flex; gap: 6px; margin-left: auto; }
.ct-pdf .btn { font-size: 12px; padding: 5px 10px; }

/* ---------- conturi personale: pașii de autentificare și tab-ul „Utilizatori” din panou ---------- */
.login-qr { justify-self: center; background: #fff; border-radius: 12px; padding: 6px; line-height: 0; }
.login-qr svg { width: 200px; height: 200px; }
.login-secret { word-break: break-all; user-select: all; font-size: 12.5px; }
.login a { color: var(--navy); }
.login .login-remember { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.login .login-remember input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--navy); }
.usr-layout { grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.6fr); }
.usr-form { display: grid; gap: 10px; align-items: stretch; }
.usr-form h2 { margin: 0; }
.usr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.usr-form select { font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.usr-days { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.usr-days input { width: 110px; }
.usr-projects { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 12px; }
.usr-projects legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.usr-projects label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.usr-projects[disabled] { opacity: .55; }
.usr-secret { display: grid; gap: 6px; }
.usr-secret code { font-size: 15px; user-select: all; }
@media (max-width: 760px) { .usr-layout { grid-template-columns: 1fr; } }
