/* ═══════════════════════════════════════════════════════════════
   legalcafe.ro — Design 2.0 (01/10/2026)
   Strat peste main.css: schimbă paleta (culorile logo-ului: espresso,
   cupru, crem), header alb, componente mai aerisite.
   Revenire la designul vechi: se scoate <link> către v2.css din template-uri.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Accent = cuprul din logo (variabilele --gold* sunt folosite peste tot în aplicație) */
  --gold:        #a8552a;
  --gold-light:  #c2692f;
  --gold-dim:    #7c3d1d;
  --gold-bg:     rgba(168,85,42,.08);
  --gold-border: rgba(168,85,42,.22);
  --orange:      #a8552a;

  /* Text = espresso */
  --ink:   #24170f;
  --ink-2: #3d2c22;
  --ink-3: #7b6f66;

  /* Suprafețe calde, deschise */
  --paper:   #faf7f3;
  --paper-2: #f3ede6;
  --paper-3: #e8e0d6;
  --white:   #ffffff;

  --red:      #c2412d;
  --red-bg:   rgba(194,65,45,.08);
  --green:    #1e7a46;
  --green-bg: rgba(30,122,70,.08);
  --blue:     #2563a8;
  --blue-bg:  rgba(37,99,168,.08);

  --font-sans:  'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;   /* titluri: sans modern */

  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(36,23,15,.05);
  --shadow-md: 0 4px 14px rgba(36,23,15,.07), 0 1px 3px rgba(36,23,15,.05);
  --shadow-lg: 0 12px 32px rgba(36,23,15,.10), 0 2px 6px rgba(36,23,15,.05);
  --shadow-xl: 0 24px 56px rgba(36,23,15,.16), 0 4px 12px rgba(36,23,15,.06);

  --nav-h: 68px;
  --focus: 0 0 0 3px rgba(168,85,42,.18);
}

/* ── Bază ─────────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -.005em;
}
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); }
a:hover { text-decoration: none; color: var(--gold-light); }
::selection { background: rgba(168,85,42,.18); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ── Header alb ───────────────────────────────────────────── */
.nav {
  height: var(--nav-h);
  padding: 0 1.75rem;
  gap: 1.25rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--paper-3);
  box-shadow: 0 1px 0 rgba(36,23,15,.02), 0 6px 20px -12px rgba(36,23,15,.12);
}
.nav__logo { gap: 0; }
.nav__logo-img { height: 46px; width: auto; display: block; }
.nav__logo-tile, .nav__logo-text { display: none; }      /* vechiul logo text, înlocuit de imagine */

.nav__links { gap: .25rem; margin-left: 1rem; }
.nav__link {
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 600;
}
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link--active { background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-border); }

/* Căutare în header: arată ca un câmp de căutare */
.nav__search-btn {
  width: 280px; height: 42px;
  display: flex; align-items: center; gap: .6rem;
  padding: 0 .5rem 0 .9rem;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  color: var(--ink-3);
  font: 500 .88rem var(--font-sans);
  margin-right: .25rem;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.nav__search-btn:hover { background: var(--white); border-color: #d9cfc2; box-shadow: var(--shadow-sm); }
.nav__search-btn .ic { width: 1.1rem; height: 1.1rem; color: var(--ink-3); }
.nav__search-text { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__search-kbd, .search-modal kbd {
  font: 600 .68rem var(--font-sans);
  color: var(--ink-3); background: var(--white);
  border: 1px solid var(--paper-3); border-bottom-width: 2px;
  border-radius: 6px; padding: .12rem .42rem; white-space: nowrap;
}

/* Modalul de căutare */
html .search-modal--open { background: rgba(36,23,15,.35); backdrop-filter: blur(6px); padding-top: 10vh; }
html .search-modal__box {
  max-width: 640px; background: var(--white);
  border: 1px solid var(--paper-3); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(36,23,15,.25), 0 4px 14px rgba(36,23,15,.08);
  display: flex; flex-direction: column; max-height: 76vh;
}
.search-modal__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--paper-2); }
.search-modal__icon { width: 1.35rem !important; height: 1.35rem !important; color: var(--gold); }
.search-modal__input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: 500 1.08rem var(--font-sans); color: var(--ink);
}
.search-modal__input::placeholder { color: #a99d93; }
.search-modal__esc {
  font: 600 .7rem var(--font-sans); color: var(--ink-3); background: var(--paper-2);
  border: 1px solid var(--paper-3); border-radius: 7px; padding: .3rem .55rem; cursor: pointer;
}
.search-modal__esc:hover { background: var(--paper-3); color: var(--ink); }
.search-modal__results { overflow-y: auto; padding: .5rem; min-height: 64px; }
.search-modal__results:empty::before {
  content: "Scrie cel puțin 2 caractere: un număr de dosar (ex. 15090), un nume de parte, o instanță sau un cuvânt din notițe.";
  display: block; padding: 1.1rem 1rem; color: var(--ink-3); font-size: .88rem; text-align: center;
}
.search-modal__count { padding: .25rem .6rem .45rem; color: var(--ink-3); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.search-hits { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.search-hit {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem .75rem; border-radius: 12px;
  color: var(--ink); text-decoration: none; border: 1px solid transparent;
}
.search-hit:hover, .search-hit.is-active { background: var(--gold-bg); border-color: var(--gold-border); color: var(--ink); }
.search-hit__icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--gold);
}
.search-hit.is-active .search-hit__icon { background: var(--white); }
.search-hit__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.search-hit__num { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .45rem; }
.search-hit__num .badge { font-size: .62rem; padding: .05rem .45rem; }
.search-hit__sub, .search-hit__meta { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hit__meta { color: var(--ink-3); font-size: .74rem; }
.search-hit__date {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem;
  font-size: .76rem; font-weight: 600; color: var(--gold);
  background: var(--white); border: 1px solid var(--gold-border); border-radius: 999px; padding: .2rem .55rem;
}
.search-hit.is-done { opacity: .72; }
.search-hit.is-done .search-hit__icon { color: var(--green); }
.search-empty { padding: 1.6rem 1rem; text-align: center; color: var(--ink-3); }
.search-empty .ic { width: 2rem; height: 2rem; stroke-width: 1.4; margin-bottom: .5rem; }
.search-empty p { color: var(--ink-2); font-weight: 600; margin-bottom: .2rem; }
.search-modal__foot {
  display: flex; gap: 1.1rem; padding: .6rem 1.1rem; border-top: 1px solid var(--paper-2);
  font-size: .74rem; color: var(--ink-3); background: var(--paper); border-radius: 0 0 18px 18px;
}
.search-modal__foot kbd { margin-right: .15rem; }
@media (max-width: 680px) {
  html .search-modal--open { padding: .75rem; }
  html .search-modal__box { max-height: 88vh; }
  .search-modal__foot { display: none; }
}

/* Utilizator: avatar rotund cu inițială + nume */
.nav__user-btn {
  gap: .55rem;
  padding: .3rem .75rem .3rem .3rem;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
}
.nav__user-btn:hover { background: var(--paper); border-color: var(--gold-border); }
.nav__user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c2692f, #7c3d1d);
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.nav__user-chevron { color: var(--ink-3); }
.nav__dropdown {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .35rem;
  min-width: 190px;
}
.nav__dropdown-item {
  color: var(--ink-2);
  border-bottom: none;
  border-radius: 8px;
  padding: .6rem .8rem;
  font-weight: 500;
}
.nav__dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.nav__dropdown-item--danger { color: var(--red); }
.nav__dropdown-item--danger:hover { background: var(--red-bg); color: var(--red); }

.nav__hamburger { border-color: var(--paper-3); border-radius: 10px; }
.nav__hamburger span { background: var(--ink-2); }
.nav__mobile-menu {
  background: var(--white);
  border-bottom: 1px solid var(--paper-3);
  box-shadow: var(--shadow-lg);
}
.nav__mobile-links .nav__link { color: var(--ink-2); border-radius: 10px; }
.nav__mobile-menu > div { border-top-color: var(--paper-3) !important; }

/* ── Conținut ─────────────────────────────────────────────── */
.main { padding: 2.25rem 1.75rem 3rem; }

.card {
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card--hover:hover, .card--stat:hover { box-shadow: var(--shadow-md); }
.card__header { border-bottom-color: var(--paper-2); }
.card__title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.card--stat__num { font-weight: 800; letter-spacing: -.03em; }

/* ── Butoane ──────────────────────────────────────────────── */
.btn { border-radius: var(--radius); font-weight: 600; padding: .6rem 1.15rem; letter-spacing: 0; }
.btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 1px 2px rgba(124,61,29,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn--primary:hover { background: var(--gold-dim); color: #fff; box-shadow: 0 4px 12px rgba(124,61,29,.25); }
.btn--secondary { background: var(--white); color: var(--ink-2); border: 1px solid var(--paper-3); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--paper); border-color: var(--gold-border); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: transparent; }
.btn--danger { border-color: rgba(194,65,45,.35); }
.btn--sm { padding: .38rem .8rem; font-size: .8rem; border-radius: 8px; }
.btn--lg { padding: .8rem 1.6rem; font-size: .975rem; border-radius: 12px; }

/* ── Formulare ────────────────────────────────────────────── */
.form-label { font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.form-input, .form-select, .form-textarea {
  padding: .65rem .9rem;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .925rem;
  box-shadow: inset 0 1px 1px rgba(36,23,15,.03);
}
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: #d9cfc2; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: var(--focus); }

/* ── Badge-uri, tag-uri ───────────────────────────────────── */
.badge { border-radius: 999px; padding: .2rem .65rem; font-weight: 600; }
.tag   { font-weight: 600; }

/* ── Toast, modal ─────────────────────────────────────────── */
.toast { border-radius: var(--radius-lg); border: 1px solid var(--paper-3); border-left-width: 4px; box-shadow: var(--shadow-lg); }
.modal { border-radius: var(--radius-xl); }
.modal-backdrop { background: rgba(36,23,15,.38); backdrop-filter: blur(4px); }
.modal__title { font-weight: 700; }
html .search-modal__box { background: var(--white); border-radius: 16px; border: 1px solid var(--paper-3); }

/* ── Pagina Dosare ────────────────────────────────────────── */
.sidebar { border-right-color: var(--paper-3); }
.sidebar__header { padding: 1.1rem 1.2rem; }
.sidebar__title { font-size: 1rem; }
.dosar-card {
  margin: .25rem .5rem;
  padding: .75rem .9rem;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 12px;
}
.dosar-card:hover { background: var(--paper); border-color: var(--paper-2); }
.dosar-card--active {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  border-left-color: var(--gold);
  box-shadow: 0 1px 2px rgba(124,61,29,.06);
}
.dosar-card__num { font-weight: 700; letter-spacing: -.01em; }
.dosar-card__date { color: var(--gold); font-weight: 600; }
.detail-pane { padding: 2rem 2.25rem; }

/* ── Calendar ─────────────────────────────────────────────── */
.cal-row { border: 1px solid var(--paper-3); border-left-width: 3px; box-shadow: none; }
.cal-row:hover { box-shadow: var(--shadow-md); }

/* ── Autentificare ────────────────────────────────────────── */
.auth-page {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(194,105,47,.10), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(124,61,29,.08), transparent 60%),
    var(--paper);
}
.auth-card { border-radius: 24px; padding: 2.5rem 2.25rem; box-shadow: var(--shadow-xl); border-color: var(--paper-3); }
.auth-card__logo { margin-bottom: 1.5rem; }
.auth-card__logo-img { width: 170px; }
.auth-card__title { font-weight: 700; font-size: 1.3rem; }

/* ── Landing: luminos, logo-ul stă direct pe fundal ───────── */
.landing {
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(194,105,47,.12), transparent 65%),
    var(--paper);
  color: var(--ink);
}
.landing__logo-tile { background: transparent; box-shadow: none; padding: 0; }
.landing__logo-tile img { width: 230px; }
.landing__tagline { color: var(--ink-3); font-size: 1.1rem; }
.landing__title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: .25rem 0 .2rem; }
.landing__subtitle { color: var(--gold); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.landing .card {
  background: var(--white) !important;
  border-color: var(--paper-3) !important;
  color: var(--ink) !important;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.landing .card p { color: var(--ink-3) !important; }

/* ── Loader de pagină ─────────────────────────────────────── */
html #page-loader { background: var(--paper); }
html .pl-ring { border-color: rgba(168,85,42,.18); border-top-color: var(--gold); }

/* ── Pictograme cu linii (înlocuiesc emoji-urile) ─────────── */
.ic {
  display: inline-block;              /* main.css pune svg pe display:block */
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.18em;
  flex-shrink: 0;
}
.card__title { display: inline-flex; align-items: center; gap: .5rem; }
.card__title .ic { color: var(--gold); }
.empty-state__icon .ic { width: 1em; height: 1em; stroke-width: 1.25; }
.btn .ic, .client-tab .ic { width: 1.05em; height: 1.05em; }
.nav__search-btn .ic { color: var(--ink-3); }

/* ── Sortare dosare: control segmentat, lizibil ───────────── */
html body .sidebar__header { flex-wrap: wrap; row-gap: .7rem; }
.sort-seg {
  order: 3; flex: 1 1 100%;
  display: flex; gap: 2px; padding: 3px;
  background: var(--paper-2); border-radius: 10px;
}
.sort-seg__btn {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .42rem .4rem;
  border: 0; border-radius: 8px; background: transparent;
  font: 600 .76rem/1.2 var(--font-sans); color: var(--ink-3);
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.sort-seg__btn span { overflow: hidden; text-overflow: ellipsis; }
.sort-seg__btn:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.sort-seg__btn.is-active {
  background: var(--white); color: var(--gold);
  box-shadow: 0 1px 2px rgba(36,23,15,.08), 0 0 0 1px var(--paper-3);
}
@media (max-width: 900px) and (min-width: 681px) { .sort-seg__btn span { display: none; } }

/* ── Detalii dosar: cardurile se adaptează textului (nu mai iese textul din card) ── */
html body .info-grid { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: .65rem; }
html body .info-card { min-width: 0; border-radius: 12px; border-color: var(--paper-3); padding: .75rem .9rem; }
html body .info-card__value,
html body .info-card__value--sm,
html body .info-card__sub { overflow-wrap: anywhere; hyphens: auto; }
html body .info-card__label { letter-spacing: .06em; color: var(--ink-3); }

/* ── Dosar finalizat ──────────────────────────────────────── */
.btn--done { background: var(--white); color: var(--green); border: 1px solid rgba(30,122,70,.35); }
.btn--done:hover { background: var(--green); color: #fff; border-color: var(--green); }
.done-banner {
  display: flex; align-items: center; gap: .75rem;
  background: var(--green-bg); border: 1px solid rgba(30,122,70,.25);
  border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.done-banner__icon { color: var(--green); display: flex; }
.done-banner__icon .ic { width: 1.5rem; height: 1.5rem; }
.done-banner__title { font-weight: 700; color: var(--green); font-size: .9rem; margin: 0; }
.done-banner__text { color: var(--ink-2); font-size: .8rem; margin: .1rem 0 0; }
#dosar-detail-inner.is-finalizat .info-grid,
#dosar-detail-inner.is-finalizat .card { filter: saturate(.55); }
.badge .ic { width: .95em; height: .95em; margin-right: .2rem; }
.sidebar__group {
  display: flex; align-items: center; gap: .4rem;
  margin: .9rem .9rem .3rem; padding-top: .7rem; border-top: 1px dashed var(--paper-3);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green);
}
.dosar-card--done { opacity: .62; background: transparent; }
.dosar-card--done .dosar-card__num { text-decoration: line-through; text-decoration-color: rgba(30,122,70,.55); text-decoration-thickness: 1.5px; }
.dosar-card--done .dosar-card__date { color: var(--ink-3); }
.dosar-card--done:hover, .dosar-card--done.dosar-card--active { opacity: 1; }

/* ── Profil: notificări ───────────────────────────────────── */
.notif-device {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem; border: 1px solid var(--paper-3); border-radius: 14px; background: var(--paper);
  margin-bottom: .75rem;
}
.notif-device__icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--gold); border: 1px solid var(--paper-3);
}
.notif-device__text { flex: 1; min-width: 0; }
.notif-device__title { font-weight: 700; font-size: .9rem; margin: 0; }
.notif-device__sub { font-size: .8rem; color: var(--ink-3); margin: .1rem 0 0; }
.notif-device__actions { display: flex; gap: .4rem; flex-shrink: 0; }
.notif-hint { font-size: .8rem; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .75rem; }
.notif-matrix { border: 1px solid var(--paper-3); border-radius: 14px; overflow: hidden; margin-bottom: .75rem; }
.notif-matrix__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; align-items: center;
  padding: .7rem 1rem; border-top: 1px solid var(--paper-2);
}
.notif-matrix__row:first-child { border-top: 0; }
.notif-matrix__row--head { background: var(--paper); padding-top: .5rem; padding-bottom: .5rem; }
.notif-matrix__row--head span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.notif-matrix__row--head span + span { text-align: center; }
.notif-matrix__row--max { background: linear-gradient(90deg, rgba(194,65,45,.06), transparent 70%); }
.notif-matrix__row--max strong .ic { color: var(--red); }
.notif-matrix__label { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.notif-matrix__label strong { font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }
.notif-matrix__label strong .ic { color: var(--gold); }
.notif-matrix__label small { font-size: .76rem; color: var(--ink-3); line-height: 1.4; }
/* Bife rotunde */
.notif-check { display: flex; justify-content: center; cursor: pointer; }
.notif-check input, .notif-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notif-check span {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid #d6ccbf; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; transition: all var(--t);
}
.notif-check input:checked + span { background: var(--gold); border-color: var(--gold); }
.notif-check input:checked + span::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.notif-check input:focus-visible + span { box-shadow: var(--focus); }
.notif-check.is-off { cursor: not-allowed; opacity: .4; }
/* Comutator Google Calendar */
.notif-gcal {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .85rem 1rem; border: 1px solid var(--paper-3); border-radius: 14px; cursor: pointer;
}
.notif-gcal.is-off { opacity: .55; cursor: not-allowed; }
.notif-gcal__text { display: flex; flex-direction: column; gap: .1rem; }
.notif-gcal__text strong { font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }
.notif-gcal__text strong .ic { color: var(--gold); }
.notif-gcal__text small { font-size: .76rem; color: var(--ink-3); }
.notif-toggle span {
  position: relative; display: inline-block; width: 44px; height: 26px; border-radius: 999px;
  background: #d6ccbf; transition: background var(--t); flex-shrink: 0;
}
.notif-toggle span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t);
}
.notif-toggle input:checked + span { background: var(--gold); }
.notif-toggle input:checked + span::after { transform: translateX(18px); }
.notif-foot { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
@media (max-width: 520px) {
  .notif-matrix__row { grid-template-columns: minmax(0, 1fr) 62px 62px; padding: .65rem .75rem; }
  .notif-device { flex-wrap: wrap; }
  .notif-device__actions { width: 100%; }
}

/* ── Dashboard: coloanele nu se mai lățesc din cauza textelor lungi (ieșea din ecran pe telefon) ── */
/* «html body» ca să bată stilurile paginii, care se încarcă după v2.css */
html body .dash-body { grid-template-columns: 340px minmax(0, 1fr); }
html body .dash-body > * { min-width: 0; }
@media (max-width: 960px) { html body .dash-body { grid-template-columns: minmax(0, 1fr); } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav__search-btn { width: 42px; padding: 0; justify-content: center; }
  .nav__search-text, .nav__search-kbd { display: none; }
}
@media (max-width: 900px) {
  .nav { padding: 0 1rem; }
  .main { padding: 1.5rem 1rem 2.5rem; }
}
@media (max-width: 680px) {
  :root { --nav-h: 60px; }
  .nav__logo-img { height: 38px; }
  .nav__user-btn { padding: .25rem; }
  .detail-pane { padding: 1rem .875rem; }
  .dosar-card { margin: .2rem .4rem; }
}
@media (max-width: 380px) {
  .nav__logo-img { height: 32px; }
}

/* ═══ Header v3: meniu stânga · logo centru (+30%) · căutare dreapta (02/10/2026) ═══ */
:root { --nav-h: 78px; }
html body .nav--v3 {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding: 0 1.5rem;
}
.nav__side { display: flex; align-items: center; min-width: 0; }
.nav__side--right { justify-content: flex-end; }
.nav__logo--center { justify-self: center; }
html body .nav--v3 .nav__logo-img { height: 60px; width: auto; }
html body .nav--v3 .nav__search-btn { display: flex; margin: 0; }      /* main.css îl ascundea pe mobil */
.nav__menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; height: 42px; padding: 0 .95rem 0 .75rem;
  border: 1px solid var(--paper-3); border-radius: 12px; background: var(--white);
  color: var(--ink-2); font: 600 .9rem var(--font-sans); cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.nav__menu-btn:hover { background: var(--paper); border-color: #d9cfc2; }
.nav__menu-btn .ic { width: 1.3rem; height: 1.3rem; }

/* Meniul lateral */
html.menu-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(36,23,15,.3); z-index: 400; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 401;
  background: var(--white); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; padding: 1rem .85rem 1.25rem; overflow-y: auto;
  transform: translateX(-102%); transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; gap: .75rem; padding: .35rem .4rem 1rem; border-bottom: 1px solid var(--paper-2); margin-bottom: .6rem; }
.drawer__head .nav__user-avatar { width: 44px; height: 44px; font-size: 1.05rem; flex-shrink: 0; }
.drawer__user { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drawer__user strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__user small { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__close {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--paper-3);
  background: var(--white); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer__close:hover { background: var(--paper-2); }
.drawer__links { display: flex; flex-direction: column; gap: 2px; }
.drawer__link {
  display: flex; align-items: center; gap: .8rem; width: 100%; padding: .78rem .85rem; border-radius: 12px;
  color: var(--ink-2); font: 600 .97rem var(--font-sans); text-decoration: none; border: 0; background: none;
  cursor: pointer; text-align: left;
}
.drawer__link .ic { width: 1.25rem; height: 1.25rem; color: var(--ink-3); }
.drawer__link:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.drawer__link.nav__link--active { background: var(--gold-bg); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.drawer__link.nav__link--active .ic { color: var(--gold); }
.drawer__link--danger, .drawer__link--danger .ic { color: var(--red); }
.drawer__link--danger:hover { background: var(--red-bg); color: var(--red); }
.drawer__section { margin: 1.1rem .85rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

/* ═══ Modalul de căutare: fundal mai puțin încețoșat; ecran complet pe mobil ═══ */
html .search-modal--open { background: rgba(36,23,15,.2); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); padding-top: 8vh; }
html .search-modal__box { max-width: 660px; }
.search-modal__esc .esc-mob { display: none; }
@media (max-width: 680px) {
  html .search-modal--open { padding: 0; align-items: stretch; background: var(--white); backdrop-filter: none; }
  html .search-modal__box { max-width: none; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .search-modal__head { padding: .75rem .9rem; position: sticky; top: 0; background: var(--white); z-index: 1; }
  .search-modal__input { font-size: 1.05rem; }               /* ≥16px: iOS nu mai face zoom */
  .search-modal__esc { padding: .45rem .7rem; font-size: .82rem; }
  .search-modal__esc .esc-desk { display: none; }
  .search-modal__esc .esc-mob { display: inline; }
  .search-modal__results { flex: 1; padding: .4rem .5rem 1rem; }
  .search-hit { padding: .7rem .6rem; }
  .search-hit__date { font-size: .72rem; padding: .15rem .45rem; }
}

/* ═══ Mobil: detalii dosar — butoanele nu mai ies din ecran ═══ */
@media (max-width: 680px) {
  html body .dosar-head { flex-direction: column; }
  html body .dosar-head > div:first-child { width: 100%; }
  html body .dosar-head__actions { width: 100%; flex-wrap: wrap; flex-shrink: 1 !important; gap: .4rem; }
  html body .dosar-head__actions > * { flex: 1 1 calc(50% - .4rem); }
  html body .dosar-head__actions .btn { width: 100%; justify-content: center; }
  html body .dosar-head__actions form { display: flex; }
}

/* ═══ Mobil: dashboard — calendar, conflicte, termene, cifre, restul ═══ */
@media (max-width: 680px) {
  body:has(.dash-body) .main { display: flex; flex-direction: column; }
  body:has(.dash-body) .main > * { min-width: 0; }
  html body .dash-body { display: contents; }
  .dash-col-cal   { order: 1; margin-bottom: 1rem; }
  .dash-conflict  { order: 2; }
  .dash-col-left  { order: 3; margin-bottom: 1rem; }
  .dash-stats     { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem !important; }
  .dash-extra     { order: 5; }
}

/* ═══ Mobil: header ═══ */
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  html body .nav--v3 { padding: 0 .75rem; gap: .5rem; }
  html body .nav--v3 .nav__logo-img { height: 50px; }
  .nav__menu-label { display: none; }
  .nav__menu-btn { width: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 360px) {
  html body .nav--v3 .nav__logo-img { height: 42px; }
}

/* Profil: grila cardurilor nu se mai lățește după conținut (ieșea din ecran pe telefoanele mici) */
body:has(#profil-notif-card) .main > div[style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
body:has(#profil-notif-card) .card { min-width: 0; }
/* Mobil: lista «Termene» de pe dashboard — ~5 rânduri vizibile, restul cu derulare */
@media (max-width: 680px) {
  html body .dash-term-card { height: auto !important; }
  html body .dash-term-list { max-height: 430px !important; overflow-y: auto; overscroll-behavior: contain; }
}
/* Mobil: închiderea căutării = săgeată «înapoi» în stânga (nu mai stă sub lupa din header) */
@media (max-width: 680px) {
  .search-modal__head { gap: .5rem; padding-left: .5rem; }
  .search-modal__icon { display: none !important; }
  .search-modal__esc { order: -1; border: 0; background: transparent; padding: .45rem; border-radius: 10px; display: flex; color: var(--ink-2); }
  .search-modal__esc .esc-mob .ic { width: 1.4rem; height: 1.4rem; }
}

/* ═══ Header: pe desktop revine aspectul clasic (logo · meniu · căutare · utilizator);
       varianta cu meniu lateral + logo centrat rămâne doar pe mobil (03/10/2026) ═══ */
@media (min-width: 681px) {
  :root { --nav-h: 68px; }
  html body .nav--v3 { display: flex; align-items: center; gap: 1.25rem; padding: 0 1.75rem; }
  html body .nav--v3 .nav__side--left { display: none; }
  html body .nav--v3 .nav__logo--center { justify-self: auto; flex-shrink: 0; }
  html body .nav--v3 .nav__logo-img { height: 46px; }
  html body .nav--v3 .nav__links { display: flex; margin-left: .5rem; }
  html body .nav--v3 .nav__side--right { margin-left: auto; gap: .6rem; }
  html body .nav--v3 .nav__user { margin-left: 0; }
}
@media (max-width: 680px) {
  html body .nav--v3 .nav__links,
  html body .nav--v3 .nav__user { display: none; }
}

/* ═══ Căutare: câmpul e o căsuță distinctă, text normal, spațiu în stânga ═══ */
.search-modal__head { background: var(--white); padding: 1rem 1.1rem; gap: .6rem; }
.search-field {
  flex: 1; min-width: 0; position: relative; display: flex; align-items: center;
  background: #f6f1ea; border: 1px solid var(--paper-3); border-radius: 12px;   /* crem: diferit de modalul alb */
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.search-field:hover { border-color: #d9cfc2; }
.search-field:focus-within { background: #faf6f0; border-color: var(--gold); box-shadow: var(--focus); }
html .search-field .search-modal__icon {
  display: block !important; position: absolute; left: .9rem;
  width: 1.15rem !important; height: 1.15rem !important; color: var(--ink-3); pointer-events: none;
}
.search-field:focus-within .search-modal__icon { color: var(--gold); }
html .search-modal__input {
  width: 100%; padding: .78rem 2.6rem .78rem 2.75rem;
  font: 400 1rem var(--font-sans); color: var(--ink); letter-spacing: 0;
  background: transparent; border: 0; outline: none;
}
html .search-modal__input:focus-visible { box-shadow: none; }
.search-modal__input::placeholder { color: #a39890; font-weight: 400; }
.search-field #search-spinner { position: absolute; right: .85rem; }
@media (max-width: 680px) {
  .search-modal__head { padding: .7rem .75rem .7rem .4rem; }
  html .search-modal__input { font-size: 1rem; padding-top: .72rem; padding-bottom: .72rem; }
}

/* ═══ Pagina Dosare: filtrare rapidă deasupra listei (03/10/2026) ═══ */
.list-filter { padding: .6rem .9rem .55rem; border-bottom: 1px solid var(--paper-2); background: var(--white); flex-shrink: 0; }
.list-filter__field {
  position: relative; display: flex; align-items: center;
  background: #f6f1ea; border: 1px solid var(--paper-3); border-radius: 10px;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.list-filter__field:hover { border-color: #d9cfc2; }
.list-filter__field:focus-within { background: #faf6f0; border-color: var(--gold); box-shadow: var(--focus); }
html .list-filter__icon { position: absolute; left: .75rem; width: 1rem !important; height: 1rem !important; color: var(--ink-3); pointer-events: none; }
.list-filter__field:focus-within .list-filter__icon { color: var(--gold); }
.list-filter input {
  width: 100%; border: 0; outline: none; background: transparent; -webkit-appearance: none; appearance: none;
  font: 400 .9rem var(--font-sans); color: var(--ink); padding: .58rem 2.3rem .58rem 2.3rem;
}
.list-filter input::placeholder { color: #a39890; }
.list-filter input::-webkit-search-cancel-button { display: none; }
.list-filter input:focus-visible { box-shadow: none; }
.list-filter__clear {
  position: absolute; right: .3rem; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.list-filter__clear:hover { background: var(--paper-2); color: var(--ink); }
.list-filter__count { margin: .35rem .2rem 0; font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.list-filter__empty { padding: 1.6rem 1rem; text-align: center; color: var(--ink-3); font-size: .86rem; }
.is-filtered-out { display: none !important; }
@media (max-width: 680px) {
  .list-filter { position: sticky; top: calc(var(--nav-h) + 48px); z-index: 6; box-shadow: 0 6px 12px -10px rgba(36,23,15,.25); }
  .list-filter input { font-size: 16px; }
}

/* ═══ Afișare doar pe desktop / doar pe mobil ═══ */
.only-mob { display: none; }
@media (max-width: 680px) {
  .only-desk { display: none !important; }
  .only-mob { display: inline; }
}

/* ═══ Meniu: «Dosar nou» (mutat din dashboard) ═══ */
html body .nav--v3 .nav__links { align-items: center; }
html body .nav--v3 .nav__links li { display: flex; align-items: center; }
html body .nav--v3 .nav__link { display: inline-flex; align-items: center; line-height: 1.25; }   /* toate linkurile la fel de înalte, centrate pe linia logo-ului */
.nav__link--new { gap: .35rem; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-border); }
.nav__link--new .ic { width: 1rem; height: 1rem; stroke-width: 2.2; }
.nav__link--new:hover { background: var(--gold); color: #fff; box-shadow: none; }
@media (min-width: 681px) and (max-width: 1180px) {           /* ecran mediu: căutare și «+» compacte, ca meniul să încapă */
  .nav__link--new { padding: .5rem .62rem; }
  .nav__link--new span { display: none; }
  html body .nav__search-btn { width: 42px; padding: 0; justify-content: center; }
  html body .nav__search-btn .nav__search-text, html body .nav__search-btn .nav__search-kbd { display: none; }
}
@media (min-width: 681px) and (max-width: 960px) {
  html body .nav--v3 { gap: .6rem; padding: 0 1rem; }
  html body .nav--v3 .nav__links { margin-left: 0; gap: 0; }
  html body .nav--v3 .nav__link { padding: .5rem .6rem; font-size: .86rem; }
  html body .nav__user-name, html body .nav__user-chevron { display: none; }
}
.drawer__link--new, .drawer__link--new .ic { color: var(--gold); }
.drawer__link--new .ic { stroke-width: 2.2; }

/* Dashboard: fără titlul «Dashboard» și fără «+ Dosar nou» (e în meniu).
   Pe mobil, în locul lor: butonul «Lista Dosare»; pe desktop nimic (lista e în meniul de sus). */
@media (min-width: 681px) {
  .dash-title { display: none !important; }
}
.dash-list-btn {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .7rem .85rem;
  background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.dash-list-btn:hover, .dash-list-btn:active { border-color: var(--gold-border); box-shadow: var(--shadow-md); text-decoration: none; }
.dash-list-btn__icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--gold);
}
.dash-list-btn__icon .ic { width: 1.15rem; height: 1.15rem; }
.dash-list-btn__label { flex: 1; font-size: .95rem; font-weight: 700; }
.dash-list-btn__go { color: var(--ink-3); display: flex; }

/* ═══ Dashboard: termene suprapuse — card curat, pictograme simple, fundal ușor rozaliu ═══ */
.conflict-card {
  background: #fcf4f0; border: 1px solid #efdcd3; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.conflict-card:hover, .conflict-card.is-open { box-shadow: var(--shadow-md); border-color: #e8cbbd; }
.conflict-card .conflict-card__icon { background: rgba(194,65,45,.11); }
.conflict-card .conflict-card__body { border-top-color: #efdcd3; }
.conflict-card .conflict-card__head:hover .conflict-card__chev { background: rgba(255,255,255,.7); }
.conflict-card .conflict-row:hover { background: rgba(255,255,255,.75); }
.conflict-card .conflict-row__time { background: var(--white); box-shadow: inset 0 0 0 1px #efdcd3; }
.conflict-card .conflict-day + .conflict-day { border-top-color: #ecd7cc; }

/* ═══ Lista dosare: filtrul venit din cifrele de pe dashboard ═══ */
.list-filter__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .45rem; }
.list-filter__meta .list-filter__count { margin: 0 .2rem; }
.list-filter__chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .25rem .22rem .6rem;
  background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); border-radius: 999px;
  font-size: .76rem; font-weight: 700;
}
.list-filter__chip > .ic { width: .85rem; height: .85rem; }
.list-filter__chip button {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--gold);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.list-filter__chip button:hover { background: var(--gold); color: #fff; }
.list-filter__chip button .ic { width: .8rem; height: .8rem; stroke-width: 2.4; }
.conflict-card__head {
  width: 100%; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem .85rem .95rem;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-sans);
}
.conflict-card__icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-bg); color: var(--red);
}
.conflict-card__icon .ic { width: 1.15rem; height: 1.15rem; }
.conflict-card__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.conflict-card__text strong { font-size: .92rem; font-weight: 700; color: var(--ink); }
.conflict-card__text small { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.conflict-card__text b { color: var(--red); font-weight: 600; }
.conflict-card__chev {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
  transition: transform .2s ease, background var(--t), color var(--t);
}
.conflict-card__head:hover .conflict-card__chev { background: var(--paper-2); color: var(--ink); }
.conflict-card.is-open .conflict-card__chev { transform: rotate(180deg); }
.conflict-card__body { border-top: 1px solid var(--paper-2); padding: .4rem .6rem .7rem; }
.conflict-day { padding: .45rem .35rem .2rem; }
.conflict-day + .conflict-day { border-top: 1px dashed var(--paper-3); margin-top: .35rem; padding-top: .7rem; }
.conflict-day__label {
  display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem .1rem;
  font-size: .76rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em;
}
.conflict-day__label .ic { color: var(--red); width: .95rem; height: .95rem; }
.conflict-row {
  display: flex; align-items: center; gap: .75rem; padding: .5rem .55rem; border-radius: 10px;
  color: inherit; text-decoration: none; transition: background var(--t);
}
.conflict-row:hover { background: var(--paper); text-decoration: none; }
.conflict-row__time {
  flex-shrink: 0; min-width: 3.3rem; text-align: center; padding: .22rem .45rem; border-radius: 7px;
  background: var(--paper-2); color: var(--ink); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.conflict-row__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.conflict-row__main strong { font-size: .86rem; color: var(--ink); }
.conflict-row__main small { font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conflict-row__go { color: #c9bdb1; flex-shrink: 0; display: flex; transition: color var(--t), transform var(--t); }
.conflict-row:hover .conflict-row__go { color: var(--gold); transform: translateX(2px); }

/* ═══ Mobil: pagina Dosare — «Lista Dosare», «+» compact, glisare între liste și detalii ═══ */
@media (max-width: 680px) {
  html body .sidebar__add { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 11px; }
  html body .sidebar__add .ic { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }
  #dosare-layout { overflow-x: clip; }
  #dosare-layout.slide-from-right.tab-detail .detail-pane { animation: dosare-in-right .24s ease-out; }
  #dosare-layout.slide-from-left.tab-list .sidebar       { animation: dosare-in-left .24s ease-out; }
}
@keyframes dosare-in-right { from { transform: translateX(36px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes dosare-in-left  { from { transform: translateX(-36px); opacity: .25; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #dosare-layout .detail-pane, #dosare-layout .sidebar { animation: none !important; }
}

/* ═══ Dashboard: «Distribuție pe instanțe» — listă ⇄ hartă (03/10/2026) ═══ */
.inst-card__header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.inst-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: 10px; }
.inst-toggle__btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-3); font: 600 .76rem var(--font-sans); cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.inst-toggle__btn .ic { width: .95rem; height: .95rem; }
.inst-toggle__btn:hover { color: var(--ink); }
.inst-toggle__btn.is-active { background: var(--white); color: var(--gold); box-shadow: var(--shadow-sm); }

/* «Întoarce» cardul: se rotește pe muchie, apoi revine cu cealaltă față */
.inst-flip { transform-origin: 50% 50%; will-change: transform; }
.inst-flip.is-turning-out { transform: perspective(1000px) rotateY(88deg); opacity: .3; transition: transform .21s ease-in, opacity .21s ease-in; }
.inst-flip.is-turning-in-start { transform: perspective(1000px) rotateY(-88deg); opacity: .3; transition: none; }
.inst-flip.is-turning-in { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease-out; }

.inst-map {
  position: relative; z-index: 0; isolation: isolate;             /* panourile Leaflet nu mai trec peste meniul de sus */
  height: 340px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--paper-3); background: #f2ede7;
}
.inst-map .leaflet-tile-pane { filter: grayscale(.45) sepia(.22) saturate(.85) brightness(1.04) contrast(.92); }   /* hartă OSM estompată, în tonurile aplicației */
.inst-map__loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45rem;
  color: var(--ink-3); font-size: .82rem; text-align: center; padding: 1rem;
}
.inst-map .leaflet-control-attribution { font-size: .62rem; background: rgba(255,255,255,.75); }
.inst-map .leaflet-bar { border: 1px solid var(--paper-3); border-radius: 9px; box-shadow: var(--shadow-sm); overflow: hidden; }
.inst-map .leaflet-bar a { color: var(--ink-2); border-bottom-color: var(--paper-3); }
.inst-map__reset {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--white); color: var(--ink-2); border: 1px solid var(--paper-3); border-radius: 9px; box-shadow: var(--shadow-sm);
}
.inst-map__reset:hover { color: var(--gold); }
.inst-map__reset .ic { width: 1rem; height: 1rem; }

.inst-pin-wrap { background: none; border: 0; }
.inst-pin {
  position: relative; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--gold); color: #fff; font: 700 .8rem var(--font-sans); font-variant-numeric: tabular-nums;
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(36,23,15,.3); transition: transform .15s ease, background .15s ease;
}
.inst-pin:hover { transform: scale(1.08); background: var(--gold-light); }
.inst-pin--group { background: var(--gold-dim); box-shadow: 0 0 0 5px rgba(168,85,42,.22), 0 3px 10px rgba(36,23,15,.3); }
.inst-pin__urg { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

.inst-map__legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; font-size: .74rem; color: var(--ink-3); }
.inst-map__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.inst-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--paper-3); display: inline-block; }
.inst-dot--urgent { background: var(--red); }

/* Detalii la hover (tooltip) și la apăsare (popup) */
.leaflet-tooltip.inst-tip {
  width: 300px; white-space: normal; padding: .7rem .8rem; border-radius: 12px;
  border: 1px solid var(--paper-3); box-shadow: var(--shadow-lg); color: var(--ink); font-family: var(--font-sans);
}
.leaflet-tooltip-top.inst-tip::before { border-top-color: var(--white); }
.inst-popup .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-xl); }
.inst-popup .leaflet-popup-content { margin: .8rem .9rem; font-family: var(--font-sans); color: var(--ink); }
.mt-loc__head { display: flex; flex-direction: column; gap: .05rem; padding-bottom: .4rem; border-bottom: 1px solid var(--paper-2); }
.mt-loc__head b { font-size: .88rem; line-height: 1.3; }
.mt-loc__head small { font-size: .72rem; color: var(--ink-3); }
.mt-inst { margin-top: .5rem; }
.mt-inst__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .15rem; }
.mt-inst__head span { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.mt-inst__head em { font-style: normal; font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.mt-sub { font-size: .7rem; color: var(--ink-3); }
.mt-dosar {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  padding: .28rem .35rem; border-radius: 8px; color: inherit; text-decoration: none;
}
a.mt-dosar:hover { background: var(--paper); text-decoration: none; }
.mt-dosar__main { display: flex; flex-direction: column; min-width: 0; }
.mt-dosar__main b { font-size: .77rem; }
.mt-dosar__main small { font-size: .68rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-dosar__t { font-size: .7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #d6cdc4; }
.mt-dot--urgent { background: var(--red); }
.mt-dot--curand { background: #f4b400; }
.mt-dot--viitor { background: var(--blue); }
.mt-dot--trecut { background: #b8a99c; }
.mt-more, .mt-hint { font-size: .7rem; color: var(--ink-3); padding: .15rem .35rem 0; }
.mt-link { display: inline-block; margin: .3rem .35rem 0; font-size: .74rem; font-weight: 600; color: var(--gold); }
@media (max-width: 680px) {
  .inst-map { height: 300px; }
  .leaflet-tooltip.inst-tip { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .inst-flip, .inst-flip.is-turning-in, .inst-flip.is-turning-out { transition: none !important; transform: none !important; }
}
/* Leaflet își încarcă stilurile după ale noastre: aceste reguli au prioritate mai mare */
.inst-map.leaflet-container { font-family: var(--font-sans); }
.inst-map.leaflet-container .leaflet-bar { border: 1px solid var(--paper-3); }
.inst-map.leaflet-container .leaflet-control-attribution { font-size: .62rem; }
.inst-map.leaflet-container a.mt-dosar { color: var(--ink); }
.inst-map.leaflet-container a.mt-link { color: var(--gold); }
/* Panoul cu detalii al hărții: plutește deasupra paginii (nu mai e tăiat de marginile hărții) */
.inst-float {
  position: fixed; z-index: 1200; width: 320px; max-width: calc(100vw - 16px); max-height: min(70vh, 480px); overflow: auto;
  background: var(--white); border: 1px solid var(--paper-3); border-radius: 14px; box-shadow: var(--shadow-xl);
  padding: .75rem .85rem; font-family: var(--font-sans); color: var(--ink); pointer-events: none;
  animation: inst-float-in .14s ease-out;
}
.inst-float[hidden] { display: none; }
.inst-float.is-pinned { pointer-events: auto; padding-top: .85rem; }
.inst-float.is-sheet {
  left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; max-height: 65vh;
  border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(36,23,15,.18); animation: inst-sheet-in .2s ease-out;
}
.inst-float__close {
  position: absolute; top: .45rem; right: .5rem; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-2); font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.inst-float__close:hover { background: var(--paper-3); color: var(--ink); }
.inst-float .mt-loc__head { padding-right: 2rem; }
@keyframes inst-float-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes inst-sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ═══ 05/10/2026 ═══ */
/* Mobil, dashboard: «Lista Dosare» + buton «+» pentru dosar nou */
.dash-list-row { display: flex; gap: .6rem; margin-bottom: 1rem; }
.dash-list-row .dash-list-btn { flex: 1; min-width: 0; margin-bottom: 0; }
.dash-add-btn {
  width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  text-decoration: none; transition: background var(--t);
}
.dash-add-btn:hover, .dash-add-btn:active { background: var(--gold-dim); color: #fff; }
.dash-add-btn .ic { width: 1.45rem; height: 1.45rem; stroke-width: 2.4; }

/* Termene suprapuse: antetul rămâne rozaliu, conținutul deschis e alb, ca restul cardurilor */
.conflict-card .conflict-card__body { background: var(--white); }
.conflict-card .conflict-row:hover { background: var(--paper); }
.conflict-card .conflict-row__time { background: var(--paper-2); box-shadow: none; }
.conflict-card .conflict-day + .conflict-day { border-top-color: var(--paper-3); }

/* Detalii dosar: conflict cu alte ședințe din aceeași zi */
.dosar-conflict {
  margin-bottom: 1.1rem; border: 1px solid #efdcd3; border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
}
.dosar-conflict__head { display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; background: #fcf4f0; }
.dosar-conflict__head strong { display: block; font-size: .88rem; color: var(--ink); }
.dosar-conflict__head small { font-size: .76rem; color: var(--ink-3); }
.dosar-conflict__icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(194,65,45,.11); color: var(--red);
}
.dosar-conflict__row {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; border-top: 1px solid var(--paper-2);
  color: inherit; text-decoration: none; transition: background var(--t);
}
.dosar-conflict__row:hover { background: var(--paper); text-decoration: none; }
.dosar-conflict__time {
  flex-shrink: 0; min-width: 3.2rem; text-align: center; padding: .2rem .4rem; border-radius: 7px;
  background: var(--paper-2); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dosar-conflict__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dosar-conflict__main b { font-size: .84rem; }
.dosar-conflict__main small { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dosar-conflict__gap { flex-shrink: 0; font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.dosar-conflict__row.is-overlap .dosar-conflict__time { background: var(--red-bg); color: var(--red); }
.dosar-conflict__row.is-overlap .dosar-conflict__gap { color: var(--red); font-weight: 700; }

/* ═══ 06/10/2026: culori în stilul Google pentru cifrele de pe dashboard ═══ */
:root {
  --g-blue: #1a73e8; --g-green: #188038; --g-red: #d93025; --g-yellow: #e37400;
  --g-purple: #9334e6; --g-cyan: #0b8a9c; --g-gray: #5f6368;
}
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gstat { --gc: var(--g-blue); position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: center; gap: .15rem; border-top: 0; }
.gstat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gc); }
.gstat .card--stat__num { color: var(--gc) !important; font-weight: 800; }
.gstat .card--stat__label { color: var(--ink-2); }
.gstat:hover { box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-1px); }
.gstat--blue   { --gc: var(--g-blue); }
.gstat--green  { --gc: var(--g-green); }
.gstat--red    { --gc: var(--g-red); }
.gstat--yellow { --gc: var(--g-yellow); }
.gstat--purple { --gc: var(--g-purple); }
.gstat--cyan   { --gc: var(--g-cyan); }
.gstat--gray   { --gc: var(--g-gray); }
@media (max-width: 680px) {
  .dash-stats > .gstat:last-child:nth-child(odd) { grid-column: span 2; }
}
/* Termene suprapuse: accent roșu Google */
.conflict-card .conflict-card__icon { background: rgba(217,48,37,.1); color: var(--g-red); }
.conflict-card .conflict-card__text b { color: var(--g-red); }

/* Starea dosarului (din ședințele de pe portal) */
.stare-chip { display: inline-flex; align-items: center; margin-top: .25rem; padding: .1rem .5rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; font-family: var(--font-sans); white-space: nowrap; }
.stare-chip--pronuntare { background: rgba(147,52,230,.1); color: var(--g-purple); }
.stare-chip--solutionat { background: rgba(11,138,156,.1); color: var(--g-cyan); }
.stare-chip--definitiv  { background: rgba(24,128,56,.1); color: var(--g-green); }
.stare-chip--suspendat  { background: rgba(95,99,104,.12); color: var(--g-gray); }
.stare-chip--asteapta   { background: rgba(227,116,0,.1); color: var(--g-yellow); }
.dosar-head .stare-chip { margin-top: 0; font-size: .72rem; padding: .15rem .6rem; }

/* Lista dosare: vederi rapide + «Mai multe» */
.view-chips { display: flex; gap: .35rem; margin-top: .55rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.view-chips::-webkit-scrollbar { display: none; }
.view-chip {
  display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; padding: .32rem .65rem; border-radius: 999px;
  border: 1px solid var(--paper-3); background: var(--white); color: var(--ink-2); cursor: pointer;
  font: 600 .74rem var(--font-sans); white-space: nowrap; transition: background var(--t), border-color var(--t), color var(--t);
}
.view-chip .ic { width: .9rem; height: .9rem; color: var(--ink-3); }
.view-chip:hover { border-color: var(--gold-border); color: var(--ink); }
.view-chip.is-active { background: var(--gold-bg); border-color: var(--gold-border); color: var(--gold); }
.view-chip.is-active .ic { color: var(--gold); }
.view-chip em { font-style: normal; min-width: 1.1rem; height: 1.1rem; border-radius: 999px; background: var(--gold); color: #fff;
  font-size: .64rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .25rem; }

.vf-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(36,23,15,.32); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.vf-modal { width: min(560px, 100%); max-height: min(86vh, 720px); display: flex; flex-direction: column; background: var(--white);
  border-radius: 18px; box-shadow: var(--shadow-xl); overflow: hidden; font-family: var(--font-sans); }
.vf-modal__head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--paper-2); }
.vf-modal__head strong { font-size: 1rem; }
.vf-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.vf-modal__body { padding: .4rem 1.1rem 1rem; overflow-y: auto; }
.vf-sec { margin: .9rem 0 .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); display: block; }
.vf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.vf-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; padding: .55rem .7rem;
  border: 1px solid var(--paper-3); border-radius: 11px; background: var(--white); cursor: pointer; position: relative;
  font: 600 .8rem var(--font-sans); color: var(--ink); transition: border-color var(--t), background var(--t); }
.vf-opt small { font-weight: 400; font-size: .68rem; color: var(--ink-3); }
.vf-opt em { position: absolute; top: .5rem; right: .6rem; font-style: normal; font-size: .72rem; color: var(--ink-3); font-weight: 700; }
.vf-opt:hover { border-color: var(--gold-border); }
.vf-opt.is-active { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-dim); }
.vf-opt.is-empty { opacity: .55; }
.vf-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.vf-selects label { display: block; min-width: 0; }
.vf-selects .form-select { width: 100%; font-size: .85rem; }
.vf-modal__foot { display: flex; justify-content: space-between; gap: .6rem; padding: .8rem 1.1rem; border-top: 1px solid var(--paper-2); background: var(--paper); }
@media (max-width: 680px) {
  .vf-backdrop { align-items: flex-end; padding: 0; }
  .vf-modal { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .vf-modal__foot { padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
  .vf-selects { grid-template-columns: minmax(0, 1fr); }
  .vf-selects .form-select { font-size: 16px; }
}
/* Vederile rapide se așază pe două rânduri: toate vizibile, fără derulare laterală (mouse) */
.view-chips { flex-wrap: wrap; overflow: visible; }
/* Ordonările: doar pictograme (descrierea apare la hover) */
.view-chip--icon { padding: .32rem .5rem; }
.view-chip--icon .ic { width: 1.05rem; height: 1.05rem; }
.view-chips__sep { width: 1px; align-self: stretch; margin: .2rem .15rem; background: var(--paper-3); }
.vf-sorts { display: flex; gap: .45rem; flex-wrap: wrap; }
.vf-sort { width: 46px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--paper-3); border-radius: 11px; background: var(--white); color: var(--ink-2);
  transition: border-color var(--t), background var(--t), color var(--t); }
.vf-sort .ic { width: 1.25rem; height: 1.25rem; }
.vf-sort:hover { border-color: var(--gold-border); color: var(--ink); }
.vf-sort.is-active { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }
.vf-sort-now { margin: .5rem 0 0; font-size: .8rem; font-weight: 600; color: var(--ink); }
.vf-sort-now small { font-weight: 400; color: var(--ink-3); }
/* Rândul de filtre: un singur rând; ce nu încape se ascunde (rămâne în «Filtre») */
.view-chips { flex-wrap: nowrap; overflow: hidden; }
.view-chips .is-overflow { display: none !important; }
.view-chip--more { margin-left: 0; }
.view-chip.is-picked { padding-right: .25rem; }
.view-chip.is-picked > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.view-chip__x { width: 18px; height: 18px; margin-left: .1rem; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--gold); }
.view-chip__x:hover { background: var(--gold); color: #fff; }
.view-chip__x .ic { width: .75rem !important; height: .75rem !important; stroke-width: 2.4; color: inherit !important; }
.view-chip--icon.is-picked { padding: .32rem .3rem .32rem .5rem; }
.list-filter__meta { margin: .4rem 0 0; }
.view-chip.is-picked > span { max-width: 120px; }
/* Pictogramele de ordonare din rând: clic = ordonează; cea activă e evidențiată */
.view-chips .view-chip--icon { padding: 0; gap: 0; }
.view-chip__ic { display: inline-flex; align-items: center; justify-content: center; padding: .32rem .55rem;
  border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: inherit; }
.view-chips .view-chip__ic { padding: .32rem .42rem; }
.view-chips { gap: .3rem; }
.view-chip--icon.is-picked { padding: 0 .3rem 0 0; }
.view-chip--icon.is-picked .view-chip__ic { padding-right: .3rem; }
/* Dashboard desktop: caseta «Termene» exact cât calendarul. Rândul ia înălțimea calendarului,
   iar caseta umple coloana (lista derulează în interior), deci nu o mai poate lungi. */
@media (min-width: 961px) {
  html body .dash-body { align-items: stretch; }
  html body .dash-col-left { position: relative; min-height: 360px; }
  html body .dash-col-left > .dash-term-card { position: absolute; inset: 0; height: auto !important; margin: 0; }
}
/* Bulina pentru termene în 30 de zile: galben clar (portocaliul se confunda cu roșul de 7 zile) */
html body .urgency--yellow { background: #f4b400; box-shadow: 0 0 0 1px rgba(180,130,0,.25); }
/* Calendar: zilele de pronunțare (avocatul nu trebuie să vină) — aceeași culoare de urgență, cu bulină mov în față
   (mov = culoarea «În pronunțare» din lista de dosare) */
.pron-dot { display: inline-block; width: 8px; height: 8px; margin-right: .35rem; border-radius: 50%; flex-shrink: 0;
  background: var(--g-purple, #9334e6); box-shadow: 0 0 0 1.5px #fff; vertical-align: middle; }
.fc .ev-pron .fc-event-title::before, .fc .ev-pron .fc-list-event-title a::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%;
  background: var(--g-purple, #9334e6); box-shadow: 0 0 0 1.5px #fff; vertical-align: 0; }
.ev-pron-note { display: flex; align-items: center; gap: .1rem; font-size: .78rem; font-weight: 600; color: var(--g-purple, #9334e6); }
/* ═══ Interogare portal (pages/portal.html) ═══ */
.pq-wrap { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.pq-head { margin-bottom: 1rem; }
.pq-title { display: flex; align-items: center; gap: .55rem; margin: 0; font-family: var(--font-serif); font-size: 1.6rem; color: var(--ink); }
.pq-title .ic { width: 1.4rem; height: 1.4rem; color: var(--gold); }
.pq-sub { margin: .3rem 0 0; color: var(--ink-3); font-size: .88rem; }
.pq-form { display: flex; gap: .6rem; margin-bottom: 1.1rem; }
.pq-input { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; min-height: 46px; background: var(--white);
  border: 1px solid var(--paper-3); border-radius: 12px; box-shadow: var(--shadow-sm); }
.pq-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.pq-input .ic { color: var(--ink-3); flex-shrink: 0; }
.pq-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 1rem var(--font-sans); color: var(--ink); }
.pq-form .btn { min-height: 46px; padding-inline: 1.3rem; }
.pq-msg { display: flex; align-items: flex-start; gap: .55rem; padding: .85rem 1rem; border-radius: 12px; background: var(--white);
  border: 1px solid var(--paper-3); color: var(--ink-2); font-size: .9rem; }
.pq-msg .ic { flex-shrink: 0; margin-top: .1rem; color: var(--ink-3); }
.pq-msg--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pq-msg--err .ic { color: #dc2626; }
.pq-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.pq-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .9rem; cursor: pointer; text-align: left;
  border: 1px solid var(--paper-3); border-radius: 12px; background: var(--white); color: var(--ink-2); font-family: var(--font-sans); flex-shrink: 0; }
.pq-tab strong { font-size: .85rem; color: var(--ink); }
.pq-tab span { font-size: .75rem; color: var(--ink-3); }
.pq-tab.is-active { background: var(--gold-bg); border-color: var(--gold); }
.pq-tab.is-active strong { color: var(--gold); }
.pq-note { margin: .45rem 0 .9rem; font-size: .78rem; color: var(--ink-3); }
.pq-dosar { display: flex; flex-direction: column; gap: 1rem; }
.pq-card { padding: 1.1rem 1.2rem; }
.pq-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.pq-numar { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.pq-inst { margin: .2rem 0 0; color: var(--ink-3); font-size: .85rem; }
.pq-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.pq-actions form { margin: 0; }
.pq-next { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; margin-top: .9rem; padding: .6rem .8rem; border-radius: 10px;
  background: rgba(26,115,232,.07); color: var(--ink-2); font-size: .88rem; }
.pq-next .ic { color: var(--g-blue, #1a73e8); }
.pq-next small { display: inline-flex; align-items: center; color: var(--g-purple); font-weight: 600; }
.pq-next--pron { background: rgba(147,52,230,.07); }
.pq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1rem; margin: 1rem 0 0; }
.pq-grid > div { min-width: 0; }
.pq-grid dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.pq-grid dd { margin: .15rem 0 0; font-size: .88rem; color: var(--ink); overflow-wrap: anywhere; }
.pq-grid__wide { grid-column: 1 / -1; }
.pq-h { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font-size: 1rem; color: var(--ink); }
.pq-h .ic { color: var(--gold); }
.pq-h em { font-style: normal; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }
.pq-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pq-table th { text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
  padding: .45rem .6rem; border-bottom: 1px solid var(--paper-3); }
.pq-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--paper-2); color: var(--ink); vertical-align: top; overflow-wrap: anywhere; }
.pq-table tr:last-child td { border-bottom: 0; }
.pq-empty, .pq-muted { color: var(--ink-3); font-size: .86rem; margin: 0; }
.pq-sed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pq-sed__item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--paper-2); }
.pq-sed__item:first-child { border-top: 0; padding-top: .2rem; }
.pq-sed__item.is-future .pq-sed__when strong { color: var(--g-blue, #1a73e8); }
.pq-sed__when { display: flex; flex-direction: column; gap: .15rem; font-size: .82rem; color: var(--ink-3); }
.pq-sed__when strong { display: inline-flex; align-items: center; font-size: .95rem; color: var(--ink); }
.pq-tag { align-self: flex-start; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .05rem .4rem;
  border-radius: 999px; background: rgba(26,115,232,.1); color: var(--g-blue, #1a73e8); }
.pq-sed__body > p { margin: 0 0 .3rem; }
.pq-sed__complet { font-size: .78rem; color: var(--ink-3); }
.pq-sed__sol { font-weight: 700; font-size: .9rem; color: var(--ink); }
.pq-sumar__text { margin: 0; white-space: pre-line; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.pq-sumar__text.is-long:not(.is-open) { max-height: 8.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pq-more { margin-top: .2rem; padding: 0; border: 0; background: none; color: var(--gold); font: 600 .8rem var(--font-sans); cursor: pointer; }
.pq-doc { display: flex; align-items: center; gap: .35rem; margin-top: .35rem !important; font-size: .8rem; color: var(--ink-3); }
.pq-doc .ic { width: .9rem; height: .9rem; }
.pq-foot { margin: 1rem 0 0; text-align: center; font-size: .75rem; color: var(--ink-3); }
@media (max-width: 680px) {
  .pq-wrap { padding: 1rem 1rem 2.5rem; }
  .pq-title { font-size: 1.3rem; }
  .pq-input input { font-size: 16px; }
  .pq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-sed__item { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .pq-sed__when { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .pq-card { padding: 1rem; }
  .pq-actions { width: 100%; }
  /* tabelele devin carduri pe telefon */
  .pq-table thead { display: none; }
  .pq-table tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--paper-2); }
  .pq-table tr:last-child { border-bottom: 0; }
  .pq-table td { display: block; padding: .1rem 0; border: 0; }
  .pq-table td + td { color: var(--ink-3); font-size: .8rem; }
}
/* Interogare portal — vizitatori fără cont: antet public și îndemn la înscriere */
.pq-pubnav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem max(1rem, calc((100% - 980px) / 2 + 1rem)); background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-3); }
.pq-pubnav__logo img { display: block; height: 44px; width: auto; }
.pq-pubnav__links { display: flex; align-items: center; gap: .4rem; }
.pq-limita { margin: .7rem 0 0; }
.pq-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2rem; margin-top: 1.5rem;
  padding: 1.5rem 1.6rem; border-radius: 18px; background: linear-gradient(135deg, var(--gold-bg), rgba(26,115,232,.06));
  border: 1px solid var(--gold-border); }
.pq-cta h2 { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.pq-cta p { margin: .35rem 0 0; color: var(--ink-2); font-size: .92rem; }
.pq-cta__list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.2rem; }
.pq-cta__list li { display: flex; align-items: flex-start; gap: .45rem; font-size: .85rem; color: var(--ink-2); }
.pq-cta__list .ic { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .1rem; color: var(--gold); }
.pq-cta__actions { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.pq-cta__actions .btn { white-space: nowrap; }
.pq-cta__login { font-size: .82rem; color: var(--ink-3); }
.pq-cta__login:hover { color: var(--gold); }
@media (max-width: 680px) {
  .pq-pubnav { padding: .45rem 1rem; }
  .pq-pubnav__logo img { height: 38px; }
  .pq-pubnav__links .btn--ghost { display: none; }
  .pq-cta { grid-template-columns: minmax(0, 1fr); padding: 1.2rem 1.1rem; }
  .pq-cta__list { grid-template-columns: minmax(0, 1fr); }
  .pq-cta__actions .btn { width: 100%; justify-content: center; }
}
/* Pagina de prezentare (/app/): căutare publică pe portal */
.landing-pq { width: 100%; max-width: 560px; margin: 2.2rem auto 0; padding: 1.1rem 1.2rem; text-align: left; background: var(--white);
  border: 1px solid var(--paper-3); border-radius: 16px; box-shadow: var(--shadow-sm); }
.landing-pq__label { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; font-weight: 700; font-size: .95rem; color: var(--ink); }
.landing-pq__label .ic { color: var(--gold); }
.landing-pq__row { display: flex; gap: .5rem; }
.landing-pq__row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--paper-3); border-radius: 10px;
  font: 600 1rem var(--font-sans); color: var(--ink); background: var(--paper); }
.landing-pq__row input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); background: var(--white); }
.landing-pq__row .btn { min-height: 44px; white-space: nowrap; }
.landing-pq__hint { margin: .55rem 0 0; font-size: .78rem; color: var(--ink-3); }
.landing-pq__hint a { color: var(--gold); font-weight: 600; }
@media (max-width: 480px) { .landing-pq__row { flex-direction: column; } .landing-pq__row input { font-size: 16px; } }
/* Pagina de prezentare: fără titlul «legalcafe.ro» (era dublat de logo); subtitlul e titlul paginii (h1) */
h1.landing__subtitle { margin: 1rem 0 1rem; font-family: var(--font-sans); font-size: 1.15rem; line-height: 1.4; letter-spacing: 0; }
