/* VOICE work: a calm, dependable building-management tool used daily on a phone
   IDEA the building itself: entrances, floors and doors become the main navigation and the main picture
   PICTURE the building map (every apartment a door tile, coloured by what you are checking); on the public site an illustrated facade
   COLOUR app ground #F3F5F8, white surfaces, ink #0E1726, cobalt #2747D9 leads; amber and red only for problems
   TYPE Onest (display 700, text 400/500): clean, Romanian diacritics and Cyrillic
   LAYOUT laptop: fixed sidebar + content; phone: top bar + bottom tab bar, sheets open full screen */

:root {
  color-scheme: light;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --line: #E1E6EE;
  --line-2: #CFD6E2;
  --ink: #0E1726;
  --ink-2: #3E4A5E;
  --muted: #6B778C;
  --brand: #2747D9;
  --brand-ink: #FFFFFF;
  --brand-soft: #E7ECFE;
  --brand-deep: #1A2F94;
  --ok: #15803D;
  --ok-soft: #DCF3E4;
  --warn: #A15C07;
  --warn-soft: #FDF0D5;
  --bad: #B42318;
  --bad-soft: #FDE4E1;
  --violet: #6D3FD1;
  --violet-soft: #ECE5FB;
  --orange: #C2410C;
  --orange-soft: #FDE7D9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 4px 16px rgba(14, 23, 38, .05);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 248px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0B111C;
    --surface: #131B29;
    --surface-2: #1A2333;
    --line: #243045;
    --line-2: #2F3D56;
    --ink: #EAF0F8;
    --ink-2: #B7C2D4;
    --muted: #8593AA;
    --brand: #7C93FF;
    --brand-ink: #0B111C;
    --brand-soft: #1D2A55;
    --brand-deep: #A9B8FF;
    --ok: #4ADE80;
    --ok-soft: #12321F;
    --warn: #F5B544;
    --warn-soft: #3A2C10;
    --bad: #FF7A6B;
    --bad-soft: #3D1A17;
    --violet: #B69CFF;
    --violet-soft: #2A2047;
    --orange: #FF9F6B;
    --orange-soft: #3B2216;
    --shadow: none;
  }
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); overflow-x: clip; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.4vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.doc-sub { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 28px 16px; font-size: 15px; }
.no-data { color: var(--muted); }
.spacer { flex: 1 1 auto !important; }
.grow { flex: 1 1 100%; }

/* ---------- controls ---------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
input[type="search"] { padding-left: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236B778C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 13px 50%; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); padding: 10px 16px; min-height: 44px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 1px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
.row > .btn, .row > .shrink { flex: 0 0 auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form { display: grid; gap: 14px; }
.stack { display: grid; gap: 12px; }
.msg { font-size: 14px; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 0; }
fieldset[hidden] { display: none; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.list-card { padding: 0; overflow: hidden; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.urgent { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.pin, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.heat-autonoma { background: var(--orange-soft); color: var(--orange); }
.badge.heat-centralizata { background: var(--brand-soft); color: var(--brand); }
.badge.heat-deconectat { background: var(--surface-2); color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; width: 64px; font-size: 16px; }
td.chev { color: var(--muted); font-size: 22px; width: 28px; text-align: right; }
.apt-table tbody tr { cursor: pointer; }
.apt-table tbody tr:hover { background: var(--surface-2); }
.apt-table tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.person { font-weight: 500; }
.person small { color: var(--muted); font-weight: 400; }
.item-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row .actions { display: flex; gap: 6px; flex: none; }
.item-row .t { font-weight: 600; }
.item-row .s { font-size: 14px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 64px rgba(14, 23, 38, .25); }
dialog::backdrop { background: rgba(14, 23, 38, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-body { padding: 22px; display: grid; gap: 16px; }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.dlg-foot .msg { margin-right: auto; }

/* ---------- login ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, var(--brand) 0 38%, var(--bg) 38%); }
.login { width: min(420px, 100%); padding: 28px; }
.login .brand { margin-bottom: 18px; }
.login h1 { font-size: 26px; }

/* ---------- app shell ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.brand-name { font-weight: 700; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

.app { min-height: 100dvh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; z-index: 20; }
.side nav { display: grid; gap: 2px; }
.side .nav-label { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 12px; margin-top: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; text-align: left; width: 100%; }
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.me { font-size: 13px; color: var(--muted); padding: 4px 12px 8px; overflow-wrap: anywhere; }

.main { margin-left: var(--side-w); min-height: 100dvh; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; padding: 14px max(3vw, 16px); max-width: 1320px; margin: 0 auto; }
.top h1 { font-size: 22px; flex: 1 1 auto; }
.top .gsearch { width: min(380px, 40vw); }
.top .brand-mob { display: none; }
.content { padding: 24px max(3vw, 16px) 40px; max-width: 1320px; margin: 0 auto; }
.view { display: grid; gap: 20px; }

.bottom-nav { display: none; }

/* ---------- dashboard ---------- */
.hello { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.hello p { color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
button.stat { font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 16px; display: grid; gap: 4px; }
button.stat:hover { border-color: var(--brand); }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .n small { font-size: 16px; color: var(--muted); font-weight: 500; }
.stat .l { font-size: 14px; color: var(--muted); }
.stat .bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.stat .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.stat.warn .n { color: var(--warn); }
.stat.bad .n { color: var(--bad); }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }

.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--ink-2); padding: 7px 12px; border-radius: 9px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 23, 38, .12); }
.bmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.entrance { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.entrance h4 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; color: var(--ink-2); }
.entrance h4 span { color: var(--muted); font-weight: 500; }
.floors { display: grid; gap: 5px; }
.floor { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: center; }
.floor > b { font-size: 11px; color: var(--muted); font-weight: 600; text-align: right; }
.doors { display: grid; grid-template-columns: repeat(var(--per, auto-fill), minmax(30px, 1fr)); gap: 5px; }
.doors.free { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.door { font: inherit; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; border: 0; border-radius: 7px; height: 34px; cursor: pointer; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.door:hover { outline: 2px solid var(--brand); outline-offset: 1px; }
.door.c-ok { background: var(--ok); color: #fff; box-shadow: none; }
.door.c-part { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.door.c-warn { background: #E9A23B; color: #2B1A00; box-shadow: none; }
.door.c-bad { background: var(--bad); color: #fff; box-shadow: none; }
.door.c-blue { background: var(--brand); color: #fff; box-shadow: none; }
.door.c-orange { background: #EA7A3B; color: #fff; box-shadow: none; }
.door.c-violet { background: var(--violet); color: #fff; box-shadow: none; }
.door.c-pink { background: #D9468F; color: #fff; box-shadow: none; }
.door.c-dark { background: var(--ink-2); color: var(--surface); box-shadow: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.map-note { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.todo { display: grid; }
.todo a, .todo button { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.todo > :last-child { border-bottom: 0; }
.todo .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; }
.todo .ic.bad { background: var(--bad-soft); color: var(--bad); }
.todo .ic.warn { background: var(--warn-soft); color: var(--warn); }
.todo .ic.info { background: var(--brand-soft); color: var(--brand); }
.todo .ic.ok { background: var(--ok-soft); color: var(--ok); }
.todo .tx { flex: 1; }
.todo .tx b { display: block; font-weight: 600; }
.todo .tx small { color: var(--muted); font-size: 13.5px; }
.feed { display: grid; }
.feed-item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ap { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.feed-item .ap small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; line-height: 1; }
.feed-item p { font-size: 14.5px; overflow-wrap: anywhere; }
.feed-item .s { font-size: 13px; color: var(--muted); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- apartments list ---------- */
.toolbar { display: grid; gap: 12px; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tools { align-items: center; gap: 8px; }
.view-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- meters round ---------- */
.round-row td { vertical-align: middle; }
.round-row input { width: 130px; min-height: 40px; padding: 8px 10px; }
.round-row .delta { font-size: 13px; color: var(--muted); }
.round-row.saved { background: var(--ok-soft); }

/* ---------- apartment sheet ---------- */
dialog.sheet { width: min(880px, calc(100vw - 24px)); height: min(920px, calc(100dvh - 32px)); display: none; flex-direction: column; overflow: hidden; }
dialog.sheet[open] { display: flex; }
.sheet .dlg-body { overflow-y: auto; flex: 1 1 auto; align-content: start; background: var(--bg); }
.sheet-head { background: var(--brand); color: #fff; border-bottom: 0; padding: 16px 18px; }
.sheet-head .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.sheet-head .btn:hover { background: rgba(255, 255, 255, .24); }
.sheet-head .btn:disabled { opacity: .35; }
.sheet-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sheet-nav h2 { font-size: 22px; color: #fff; }
.sheet-nav .doc-sub { color: rgba(255, 255, 255, .8); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.sheet-tabs { background: var(--brand); padding: 0 12px; }
.sheet-tabs button { flex: none; font: inherit; font-size: 14.5px; font-weight: 600; border: 0; background: none; color: rgba(255, 255, 255, .75); padding: 12px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.sheet-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
#sheet-form, #sheet-form > section { display: grid; gap: 16px; }
#sheet-form > section[hidden], .dlg-body > section[hidden] { display: none; }
#sheet-form > section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.res-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 12px; background: var(--bg); }
.meter { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; display: grid; gap: 12px; }
.meter.off { opacity: .6; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.meter-head .t { font-weight: 700; }
.meter-now { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.meter-now .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-now .big small { font-size: 15px; color: var(--muted); font-weight: 500; }
.reading-form { align-items: end; gap: 8px; }
.meter details summary { cursor: pointer; color: var(--brand); font-size: 14px; font-weight: 600; }
table.mini { font-size: 14px; margin-top: 8px; }
table.mini th, table.mini td { padding: 7px 8px; }
td.neg { color: var(--bad); }
.meter-actions { justify-content: flex-end; }
.event-form { margin-bottom: 14px; }
.ev-text { white-space: pre-wrap; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .top .brand-mob { display: flex; }
  .top h1 { display: none; }
  .top .gsearch { width: auto; flex: 1 1 auto; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav .nav-item { flex-direction: column; gap: 3px; font-size: 11.5px; padding: 6px 2px; justify-content: center; align-items: center; text-align: center; border-radius: 10px; position: relative; }
  .bottom-nav .nav-item .count { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; padding: 0 5px; font-size: 10px; }
  .content { padding-top: 18px; }
}
@media (max-width: 640px) {
  .stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  button.stat { flex: 0 0 150px; scroll-snap-align: start; padding: 14px; }
  .stat .n { font-size: 24px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none; }
  .card { padding: 16px; }
  th, td { padding: 10px 10px; }
  .item-row { flex-direction: column; align-items: stretch; }
  .tools .spacer { display: none; }
  dialog.sheet { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; margin: 0; }
  dialog:not(.sheet) { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .sheet-nav h2 { font-size: 19px; }
  .meter-now .big { font-size: 26px; }
  .bmap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .entrance { padding: 8px; }
  .floor { grid-template-columns: 14px 1fr; gap: 4px; }
  .doors { gap: 3px; grid-template-columns: repeat(var(--per, auto-fill), minmax(0, 1fr)); }
  .door { height: 30px; font-size: 11px; border-radius: 6px; }
  .round-row input { width: 100px; }
}

/* ---------- public site ---------- */
.pub-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(4vw, 16px); padding-right: max(4vw, 16px); }
.pub-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.pub-nav { display: flex; gap: 4px; margin-left: auto; }
.pub-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.pub-nav a:hover { background: var(--surface-2); color: var(--ink); }
.hero { background: var(--brand); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-top: 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.hero p { color: rgba(255, 255, 255, .85); font-size: 18px; margin-top: 14px; max-width: 34ch; }
.hero-copy { padding-bottom: 48px; }
.hero-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.hero-facts span { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.hero-art { align-self: end; }
.hero-art svg { display: block; width: 100%; height: auto; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -1px; padding-top: 24px; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: grid; gap: 6px; box-shadow: var(--shadow); }
.quick a:hover { border-color: var(--brand); }
.quick .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.quick .qi.red { background: var(--bad-soft); color: var(--bad); }
.quick b { font-weight: 600; }
.quick small { color: var(--muted); font-size: 14px; }
.pub-section { padding: 40px 0 8px; scroll-margin-top: 72px; }
.pub-section h2 { font-size: 26px; margin-bottom: 16px; }
.ann { display: grid; gap: 8px; }
.ann h3 { font-size: 19px; }
.ann .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ann .body { color: var(--ink-2); }
.ann .body p { margin: 0 0 10px; }
.ann .body p:last-child { margin: 0; }
.ann.pinned { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand), var(--shadow); }
.ann.urgent { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad), var(--shadow); }
.doc-group h3 { font-size: 15px; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.doc { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc:first-child { border-top: 0; }
.doc:hover { background: var(--surface-2); }
.doc-icon { flex: none; width: 40px; height: 48px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.doc-title { font-weight: 600; }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.contact { display: grid; gap: 4px; }
.contact .role { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact .name { font-weight: 700; font-size: 18px; }
.contact a.tel { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--brand); }
.contact a { text-decoration: none; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0 40px; margin-top: 48px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .hero-copy { padding-bottom: 8px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-nav { display: none; }
}

@media (max-width: 640px) {
  .round-table thead { display: none; }
  .round-table tbody tr.round-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; padding: 14px; border-bottom: 1px solid var(--line); }
  .round-table td { border: 0; padding: 0; }
  .round-table td.num { width: auto; font-size: 18px; }
  .round-table td:nth-child(4) { grid-column: 2; white-space: normal; }
  .round-table td:nth-child(5) { grid-column: 1 / -1; }
  .round-table .round-row input { width: 100%; }
  .round-table tbody tr:last-child { border-bottom: 0; }
}

/* ---------- CRM modules ---------- */
.side { overflow-y: auto; }
.side nav { gap: 1px; }
.nav-label:first-child { margin-top: 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.view-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.req-list { display: grid; gap: 12px; }
.req { display: grid; gap: 10px; border-left: 4px solid var(--line-2); cursor: pointer; }
.req.st-nou { border-left-color: var(--bad); }
.req.st-in_lucru { border-left-color: #E9A23B; }
.req.st-rezolvat { border-left-color: var(--ok); }
.req-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-top b a { color: inherit; }
.req-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.req-note { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; white-space: pre-wrap; }
.req-photo img { max-height: 180px; border-radius: 12px; display: block; object-fit: cover; }
.req-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.msg-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
#msg-recipients { max-height: 640px; overflow-y: auto; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
button.proj { font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; gap: 10px; }
button.proj:hover { border-color: var(--brand); }
.proj .stat { display: grid; gap: 4px; }

.asm-table select { min-height: 38px; padding: 6px 8px; font-size: 14px; width: auto; }
.asm-table input[type="checkbox"] { width: 22px; height: 22px; }

.sup-cat { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.sup-cat:first-child { margin-top: 0; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sup { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.sup .t { font-weight: 600; }

.fab { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; z-index: 40; width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--brand); color: #fff; font: 600 32px/1 var(--font); box-shadow: 0 10px 28px rgba(39, 71, 217, .4); cursor: pointer; }
.fab:hover { background: var(--brand-deep); }
#view-app.hidden ~ .fab, body:has(#view-app.hidden) .fab { display: none; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-grid button { font: inherit; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px; cursor: pointer; display: grid; gap: 3px; }
.quick-grid button:hover { border-color: var(--brand); background: var(--brand-soft); }
.quick-grid b { font-weight: 600; }
.quick-grid small { color: var(--muted); font-size: 13px; }
.ru-block summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }

@media (max-width: 1000px) { .msg-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 56px; height: 56px; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .sup-grid, .proj-grid { grid-template-columns: 1fr; }
  .asm-table th:nth-child(2), .asm-table td:nth-child(2) { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}

/* print: only the attendance list */
@media print {
  body { background: #fff; }
  .side, .top, .bottom-nav, .fab, .stats, #asm-detail > .card:not(.print-area), #asm-detail > .view-switch, .no-print, body:not(.print-act):not(.print-bud):not(.print-afis):not(.print-letter) [data-view]:not([data-view="adunari"]) { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .print-area { border: 0; box-shadow: none; }
  .asm-table select { border: 0; appearance: none; padding: 0; }
  .asm-table th, .asm-table td { padding: 6px 8px; font-size: 12px; }
  .asm-table tr { break-inside: avoid; }
}

/* public: language switch + request form */
.lang { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin-left: 8px; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 23, 38, .12); }
.req-pub { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.req-pub h2 { margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 820px) {
  .req-pub { grid-template-columns: 1fr; }
  .lang { margin-left: auto; }
}
[hidden] { display: none !important; }

/* ---------- mobile comfort (v2) ---------- */
.top { padding-top: env(safe-area-inset-top, 0px); }
dialog.sheet .sheet-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.q-row { display: flex; gap: 8px; align-items: center; }
.q-row input { flex: 1 1 auto; }
.filters-toggle { display: none; flex: none; gap: 6px; }
.filters-toggle .count { font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.sc-chips { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sc-chips button { font: inherit; font-size: 14px; font-weight: 600; flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.sc-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sc-pick { display: none; }
td.chev { white-space: nowrap; }
.call-btn { display: none; }

.sheet-contact { background: var(--brand); color: #fff; padding: 0 18px 14px; display: grid; gap: 10px; }
.sc-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 12px; }
.sc-name { display: grid; line-height: 1.25; min-width: 0; }
.sc-name small { opacity: .85; font-variant-numeric: tabular-nums; }
.sc-acts { display: flex; gap: 6px; }
.sc-acts .btn { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; gap: 6px; }
.sc-acts .btn.primary { background: #fff; color: var(--brand); }
.sc-acts svg { width: 16px; height: 16px; }

.more-list { margin-bottom: 14px; }
.more-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; min-height: 60px; }
.more-item:first-child { border-top: 0; }
.more-item:hover { background: var(--surface-2); }
.more-item.danger { color: var(--bad); }
.mi-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.more-item.danger .mi-ic { background: var(--bad-soft); color: var(--bad); }
.mi-ic svg { width: 20px; height: 20px; }
.mi-tx { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; }
.mi-tx small { color: var(--muted); font-size: 13.5px; }
.mi-chev { color: var(--muted); font-size: 22px; }
.install-tip { margin-bottom: 14px; padding: 12px 16px; }
.install-tip summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.install-tip summary::-webkit-details-marker { display: none; }
.install-tip ol { margin: 12px 0 2px 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
@media (display-mode: standalone) { .install-tip { display: none; } }

@media (max-width: 900px) {
  .main { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .hello h2 { font-size: 22px; }
  /* stats: compact 2-column grid instead of a sideways scroller */
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 0; }
  button.stat { padding: 12px 14px; gap: 2px; }
  button.stat:first-child { grid-column: 1 / -1; }
  .stat .n { font-size: 22px; }
  .stat .l { font-size: 13px; line-height: 1.3; }
  /* building map: one staircase at a time, big doors */
  .map-head { gap: 10px; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .seg button { flex: none; }
  .sc-pick { display: flex; width: 100%; margin: 2px 0 10px; }
  .sc-pick button { flex: 1 1 0; padding: 7px 4px; }
  .bmap { grid-template-columns: 1fr; }
  .bmap[data-sc] .entrance:not([data-sc=""]) { display: none; }
  .bmap[data-sc="1"] .entrance[data-sc="1"], .bmap[data-sc="2"] .entrance[data-sc="2"],
  .bmap[data-sc="3"] .entrance[data-sc="3"], .bmap[data-sc="4"] .entrance[data-sc="4"] { display: block; }
  .entrance { padding: 10px; }
  .entrance h4 { margin-bottom: 8px; }
  .floor { grid-template-columns: 22px 1fr; gap: 6px; }
  .doors { gap: 6px; }
  .door { height: 44px; font-size: 15px; border-radius: 10px; }
  /* apartments: search first, filters on demand */
  .filters-toggle { display: inline-flex; }
  .sc-chips { display: flex; margin: 0 -16px; padding: 0 16px; }
  #apt-toolbar .filters label:first-child { display: none; }
  #apt-toolbar:not(.open) .filters, #apt-toolbar:not(.open) .adm-tool, #apt-toolbar:not(.open) #btn-reset { display: none; }
  #apt-toolbar .tools { gap: 8px; }
  .apt-table td { padding: 12px 10px; }
  .apt-table td.num { width: 52px; font-size: 18px; }
  .call-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); vertical-align: middle; margin-right: 4px; }
  .call-btn svg { width: 19px; height: 19px; }
  td.chev { width: auto; }
  td.chev:has(.call-btn) span { display: none; }
  /* sheet */
  .sheet-contact { padding: 0 12px 12px; }
  .sc-person { padding: 10px; }
  .sc-acts { width: 100%; }
  .sc-acts .btn { flex: 1 1 0; justify-content: center; min-height: 42px; }
  /* requests / other tab rows: one line, swipe sideways */
  #req-filter { display: flex; }
}
dialog.sheet > .sheet-head, dialog.sheet > .sheet-contact, dialog.sheet > .sheet-tabs { flex: none; }
@media (max-width: 640px) {
  /* quick-action button lives in the top bar on phones, so it never covers list buttons */
  .top-inner { padding-right: 68px; }
  .fab { top: calc(13px + env(safe-area-inset-top, 0px)); bottom: auto; right: 12px; width: 46px; height: 46px; border-radius: 14px; font-size: 28px; box-shadow: 0 4px 14px rgba(39, 71, 217, .35); position: fixed; }
  .main { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .apt-table th:nth-child(5), .apt-table td:nth-child(5) { display: none; }
}

/* ---------- apartment sheet: read-only view first, edit on demand ---------- */
#sheet-form > [data-sp] > .sheet-view { display: grid; gap: 12px; }
#dlg-sheet:not(.editing) #sheet-form > [data-sp] > :not(.sheet-view) { display: none !important; }
#dlg-sheet.editing #sheet-form > [data-sp] > .sheet-view { display: none; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 3px; min-width: 0; }
.vt span { font-size: 13px; color: var(--muted); }
.vt b { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.vt.wide { grid-column: 1 / -1; }
.vt.mono b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.vnote { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.vnote span { font-size: 13px; color: var(--muted); }
.vnote p { margin: 4px 0 0; white-space: pre-wrap; }
.vperson { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.vp-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.vp-top b { font-size: 17px; }
.vp-phone { font-size: 16px; font-variant-numeric: tabular-nums; }
.vp-phone.muted { color: var(--muted); font-size: 14px; }
.vp-acts { display: flex; gap: 6px; margin-top: 4px; }
.vp-acts .btn { flex: 1 1 0; justify-content: center; gap: 6px; min-height: 42px; }
.vp-acts svg { width: 16px; height: 16px; }
.edit-btn { gap: 8px; }
.edit-btn svg { width: 17px; height: 17px; }
#dlg-sheet:not(.editing) .dlg-foot .edit-btn { margin-left: auto; }

/* meters */
.meter { padding: 14px; gap: 10px; border-radius: 16px; }
.meter-head { flex-wrap: nowrap; align-items: center; }
.mh-t { display: flex; gap: 10px; align-items: center; min-width: 0; }
.m-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.k-apa-rece .m-dot { background: #3B82F6; }
.k-apa-calda .m-dot { background: #EF4444; }
.k-gaz .m-dot { background: #F59E0B; }
.k-electricitate .m-dot { background: #A855F7; }
.meter-head .t { font-size: 16px; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.meter-now { align-items: center; flex-wrap: nowrap; }
.meter-now .btn { flex: none; }
.m-verif .badge { font-size: 12.5px; }
.reading-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.reading-form[hidden] { display: none; }
.reading-form .btn { grid-column: 1 / -1; justify-content: center; }
.reading-form label, .reading-form input { min-width: 0; width: 100%; }
input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; min-height: 44px; display: block; width: 100%; }
.event-form[hidden] { display: none; }
@media (max-width: 640px) {
  .dlg-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dlg-foot .btn { flex: 1 1 0; justify-content: center; min-height: 48px; }
  .dlg-foot .msg { flex-basis: 100%; }
  #sheet-save-bar { flex-wrap: wrap; }
  .meter-now .big { font-size: 28px; }
}
#dlg-sheet:not(.editing) #sheet-form > section { background: none; border: 0; padding: 0; }
.meter-now .none { color: var(--muted); font-size: 15px; }
/* compact contact row in the sheet header */
.sc-person { flex-wrap: nowrap; padding: 8px 8px 8px 12px; }
.sc-name { flex: 1 1 auto; overflow: hidden; }
.sc-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-acts { width: auto !important; flex: none; }
.sc-acts .btn { flex: none !important; min-height: 40px !important; padding: 0 12px; }
.sc-acts .btn.icon { width: 44px; padding: 0; justify-content: center; }
.sc-acts .btn.icon svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .sheet-head { padding-bottom: 10px; }
  .sheet-head h2 { font-size: 20px; }
  .sheet-contact { padding-bottom: 10px; }
  .sheet-tabs button { padding: 10px 11px; font-size: 14px; }
}

/* ---------- Acte (document models) ---------- */
.assoc-card { margin-bottom: 14px; }
.assoc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.assoc-k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.assoc-top h3 { margin: 2px 0 4px; font-size: 18px; }
.assoc-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft, #FEF3C7); color: var(--ink); font-size: 14px; }
.my-acts { margin-bottom: 14px; }
.my-acts .card-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.my-acts .card-h h3 { margin: 0; font-size: 16px; }
.act-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.act-row:hover { background: var(--surface-2); }
.ar-t { display: grid; min-width: 0; }
.ar-t small { color: var(--muted); }
.acte-search { margin-bottom: 14px; }
.acte-search input { width: 100%; }
.acte-group { margin-bottom: 18px; }
.acte-group h3 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.acte-group h3 span { color: var(--muted); font-weight: 500; font-size: 13px; }
.acte-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.acte-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acte-item:hover { border-color: var(--brand); }
.acte-item b { font-size: 15px; font-weight: 650; }
.acte-item small { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acte-src { margin-top: 10px; }

.act-bar { position: sticky; top: calc(var(--top-h, 64px) + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.act-bar-t { flex: 1 1 200px; display: grid; min-width: 0; }
.act-bar-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-left { font-size: 13px; color: #92610A; font-weight: 600; }
.act-left.ok { color: var(--ok); }
.act-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.act-msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: var(--surface-2); }
.act-msg.ok { background: var(--ok-soft); color: var(--ok); }
.act-msg.err { background: var(--bad-soft); color: var(--bad); }
.act-hint { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.act-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1200px) { .act-wrap:has(.act-guide:not([hidden])) { grid-template-columns: minmax(0, 1fr) 360px; } .act-guide { position: sticky; top: 150px; max-height: calc(100dvh - 170px); overflow: auto; } }
.act-guide { font-size: 14px; line-height: 1.5; }
.act-guide p { margin: 0 0 8px; }
.act-guide .h1, .act-guide .h2 { font-weight: 700; margin-top: 12px; }
.act-guide .src { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.act-guide table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
.act-guide td { border: 1px solid var(--line); padding: 4px 6px; vertical-align: top; }

/* the sheet of paper: always white, like the printed page */
.paper { background: #fff; color: #111; border-radius: 6px; box-shadow: 0 2px 18px rgba(0, 0, 0, .18); padding: 18mm 16mm; max-width: 210mm; width: 100%; margin: 0 auto; font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 12pt; line-height: 1.38; overflow-wrap: anywhere; }
.paper .act-doc > p, .paper td p { margin: 0 0 6pt; }
.paper p.c { text-align: center; }
.paper p.r { text-align: right; }
.paper p.j { text-align: justify; }
.paper p.h1 { font-size: 14pt; font-weight: 700; text-align: center; margin: 6pt 0; }
.paper p.h2 { font-size: 12.5pt; font-weight: 700; }
.paper p.li { padding-left: 1.2em; text-indent: -0.8em; }
.paper p.li::before { content: "• "; }
.paper .tab { display: inline-block; width: 1.5em; }
.paper .pb, .paper p.pbb { display: block; }
.paper table.t { border-collapse: collapse; width: 100%; margin: 4pt 0 8pt; }
.paper table.t td { border: 1px solid #222; padding: 3pt 5pt; vertical-align: top; }
.paper table.t.nb td { border: 0; padding: 2pt 4pt; }
.paper table.t td.sh { background: #eee; }
.paper table.t td p { margin: 0; }
.paper span.ph { background: #FFF2A8; box-shadow: inset 0 -2px 0 #E5B800; border-radius: 3px; padding: 0 2px; cursor: text; outline: none; }
.paper span.ph:focus { background: #FFE45C; box-shadow: 0 0 0 2px #2747D9; }
.paper span.ph.auto { background: #DDF5E3; box-shadow: inset 0 -2px 0 #3CA55C; }
.paper span.ph.done { background: #E8EEFF; box-shadow: inset 0 -2px 0 #2747D9; }
.paper span.ck { cursor: pointer; font-size: 1.1em; }
.paper .empty { color: #666; }

@media (max-width: 640px) {
  .act-bar { top: calc(60px + env(safe-area-inset-top, 0px)); padding: 8px; gap: 8px; }
  .act-tools { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .act-tools #act-print { grid-column: 1 / -1; min-height: 46px; font-size: 16px; }
  .act-tools #act-assoc { display: none; }
  .paper { padding: 18px 14px; font-size: 15px; border-radius: 4px; }
  .paper p.h1 { font-size: 17px; }
  .paper table.t { font-size: 13px; }
  .paper table.t { display: block; overflow-x: auto; }
  .acte-list { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body.print-act { background: #fff !important; }
  body.print-act .side, body.print-act .top, body.print-act .bottom-nav, body.print-act .fab,
  body.print-act .act-bar, body.print-act .act-msg, body.print-act .act-hint, body.print-act .act-guide,
  body.print-act [data-view]:not([data-view="act"]), body.print-act dialog { display: none !important; }
  body.print-act .main, body.print-act .content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body.print-act .paper { box-shadow: none; padding: 0; max-width: none; font-size: 12pt; }
  body.print-act .paper span.ph, body.print-act .paper span.ph.auto, body.print-act .paper span.ph.done { background: none !important; box-shadow: none !important; padding: 0; }
  body.print-act .paper table.t { display: table; font-size: 11pt; }
  body.print-act .paper .pb, body.print-act .paper p.pbb { break-before: page; }
  body.print-act .paper table.t tr { break-inside: avoid; }
}
@media (max-width: 640px) {
  /* phone: the toolbar scrolls away; "next field" floats above the bottom navigation */
  .act-bar { position: static; }
  .act-tools { grid-template-columns: repeat(3, 1fr); }
  .act-tools #act-print { grid-column: auto; min-height: 40px; font-size: 14px; }
  .act-tools #act-save { font-size: 13px; }
  #act-next { position: fixed; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 20; border-radius: 999px; min-height: 46px; padding: 0 18px; background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 18px rgba(39, 71, 217, .4); }
  #act-next:disabled { display: none; }
  .act-hint { font-size: 12.5px; }
}
.paper .nota { position: relative; margin: 6pt 0 10pt; padding: 18px 8px 4px; border: 1.5px dashed #9AA6C9; border-radius: 6px; background: #F4F6FC; font-size: .9em; }
.paper .nota::before { content: "Notă pentru cine completează — nu se tipărește"; position: absolute; top: 2px; left: 8px; font: 600 10px/1.4 system-ui, sans-serif; color: #5B6B99; text-transform: uppercase; letter-spacing: .04em; }
.paper .nota table.t td { border-color: transparent; }
@media print { body.print-act .paper .nota { display: none !important; } }
.acte-archive summary { cursor: pointer; list-style: none; }
.acte-archive summary::-webkit-details-marker { display: none; }
.acte-archive summary h3::before { content: "▸ "; color: var(--muted); }
.acte-archive[open] summary h3::before { content: "▾ "; }
.acte-archive h3 { color: var(--muted); }

/* ---------- Buget și tarife ---------- */
.bud-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bud-meta { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bud-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.kpi > span { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 22px; letter-spacing: -.01em; }
.kpi small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.kpi.bad { border-color: var(--bad); } .kpi.bad b { color: var(--bad); }
.kpi.ok b { color: var(--ok); }
.kpi-in { display: flex; align-items: center; gap: 6px; }
.kpi-in input { font-size: 22px; font-weight: 700; width: 6.5ch; padding: 4px 8px; min-height: 42px; }
.kpi-in em { font-style: normal; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.bud-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.bud-lines { display: grid; gap: 12px; }
.bud-sec { padding: 0; overflow: hidden; }
.bud-sec header { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.bud-sec header h3 { margin: 0; font-size: 15px; }
.bud-sec header h3 small { color: var(--muted); font-weight: 500; }
.sec-name { flex: 1 1 auto; font-weight: 700; font-size: 15px; background: transparent; border-color: transparent; }
.sec-name:hover, .sec-name:focus { border-color: var(--line-2); background: var(--surface); }
.bl-head, .bl { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px 90px 36px; gap: 8px; align-items: center; padding: 6px 14px; }
.bl-head { font-size: 12px; color: var(--muted); padding-top: 10px; }
.bl-head span:not(:first-child) { text-align: right; }
.bl { border-top: 1px solid var(--line); }
.bl.si { grid-template-columns: minmax(0, 1fr) 160px 100px 110px 36px; }
.bl.oi { grid-template-columns: minmax(0, 1fr) 140px 36px; }
.bl-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bl-name input { flex: 1 1 auto; min-width: 0; background: transparent; border-color: transparent; padding: 6px; }
.bl-name input:hover, .bl-name input:focus { border-color: var(--line-2); background: var(--surface); }
.bl-code { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 2.4em; }
.bl-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; padding: 6px 8px; min-height: 38px; }
.bl-m, .bl-m2 { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.bl-delta { grid-column: 1 / -1; font-size: 12px; margin: -4px 0 2px 2.9em; }
.bl-delta.up { color: var(--bad); } .bl-delta.down { color: var(--ok); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; }
.bud-sec footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pct { width: 5ch; text-align: right; padding: 4px 6px; min-height: 34px; }
.check.sm { font-size: 13px; }
.bud-side { display: grid; gap: 12px; position: sticky; top: 90px; }
.bud-side h3 { margin: 0 0 10px; font-size: 15px; }
.bud-side table.mini { width: 100%; }
.bud-side td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bud-side tr.tot td { font-weight: 700; border-top: 2px solid var(--line-2); }
.bud-actions { display: grid; gap: 8px; }
.bud-paper { display: none; }
.bud-paper table.t td.num, .bud-paper td.num { text-align: right; white-space: nowrap; }
.bud-paper tr.sec td { font-weight: 700; background: #f1f1f1; }
.bud-paper tr.sub td { font-weight: 600; }
.bud-paper td.r { text-align: right; }
@media (max-width: 1100px) { .bud-grid { grid-template-columns: 1fr; } .bud-side { position: static; } .bud-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bud-meta { grid-template-columns: 1fr 1fr; } .bud-meta label:first-child { grid-column: 1 / -1; }
  .bud-kpis { gap: 8px; } .kpi { padding: 12px; } .kpi b { font-size: 18px; } .kpi-in input { font-size: 18px; }
  .bl-head { display: none; }
  .bl { grid-template-columns: minmax(0, 1fr) 110px 32px; row-gap: 2px; padding: 8px 10px; }
  .bl .bl-name { grid-column: 1 / -1; }
  .bl .bl-m { text-align: left; font-size: 12.5px; color: var(--muted); }
  .bl .bl-m::after { content: " lei/lună"; }
  .bl .bl-m2 { display: none; }
  .bl .bl-amt { grid-column: 2; grid-row: 2; }
  .bl .icon-btn { grid-column: 3; grid-row: 2; }
  .bl .bl-m { grid-column: 1; grid-row: 2; }
  .bl.si { grid-template-columns: 1fr 1fr 32px; }
  .bl.si .bl-amt { grid-column: 1; grid-row: 2; } .bl.si select { grid-column: 2; grid-row: 2; } .bl.si .check { grid-column: 1 / 3; grid-row: 3; } .bl.si .icon-btn { grid-column: 3; grid-row: 2; }
  .bl.oi { grid-template-columns: 1fr 110px 32px; } .bl.oi .bl-name { grid-column: 1; } .bl.oi .bl-amt { grid-column: 2; grid-row: 1; } .bl.oi .icon-btn { grid-column: 3; grid-row: 1; }
  .bl-delta { margin-left: 0; }
}
@media print {
  body.print-bud .side, body.print-bud .top, body.print-bud .bottom-nav, body.print-bud .fab, body.print-bud .bud-top, body.print-bud #bud-body,
  body.print-bud [data-view]:not([data-view="buget"]), body.print-bud dialog { display: none !important; }
  body.print-bud .main, body.print-bud .content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body.print-bud .bud-paper { display: block !important; box-shadow: none; padding: 0; max-width: none; font-size: 11.5pt; }
  body.print-bud .bud-paper p.pbb { break-before: page; }
  body.print-bud .bud-paper table.t tr { break-inside: avoid; }
}

/* ---------- "Afiș": colourful layout for notices to residents ---------- */
.act-style { flex: none; }
.act-doc.afis { font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11pt; line-height: 1.5; color: #1B2333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.act-doc.afis header.lh { display: flex; gap: 14px; align-items: center; margin: 0 0 16pt; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, #2747D9 0%, #4361F0 60%, #5B7BFF 100%); color: #fff; }
.act-doc.afis .lh-mark { flex: none; width: 54px; height: 54px; border-radius: 14px; background: #fff; color: #2747D9; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.act-doc.afis .lh-t { display: grid; gap: 1px; min-width: 0; }
.act-doc.afis .lh-t p { margin: 0; text-align: left; color: #fff; font-size: 9.5pt; opacity: .92; }
.act-doc.afis .lh-t p:first-child { font-size: 12.5pt; font-weight: 750; opacity: 1; letter-spacing: .01em; }
.act-doc.afis .lh-t p b { font-weight: inherit; }
.act-doc.afis header.lh span.ph, .act-doc.afis header.lh span.ph.auto, .act-doc.afis header.lh span.ph.done { background: rgba(255, 255, 255, .16); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .55); color: #fff; }
.act-doc.afis > p.h1 { font-size: 26pt; font-weight: 800; letter-spacing: .08em; color: #2747D9; margin: 14pt 0 2pt; line-height: 1.15; }
.act-doc.afis > p.h1 + p.c { font-size: 13.5pt; font-weight: 700; color: #1B2333; margin-bottom: 2pt; }
.act-doc.afis > p.c i { color: #5A6787; }
.act-doc.afis > p.sec { margin: 14pt 0 6pt; padding: 7pt 12pt; border-radius: 10px; background: #EEF2FF; border-left: 5px solid #2747D9; color: #1A2A6C; text-align: left; }
.act-doc.afis > p.sec b { font-weight: 750; }
.act-doc.afis table.t:not(.nb) { border-collapse: separate; border-spacing: 0; border: 1px solid #CBD4F2; border-radius: 10px; overflow: hidden; }
.act-doc.afis table.t:not(.nb) td { border: 0; border-top: 1px solid #E3E8F7; border-left: 1px solid #E3E8F7; padding: 5pt 8pt; }
.act-doc.afis table.t:not(.nb) tr:first-child td { border-top: 0; background: #EEF2FF; font-weight: 650; color: #1A2A6C; }
.act-doc.afis table.t:not(.nb) td:first-child { border-left: 0; }
.act-doc.afis footer.lh-foot { margin-top: 20pt; padding-top: 7pt; border-top: 2.5px solid #2747D9; font-size: 8.5pt; color: #55607A; text-align: center; }
@media (max-width: 640px) {
  .act-style { width: 100%; }
  .act-style button { flex: 1 1 0; }
  .act-doc.afis > p.h1 { font-size: 22px; }
  .act-doc.afis header.lh { padding: 12px; gap: 10px; }
  .act-doc.afis .lh-mark { width: 44px; height: 44px; font-size: 11px; }
}
@media print {
  body.print-act .act-doc.afis header.lh span.ph { background: none !important; box-shadow: none !important; }
}
/* empty lines replacing invented example data */
.paper span.ph.blank { display: inline-block; min-width: 7em; min-height: 1.2em; vertical-align: baseline; background: #F3F5FB; box-shadow: inset 0 -1.5px 0 #8C97B8; border-radius: 2px; }
.paper span.ph.blank:empty::before { content: attr(data-hint); color: #A3ACC6; font-size: .78em; font-family: system-ui, sans-serif; padding: 0 3px; }
.paper span.ph.blank[data-hint="ora"], .paper span.ph.blank[data-hint="ap."], .paper span.ph.blank[data-hint="nr."] { min-width: 3.6em; }
.paper span.ph.blank[data-hint="nume"] { min-width: 11em; }
.paper span.ph.blank.done { background: #E8EEFF; box-shadow: inset 0 -2px 0 #2747D9; }
@media print {
  body.print-act .paper span.ph.blank:empty { background: none !important; box-shadow: inset 0 -1px 0 #000 !important; }
  body.print-act .paper span.ph.blank:empty::before { content: ""; }
}

/* ---------- Afiș pentru avizier ---------- */
.afis-promo { display: grid; gap: 4px; margin-bottom: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border-color: var(--brand); }
.afis-promo b { font-size: 17px; }
.afis-promo span:not(.btn) { color: var(--ink-2); font-size: 14px; }
.afis-promo .btn { justify-self: start; margin-top: 6px; }
.afis-wrap { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.afis-side { position: sticky; top: 84px; max-height: calc(100dvh - 100px); overflow: auto; display: grid; gap: 12px; }
.afis-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: sticky; bottom: -16px; background: var(--surface); padding: 10px 0 2px; }
.afis-ag { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; }
.afis-ag legend { font-weight: 650; padding: 0 4px; }
.ag-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; gap: 6px; align-items: start; }
.ag-n { font-weight: 700; padding-top: 10px; color: var(--muted); }
.ag-f { display: grid; gap: 6px; }
.afis-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.afis-ru summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.afis-ru { display: grid; gap: 8px; }
.afis-ru[open] { display: grid; }
.afis-stage { position: relative; overflow: hidden; }

/* the poster itself: A4 at 96 dpi = 794 × 1123 px */
.poster { --k: 1; width: 794px; height: 1123px; transform-origin: top left; background: #fff; color: #2E3A4B; box-shadow: 0 4px 24px rgba(0, 0, 0, .22); padding: 46px 52px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; font-family: "Oswald", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", "Helvetica Neue", sans-serif; font-stretch: condensed; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster > * { flex: none; max-width: 100%; }
.pf-title { font-size: calc(78px * var(--k)); font-weight: 700; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: #2E3A4B; }
.pf-sub { font-size: calc(24px * var(--k)); font-weight: 600; text-transform: uppercase; margin-top: 8px; }
.pf-when { font-size: calc(54px * var(--k)); font-weight: 700; color: #A6383A; text-transform: uppercase; margin-top: 14px; line-height: 1.05; }
.pf-place { font-size: calc(32px * var(--k)); font-weight: 600; color: #3D3F8F; text-transform: uppercase; margin-top: 6px; }
.pf-form { font-size: calc(17px * var(--k)); font-weight: 500; text-transform: uppercase; margin-top: 10px; letter-spacing: .02em; }
.pf-agenda { align-self: stretch; text-align: left; margin-top: 16px; font-size: calc(21px * var(--k)); line-height: 1.25; }
.pf-agenda b { text-transform: uppercase; font-weight: 700; }
.pf-agenda ol { margin: 4px 0 0; padding-left: 1.3em; }
.pf-agenda li { font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.pf-agenda li small { display: block; font-size: .62em; font-weight: 500; letter-spacing: .02em; }
.pf-link { align-self: stretch; text-align: left; font-size: calc(18px * var(--k)); margin-top: 8px; text-transform: uppercase; }
.pf-note { font-size: calc(20px * var(--k)); font-weight: 600; color: #A6383A; margin-top: 12px; }
.pf-art { width: 86%; margin: 10px 0 0; flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pf-art svg { width: 100%; height: 100%; max-height: 420px; }
.poster.art-xs .pf-art { display: none; }
.pf-votes { font-size: calc(19px * var(--k)); font-weight: 600; text-transform: uppercase; margin-top: 8px; }
.pf-closing { font-size: calc(40px * var(--k)); font-weight: 700; color: #A6383A; text-transform: uppercase; margin-top: 10px; line-height: 1.05; }
.pf-ru { align-self: stretch; border-top: 2px dashed #8B93A6; margin-top: 16px; padding-top: 12px; display: grid; gap: 2px; justify-items: center; }
.pf-title-ru { font-size: calc(28px * var(--k)); font-weight: 700; text-transform: uppercase; }
.pf-when-ru { font-size: calc(30px * var(--k)); font-weight: 700; color: #A6383A; text-transform: uppercase; }
.pf-place-ru { font-size: calc(22px * var(--k)); font-weight: 600; color: #3D3F8F; text-transform: uppercase; }
.pf-form-ru, .pf-votes-ru { font-size: calc(15px * var(--k)); font-weight: 500; }
.pf-agenda-ru { font-size: calc(16px * var(--k)); font-weight: 500; max-width: 92%; }
.pf-note-ru { font-size: calc(16px * var(--k)); font-weight: 600; color: #A6383A; }
.pf-closing-ru { font-size: calc(24px * var(--k)); font-weight: 700; color: #A6383A; text-transform: uppercase; }
.pf-info { align-self: stretch; margin-top: auto; background: #2E3A4B; color: #fff; font-size: calc(26px * var(--k)); font-weight: 600; padding: 8px 12px; text-transform: uppercase; letter-spacing: .02em; }
.poster > .pf-info { margin-top: 14px; }
@media (max-width: 1000px) {
  .afis-wrap { grid-template-columns: 1fr; }
  .afis-side { position: static; max-height: none; }
  .afis-stage { order: -1; }
  .afis-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 3; }
}
@media print {
  body.print-afis .side, body.print-afis .top, body.print-afis .bottom-nav, body.print-afis .fab, body.print-afis .afis-side,
  body.print-afis [data-view]:not([data-view="afis"]), body.print-afis dialog { display: none !important; }
  body.print-afis .main, body.print-afis .content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body.print-afis .afis-wrap { display: block; }
  /* the page keeps the global 18/16 mm margins: fit the 794×1123 px poster into 178×261 mm */
  body.print-afis .afis-stage { height: 260mm !important; overflow: hidden; }
  body.print-afis .poster { transform: scale(0.846) !important; transform-origin: top left; box-shadow: none; }
}

/* ---------- Scrisoare oficială ---------- */
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.promo-row .afis-promo { margin: 0; }
@media (max-width: 700px) { .promo-row { grid-template-columns: 1fr; } }
.letter-stage { min-width: 0; }
.paper.letter { font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 12.5pt; line-height: 1.32; padding: 16mm 18mm 12mm; min-height: 297mm; display: flex; flex-direction: column; }
.lt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16pt; }
.lt-mark { width: 58px; height: 58px; border-radius: 12px; background: #2747D9; color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; font-family: "Onest", system-ui, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lt-mark span { font-weight: 800; font-size: 15px; }
.lt-mark small { font-size: 11px; opacity: .85; margin-top: 2px; }
.lt-bar { width: 4px; align-self: stretch; border-radius: 2px; background: linear-gradient(#2747D9 0 33%, #E0B02B 33% 66%, #C8372D 66%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lt-org { font-size: 13.5pt; line-height: 1.25; color: #1B2333; }
.lt-org small { font-size: 9.5pt; color: #555; }
.lt-nr { margin-bottom: 8pt; }
.lt-to { align-self: flex-end; width: 52%; margin-bottom: 18pt; }
.lt-to i { font-style: italic; }
.lt-subj { margin-bottom: 10pt; }
.lt-greet { font-weight: 700; margin: 0 0 6pt 1.2cm; }
.lt-body p { margin: 0 0 4pt; text-indent: 1.2cm; text-align: justify; }
.lt-annex { margin-top: 10pt; font-size: 11pt; }
.lt-sign { margin-top: 18pt; }
.lt-respect { font-weight: 700; margin-left: 1.2cm; }
.lt-sign-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18pt; }
.lt-role { font-weight: 700; }
.lt-ls { width: 84px; height: 84px; border: 1px dashed #bbb; border-radius: 50%; display: grid; place-items: center; color: #aaa; font-size: 10pt; }
.lt-signer { text-align: right; }
.lt-exec { margin-top: auto; padding-top: 18pt; font-size: 9pt; font-style: italic; }
.lt-foot { border-top: 1.5px solid #222; margin-top: 4pt; padding-top: 5pt; text-align: center; font-size: 9pt; }
@media (max-width: 640px) {
  .paper.letter { padding: 18px 14px; min-height: 0; font-size: 14px; }
  .lt-to { width: 70%; }
  .lt-ls { width: 60px; height: 60px; }
}
@media print {
  body.print-letter .side, body.print-letter .top, body.print-letter .bottom-nav, body.print-letter .fab, body.print-letter .afis-side,
  body.print-letter [data-view]:not([data-view="scrisoare"]), body.print-letter dialog { display: none !important; }
  body.print-letter .main, body.print-letter .content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body.print-letter .afis-wrap { display: block; }
  body.print-letter .paper.letter { box-shadow: none; padding: 0; max-width: none; min-height: 259mm; }
  body.print-letter .lt-ls { border-color: transparent; color: #999; }
}
.afis-formnote { font-size: 14px; color: var(--ink-2); align-self: end; padding-bottom: 10px; }
/* budget: on-screen document view */
.bud-paper { display: none; }
.bud-docview .bud-paper { display: block; }
.bud-doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bud-docview .paper { max-width: 210mm; }
.bud-paper .h1 { font-size: 16pt; font-weight: 700; text-align: center; margin: 10pt 0 2pt; }
.bud-paper .h2 { font-size: 12.5pt; font-weight: 700; margin: 14pt 0 4pt; color: #1A2A6C; border-bottom: 1.5px solid #2747D9; padding-bottom: 2pt; }
.bud-paper p.c { text-align: center; }
.bud-paper p.j { text-align: justify; }
.bud-paper table.t td { padding: 3pt 6pt; }
.bud-paper tr.sec td { background: #EEF2FF; color: #1A2A6C; }
.bud-paper thead td { background: #2747D9; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bud-paper tr.sec td, .bud-paper tr.sub td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.danger-link { color: var(--bad); font-weight: 600; justify-self: center; padding: 8px; }
#bud-emerg { width: 9ch; }
@media (max-width: 640px) { .bud-docview .paper { padding: 16px 12px; font-size: 12px; } .bud-docview .paper table.t { display: table; font-size: 11px; } }
@media print { body.print-bud .bud-docview { display: block !important; } body.print-bud .bud-doc-bar { display: none !important; } }
.bud-paper td.num { font-size: inherit; width: auto; font-weight: inherit; white-space: nowrap; text-align: right; }
.bud-paper table.t td:first-child { white-space: nowrap; width: 1%; }
.bud-paper tr.sub td.num, .bud-paper thead td { font-weight: 700; }
.bud-example { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); border: 1px solid var(--warn); font-size: 14.5px; }

/* ---------- PDF output (clone rendered off-screen, styled like the printed page) ---------- */
.pdf-stage { position: absolute; left: -12000px; top: 0; z-index: -1; background: #fff; }
.pdf-out { display: block !important; width: 178mm !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; background: #fff !important; color: #111; }
.pdf-out.letter { min-height: 255mm !important; display: flex !important; }
.pdf-out span.ph, .pdf-out span.ph.auto, .pdf-out span.ph.done { background: none !important; box-shadow: none !important; padding: 0 !important; }
.pdf-out span.ph.blank:empty { background: none !important; box-shadow: inset 0 -1px 0 #000 !important; }
.pdf-out span.ph.blank:empty::before { content: "" !important; }
.pdf-out .nota { display: none !important; }
.pdf-out table.t { display: table !important; }
.pdf-out .lt-ls { border-color: transparent !important; color: #999; }
.pdf-out .act-doc.afis header.lh span.ph { background: none !important; }
.pdf-poster { transform: none !important; box-shadow: none !important; width: 794px !important; height: 1123px !important; }
/* PDF ready sheet */
.pdf-sheet { width: min(380px, calc(100vw - 32px)); border-radius: 22px; padding: 0; }
.pdf-sheet-in { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px 20px 18px; }
.pdf-sheet-in > span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.pdf-sheet-in b { font-size: 19px; }
.pdf-sheet .btn.big { width: 100%; min-height: 52px; justify-content: center; font-size: 17px; text-decoration: none; }
.pdf-ok { width: 64px; height: 76px; border-radius: 10px; background: #E5484D; color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .04em; }
.pdf-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: pdfspin .8s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }

/* ---------- Contoarele generale ale blocului ---------- */
.bm-box { margin-bottom: 14px; display: grid; gap: 12px; }
.bm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.bm-head h3 { margin: 0; font-size: 16px; }
.bm-head p { margin: 2px 0 0; }
.bm { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--surface); }
.bm.off { opacity: .6; }
.bm .reading-form .wide { grid-column: 1 / -1; }
.bm-months td small { color: var(--muted); }
.bm-months td.neg { color: var(--bad); font-weight: 600; }
.bm-edit h4 { margin: 0 0 4px; }
/* logo containers: the SVG carries its own colours */
.lt-mark { width: auto; height: auto; background: none; border-radius: 0; display: block; }
.lt-mark .apc-logo, .lh-mark .apc-logo { display: block; }
.act-doc.afis .lh-mark { width: auto; height: auto; background: #fff; padding: 3px; border-radius: 16px; }

/* ---------- Fișa apartamentului (A4 for mailboxes) ---------- */
.fisa-paper { padding: 10mm; max-width: 210mm; }
.pdf-out.pdf-wide { width: 194mm !important; }
.fisa { font-family: "Onest", Arial, Helvetica, sans-serif; font-size: 9.6pt; line-height: 1.32; color: #1B2333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fs-head { display: flex; align-items: center; gap: 12px; padding-bottom: 7pt; border-bottom: 2.5px solid #2747D9; }
.fs-h-t { flex: 1 1 auto; }
.fs-org { font-size: 8.5pt; color: #55607A; }
.fs-title { font-size: 17pt; font-weight: 800; color: #2747D9; letter-spacing: .02em; }
.fs-title span { font-size: 11pt; font-weight: 600; color: #55607A; }
.fs-apt { border: 2px solid #2747D9; border-radius: 12px; min-width: 74px; padding: 4px 10px; text-align: center; }
.fs-apt small { display: block; font-size: 8pt; color: #55607A; }
.fs-apt b { font-size: 24pt; line-height: 1.05; color: #1B2333; }
.fs-facts { display: flex; flex-wrap: wrap; gap: 4pt 16pt; margin: 7pt 0 5pt; font-size: 9pt; }
.fs-v { font-weight: 700; }
.fs-line { display: inline-block; border-bottom: 1px solid #333; height: 1em; vertical-align: bottom; width: 30mm; }
.fs-line.s { width: 14mm; } .fs-line.m { width: 38mm; } .fs-line.l { width: 72mm; }
.fs-intro { margin: 4pt 0 6pt; padding: 6pt 8pt; background: #EEF2FF; border-radius: 8px; font-size: 8.8pt; }
.fs-intro i { display: block; color: #4A5573; margin-top: 2pt; }
.fisa h4 { margin: 8pt 0 3pt; font-size: 10.5pt; color: #1A2A6C; border-left: 4px solid #2747D9; padding-left: 6pt; }
.fisa h4 span { font-weight: 500; color: #6A7593; font-size: 9pt; }
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4pt 14pt; }
.fs-grid label { display: block; font-size: 9pt; color: inherit; font-weight: 400; }
.fs-grid .fs-line.l { width: 100%; display: block; margin-top: 8pt; }
.fs-row { margin: 3pt 0; }
.fs-ck { font-size: 12pt; line-height: 1; vertical-align: -1px; }
.fs-t { width: 100%; border-collapse: collapse; margin-top: 2pt; }
.fs-t td { border: 1px solid #8C97B8; padding: 3pt 5pt; height: 19pt; vertical-align: middle; font-size: 8.8pt; }
.fs-t thead td { background: #EEF2FF; font-weight: 600; font-size: 8.3pt; height: auto; }
.fs-t td:first-child { width: 30%; }
.fs-t small { color: #6A7593; font-weight: 400; }
.fs-lines span { display: block; border-bottom: 1px solid #333; height: 17pt; }
.fs-consent { margin-top: 8pt; font-size: 8.4pt; }
.fs-consent i { color: #4A5573; }
.fs-sign { display: flex; justify-content: space-between; margin-top: 12pt; font-size: 9.5pt; }
.fs-foot { margin-top: 9pt; padding-top: 5pt; border-top: 1px solid #C9D0E6; text-align: center; font-size: 8.5pt; color: #55607A; }
@media (max-width: 640px) { .fisa-paper { padding: 10px; overflow-x: auto; } .fisa-paper .fisa { min-width: 560px; } }
.fs-t { margin-bottom: 6pt; } .fs-t tr:last-child td { border-bottom: 1px solid #8C97B8; } .fisa { padding-bottom: 2pt; }
/* simplified sheet: people count + water meters */
.fisa2 { font-size: 11pt; }
.fisa2 .fs-title { font-size: 17pt; }
.fs-sub { font-size: 11pt; color: #55607A; font-weight: 600; }
.fisa2 .fs-apt small { font-size: 8pt; }
.fisa2 .fs-intro { font-size: 10pt; margin: 10pt 0; }
.f2-block { margin: 12pt 0; }
.f2-q { display: flex; gap: 10px; align-items: flex-start; }
.f2-q b { display: block; font-size: 13pt; color: #1A2A6C; }
.f2-q i { display: block; color: #55607A; font-size: 10.5pt; }
.f2-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2747D9; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13pt; }
.f2-big { display: flex; align-items: center; gap: 12px; margin: 8pt 0 4pt 36px; font-size: 12pt; }
.f2-box { width: 30mm; height: 16mm; border: 2px solid #1B2333; border-radius: 8px; display: inline-block; }
.f2-hint { margin: 4pt 0 0 36px; font-size: 9pt; color: #4A5573; }
.f2-hint i { display: block; }
.f2-t { margin-left: 0; }
.f2-t td { height: 28pt; font-size: 10pt; }
.f2-t td:first-child { width: 28%; }
.fisa2 .fs-lines { margin-left: 36px; }
.f2-owner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14pt; }
.f2-owner span:first-child { display: block; font-size: 9.5pt; color: #4A5573; margin-bottom: 10pt; }
.f2-owner .fs-line.l, .f2-owner .fs-line.m { width: 100%; display: block; }
.fisa2 .fs-sign { margin-top: 18pt; font-size: 10.5pt; }
.fisa2 .fs-consent { font-size: 8.5pt; color: #4A5573; margin-top: 12pt; }
.brand-mark.brand-logo { padding: 0; background: none; object-fit: contain; display: block; }

/* ---------- Bun venit + chestionar (first sheet to every mailbox) ---------- */
.welcome { font-size: 10pt; }
.w-head { display: flex; align-items: center; gap: 14px; padding-bottom: 8pt; border-bottom: 3px solid #2747D9; }
.w-hello { flex: 1 1 auto; }
.w-h1 { font-size: 21pt; font-weight: 800; color: #2747D9; line-height: 1.1; letter-spacing: -.01em; }
.w-h1ru { font-size: 12pt; font-weight: 600; color: #55607A; margin-top: 2pt; }
.w-letter { margin: 8pt 0 6pt; }
.w-letter p { margin: 0 0 4pt; text-align: justify; line-height: 1.4; }
.w-letter p.ru { font-style: italic; color: #4A5573; font-size: 9pt; }
.w-sign { font-size: 9.6pt; color: #1A2A6C; }
.w-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #EEF2FF; border-radius: 12px; padding: 7pt 10pt; margin: 6pt 0 4pt; }
.w-c-items { display: grid; gap: 3pt; }
.w-c-items span { display: block; font-size: 7.8pt; color: #55607A; text-transform: uppercase; letter-spacing: .04em; }
.w-c-items b { font-size: 11pt; color: #13203F; }
.w-qr { display: flex; align-items: center; gap: 6px; }
.w-qr small { font-size: 7.6pt; color: #55607A; line-height: 1.2; }
.w-qr svg { display: block; background: #fff; padding: 3px; border-radius: 4px; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt; }
.w-q { margin-top: 7pt; }
.w-qt { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4pt; }
.w-qt b { display: block; font-size: 11pt; color: #1A2A6C; line-height: 1.2; }
.w-qt i { display: block; font-size: 8.6pt; color: #55607A; }
.welcome .f2-n { width: 22px; height: 22px; font-size: 11pt; }
.welcome .f2-big { margin: 2pt 0 0 30px; }
.welcome .f2-box { width: 24mm; height: 12mm; }
.w-cks { display: grid; grid-template-columns: 1fr 1fr; gap: 4pt 10pt; margin-left: 30px; }
.w-cks3 { grid-template-columns: 1fr 1fr; }
.w-ck { display: flex; align-items: flex-start; gap: 6px; font-size: 9.6pt; line-height: 1.2; }
.w-ck i { flex: none; width: 12px; height: 12px; border: 1.6px solid #1B2333; border-radius: 3px; margin-top: 1px; }
.w-ck small { display: block; font-size: 7.8pt; color: #6A7593; }
.w-ck { flex-wrap: nowrap; }
.w-ck > small { margin-left: 0; }
.w-line { margin: 6pt 0 0 30px; font-size: 9pt; }
.w-line .fs-line.l { width: 50mm; }
.w-t { margin-left: 0; }
.w-t td { height: 18pt; font-size: 9pt; }
.w-t td:first-child { width: 30%; }
.w-t small { color: #6A7593; }
.w-owner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12pt; margin-top: 10pt; }
.w-owner span:first-child { display: block; font-size: 8.6pt; color: #4A5573; margin-bottom: 10pt; }
.w-owner .fs-line { width: 100%; display: block; }
.w-foot { margin-top: 9pt; padding: 7pt 10pt; border-radius: 10px; background: #13203F; color: #fff; font-size: 9pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.w-foot i { display: block; color: #C9D3F5; font-size: 8.4pt; }
.w-foot small { display: block; color: #9FB0E0; font-size: 7.4pt; margin-top: 2pt; }
/* roomier welcome sheet */
.welcome { font-size: 10.4pt; }
.welcome .w-letter p { line-height: 1.45; }
.welcome .w-q { margin-top: 10pt; }
.welcome .w-cks { gap: 7pt 12pt; }
.welcome .w-ck { font-size: 10.2pt; }
.welcome .w-ck i { width: 14px; height: 14px; }
.welcome .w-ck small { font-size: 8pt; margin-top: 1px; }
.welcome .f2-box { width: 28mm; height: 14mm; }
.welcome .w-t td { height: 24pt; }
.welcome .w-line { margin-top: 9pt; }
.welcome .w-owner { margin-top: 16pt; }
.welcome .w-owner span:first-child { margin-bottom: 16pt; }
.welcome .w-foot { margin-top: 14pt; }
/* "send a photo of each meter on Viber" */
.w-photo { display: flex; align-items: center; gap: 10px; margin-top: 6pt; padding: 6pt 9pt; border-radius: 10px; background: #F2EEFF; border: 1.5px solid #7360F2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.w-ph-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #7360F2; display: grid; place-items: center; }
.w-ph-t { flex: 1 1 auto; display: grid; gap: 1pt; font-size: 9.2pt; line-height: 1.3; }
.w-ph-t b { color: #3D2C9E; font-size: 10pt; }
.w-ph-t i { color: #5B5480; font-size: 8.2pt; }
.w-photo .w-qr small { color: #5B5480; }
/* ===== Welcome sheet v2 ("wow") ===== */
.welcome2 { font-size: 9.8pt; color: #16203A; }
.welcome2 * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.w2-hero { position: relative; display: flex; justify-content: space-between; align-items: stretch; gap: 10px; border-radius: 16px; padding: 12pt 12pt 0 16pt; color: #fff; background: linear-gradient(125deg, #0E1838 0%, #1A2D78 55%, #2747D9 100%); overflow: hidden; }
.w2-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,107,.28), rgba(255,214,107,0) 70%); }
.w2-hero-l { position: relative; z-index: 1; padding-bottom: 12pt; }
.w2-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 4px 6px; line-height: 0; }
.w2-h1 { font-size: 27pt; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin-top: 8pt; }
.w2-h1ru { font-size: 12pt; font-weight: 600; color: #C9D6FF; margin-top: 4pt; }
.w2-addr { display: inline-block; margin-top: 7pt; font-size: 8.2pt; color: #DDE5FF; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 2pt 8pt; }
.w2-hero-r { position: relative; z-index: 1; display: flex; align-items: flex-end; }
.w2-bld { display: block; }
.w2-apt { position: absolute; left: -30px; top: 6pt; width: 74px; height: 74px; border-radius: 50%; background: #FF8A3D; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(255,255,255,.9); text-align: center; line-height: 1.05; }
.w2-apt b { font-size: 22pt; font-weight: 800; }
.w2-apt small { font-size: 6.8pt; font-weight: 600; }
.w2-letter { display: flex; gap: 12px; margin: 9pt 0 0; align-items: stretch; }
.w2-letter-t { flex: 1 1 auto; }
.w2-letter p { margin: 0 0 3pt; line-height: 1.42; font-size: 9.8pt; }
.w2-letter p.ru { font-style: italic; color: #4A5573; font-size: 8.6pt; line-height: 1.35; }
.w2-sign { font-size: 9.4pt; color: #1A2D78; margin-top: 2pt; }
.w2-card { flex: none; width: 62mm; background: #F1F4FF; border-radius: 12px; padding: 7pt 9pt; display: grid; gap: 5pt; position: relative; }
.w2-ci { display: flex; gap: 6px; align-items: center; color: #2747D9; }
.w2-ci small { display: block; font-size: 7pt; color: #6A7593; text-transform: uppercase; letter-spacing: .04em; }
.w2-ci b { font-size: 10.6pt; color: #13203F; }
.w2-card-qr { display: flex; align-items: center; gap: 6px; }
.w2-card-qr small { font-size: 7.4pt; color: #6A7593; line-height: 1.2; }
.w2-card-qr svg, .w2-card-qr img { background: #fff; padding: 3px; border-radius: 5px; }
.w2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9pt; margin-top: 8pt; }
.w2-box { border: 1.5px solid #DCE3F5; border-radius: 14px; padding: 7pt 10pt 8pt; background: #fff; }
.w2-sec { display: flex; align-items: center; gap: 7px; margin-bottom: 6pt; }
.w2-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2747D9; color: #fff; font-weight: 800; font-size: 10.5pt; display: grid; place-items: center; }
.w2-ic { flex: none; color: #2747D9; line-height: 0; }
.w2-sec b { display: block; font-size: 10.8pt; color: #13203F; line-height: 1.15; }
.w2-sec i { display: block; font-size: 8.2pt; color: #6A7593; }
.w2-ppl { display: flex; gap: 5pt; }
.w2-p { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3pt; border: 1.5px solid #C9D3EE; border-radius: 10px; padding: 4pt 0 3pt; font-weight: 800; font-size: 12pt; color: #13203F; }
.w2-p i { width: 13px; height: 13px; border-radius: 50%; border: 1.8px solid #13203F; }
.w2-or { margin-top: 6pt; font-size: 8.4pt; color: #55607A; display: flex; align-items: center; gap: 6px; }
.w2-small-box { width: 16mm; height: 7mm; border: 1.5px solid #13203F; border-radius: 6px; }
.w2-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 5pt 8pt; }
.w2-chip { display: flex; align-items: flex-start; gap: 6px; font-size: 9.8pt; line-height: 1.15; }
.w2-chip i { flex: none; width: 13px; height: 13px; border: 1.8px solid #13203F; border-radius: 4px; margin-top: 1px; }
.w2-chip small { display: block; font-size: 7.6pt; color: #6A7593; }
.w2-wl { display: flex; align-items: flex-end; gap: 6px; margin-top: 7pt; font-size: 8.6pt; color: #4A5573; }
.w2-wl span { flex: 1; border-bottom: 1.2px solid #13203F; height: 11pt; }
.w2-meters { margin-top: 8pt; background: linear-gradient(180deg, #F6F9FF, #fff 60%); }
.w2-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7pt 12pt; }
.w2-m { display: flex; gap: 8px; align-items: center; border-radius: 12px; padding: 5pt 8pt; background: #fff; border: 1.5px solid #CFE0FB; }
.w2-m.hot { border-color: #F7C9CC; }
.w2-m svg, .w2-m img { flex: none; }
.w2-m-b { flex: 1 1 auto; min-width: 0; }
.w2-m-t b { font-size: 10.4pt; color: #1F5FC4; }
.w2-m.hot .w2-m-t b { color: #C42D37; }
.w2-m-t small { font-size: 7.6pt; color: #6A7593; margin-left: 4px; }
.w2-m-l { font-size: 7.2pt; color: #6A7593; text-transform: uppercase; letter-spacing: .03em; margin-top: 3pt; }
.w2-serial { height: 7mm; border: 1.4px solid #13203F; border-radius: 6px; margin-top: 1pt; }
.w2-cells { display: flex; align-items: flex-end; gap: 1.1mm; margin-top: 1pt; }
.w2-cells i { width: 5.6mm; height: 7mm; border: 1.4px solid #13203F; border-radius: 4px; background: #fff; }
.w2-cells i.r { border-color: #D8333F; background: #FFECEE; }
.w2-cells span { font-weight: 800; font-size: 13pt; line-height: 1; }
.w2-cells em { font-style: normal; font-size: 8pt; color: #6A7593; margin-left: 2px; }
.w2-tip { margin-top: 5pt; font-size: 8.2pt; color: #4A5573; }
.w2-tip .red { color: #D8333F; }
.w2-tip i { color: #6A7593; }
.w2-viber { display: flex; align-items: center; gap: 12px; margin-top: 8pt; border-radius: 16px; padding: 8pt 12pt; color: #fff; background: linear-gradient(120deg, #59267C 0%, #7360F2 70%, #8F7BFF 100%); }
.w2-v-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.w2-v-t { flex: 1 1 auto; display: grid; gap: 1pt; line-height: 1.25; font-size: 8.8pt; }
.w2-v-t b { font-size: 11pt; }
.w2-v-num { font-size: 19pt; font-weight: 800; letter-spacing: .02em; line-height: 1.05; }
.w2-v-t i { color: #E3DCFF; font-size: 8pt; }
.w2-v-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3pt; }
.w2-v-qr svg, .w2-v-qr img { background: #fff; padding: 4px; border-radius: 8px; }
.w2-v-qr small { font-size: 6.8pt; color: #EDE8FF; max-width: 26mm; text-align: center; line-height: 1.15; }
.w2-owner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14pt; margin-top: 10pt; }
.w2-owner small { display: block; font-size: 8.2pt; color: #4A5573; }
.w2-owner span { display: block; border-bottom: 1.2px solid #13203F; height: 16pt; }
.w2-owner b { display: block; font-size: 10.5pt; padding-top: 4pt; border-bottom: 1.2px solid #13203F; }
.w2-foot { display: flex; align-items: center; gap: 12px; margin-top: 10pt; border-radius: 14px; padding: 8pt 12pt; background: #0E1838; color: #fff; font-size: 9.2pt; line-height: 1.35; }
.w2-foot i { display: block; color: #B9C6EE; font-size: 8.2pt; }
.w2-f-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #FF8A3D; display: grid; place-items: center; }
.w2-thanks { flex: none; text-align: center; font-weight: 800; font-size: 13pt; color: #FFD66B; line-height: 1.1; }
.w2-thanks small { display: block; font-size: 9pt; color: #FFD66B; }
.w2-legal { margin: 4pt 0 0; font-size: 7pt; color: #8A93AD; text-align: center; }
/* v2 compaction so it fits one A4 page */
.w2-hero { padding: 10pt 10pt 0 14pt; }
.w2-hero-l { padding-bottom: 10pt; }
.w2-h1 { font-size: 24pt; margin-top: 6pt; }
.w2-h1ru { font-size: 11pt; margin-top: 2pt; }
.w2-addr { margin-top: 5pt; }
.w2-apt { width: 64px; height: 64px; left: -40px; top: 4pt; }
.w2-apt b { font-size: 19pt; }
.w2-letter { margin-top: 7pt; }
.w2-letter p { font-size: 9.4pt; line-height: 1.36; }
.w2-card { padding: 5pt 8pt; gap: 3pt; width: 58mm; }
.w2-row { margin-top: 6pt; gap: 8pt; }
.w2-row.r2 { grid-template-columns: 0.8fr 1.2fr; }
.w2-box { padding: 6pt 9pt 7pt; }
.w2-sec { margin-bottom: 4pt; }
.w2-sec b { font-size: 10.4pt; }
.w2-p { padding: 3pt 0 2pt; font-size: 11pt; gap: 2pt; }
.w2-meters { margin-top: 6pt; }
.w2-mgrid { gap: 5pt 10pt; }
.w2-m { padding: 4pt 7pt; gap: 7px; }
.w2-m-t b { font-size: 10pt; }
.w2-m-l { margin-top: 2pt; font-size: 6.8pt; }
.w2-serial { height: 6.2mm; }
.w2-cells i { width: 5.4mm; height: 6.4mm; }
.w2-tip { margin-top: 4pt; font-size: 7.8pt; }
.w2-viber { margin-top: 6pt; padding: 6pt 11pt; }
.w2-v-ic { width: 44px; height: 44px; }
.w2-v-num { font-size: 17pt; }
.w2-v-t { font-size: 8.4pt; }
.w2-chips { gap: 4pt 8pt; }
.w2-chips.c4 { grid-template-columns: 1fr 1fr; }
.w2-chips.c3 { grid-template-columns: 1fr 1fr 1fr; }
.w2-chip { font-size: 9.4pt; }
.w2-wl { margin-top: 5pt; }
.w2-owner { margin-top: 7pt; }
.w2-owner span { height: 14pt; }
.w2-foot { margin-top: 7pt; padding: 6pt 11pt; font-size: 8.8pt; }
.w2-f-ic { width: 38px; height: 38px; }
.w2-legal { margin-top: 3pt; }
.w2-urg { font-size: 8.4pt; color: #4A5573; line-height: 1.3; }
.w2-urg i { color: #6A7593; }
.w2-chips.c1 { grid-template-columns: 1fr; margin-top: 5pt; }
.w2-foot { position: relative; flex-wrap: wrap; row-gap: 2pt; }
.w2-foot > div:nth-child(2) { flex: 1 1 0; }
.w2-foot .w2-legal { flex: 1 0 100%; display: block; text-align: right; color: #8C9BCB; font-size: 6.6pt; margin: 0; }
.w2-hero-l { padding-bottom: 8pt; }
.w2-h1 { font-size: 23pt; }
.w2-letter p.ru { margin-bottom: 1pt; }
.w2-owner { margin-top: 6pt; }
.w2-ppl { gap: 4pt; }
/* ink-saving version: white backgrounds, colour only in lines and text */
.w2-hero { background: #fff; color: #13203F; border: 2px solid #2747D9; }
.w2-hero::after { display: none; }
.w2-logo { padding: 0; }
.w2-h1 { color: #2747D9; }
.w2-h1ru { color: #4A5573; }
.w2-addr { color: #2747D9; border-color: #2747D9; }
.w2-apt { background: #fff; color: #FF8A3D; box-shadow: none; border: 2.5px solid #FF8A3D; }
.w2-apt small { color: #4A5573; }
.w2-card { background: #fff; border: 1.5px dashed #9DB0EA; }
.w2-meters { background: #fff; }
.w2-mhead, .w2-m { display: grid; grid-template-columns: 11mm 34mm 1fr 62mm; gap: 6px; align-items: center; }
.w2-mhead span { font-size: 7.4pt; color: #6A7593; text-transform: uppercase; letter-spacing: .02em; }
.w2-mgrid { display: grid; grid-template-columns: 1fr; gap: 3pt; }
.w2-m { padding: 2pt 6pt; border-radius: 10px; }
.w2-m svg, .w2-m img { width: 34px !important; height: 34px !important; }
.w2-m-t small { display: block; margin-left: 0; }
.w2-serial { height: 7mm; }
.w2-cells { margin-top: 0; }
.w2-tip { margin-top: 3pt; }
.w2-viber { background: #fff; color: #13203F; border: 2px solid #7360F2; }
.w2-v-ic { background: #F2EEFF; }
.w2-v-t b { color: #59267C; }
.w2-v-num { color: #7360F2; }
.w2-v-t i { color: #6A7593; }
.w2-v-qr small { color: #59267C; }
.w2-v-qr svg, .w2-v-qr img { padding: 0; }
.w2-foot { background: #fff; color: #13203F; border: 2px solid #13203F; }
.w2-foot i { color: #4A5573; }
.w2-f-ic { background: #FFF1E6; }
.w2-thanks, .w2-thanks small { color: #FF8A3D; }
.w2-foot .w2-legal { color: #8A93AD; }
.w2-h1 { font-size: 22pt; margin-top: 5pt; white-space: nowrap; }
.w2-hero { padding-top: 8pt; }
.w2-hero-l { padding-bottom: 7pt; }
.w2-viber { padding: 4pt 10pt; gap: 10px; }
.w2-v-t { gap: 0; }
.w2-v-num { font-size: 16pt; }
.w2-urg { font-size: 8pt; }
.w2-box { padding: 5pt 9pt 6pt; }
.w2-m { padding: 1pt 6pt; }
.w2-letter { margin-top: 6pt; }
.w2-apt { left: -62px; top: 2pt; }
/* ===== Welcome sheet v3: calm, airy, little ink ===== */
.w3 { font-size: 11pt; color: #1B2333; line-height: 1.45; padding: 2mm 4mm; }
.w3-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6mm; border-bottom: 1px solid #D5DBEA; }
.w3-apt { font-size: 12pt; color: #55607A; text-align: right; }
.w3-apt b { font-size: 26pt; color: #1B2333; margin-left: 4px; }
.w3-apt span { display: block; font-size: 9pt; }
.w3-h1 { font-size: 24pt; font-weight: 700; color: #2747D9; margin: 9mm 0 4mm; letter-spacing: -.01em; }
.w3-p { margin: 0 0 2mm; font-size: 11.5pt; }
.w3-ru { margin: 0 0 3mm; font-size: 10pt; color: #6A7593; font-style: italic; }
.w3-sign { margin: 0; font-size: 10pt; color: #55607A; }
.w3-q { margin-top: 10mm; }
.w3-qt { display: flex; align-items: baseline; gap: 8px; font-size: 13pt; font-weight: 700; margin-bottom: 4mm; }
.w3-qt span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #2747D9; color: #2747D9; font-size: 11pt; flex: none; align-self: center; }
.w3-qt i { font-weight: 400; font-size: 10pt; color: #6A7593; }
.w3-people { display: flex; align-items: center; gap: 12px; margin-left: 32px; color: #55607A; }
.w3-box { width: 26mm; height: 15mm; border: 1.5px solid #1B2333; border-radius: 8px; }
.w3-t { width: calc(100% - 32px); margin-left: 32px; border-collapse: collapse; }
.w3-t thead td { font-size: 10pt; color: #55607A; padding: 0 3mm 2mm; }
.w3-t small, .w3-t th small { display: block; font-size: 8.5pt; color: #8A93AD; font-weight: 400; }
.w3-t th { text-align: left; font-weight: 600; font-size: 11pt; width: 30mm; padding: 2mm 0; }
.w3-t tbody td { border: 1.3px solid #1B2333; height: 12mm; }
.w3-t tbody td:nth-child(2) { width: 52%; }
.w3-viber { display: flex; align-items: center; gap: 8mm; margin-top: 11mm; padding: 5mm 0 0 32px; border-top: 1px solid #D5DBEA; font-size: 10.5pt; }
.w3-viber b { display: block; font-size: 12pt; color: #59267C; margin-bottom: 1mm; }
.w3-viber i { display: block; font-size: 9.5pt; color: #6A7593; margin-top: 1.5mm; }
.w3-qr { flex: none; text-align: center; }
.w3-qr small { display: block; font-size: 8pt; color: #6A7593; margin-top: 1mm; max-width: 26mm; }
.w3-foot { margin-top: 11mm; padding-top: 5mm; border-top: 1px solid #D5DBEA; font-size: 10.5pt; }
.w3-foot b { color: #1B2333; }
.w3-foot i { display: block; font-size: 9.5pt; color: #6A7593; }
.w3-foot small { display: block; margin-top: 3mm; font-size: 8pt; color: #8A93AD; }
.w3-h1 { margin: 7mm 0 3mm; }
.w3-q { margin-top: 8mm; }
.w3-viber { margin-top: 9mm; }
.w3-foot { margin-top: 8mm; }
.w3-t th { background: none; color: #1B2333; border: 0; }
.w3-t th small { color: #8A93AD; }
.w3-t { border-collapse: separate; border-spacing: 0; } .w3-t tbody td { border-width: 1.3px 1.3px 0 0; } .w3-t tbody td:nth-child(2) { border-left-width: 1.3px; } .w3-t tbody tr:last-child td { border-bottom-width: 1.3px; }
.w3 .w3-t tbody tr:last-child td { border-bottom: 1.3px solid #1B2333 !important; }
/* ===== Welcome sheet v4: hero + meters in the left half, questions in the right half ===== */
.w4 { font-size: 10pt; }
.w4-p { margin: 6mm 0 0; font-size: 10.6pt; line-height: 1.45; }
.w4-p i { display: block; font-size: 9.2pt; color: #6A7593; margin-top: 1mm; }
.w4-sign { display: block; font-size: 9.4pt; color: #2747D9; margin-top: 1.5mm; }
.w4-cols { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 8mm; margin-top: 7mm; }
.w4-qt { display: flex; gap: 8px; align-items: center; margin-bottom: 3mm; }
.w4-qt > span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #2747D9; color: #2747D9; font-weight: 700; display: grid; place-items: center; font-size: 10.5pt; }
.w4-qt b { display: block; font-size: 11.4pt; color: #13203F; line-height: 1.15; }
.w4-qt i { display: block; font-size: 8.6pt; color: #6A7593; }
.w4-gap { height: 6mm; }
.w4-t { width: 100%; border-collapse: separate; border-spacing: 0; }
.w4-t thead td { font-size: 8.4pt; color: #55607A; padding: 0 2mm 1.5mm; line-height: 1.2; }
.w4-t small { display: block; font-size: 7.6pt; color: #8A93AD; font-weight: 400; }
.w4-t th { text-align: left; font-size: 10pt; font-weight: 700; padding: 0 2mm 0 0; width: 17mm; background: none; border: 0; line-height: 1.15; }
.w4-t tr.cold th { color: #1F5FC4; } .w4-t tr.hot th { color: #C42D37; }
.w4-t tbody td { border: 1.3px solid #1B2333; border-width: 1.3px 1.3px 0 0; height: 11.5mm; }
.w4-t tbody td:nth-child(2) { border-left-width: 1.3px; width: 56%; }
.w4 .w4-t tbody tr:last-child td { border-bottom: 1.3px solid #1B2333 !important; }
.w4-t tbody tr:nth-child(3) td { border-top-width: 2.4px; }
.w4 .w2-ppl { gap: 3pt; }
.w4 .w2-chips { gap: 5pt 8pt; }
.w4-full { margin-top: 8mm; }
.w4 .w2-viber { margin-top: 8mm; }
.w4 .w3-foot { margin-top: 6mm; padding-top: 4mm; }
.w4 .w2-apt { position: static; align-self: center; margin-right: 5mm; flex: none; } .w4 .w2-hero-r { gap: 0; }
.w4 .w2-apt { order: -1; width: 70px; height: 70px; } .w4 .w2-apt small { font-size: 6.2pt; }
/* v4 polish: equal cards, roomy boxes, footer at the bottom of the page */
.w4 { display: flex; flex-direction: column; min-height: 279mm; box-sizing: border-box; }
.w4 .w3-foot { margin-top: auto; }
.w4-cols { grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; gap: 5mm; margin-top: 6mm; }
.w4-col { border: 1.3px solid #D5DBEA; border-radius: 12px; padding: 4mm 5mm; }
.w4-c1 { grid-row: 1 / span 2; }
.w4-qt { margin-bottom: 3.5mm; }
.w4-ppl { display: flex; gap: 6mm; }
.w4-ppl > div { display: flex; flex-direction: column; align-items: flex-start; }
.w4-b { width: 20mm; height: 13mm; border: 1.5px solid #1B2333; border-radius: 8px; margin-bottom: 1.5mm; }
.w4-ppl b { font-size: 9.6pt; font-weight: 600; }
.w4-ppl small { font-size: 8pt; color: #6A7593; }
.w4-t { border-spacing: 0 2.2mm; margin-top: -2mm; }
.w4-t tbody td { border: 1.3px solid #1B2333 !important; border-radius: 7px; height: 11mm; }
.w4-t tbody td:nth-child(2) { width: 54%; }
.w4-t tbody td + td { border-left-width: 1.3px; }
.w4-t tbody tr td:nth-child(3) { box-shadow: none; }
.w4-t tbody tr:nth-child(3) td { border-top-width: 1.3px; }
.w4-t tbody td:nth-child(2) { border-right-width: 1.3px; }
.w4-t tbody td:last-child { padding: 0; }
.w4-t tbody tr td:nth-child(2) { position: relative; }
.w4-t tbody td:nth-child(3) { border-left: 6px solid #fff !important; box-shadow: inset 1.3px 0 0 #1B2333; }
.w4-t th small { margin-top: .5mm; }
.w4-full { margin-top: 5mm; }
.w4 .w2-viber { margin-top: 5mm; }
.w4 .w2-hero { border-width: 1.6px; }
.w4-mr { display: grid; grid-template-columns: 17mm 1fr 30mm; gap: 2.5mm; align-items: center; margin-top: 2.6mm; }
.w4-mr > span { height: 11mm; border: 1.4px solid #1B2333; border-radius: 7px; }
.w4-mh { margin-top: 0; align-items: end; font-size: 8.4pt; color: #55607A; line-height: 1.2; }
.w4-mh small, .w4-ml small { display: block; font-size: 7.6pt; color: #8A93AD; font-weight: 400; }
.w4-ml { font-size: 10pt; font-weight: 700; line-height: 1.15; }
.w4-mr.cold .w4-ml { color: #1F5FC4; } .w4-mr.hot .w4-ml { color: #C42D37; }
.w4-mr.hot > span { border-color: #C42D37; }
.w4-mr.cold > span { border-color: #1F5FC4; }
.w4-cols { margin-top: 7mm; gap: 6mm; }
.w4-full { margin-top: 6mm; }
.w4 .w2-viber { margin-top: 7mm; }
.w4-p { margin-top: 7mm; }
/* ===== Chestionar „Să ne cunoaștem!” — landscape A4, black + red, line icons ===== */
.fisa-paper:has(.land) { max-width: 297mm; }
.pdf-out.pdf-land { width: 281mm !important; }
.quiz { font-family: "Onest", Arial, Helvetica, sans-serif; color: #111; font-size: 9.4pt; line-height: 1.3; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14mm; height: 192mm; }
.q-col { display: flex; flex-direction: column; min-width: 0; }
.q-title { margin: 0; font-size: 31pt; line-height: 1; font-weight: 900; color: #2747D9; letter-spacing: -.02em; }
.q-sub { margin-top: 2mm; font-size: 10.2pt; font-weight: 700; line-height: 1.3; text-align: center; }
.q-intro { margin: 3mm 0 0; font-size: 9pt; line-height: 1.35; color: #222; }
.q-row { display: flex; align-items: center; gap: 3mm; margin-top: 3.4mm; }
.q-ic { flex: none; line-height: 0; }
.q-ic svg, .q-ic img { width: 9mm !important; height: 9mm !important; }
.q-rb { flex: 1 1 auto; font-size: 9.6pt; line-height: 1.5; }
.q-rb b, .q-h b { font-weight: 700; }
.q-fill { display: inline-block; min-width: 26mm; border-bottom: 1px solid #111; height: 4.2mm; vertical-align: bottom; }
.q-fill.w { min-width: 62mm; }
.q-fill.v { font-weight: 800; font-size: 12pt; text-align: center; min-width: 18mm; height: auto; line-height: 1.1; }
.q-ex { display: inline-block; margin-left: 6mm; font-size: 7.4pt; color: #444; }
.q-cbs { display: flex; gap: 8mm; margin-top: 1.4mm; flex-wrap: wrap; }
.q-cbs.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 6mm; }
.q-cb { display: inline-flex; align-items: center; gap: 2mm; font-size: 9.4pt; }
.q-cb i { width: 3.8mm; height: 3.8mm; border: 1.2px solid #111; border-radius: 1mm; flex: none; }
.q-note { margin: 3.4mm 0 0; font-size: 8.8pt; color: #222; }
.q-note b { color: #2747D9; font-weight: 600; }
.q-h { display: flex; justify-content: space-between; align-items: center; gap: 4mm; margin-top: 4.5mm; }
.q-h b { font-size: 9.8pt; line-height: 1.3; }
.q-col > .q-h:first-child { margin-top: 0; }
.q-lines span { display: block; height: 7.6mm; border-bottom: 1px solid #111; }
.q-ms { margin-top: 1mm; }
.q-m { display: grid; grid-template-columns: 22mm auto 1fr auto 28mm; align-items: end; gap: 2mm; height: 7.4mm; font-size: 9.4pt; }
.q-m b { font-weight: 700; }
.q-m span { font-size: 8.4pt; color: #444; }
.q-m em { border-bottom: 1px solid #111; height: 5mm; }
.q-photo { display: flex; align-items: center; gap: 3mm; margin-top: 3mm; padding: 2.4mm 3mm; border: 1px solid #111; border-radius: 2.5mm; }
.q-photo p { margin: 0; flex: 1; font-size: 8.8pt; line-height: 1.35; }
.q-photo b { color: #2747D9; }
.q-qr { flex: none; text-align: center; line-height: 0; }
.q-qr svg, .q-qr img { width: 15mm !important; height: 15mm !important; }
.q-qr small { display: block; font-size: 6.6pt; line-height: 1.2; margin-top: .8mm; color: #444; }
.q-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 4mm; }
.q-foot p { margin: 0; color: #2747D9; font-weight: 700; font-size: 9.6pt; line-height: 1.35; }
@media (max-width: 640px) { .fisa-paper .quiz { min-width: 900px; } }
.q-title { font-size: 34pt; }
.q-intro { font-size: 9.4pt; margin-top: 3.4mm; }
.q-row { margin-top: 5mm; }
.q-note { margin-top: 5mm; }
.q-h { margin-top: 6mm; }
.q-lines span { height: 8.6mm; }
.q-m { height: 9.4mm; }
.q-photo { margin-top: 4.5mm; }
.q-cbs { margin-top: 2.4mm; }
.q-cbs.g2 { gap: 3mm 6mm; }
/* bilingual questionnaire: Russian underneath, smaller and grey */
.quiz.bi small.ru { display: block; font-size: 7.3pt; line-height: 1.25; font-weight: 400; color: #6b6b6b; font-style: normal; margin-top: .3mm; }
.quiz.bi { font-size: 9pt; }
.q-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; }
.q-title { font-size: 33pt; }
.q-title-ru { font-size: 13pt; font-weight: 700; color: #2747D9; margin-top: 1mm; letter-spacing: -.01em; }
.q-aptbox { flex: none; border: 1.4px solid #111; border-radius: 2.5mm; min-width: 22mm; padding: 1.4mm 3mm 1.8mm; text-align: center; }
.q-aptbox small { display: block; font-size: 7.4pt; color: #6b6b6b; text-transform: uppercase; letter-spacing: .06em; }
.q-aptbox b { display: block; font-size: 20pt; line-height: 1.05; min-height: 8mm; }
.quiz.bi .q-sub { text-align: left; font-size: 9pt; margin-top: 3mm; padding-bottom: 2.6mm; border-bottom: 1.6px solid #2747D9; }
.quiz.bi .q-intro { font-size: 8.8pt; margin-top: 2.6mm; line-height: 1.38; }
.quiz.bi .q-row { margin-top: 3.4mm; align-items: flex-start; }
.quiz.bi .q-rb { font-size: 9.2pt; line-height: 1.3; }
.q-inl { display: flex; align-items: flex-end; gap: 3mm; }
.q-inl > b { flex: none; }
.q-inl { flex-wrap: wrap; }
.q-inl > b + small.ru { order: 3; flex-basis: 100%; }
.q-inl .q-fill { flex: 1 1 auto; min-width: 20mm; order: 2; height: 4mm; }
.quiz.bi .q-fill.w { min-width: 40mm; }
.quiz.bi .q-ex { margin: .6mm 0 0; font-size: 7pt; color: #6b6b6b; display: block; }
.quiz.bi .q-cbs { gap: 6mm; margin-top: 1.8mm; }
.quiz.bi .q-cb { align-items: flex-start; font-size: 9pt; line-height: 1.15; }
.quiz.bi .q-cb i { margin-top: .3mm; }
.quiz.bi .q-cb small.ru { font-size: 6.9pt; }
.q-cbs.g4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4mm 6mm; }
.quiz.bi .q-note { font-size: 8.4pt; margin-top: 3.6mm; padding-left: 3mm; border-left: 1.6px solid #2747D9; }
.quiz.bi .q-note b { color: #2747D9; }
.quiz.bi .q-h { margin-top: 4.4mm; align-items: flex-start; }
.quiz.bi .q-h b { font-size: 9.6pt; }
.quiz.bi .q-lines span { height: 7.6mm; }
.quiz.bi .q-m { grid-template-columns: 24mm auto 1fr auto 24mm; height: 9mm; }
.quiz.bi .q-m span { font-size: 7.2pt; color: #6b6b6b; }
.quiz.bi .q-m small.ru { font-size: 6.9pt; }
.quiz.bi .q-photo { margin-top: 3.4mm; padding: 2.2mm 3mm; }
.quiz.bi .q-photo p { font-size: 8.6pt; }
.quiz.bi .q-foot p { font-size: 9.2pt; }
.quiz.bi .q-foot small.ru { color: #2747D9; opacity: .8; font-weight: 400; }
.quiz.bi .q-ic svg, .quiz.bi .q-ic img { width: 8.4mm !important; height: 8.4mm !important; }
.quiz.bi .q-inl { display: grid; grid-template-columns: auto 1fr; column-gap: 3mm; align-items: end; }
.quiz.bi .q-inl > b { grid-column: 1; grid-row: 1; }
.quiz.bi .q-inl .q-fill { grid-column: 2; grid-row: 1; height: 3.6mm; min-width: 0; }
.quiz.bi .q-inl > small.ru { grid-column: 1 / -1; grid-row: 2; }
.quiz.bi .q-cbs.g4 { gap: 1.6mm 6mm; }
.quiz.bi .q-row { margin-top: 4mm; }
/* ===== Chestionar consultativ (v3): Montserrat, full-width header, centred intro ===== */
.quiz.q3, .quiz.q3 * { font-family: "Montserrat", "Onest", Arial, sans-serif; }
.q3-in { display: flex; flex-direction: column; height: 193mm; }
.q3-head { display: flex; align-items: center; gap: 6mm; padding-bottom: 3mm; border-bottom: 2px solid #2747D9; }
.q3-logo { flex: none; line-height: 0; }
.q3-logo svg, .q3-logo img { width: 30mm !important; height: auto !important; }
.q3-tt { flex: 1 1 auto; min-width: 0; }
.q3-tt h1 { margin: 0; font-size: 30pt; line-height: 1; font-weight: 900; color: #2747D9; letter-spacing: -.025em; }
.q3-ru { font-size: 12.5pt; font-weight: 700; color: #2747D9; margin-top: 1mm; }
.q3-org { margin-top: 2mm; font-size: 9pt; font-weight: 700; color: #111; }
.q3 .q-aptbox { align-self: center; }
.q3-desc { text-align: center; padding: 3.2mm 22mm 3.4mm; border-bottom: 1px solid #d6d6d6; }
.q3-desc p { margin: 0; font-size: 9pt; line-height: 1.45; color: #222; }
.q3-desc p b { color: #111; font-weight: 700; }
.q3-desc small.ru { margin-top: 1.2mm !important; font-size: 7.6pt !important; }
.q3 .q-grid { flex: 1 1 auto; height: auto; margin-top: 3mm; gap: 0 14mm; }
.q3 .q-col { position: relative; }
.q3 .q-col + .q-col::before { content: ""; position: absolute; left: -7mm; top: 1mm; bottom: 1mm; border-left: 1px solid #d6d6d6; }
.q3 .q-row { margin-top: 3.2mm; align-items: center; }
.q3 .q-row:first-child { margin-top: 0; }
.q3 .q-rb, .q3 .q-h b { font-size: 9pt; }
.q3 .q-rb b, .q3 .q-h b { font-weight: 700; }
.q3 small.ru { font-size: 7pt !important; color: #707070 !important; font-weight: 500 !important; }
.q3 .q-cb { font-size: 8.8pt; font-weight: 500; }
.q3 .q-cbs { margin-top: 1.6mm; gap: 7mm; }
.q3 .q-cbs.col { display: grid; grid-template-columns: 1fr; gap: 1.6mm; }
.q3 .q-cbs.g4 { gap: 1.6mm 6mm; }
.q3 .q-h { margin-top: 3.6mm; }
.q3 .q-col > .q-h:first-child { margin-top: 0; }
.q3 .q-lines span { height: 7mm; }
.q3 .q-note { margin-top: 3.4mm; font-size: 8.4pt; }
.q3 .q-ic svg, .q3 .q-ic img { width: 8mm !important; height: 8mm !important; }
.q3-foot { margin-top: auto; display: flex; align-items: center; gap: 3mm; padding: 2.2mm 3mm; border: 1.4px solid #2747D9; border-radius: 2.5mm; }
.q3-foot p { margin: 0; flex: 1; font-size: 8.4pt; line-height: 1.35; color: #111; }
.q3-foot b { color: #2747D9; }
.q3 .q-qr svg, .q3 .q-qr img { width: 14mm !important; height: 14mm !important; }
.quiz.bi .q-inl { row-gap: 0; }
.q3-desc { padding: 2.6mm 8mm 2.8mm; }
.q3-tt h1 { font-size: 28pt; }
.q3 .q-grid { margin-top: 3.4mm; }
.q3 .q-lines span { height: 6.6mm; }
.q3 .q-row { margin-top: 3.6mm; }
.q3-foot { padding: 1.8mm 3mm; }
.q3-foot p { font-size: 8.2pt; }
/* blue version: priorities numbered and roomier, title in the association's navy+blue */
.q3-tt h1 { color: #2747D9; }
.q3-ru { color: #13203F; }
.q3 .q-lines.num span { height: 9.4mm; display: flex; align-items: flex-end; font-weight: 800; color: #2747D9; font-size: 10pt; padding-bottom: .6mm; }
.q3 .q-col:last-child .q-h { margin-top: 5mm; }
.q3 .q-col:last-child .q-cbs.col { gap: 2.6mm; margin-top: 2.4mm; }
.q3 .q-cb i { border-color: #13203F; }
.q3-foot { border-width: 1.6px; }
.q3 .q-lines.num span { height: 12mm; }
.q3 .q-col:last-child .q-h { margin-top: 8mm; }
.q3 .q-col:last-child .q-h:first-child { margin-top: 0; }
.q3 .q-col:last-child .q-cbs.col { gap: 4.4mm; margin-top: 3.4mm; }
/* ===== q3 "wow": tinted answer fields, icon discs, pill options, solid footer ===== */
.q3 .q-ic { width: 10.5mm; height: 10.5mm; border-radius: 50%; background: #EAF0FF; display: grid; place-items: center; }
.q3 .q-ic svg, .q3 .q-ic img { width: 6.8mm !important; height: 6.8mm !important; }
.q3 .q-h .q-ic { width: 9.5mm; height: 9.5mm; }
.q3-desc { border-bottom: 0; background: #F1F5FF; border-radius: 3mm; margin-top: 3.4mm; padding: 3mm 10mm 3.2mm; position: relative; }
.q3-desc::before { content: "“"; position: absolute; left: 3.5mm; top: -2.5mm; font: 900 30pt/1 Georgia, serif; color: #2747D9; }
.q3-head { border-bottom-width: 2.4px; }
.q3 .q-inl { grid-template-columns: auto 1fr; }
.q3 .q-inl .q-fill { height: 6.4mm !important; background: #F1F5FF; border: 0; border-bottom: 1.4px solid #2747D9; border-radius: 1.6mm 1.6mm 0 0; }
.q3 .q-lines span { background: #F7F9FF; border-bottom: 1.2px solid #9DB0EA; margin-top: 1.2mm; border-radius: 1.6mm 1.6mm 0 0; }
.q3 .q-lines.num span { border-bottom: 1.4px solid #2747D9; background: #F1F5FF; padding-left: 2.4mm; margin-top: 2.2mm; height: 10mm; }
.q3 .q-cb { border: 1px solid #C9D5F5; border-radius: 2.4mm; padding: 1.4mm 3mm 1.4mm 2.4mm; background: #fff; }
.q3 .q-cbs { gap: 2.4mm; }
.q3 .q-cbs.col .q-cb { display: flex; }
.q3 .q-cb i { width: 4mm; height: 4mm; border-radius: 1.1mm; border: 1.4px solid #2747D9; }
.q3 .q-note { background: #F7F9FF; padding: 2mm 3mm; border-radius: 0 2mm 2mm 0; border-left-width: 2.4px; }
.q3-foot { background: #2747D9; border: 0; color: #fff; border-radius: 3mm; padding: 2.6mm 3.4mm; }
.q3-foot p, .q3-foot b { color: #fff !important; }
.q3-foot small.ru { color: #D7E0FF !important; }
.q3-foot .q-ic { background: #fff; }
.q3-foot .q-qr { background: #fff; padding: 1.2mm; border-radius: 1.6mm; }
.q3-foot .q-qr small { color: #2747D9; font-weight: 700; }
.q3 .q-col:last-child .q-cbs.col { gap: 2.6mm; }
.q3-desc { padding: 2.2mm 10mm 2.4mm; margin-top: 2.6mm; }
.q3 .q-grid { margin-top: 3mm; }
.q3 .q-row { margin-top: 2.4mm; }
.q3 .q-ic { width: 9.4mm; height: 9.4mm; }
.q3 .q-h .q-ic { width: 8.6mm; height: 8.6mm; }
.q3 .q-cb { padding: 1mm 3mm 1mm 2.4mm; }
.q3 .q-cbs { margin-top: 1.2mm; }
.q3 .q-note { margin-top: 2.6mm; padding: 1.6mm 3mm; }
.q3 .q-h { margin-top: 2.8mm; }
.q3 .q-lines span { height: 6.4mm; }
.q3 .q-lines.num span { height: 8.6mm; margin-top: 1.6mm; }
.q3 .q-col:last-child .q-h { margin-top: 4.4mm; }
.q3 .q-col:last-child .q-h:first-child { margin-top: 0; }
.q3 .q-col:last-child .q-cbs.col { gap: 1.8mm; margin-top: 2mm; }
.q3-foot { padding: 2mm 3.4mm; }
.q3-foot { margin-top: 4mm; }
.q3 .q-lines:not(.num) span { height: 5.6mm; margin-top: .8mm; } .q3 .q-col:first-child .q-h { margin-top: 2.2mm; }
.q3 .q-lines:not(.num) span { height: 6.6mm; }
.q3 .q-col:first-child { justify-content: space-between; }
.q3 .q-col:first-child .q-row:first-child { margin-top: 0; }
.q3 .q-cbs.heat, .q3 .q-col:first-child .q-cbs { flex-wrap: nowrap; gap: 2mm; }
.q3 .q-col:first-child .q-cb { padding: 1mm 2.4mm 1mm 2mm; white-space: nowrap; }
/* ---------- apartment sheet header: solid deep blue in both themes, tidy on phones ---------- */
.sheet-head, .sheet-contact, .sheet-tabs { background: #2747D9 !important; }
@media (prefers-color-scheme: dark) { .sheet-head, .sheet-contact, .sheet-tabs { background: #22389F !important; } }
:root[data-theme="dark"] .sheet-head, :root[data-theme="dark"] .sheet-contact, :root[data-theme="dark"] .sheet-tabs { background: #22389F !important; }
:root[data-theme="light"] .sheet-head, :root[data-theme="light"] .sheet-contact, :root[data-theme="light"] .sheet-tabs { background: #2747D9 !important; }
.sc-acts .btn.primary { color: #2747D9 !important; }
#sheet-close .x { display: none; }
@media (max-width: 640px) {
  .sheet-head { display: flex; align-items: center; gap: 8px; padding-left: 16px; padding-right: 12px; }
  .sheet-nav { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
  .sheet-nav > div { order: 0; min-width: 0; }
  #sheet-prev { order: 1; } #sheet-next { order: 2; }
  .sheet-nav h2 { font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-nav .doc-sub { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sheet-prev, #sheet-next, #sheet-close { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; font-size: 22px; border-radius: 12px; flex: none; }
  #sheet-close .t { display: none; }
  #sheet-close .x { display: block; }
  .sheet-tabs { padding: 0 6px; gap: 0; }
  .sheet-tabs button { flex: 1 1 auto; padding: 10px 6px; font-size: 13.5px; text-align: center; }
}
/* ---------- Transparență (art. 63) and Fișa de sinteză (art. 64) ---------- */
.tr-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.tr-head h3 { margin: 0 0 6px; }
.tr-score { flex: none; text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--brand-soft, #EEF2FF); }
.tr-score b { display: block; font-size: 28px; line-height: 1; color: var(--brand, #2747D9); }
.tr-score span { font-size: 12px; color: var(--muted, #6A7593); }
.tr-reqs { display: grid; gap: 8px; }
.tr-req { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #E3E8F5); }
.tr-req.ok { background: rgba(3, 152, 85, .06); border-color: rgba(3, 152, 85, .25); }
.tr-req .tr-l { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #FDECEC; color: #B42318; }
.tr-req.ok .tr-l { background: #DDF5E8; color: #027A48; }
.tr-req b { display: block; font-size: 15px; }
.tr-req small { color: var(--muted, #6A7593); }
.tr-code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-code-row input { flex: 1 1 160px; font-size: 18px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; }
.tr-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line, #E3E8F5); }
.tr-inline .wide { grid-column: span 2; }
.tr-inline-act { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 700px) { .tr-inline { grid-template-columns: 1fr; } .tr-inline .wide { grid-column: auto; } .tr-head { flex-direction: column; align-items: flex-start; } }
.syn-fs { border: 1px solid var(--line, #E3E8F5); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; display: grid; gap: 8px; }
.syn-fs legend { font-weight: 700; padding: 0 6px; }
.syn-doc { font-size: 10.5pt; }
.syn-top { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #2747D9; margin-bottom: 8px; }
.syn-top b { display: block; font-size: 17pt; letter-spacing: .04em; color: #13203F; }
.syn-top span { display: block; font-size: 11pt; }
.syn-top small { display: block; color: #6A7593; font-size: 8.5pt; }
.syn-doc h4 { margin: 12px 0 4px; font-size: 10.5pt; text-transform: uppercase; letter-spacing: .04em; color: #2747D9; }
.syn-t { width: 100%; border-collapse: collapse; }
.syn-t td { border: 1px solid #C9D3EE; padding: 4px 7px; vertical-align: top; }
.syn-t td:first-child { width: 55%; color: #3E4A66; }
.syn-t td:last-child { font-weight: 600; }
.syn-note { font-size: 8.5pt; color: #6A7593; margin: 10px 0 0; }
.syn-sign { display: flex; justify-content: space-between; margin-top: 22px; font-size: 10pt; }
/* public transparency section */
.trp-sheet-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.trp-sheet-h b { font-size: 17px; }
.trp-sheet-h small { color: var(--muted, #6A7593); }
.trp-sheet details { margin-top: 10px; }
.trp-sheet summary { cursor: pointer; color: var(--brand, #2747D9); font-weight: 600; }
.trp-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.trp-t td { padding: 8px 10px; border-bottom: 1px solid var(--line, #E3E8F5); vertical-align: top; }
.trp-t td:first-child { color: var(--muted, #6A7593); width: 55%; }
.trp-t td:not(:first-child) { font-weight: 600; }
#tr-owners { margin-top: 14px; }
.trp-lock h3, .trp-open h3 { margin: 0 0 4px; }
.trp-code { display: flex; gap: 8px; flex-wrap: wrap; }
.trp-code input { flex: 1 1 180px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.trp-open-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trp-open h4 { margin: 18px 0 8px; font-size: 15px; }
#tr-root .list-card > .section-title { padding: 14px 18px 4px; margin: 0; }
