/* CV Analyzer — sistema visivo «Lilla e salvia» (style-ui-moderna, style-badge-stati).
   Lilla: interfaccia, azioni, suggerimenti dell'AI. Salvia: persone candidate ed esiti positivi.
   Ambra e corallo: attese e problemi. Nebbia: neutri velati di viola. */
:root {
  --lilla-25: #FBF9FF; --lilla-50: #F6F2FE; --lilla-100: #EEE7FD; --lilla-200: #DFD2FB; --lilla-300: #C8B3F6; --lilla-400: #AB8DEE;
  --lilla-500: #9170E2; --lilla-600: #7955D0; --lilla-700: #6443B2; --lilla-800: #513890; --lilla-900: #3F2D6E; --lilla-950: #271A47;
  --salvia-25: #F6FCF8; --salvia-50: #EEF9F2; --salvia-100: #DDF3E5; --salvia-200: #C3E9D2; --salvia-300: #A1DBBA; --salvia-400: #78C69C;
  --salvia-500: #52AD7E; --salvia-600: #3A9166; --salvia-700: #2C7552; --salvia-800: #245D43; --salvia-900: #1D4A36; --salvia-950: #112E21;
  --nebbia-0: #FFFFFF; --nebbia-25: #FCFBFE; --nebbia-50: #F8F7FC; --nebbia-100: #F2F0F8; --nebbia-200: #E7E4F0; --nebbia-300: #D5D0E1;
  --nebbia-400: #ABA4BC; --nebbia-500: #827B94; --nebbia-600: #625B74; --nebbia-700: #48425A; --nebbia-800: #302B3F; --nebbia-900: #1E1A2B;
  --ambra-50: #FFF6DD; --ambra-100: #FFFBF0; --ambra-300: #F0CE7A; --ambra-500: #E0A21B; --ambra-700: #8A5A00;
  --corallo-50: #FDEEEE; --corallo-200: #F6C7C7; --corallo-600: #C13A3A; --corallo-700: #9E2C2C;
  --evidenza: rgba(255, 214, 51, .36); --evidenza-attiva: rgba(255, 199, 0, .46);
  --linea: #EEEBF5;

  --font-ui: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;   /* titoli e nome dell'app: serif morbido (vedi .font-display) */
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ruoli usati dalle pagine esistenti */
  --cva-primary: var(--lilla-600); --cva-primary-600: var(--lilla-800); --cva-primary-100: var(--lilla-100);
  --cva-accent: var(--lilla-600); --cva-accent-600: var(--lilla-800);
  --cva-success: var(--salvia-700); --cva-warning: var(--ambra-500); --cva-danger: var(--corallo-600); --cva-info: var(--lilla-600); --cva-dark: var(--nebbia-800);
  --cva-bg: var(--nebbia-50); --cva-surface: #FFFFFF; --cva-text: var(--nebbia-900); --cva-muted: var(--nebbia-600); --cva-border: var(--nebbia-200);
  --cva-radius: 22px;
  --cva-shadow: 0 1px 2px rgba(39, 26, 71, .04), 0 10px 28px rgba(39, 26, 71, .06);
  --cva-shadow-hover: 0 1px 2px rgba(39, 26, 71, .05), 0 16px 34px rgba(39, 26, 71, .09);
  --sidebar-w: 248px;
  /* vetro (dec-logo-studio-e-vetro): superfici traslucide sopra il piano tinto; più coprente sotto i dati */
  --vetro: rgba(255, 255, 255, .7);
  --vetro-denso: rgba(255, 255, 255, .86);
  --vetro-sfoca: blur(16px) saturate(140%);
  --vetro-luce: inset 0 1px 0 rgba(255, 255, 255, .75);

  /* Bootstrap */
  --bs-primary: var(--lilla-600); --bs-primary-rgb: 121, 85, 208;
  --bs-success-rgb: 44, 117, 82; --bs-danger-rgb: 193, 58, 58; --bs-warning-rgb: 224, 162, 27;
  --bs-body-bg: var(--nebbia-50); --bs-body-color: var(--nebbia-900); --bs-body-font-family: var(--font-ui); --bs-body-font-size: .9375rem;
  --bs-font-sans-serif: var(--font-ui); --bs-font-monospace: var(--font-mono);
  --bs-secondary-color: var(--nebbia-600); --bs-border-color: var(--nebbia-200);
  --bs-link-color: var(--lilla-700); --bs-link-color-rgb: 100, 67, 178; --bs-link-hover-color: var(--lilla-800); --bs-link-hover-color-rgb: 81, 56, 144;
  --bs-border-radius: 12px; --bs-border-radius-sm: 10px; --bs-border-radius-lg: 16px;
  --bs-focus-ring-color: rgba(121, 85, 208, .25);
}

/* ------------------------------------------------------------ base */
html, body { min-height: 100%; }
body { background: var(--nebbia-50); color: var(--nebbia-900); font-family: var(--font-ui); font-size: .9375rem; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--nebbia-900); font-weight: 600; letter-spacing: -.005em; }
a { color: var(--lilla-700); text-decoration: none; }
a:hover { color: var(--lilla-800); text-decoration: underline; }
::selection { background: var(--lilla-200); }
:focus-visible { outline: 2px solid var(--lilla-600); outline-offset: 2px; }
.font-display { font-family: var(--font-display); }
/* Fraunces nella versione morbida (asse SOFT), senza le lettere «wonky»: terminazioni tonde come il simbolo dello studio;
   l'ottica (opsz) segue la grandezza da sola */
.font-display, .page-title, .stat-card .stat-value, .kpi-hero-val, .kpi-hero-unit, .kpi-row-val, .val-title, .hero-name,
.empty-state h5, .modal-title, .login-app, .login-titolo, .ev-title, .sb-brand-name, .accesso-app { font-variation-settings: "SOFT" 100, "WONK" 0; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.tnum { font-variant-numeric: tabular-nums; }
.text-muted, .text-secondary { color: var(--nebbia-600) !important; }
.text-primary { color: var(--lilla-700) !important; }
.text-danger { color: var(--corallo-700) !important; }
.text-success { color: var(--salvia-700) !important; }
.text-warning { color: var(--ambra-700) !important; }
.bg-primary-soft { background: var(--lilla-50) !important; }
.bg-light { background: var(--nebbia-50) !important; }
.border { border-color: var(--nebbia-200) !important; }
.border-top, .border-bottom { border-color: var(--nebbia-100) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* piano dell'app (dopo l'accesso): due aloni della palette e il simbolo dello studio in filigrana, fermi mentre si scorre;
   danno al vetro qualcosa da sfumare (dec-logo-studio-e-vetro) */
body.con-sfondo::before, body.con-sfondo::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
body.con-sfondo::before { inset: 0; background: radial-gradient(900px 640px at 100% 0%, rgba(200, 179, 246, .36), transparent 70%), radial-gradient(820px 620px at 32% 100%, rgba(195, 233, 210, .34), transparent 70%); }
body.con-sfondo::after { right: -170px; top: -150px; width: 600px; height: 600px; background: url("/static/img/simbolo.svg") center / contain no-repeat; opacity: .09; }
@media (max-width: 991.98px) { body.con-sfondo::after { right: -100px; top: -60px; width: 340px; height: 340px; } }

/* icone: sprite SVG a tratto (/static/img/icons.svg) */
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ico-14 { width: 14px; height: 14px; vertical-align: -2px; }
.ico-16 { width: 16px; height: 16px; vertical-align: -3px; }
.ico-18 { width: 18px; height: 18px; }
.ico-bold { stroke-width: 2.2; }

/* ------------------------------------------------------------ guscio: barra laterale + contenuto */
.app-shell { display: flex; min-height: 100vh; }
.app-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main { flex-grow: 1; min-width: 0; padding: 40px 48px 44px; }
.app-main.app-main-guest { padding: 0; }   /* anche su mobile: il login va da bordo a bordo */
.app-sidebar { --bs-offcanvas-width: 280px; width: var(--sidebar-w); flex-shrink: 0; border-right: 1px solid var(--linea); }
/* barra laterale in lilla sfumato verso il viola; la voce attiva è una pillola bianca */
.sb-inner { height: 100%; min-height: 100vh; display: flex; flex-direction: column; gap: 30px; padding: 28px 16px 20px; background: linear-gradient(180deg, var(--lilla-50) 0%, var(--lilla-100) 55%, var(--lilla-200) 100%); overflow-y: auto; }
@media (min-width: 992px) { .app-sidebar { position: sticky; top: 0; height: 100vh; } .sb-inner { min-height: 0; } }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: inherit; text-decoration: none; }
.sb-brand:hover { text-decoration: none; color: inherit; }
/* logo dell'app (static/img/logo.svg): fogli sfumati su riquadro bianco */
.brand-mark { display: block; width: 38px; height: 38px; flex-shrink: 0; border-radius: 26%; box-shadow: 0 6px 14px rgba(121, 85, 208, .18); }
.sb-brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-brand-name { font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -.01em; color: var(--lilla-950); line-height: 1.2; }
.sb-brand-sub { font-size: 12.5px; color: var(--nebbia-600); line-height: 1.3; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.sb-section-title { padding: 0 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia-600); }
.sb-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--nebbia-700); font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; transition: background .15s, color .15s; }
.sb-link:hover { background: rgba(255, 255, 255, .6); color: var(--nebbia-900); text-decoration: none; }
.sb-link .sb-ico { color: var(--nebbia-500); }
.sb-link.active { background: #FFFFFF; color: var(--lilla-900); font-weight: 600; box-shadow: 0 1px 2px rgba(39, 26, 71, .05), 0 6px 16px rgba(39, 26, 71, .07); }
.sb-link.active .sb-ico { color: var(--lilla-600); }
.sb-label { flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--lilla-100); color: var(--lilla-800); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sb-link.active .sb-count { background: var(--lilla-600); color: #FFFFFF; }
.sb-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sb-help { color: var(--nebbia-700); font-size: 13.5px; }
.sb-help .ico { width: 18px; height: 18px; }
.sb-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(39, 26, 71, .04), 0 6px 18px rgba(39, 26, 71, .05); }
.sb-user-info { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; min-width: 0; }
.sb-user-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role { font-size: 12.5px; color: var(--nebbia-600); }
.btn-user-menu { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--nebbia-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-user-menu:hover { background: var(--nebbia-100); color: var(--nebbia-900); }
.app-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px; background: var(--nebbia-25); border-bottom: 1px solid var(--linea); }
.app-topbar .sb-brand { padding: 0 4px; }
.app-topbar .brand-mark { width: 34px; height: 34px; }

/* barra compatta a sole icone (schermata di validazione) */
@media (min-width: 992px) {
  .sb-compact .app-sidebar { width: 76px; }
  .sb-compact .sb-inner { padding: 24px 0 20px; align-items: center; gap: 24px; }
  .sb-compact .sb-brand { padding: 0; }
  .sb-compact .brand-mark { width: 40px; height: 40px; }
  .sb-compact .sb-brand-text, .sb-compact .sb-label, .sb-compact .sb-section-title, .sb-compact .sb-user-info, .sb-compact .btn-user-menu { display: none; }
  .sb-compact .sb-nav { gap: 6px; align-items: center; }
  .sb-compact .sb-link { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; }
  .sb-compact .sb-link .sb-ico { width: 21px; height: 21px; }
  .sb-compact .sb-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; background: var(--lilla-600); color: #FFFFFF; box-shadow: 0 0 0 2px var(--lilla-100); }
  .sb-compact .sb-footer { align-items: center; }
  .sb-compact .sb-user { padding: 0; background: transparent; box-shadow: none; }
  .sb-compact .sb-user .av { cursor: pointer; }
}

/* ------------------------------------------------------------ intestazione di pagina */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-eyebrow { font-size: 13.5px; font-weight: 600; color: var(--lilla-700); }
.page-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; color: var(--lilla-950); }
.page-title.page-title-md { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.page-subtitle { margin: 0; font-size: 15.5px; color: var(--nebbia-600); }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* le pagine non ancora ridisegnate mettono titolo e azioni in una riga flex con mb-3 */
.d-flex > div > .page-title + .page-subtitle { margin-top: 8px; }

/* ------------------------------------------------------------ pulsanti */
.btn {
  --bs-btn-padding-x: 18px; --bs-btn-padding-y: 0; --bs-btn-font-size: 14.5px; --bs-btn-font-weight: 600; --bs-btn-line-height: 1.2;
  --bs-btn-border-width: 0; --bs-btn-border-radius: 12px; --bs-btn-focus-box-shadow: 0 0 0 4px var(--lilla-100);
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: background .15s, box-shadow .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { --bs-btn-padding-x: 12px; --bs-btn-font-size: 13px; --bs-btn-border-radius: 10px; min-height: 36px; gap: 6px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { --bs-btn-font-size: 16px; min-height: 52px; }
.btn-primary, .btn-accent {
  --bs-btn-bg: var(--lilla-600); --bs-btn-color: #FFFFFF; --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--lilla-700); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--lilla-800); --bs-btn-active-color: #FFFFFF; --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: var(--lilla-300); --bs-btn-disabled-color: #FFFFFF; --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: 1;
  box-shadow: 0 1px 2px rgba(39, 26, 71, .12), 0 6px 16px rgba(121, 85, 208, .25);
}
.btn-primary:disabled, .btn-accent:disabled, .btn-primary.disabled { box-shadow: none; }
.btn-soft {
  --bs-btn-bg: var(--lilla-100); --bs-btn-color: var(--lilla-800); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--lilla-200); --bs-btn-hover-color: var(--lilla-900); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--lilla-200); --bs-btn-active-color: var(--lilla-900); --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: var(--nebbia-100); --bs-btn-disabled-color: var(--nebbia-500); --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: 1;
}
.btn-outline, .btn-outline-primary, .btn-outline-secondary, .btn-outline-dark, .btn-light {
  --bs-btn-border-width: 1px; --bs-btn-bg: #FFFFFF; --bs-btn-color: var(--nebbia-800); --bs-btn-border-color: var(--nebbia-300);
  --bs-btn-hover-bg: var(--nebbia-50); --bs-btn-hover-color: var(--nebbia-900); --bs-btn-hover-border-color: var(--nebbia-400);
  --bs-btn-active-bg: var(--nebbia-100); --bs-btn-active-color: var(--nebbia-900); --bs-btn-active-border-color: var(--nebbia-400);
  --bs-btn-disabled-bg: #FFFFFF; --bs-btn-disabled-color: var(--nebbia-400); --bs-btn-disabled-border-color: var(--nebbia-200); --bs-btn-disabled-opacity: 1;
}
.btn-outline-warning {
  --bs-btn-border-width: 1px; --bs-btn-bg: #FFFFFF; --bs-btn-color: var(--ambra-700); --bs-btn-border-color: var(--ambra-300);
  --bs-btn-hover-bg: var(--ambra-50); --bs-btn-hover-color: var(--ambra-700); --bs-btn-hover-border-color: var(--ambra-500);
  --bs-btn-active-bg: var(--ambra-50); --bs-btn-active-color: var(--ambra-700); --bs-btn-active-border-color: var(--ambra-500);
}
.btn-ghost {
  --bs-btn-bg: transparent; --bs-btn-color: var(--nebbia-700); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--nebbia-100); --bs-btn-hover-color: var(--nebbia-900); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--nebbia-100); --bs-btn-active-color: var(--nebbia-900); --bs-btn-active-border-color: transparent;
}
.btn-quiet {
  --bs-btn-bg: var(--nebbia-50); --bs-btn-color: var(--nebbia-600); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--nebbia-100); --bs-btn-hover-color: var(--nebbia-900); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--nebbia-100); --bs-btn-active-color: var(--nebbia-900); --bs-btn-active-border-color: transparent;
}
.btn-ghost-danger, .btn-outline-danger {
  --bs-btn-border-width: 0; --bs-btn-bg: transparent; --bs-btn-color: var(--corallo-700); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--corallo-50); --bs-btn-hover-color: var(--corallo-700); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--corallo-50); --bs-btn-active-color: var(--corallo-700); --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: transparent; --bs-btn-disabled-color: var(--nebbia-400); --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: 1;
}
.table .btn-icon.btn-outline-danger { --bs-btn-border-width: 1px; --bs-btn-bg: #FFFFFF; --bs-btn-border-color: var(--nebbia-300); --bs-btn-hover-border-color: var(--corallo-200); --bs-btn-active-border-color: var(--corallo-200); }
.btn-spacer { display: inline-block; width: 36px; height: 1px; vertical-align: middle; }
.btn-danger {
  --bs-btn-bg: var(--corallo-600); --bs-btn-color: #FFFFFF; --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--corallo-700); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--corallo-700); --bs-btn-active-color: #FFFFFF; --bs-btn-active-border-color: transparent;
}
.btn-link { --bs-btn-color: var(--lilla-700); --bs-btn-hover-color: var(--lilla-800); --bs-btn-active-color: var(--lilla-800); min-height: 0; padding: 0; font-weight: 600; text-decoration: none; }
/* un tasto non si sottolinea mai, nemmeno quando è un <a> (a:hover lo farebbe) */
.btn, a.btn:hover, a.btn:focus, a.btn:active, .btn-link:hover, .btn-link:focus, a.dropdown-item:hover, a.page-link:hover { text-decoration: none; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; flex-shrink: 0; }
.btn-icon.btn-sm { width: 36px; height: 36px; min-height: 36px; border-radius: 10px; }
.btn-plus {
  --bs-btn-border-width: 0; --bs-btn-bg: var(--lilla-25); --bs-btn-color: var(--lilla-700); --bs-btn-hover-bg: var(--lilla-50); --bs-btn-hover-color: var(--lilla-800);
  --bs-btn-active-bg: var(--lilla-50); --bs-btn-active-color: var(--lilla-800);
  width: 44px; min-height: 44px; padding: 0; flex-shrink: 0; border: 1.5px dashed var(--lilla-300) !important; border-radius: 12px !important;
}
.btn-plus.btn-sm { width: auto; min-height: 36px; padding: 0 10px; }
.btn-cta { min-height: 44px; }
.btn-on-dark { --bs-btn-bg: transparent; --bs-btn-color: var(--lilla-200); --bs-btn-hover-bg: rgba(255, 255, 255, .08); --bs-btn-hover-color: #FFFFFF; --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; }
.btn-close:focus { box-shadow: 0 0 0 4px var(--lilla-100); }

/* ------------------------------------------------------------ campi */
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--nebbia-800); margin-bottom: 7px; text-transform: none; letter-spacing: 0; }
.form-control, .form-select { min-height: 44px; border-radius: 12px; border: 1px solid var(--nebbia-300); background-color: #FFFFFF; color: var(--nebbia-900); font-size: 14.5px; font-weight: 500; padding: 0 14px; box-shadow: none; }
textarea.form-control { padding: 10px 14px; line-height: 1.5; }
.form-select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-size: 16px 16px; background-position: right 12px center; }
.form-select[multiple], .form-select[size]:not([size="1"]) { padding: 6px; background-image: none; }
.form-control::placeholder { color: var(--nebbia-400); font-weight: 400; }
.form-control:focus, .form-select:focus { border-color: var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); outline: none; }
.form-control:disabled, .form-select:disabled { background-color: var(--nebbia-50); color: var(--nebbia-500); }
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 13px; border-radius: 10px; padding: 0 10px; }
.form-select-sm { padding-right: 30px; background-position: right 8px center; }
.form-control-lg { min-height: 52px; font-size: 16px; border-radius: 12px; }
input[type="date"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { font-variant-numeric: tabular-nums; }
/* «Scegli file»: pulsante alto quanto il campo e testo centrato in verticale (i margini di Bootstrap presuppongono un altro padding) */
.form-control[type="file"] { height: 44px; padding: 0 14px 0 0; line-height: 42px; overflow: hidden; cursor: pointer; }
.form-control[type="file"]::file-selector-button { height: 42px; margin: 0 12px 0 0; padding: 0 16px; border: 0; border-inline-end: 1px solid var(--nebbia-200); border-radius: 0; background: var(--lilla-50); color: var(--lilla-800); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.form-control[type="file"]:hover:not(:disabled):not([readonly])::file-selector-button { background: var(--lilla-100); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--corallo-600); box-shadow: 0 0 0 4px var(--corallo-50); background-image: none; padding-right: 14px; }
.form-check-input { width: 18px; height: 18px; border: 1.5px solid var(--nebbia-300); margin-top: .12em; cursor: pointer; }
.form-check-input:checked, .form-check-input[type="checkbox"]:indeterminate { background-color: var(--lilla-600); border-color: var(--lilla-600); }
.form-check-input:focus { border-color: var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); }
.form-switch .form-check-input { width: 2.2em; }
.form-switch .form-check-input:focus { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C8B3F6'/%3e%3c/svg%3e"); }
.form-check-label { font-size: 14px; color: var(--nebbia-800); }
.form-text { font-size: 12px; color: var(--nebbia-600); margin-top: 6px; }
.input-group { flex-wrap: nowrap; gap: 8px; }
.input-group > .form-control, .input-group > .form-select, .input-group > .btn { margin-left: 0 !important; border-radius: 12px !important; }
.input-group > .form-control-sm, .input-group > .form-select-sm { border-radius: 10px !important; }
.is-invalid-msg { color: var(--corallo-700); font-size: 12.5px; margin-top: 6px; }
.search-box { position: relative; }
.search-box > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--nebbia-500); pointer-events: none; }
.search-box > .form-control { padding-left: 42px; border-color: var(--nebbia-200); font-weight: 400; font-size: 14px; }
.field-hint { font-size: 12px; color: var(--nebbia-600); margin-top: 6px; }

/* filtri a pillola: etichetta + tendina nativa */
.filter { position: relative; display: inline-flex; align-items: center; height: 44px; padding-left: 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); font-size: 13.5px; font-weight: 600; color: var(--nebbia-800); flex-shrink: 0; }
.filter-lbl { color: var(--nebbia-600); font-weight: 500; margin-right: 6px; white-space: nowrap; }
.filter > select, .filter > input { height: 100%; border: 0; background: transparent; font: inherit; font-weight: 600; color: inherit; outline: none; }
.filter > select { appearance: none; -webkit-appearance: none; padding: 0 34px 0 0; max-width: 230px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.filter > input { width: 58px; padding: 0 12px 0 0; text-transform: uppercase; }
.filter > input::placeholder { color: var(--nebbia-400); font-weight: 500; text-transform: none; }
.filter:focus-within { box-shadow: inset 0 0 0 1.5px var(--lilla-600), 0 0 0 4px var(--lilla-100); }
.filter.active { background: var(--lilla-100); box-shadow: none; color: var(--lilla-900); }
.filter.active .filter-lbl { color: var(--lilla-700); }
.filter.active > select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236443B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.solo-etichetta .filter:not(.active) > select { color: transparent; }
.solo-etichetta .filter:not(.active) .filter-lbl { color: var(--nebbia-800); font-weight: 600; margin-right: 0; }
.solo-etichetta .filter:not(.active) > input { margin-left: 6px; }
.filter select option { color: var(--nebbia-900); }
/* tendina in stile (UI.tendina): pulsante a pillola + menu; la select nativa resta nascosta come fonte del valore */
.filter.filter-enh { padding-left: 0; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 36px 0 14px; border: 0; border-radius: inherit; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; font: inherit; color: inherit; white-space: nowrap; cursor: pointer; }
.filter-btn:focus-visible { outline: none; }
.filter-btn .filter-lbl { margin-right: 0; }
.filter-btn .filter-val { font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.filter.active .filter-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236443B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.filter select.filter-native { position: absolute; left: 0; bottom: 0; width: 1px !important; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.solo-etichetta .filter:not(.active) .filter-val { display: none; }
.solo-etichetta .filter:not(.active) .filter-btn .filter-lbl { color: var(--nebbia-800); font-weight: 600; }
.filter-menu { min-width: 220px; max-width: 340px; padding: 6px; }
.filter-menu .filter-search { padding: 2px 2px 8px; }
.filter-menu .filter-search .form-control { height: 38px; min-height: 38px; font-size: 13.5px; border-radius: 10px; }
.filter-menu .filter-opzioni { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.filter-menu .dropdown-item { justify-content: space-between; gap: 14px; min-height: 38px; padding: 8px 10px; font-size: 13.5px; font-weight: 500; white-space: normal; }
.filter-menu .dropdown-item[hidden] { display: none; }
.filter-menu .dropdown-item.active, .filter-menu .dropdown-item:active { background: var(--lilla-50); color: var(--lilla-800); font-weight: 600; }
.filter-menu .dropdown-item .ico { width: 16px; height: 16px; color: var(--lilla-600); }
.filter-menu .dropdown-item:focus-visible { outline: 2px solid var(--lilla-300); outline-offset: -2px; }
.filter-vuoto { padding: 10px; font-size: 13px; color: var(--nebbia-500); }
.filter-row > .search-box { flex: 1 1 220px; min-width: 200px; }

/* schede a segmenti (Miei / Da smistare / Tutti) */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--nebbia-100); border-radius: 14px; flex-shrink: 0; }
.seg-btn { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--nebbia-700); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, color .15s; }
.seg-btn:hover { color: var(--nebbia-900); }
.seg-btn .n { color: var(--nebbia-600); font-weight: 500; }
.seg-btn.active { background: #FFFFFF; color: var(--lilla-900); box-shadow: 0 1px 2px rgba(39, 26, 71, .08), 0 2px 8px rgba(39, 26, 71, .06); }
.seg-btn.active .n { color: var(--lilla-700); }
.seg-sm { padding: 3px; gap: 3px; border-radius: 11px; }
.seg-sm .seg-btn { height: 34px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; flex-grow: 1; justify-content: center; }
.seg-doc .seg-btn { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.seg-doc { border-radius: 12px; }

/* ------------------------------------------------------------ superfici */
.card { border: 0; border-radius: var(--cva-radius); background: #FFFFFF; box-shadow: var(--cva-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--nebbia-100); padding: 18px 24px; font-weight: 600; font-size: 16px; }
.card-header:first-child { border-radius: var(--cva-radius) var(--cva-radius) 0 0; }
.card-body { padding: 22px 24px; }
.section-card { margin-bottom: 0; }
.section-card .card-header { display: flex; align-items: center; gap: 8px; }
.section-card .card-header i, .section-card .card-header .ico { color: var(--lilla-600); }
.stat-card { display: flex; align-items: center; gap: 1rem; padding: 20px 22px; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--cva-shadow-hover); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #FFFFFF; flex: 0 0 auto; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--lilla-950); }
.stat-card .stat-label { color: var(--nebbia-600); font-size: 13.5px; font-weight: 600; }
.bg-accent { background: var(--lilla-600) !important; }

/* avatar: staff in lilla, candidati in salvia */
.av { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; background: var(--lilla-100); color: var(--lilla-800); width: 38px; height: 38px; font-size: 13.5px; line-height: 1; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }
.av-36 { width: 36px; height: 36px; font-size: 12.5px; }
.av-40 { width: 40px; height: 40px; font-size: 13.5px; }
.av-42 { width: 42px; height: 42px; font-size: 14px; }
.av-80 { width: 80px; height: 80px; font-size: 26px; }
.av-cand { background: var(--salvia-100); color: var(--salvia-800); }
.av-staff { background: var(--lilla-100); color: var(--lilla-800); }
.av-staff-alt { background: var(--lilla-200); color: var(--lilla-900); }
.av-muted { background: var(--nebbia-100); color: var(--nebbia-600); }
/* tondino degli arrivi: il colore del suo stato (badge-*), giallo da validare, verde validato, grigio scartato */
.av-stato-in_elaborazione { background: var(--lilla-100); color: var(--lilla-800); }
.av-stato-da_validare { background: color-mix(in srgb, var(--ambra-300) 45%, #FFFFFF); color: var(--ambra-700); }
.av-stato-validato { background: var(--salvia-100); color: var(--salvia-800); }
.av-stato-scartato { background: var(--nebbia-100); color: var(--nebbia-600); }
.av-stato-errore { background: var(--corallo-50); color: var(--corallo-700); }
.table .avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--salvia-100); color: var(--salvia-800); font-weight: 700; font-size: 12.5px; }

/* ------------------------------------------------------------ badge (style-badge-stati) */
.badge { font-family: var(--font-ui); font-weight: 600; border-radius: 999px; font-size: 12.5px; line-height: 1; padding: 0 10px; height: 26px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; vertical-align: middle; }
.badge .ico { width: 13px; height: 13px; stroke-width: 2.3; }
.badge-sm { height: 22px; font-size: 12px; padding: 0 8px; gap: 5px; }
.badge-sm .ico { width: 12px; height: 12px; }
.badge-stato { display: inline-flex; }
.spin { width: 11px; height: 11px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-in_elaborazione { background: var(--lilla-50); color: var(--lilla-800); }
.badge-da_validare { background: var(--ambra-50); color: var(--ambra-700); }
.badge-validato { background: var(--salvia-50); color: var(--salvia-800); }
.badge-scartato { background: var(--nebbia-100); color: var(--nebbia-600); }
.badge-errore { background: var(--corallo-50); color: var(--corallo-700); }
.badge-da_smistare { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--ambra-500); color: var(--ambra-700); }
.badge-doppione { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--corallo-600); color: var(--corallo-700); }
.badge-non_cv { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--nebbia-400); color: var(--nebbia-600); }
.badge-da_verificare { background: var(--ambra-50); color: var(--ambra-700); }
.badge-non_interessante { background: var(--nebbia-100); color: var(--nebbia-600); }
.badge-richiesta_eliminazione { background: var(--corallo-50); color: var(--corallo-700); }
.badge-quarantena { background: var(--nebbia-800); color: #FFFFFF; }
.badge-senza_cv { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--nebbia-300); color: var(--nebbia-600); }
.badge-infetto { background: var(--corallo-600); color: #FFFFFF; }
.badge-posizione_chiusa { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--nebbia-700); color: var(--nebbia-800); }
.badge-in_validazione { background: var(--lilla-50); color: var(--lilla-800); }
.badge-pulito, .badge-convocato, .badge-ok { background: var(--salvia-50); color: var(--salvia-800); }
.badge-ai { background: var(--lilla-50); color: var(--lilla-800); }
.badge-neutro { background: var(--nebbia-100); color: var(--nebbia-700); }
.badge-conf-bassa { background: var(--ambra-50); color: var(--ambra-700); }
.badge.bg-light { background: var(--nebbia-100) !important; color: var(--nebbia-700) !important; border: 0 !important; }

/* codici, voti, chip */
.code-chip { display: inline-flex; align-items: center; align-self: flex-start; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; padding: 3px 8px; border-radius: 8px; background: var(--lilla-50); color: var(--lilla-800); line-height: 1.3; white-space: nowrap; }
.code-chip.muted { background: var(--nebbia-100); color: var(--nebbia-700); }
.voto-chip { display: inline-flex; align-self: flex-start; font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 7px; background: var(--nebbia-100); color: var(--nebbia-800); line-height: 1.35; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--nebbia-100); color: var(--nebbia-800); font-size: 13px; font-weight: 500; margin: 2px 4px 2px 0; }
.chip .x { cursor: pointer; opacity: .7; }
.chip-lilla { background: var(--lilla-50); color: var(--lilla-800); }
.chip-salvia { background: var(--salvia-50); color: var(--salvia-800); }
.chip-ambra { background: var(--ambra-50); color: var(--ambra-700); }

/* ------------------------------------------------------------ tabelle */
.table-wrap { overflow-x: auto; border-radius: var(--cva-radius); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--nebbia-900); --bs-table-hover-bg: var(--lilla-25); --bs-table-hover-color: var(--nebbia-900); --bs-table-border-color: var(--nebbia-100); margin-bottom: 0; font-size: 14px; }
.table > :not(caption) > * > * { padding: 12px; border-bottom-color: var(--nebbia-100); }
.table thead th { font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); background: var(--nebbia-25); text-transform: none; letter-spacing: 0; padding: 14px 12px; border-bottom: 0; white-space: nowrap; }
.table thead th.sortable { cursor: pointer; user-select: none; }
.table thead th.sortable:hover, .table thead th.sorted { color: var(--lilla-900); }
.table > :not(caption) > tr > :first-child { padding-left: 24px; }
.table > :not(caption) > tr > :last-child { padding-right: 24px; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-hover tbody tr { cursor: pointer; }
.table td { vertical-align: middle; }
.table tr.selected > * { --bs-table-bg-state: var(--lilla-25); }
.table-sm > :not(caption) > * > * { padding: 8px; }
.cell-2l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-2l .l1 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-2l .l2 { font-size: 12.5px; color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-muted { color: var(--nebbia-400); }
/* griglia dei candidati: colonne in proporzione alla larghezza, ogni cella al massimo su due righe, righe tutte alte uguali */
.griglia-cand { table-layout: fixed; min-width: 920px; }   /* sotto (schermi di 1250 px o meno) la tabella scorre dentro la card */
.griglia-cand thead th { white-space: normal; }   /* su schermi stretti va a capo l'intestazione, non le righe */
.griglia-cand td .tnum { white-space: nowrap; }
.griglia-cand tbody td { height: 68px; padding-top: 10px; padding-bottom: 10px; }
.cand-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cand-cell .av { flex-shrink: 0; }
.cell-2l .l1.nome { display: block; font-size: 14px; color: var(--nebbia-900); }
.cell-2l .l2-voto { display: flex; align-items: center; gap: 6px; }
.cell-2l .l2-voto .voto-chip { flex-shrink: 0; align-self: center; }
.cell-2l .l2-voto .az { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; max-height: 48px; overflow: hidden; }   /* due badge uno sotto l'altro stanno nei 68 px della riga */
.cell-badge .badge { max-width: 100%; }
.cell-badge .badge-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* piede con paginazione */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--nebbia-600); }
.pager-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pager .form-select { width: auto; min-height: 40px; font-size: 13.5px; font-weight: 600; border-color: var(--nebbia-200); border-radius: 10px; }
.pager-pages { display: flex; gap: 4px; }
.pager-btn { min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--nebbia-700); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pager-btn:hover:not(:disabled) { background: var(--nebbia-100); }
.pager-btn.active { background: var(--lilla-100); color: var(--lilla-900); font-weight: 700; }
.pager-btn:disabled { color: var(--nebbia-400); cursor: default; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--nebbia-100); background: var(--nebbia-25); border-radius: 0 0 var(--cva-radius) var(--cva-radius); }
.card-foot:empty { display: none; }
.pagination .page-link { border-radius: 10px; margin: 0 2px; border: 0; color: var(--nebbia-700); font-weight: 600; }
.pagination .active .page-link { background: var(--lilla-100); color: var(--lilla-900); }

/* barra della selezione multipla */
.sel-bar { position: fixed; left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); bottom: 26px; transform: translateX(-50%); z-index: 1030; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 18px; background: var(--nebbia-900); color: #FFFFFF; box-shadow: 0 14px 36px rgba(30, 26, 43, .30); max-width: calc(100vw - 32px); }
.sel-bar-n { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sel-bar-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .18); }
.sel-bar .btn-icon { --bs-btn-bg: rgba(255, 255, 255, .08); --bs-btn-color: #FFFFFF; --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-color: #FFFFFF; }

/* ------------------------------------------------------------ Conservazione dati (ui-conservazione-dati) */
/* due code: il contatore è la scheda della sua lista; la procedura sta in testa alla lista e cambia con la scheda */
.cons-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.cons-card { margin-bottom: 88px; }   /* posto per la barra di selezione */
.cons-guida { padding: 20px 24px 18px; border-bottom: 1px solid var(--nebbia-100); }
.cons-guida-tit { margin: 0 0 12px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--nebbia-900); }
.cons-guida-txt { margin: 0; max-width: 68ch; font-size: 14px; color: var(--nebbia-700); }
.cons-passi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.cons-passi li { position: relative; padding-left: 36px; font-size: 14px; line-height: 1.5; color: var(--nebbia-700); counter-increment: passo; }
.cons-passi li::before { content: counter(passo); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lilla-100); color: var(--lilla-800); font-size: 12.5px; font-weight: 700; }
.cons-passi b { font-weight: 600; color: var(--nebbia-900); }
.cons-tab > :not(caption) > * > * { vertical-align: middle; }
.cons-tab td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cons-tab > :not(caption) > tr > .cons-sel { width: 56px; padding: 0 0 0 12px; }
.cons-sel-area { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -2px 0; cursor: pointer; }
.cons-sel-area .form-check-input { margin: 0; }
.cons-tab tbody th { font-weight: 600; white-space: nowrap; }
.cons-nome { color: var(--nebbia-900); }
.cons-nome:hover { color: var(--lilla-800); }
.cons-data { display: block; }
.cons-da { display: block; margin-top: 1px; font-size: 12.5px; }
.cons-da-scaduti { color: var(--ambra-700); }
.cons-da-richieste { color: var(--corallo-700); }
.cons-vuoto { color: var(--nebbia-600); }
.cons-tab tbody tr.scelta > * { background: var(--lilla-50); }
.cons-elenco { max-height: 196px; overflow-y: auto; overscroll-behavior: contain; margin: 0 0 16px; padding: 10px 14px 10px 32px; border-radius: 12px; background: var(--nebbia-50); font-size: 14px; }
.cons-altri { margin-left: -18px; list-style: none; color: var(--nebbia-600); }

/* ------------------------------------------------------------ Arrivi (home) */
/* contatori della home: «Da validare» in primo piano, gli altri tre come righe compatte a fianco */
/* contatori e andamento in una fascia sola: «Da validare», i due contatori piccoli in colonna, il grafico. Sotto i
   1200 px il grafico va a capo, sul telefono tutto in colonna */
.contatori { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.contatori .andamento { grid-column: 1 / -1; }
@media (min-width: 1200px) {
  .contatori { grid-template-columns: minmax(300px, 1fr) minmax(196px, .55fr) minmax(0, 1.5fr); }
  .contatori .andamento { grid-column: auto; }
}
@media (min-width: 1360px) {   /* da qui i due pulsanti di «Da validare» stanno su una riga */
  .contatori { grid-template-columns: minmax(392px, 1.1fr) minmax(196px, .55fr) minmax(0, 1.6fr); }
}
.kpi-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 18px 22px; border-radius: 22px; background: linear-gradient(135deg, #E6DCFB 0%, #F3EEFE 50%, #E3F4EA 100%); box-shadow: inset 0 0 0 1px rgba(200, 179, 246, .55), 0 12px 30px rgba(121, 85, 208, .12); color: var(--lilla-950); }
.kpi-hero > :not(.kpi-hero-fogli) { position: relative; }
/* la pila di fogli è decorativa: nel riquadro stretto (fascia a 1200–1359 px) toccherebbe l'etichetta, e sparisce */
.kpi-hero { container-type: inline-size; }
@container (max-width: 340px) { .kpi-hero-fogli { display: none; } }
.kpi-hero-top { display: flex; align-items: center; gap: 10px; }
.kpi-hero-lbl { margin: 0; font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--lilla-700); }
.kpi-hero-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--lilla-200); color: var(--lilla-800); font-size: 12.5px; font-weight: 600; }
.kpi-hero-num { display: flex; align-items: baseline; gap: 10px; }
.kpi-hero-val { font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: .9; letter-spacing: -.045em; color: var(--lilla-950); font-variant-numeric: tabular-nums; }
.kpi-hero-unit { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--lilla-800); }
.kpi-hero-cap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nebbia-700); }
.kpi-hero-cap .ico { color: var(--lilla-600); }
.kpi-hero-azioni { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi-hero-azioni .btn { --bs-btn-padding-x: 12px; --bs-btn-font-size: 13px; min-height: 38px; gap: 6px; }
.kpi-hero-azioni .btn .ico { width: 16px; height: 16px; }
.kpi-hero-azioni .btn-primary.disabled { --bs-btn-disabled-bg: var(--lilla-300); box-shadow: none; }
.kpi-hero-filtro { --bs-btn-bg: rgba(255, 255, 255, .6); --bs-btn-color: var(--lilla-900); --bs-btn-hover-bg: #FFFFFF; --bs-btn-hover-color: var(--lilla-900); --bs-btn-active-bg: #FFFFFF; --bs-btn-active-color: var(--lilla-900); box-shadow: inset 0 0 0 1px var(--lilla-300); }
.kpi-hero-filtro .ico { display: none; }
.kpi-hero-filtro[aria-pressed="true"] { --bs-btn-bg: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--lilla-600); }
.kpi-hero-filtro[aria-pressed="true"] .ico { display: inline-block; }
/* pila di CV: decorativa, dietro al testo */
.kpi-hero-fogli { position: absolute; right: 18px; top: 14px; width: 140px; height: 150px; pointer-events: none; transform: scale(.6); transform-origin: top right; }
.kpi-hero-fogli > span { position: absolute; width: 100px; height: 128px; border-radius: 14px; }
.kpi-hero-fogli .f1 { right: 22px; top: 10px; background: var(--lilla-200); transform: rotate(-10deg); }
.kpi-hero-fogli .f2 { right: 4px; top: 4px; background: var(--salvia-200); transform: rotate(6deg); }
.kpi-hero-fogli .f3 { right: 14px; top: 12px; display: flex; flex-direction: column; gap: 9px; padding: 16px 14px; background: #FFFFFF; box-shadow: 0 10px 24px rgba(121, 85, 208, .18); }
.kpi-hero-fogli .f3 i { display: block; height: 6px; width: 56px; border-radius: 3px; background: var(--lilla-200); }
.kpi-hero-fogli .f3 i:first-child { width: 30px; height: 30px; border-radius: 50%; background: var(--salvia-200); }
.kpi-hero-fogli .f3 i:nth-child(2) { width: 62px; background: var(--lilla-300); }
.kpi-hero-fogli .f3 i:nth-child(3) { width: 48px; }
.kpi-hero-fogli .f3 i:last-child { width: 40px; }
.kpi-side { display: flex; flex-direction: column; gap: 10px; }
.kpi-row { flex: 1 1 0; min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 16px; border: 0; border-radius: 18px; background: #FFFFFF; box-shadow: var(--cva-shadow); text-align: left; color: inherit; transition: transform .15s, box-shadow .15s, background-color .15s; }
.kpi-row:hover { transform: translateY(-1px); box-shadow: var(--cva-shadow-hover); }
.kpi-row[aria-pressed="true"], .kpi-row[aria-selected="true"] { background: var(--lilla-50); box-shadow: inset 0 0 0 1.5px var(--lilla-300), var(--cva-shadow); }
.kpi-row .kpi-ico { width: 42px; height: 42px; border-radius: 13px; }
.kpi-row .kpi-ico .ico { width: 20px; height: 20px; }
.kpi-row-txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kpi-row-txt .kpi-label { font-size: 14.5px; color: var(--nebbia-900); }
.kpi-row-txt .kpi-caption { min-height: 0; font-size: 12.5px; }
.kpi-row-val { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--lilla-950); font-variant-numeric: tabular-nums; }
.kpi-row-val-ambra { color: var(--ambra-700); }
.kpi-row-val-corallo { color: var(--corallo-700); }
/* nella fascia della Home i contatori piccoli sono bassi: icona ed etichetta con il numero a destra, la nota sotto */
.kpi-side .kpi-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico label val" "cap cap cap"; align-content: center; align-items: center; gap: 4px 8px; min-height: 0; padding: 12px 16px 12px 14px; }
.kpi-side .kpi-row-txt { display: contents; }
.kpi-side .kpi-row .kpi-ico { grid-area: ico; width: 26px; height: 26px; border-radius: 8px; }
.kpi-side .kpi-row .kpi-ico .ico { width: 15px; height: 15px; }
.kpi-side .kpi-row .kpi-label { grid-area: label; font-size: 14px; }
.kpi-side .kpi-row .kpi-caption { grid-area: cap; }
.kpi-side .kpi-row-val { grid-area: val; font-size: 28px; }
/* parti comuni dei contatori (Home e Conservazione dati) */
.kpi-label { font-size: 14px; font-weight: 600; color: var(--nebbia-700); }
.kpi-ico { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-ico .ico { width: 18px; height: 18px; }
.kpi-ico-lilla { background: var(--lilla-50); color: var(--lilla-600); }
.kpi-ico-ambra { background: var(--ambra-50); color: var(--ambra-700); }
.kpi-ico-salvia { background: var(--salvia-100); color: var(--salvia-700); }
.kpi-ico-corallo { background: var(--corallo-50); color: var(--corallo-700); }
.kpi-caption { font-size: 13px; color: var(--nebbia-600); min-height: 19px; }
/* andamento degli arrivi (skill dataviz): una colonna per giorno, impilata per esito dal basso: validati, scartati, da
   validare. Gli esiti hanno i colori dei badge; la legenda con i numeri c'è sempre, la tabella è l'altra vista */
.andamento, .and-pannello { --c-validati: var(--salvia-600); --c-scartati: var(--nebbia-400); --c-da_validare: var(--ambra-500); }
.andamento { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 18px 10px; border-radius: 22px; background: #FFFFFF; box-shadow: var(--cva-shadow); }
.and-validati { --c: var(--c-validati); }
.and-scartati { --c: var(--c-scartati); }
.and-da_validare { --c: var(--c-da_validare); }
.andamento-testa { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.andamento-titolo { margin: 0; font-family: var(--font-ui); font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: var(--nebbia-900); }
.andamento-sintesi { font-size: 13px; color: var(--nebbia-600); font-variant-numeric: tabular-nums; }
.andamento-sintesi:not(:empty)::before { content: "· "; }
.andamento-testa .btn { margin: -4px -6px -4px auto; }
.andamento-legenda { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 8px; padding: 0; list-style: none; font-size: 12.5px; color: var(--nebbia-700); }
.andamento-legenda li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.andamento-legenda i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--c); }
.andamento-legenda b { min-width: 1ch; font-weight: 600; color: var(--nebbia-900); font-variant-numeric: tabular-nums; }
.andamento-grafico { position: relative; flex: 1 1 auto; min-height: 112px; border-radius: 10px; }
.andamento-grafico > .skeleton { position: absolute; inset: 0; height: auto; }
.andamento-grafico svg { position: absolute; inset: 0; display: block; overflow: visible; }
.andamento-grafico text { font-family: var(--font-ui); font-size: 12px; fill: var(--nebbia-600); font-variant-numeric: tabular-nums; }
.andamento-grafico .and-y { text-anchor: end; }
.and-griglia { stroke: var(--nebbia-200); stroke-width: 1; }
.and-base { stroke: var(--nebbia-300); stroke-width: 1; }
.and-seg { fill: var(--c); }
.and-evid { fill: var(--lilla-50); }
.and-scelto { fill: var(--lilla-100); }
.and-segno { fill: var(--lilla-600); }
@media (prefers-reduced-motion: no-preference) { .and-barre.entra { animation: and-entra .4s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes and-entra { from { opacity: 0; } }
.andamento-vuoto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px 24px 30px; text-align: center; font-size: 14px; color: var(--nebbia-600); }
.andamento-vuoto p { margin: 0; }
/* il suggerimento accanto alla colonna: valori in evidenza, chiavi a trattino come la legenda */
.andamento-tip { position: absolute; z-index: 6; min-width: 184px; padding: 10px 12px 9px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 2px 4px rgba(39, 26, 71, .08), 0 12px 28px -8px rgba(39, 26, 71, .22); pointer-events: none; font-size: 13px; color: var(--nebbia-700); }
.and-tip-data { font-weight: 600; color: var(--nebbia-900); }
.and-tip-tot { margin: 1px 0 6px; color: var(--nebbia-600); }
.and-tip-tot b { color: var(--nebbia-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.and-tip-riga { display: flex; align-items: center; gap: 8px; line-height: 1.65; }
.and-tip-riga i { width: 12px; height: 3px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.and-tip-riga b { margin-left: auto; padding-left: 18px; color: var(--nebbia-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.and-tip-azione { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--nebbia-100); font-size: 12px; color: var(--lilla-700); }
/* vista a tabella: i giorni con almeno un arrivo, dal più recente; il giorno apre l'elenco come la colonna */
.and-pannello { --bs-offcanvas-width: min(520px, 100vw); }
.and-pannello .offcanvas-body { padding-top: 0; padding-bottom: 0; }   /* intestazione e totale fermi a filo del pannello */
.and-pannello .offcanvas-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.and-tab-scorre { overflow: clip; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--nebbia-100); }
.and-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.and-tab th, .and-tab td { padding: 8px 14px; border-bottom: 1px solid var(--nebbia-100); color: var(--nebbia-900); }
.and-tab thead th { position: sticky; top: 0; z-index: 1; background: var(--nebbia-25); font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); white-space: nowrap; }
.and-tab thead .and-chiave { display: inline-flex; align-items: center; gap: 6px; }
.and-tab thead .and-chiave i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.and-tab tbody th { font-weight: 500; }
.and-tab .r { text-align: right; }
.and-tab td.zero { color: var(--nebbia-600); }
.and-tab tfoot th, .and-tab tfoot td { position: sticky; bottom: 0; background: var(--nebbia-25); border-bottom: 0; font-weight: 600; }
.and-tab tbody tr.scelto > * { background: var(--lilla-50); }
.and-tab-giorno { padding: 0; border: 0; background: none; color: var(--lilla-700); font: inherit; font-weight: 500; text-align: left; white-space: nowrap; }
.and-tab-giorno:hover { color: var(--lilla-900); text-decoration: underline; }
.and-tab-giorno[aria-pressed="true"] { color: var(--lilla-900); font-weight: 600; }
.and-nota { margin: 0 0 14px; font-size: 13px; color: var(--nebbia-600); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.lista-card { background: #FFFFFF; border-radius: 24px; box-shadow: var(--cva-shadow); overflow: hidden; }
.lista-head, .arrivo { display: grid; grid-template-columns: minmax(0, 1fr) 132px 184px 148px 84px 150px; gap: 16px; align-items: center; padding: 14px 24px; }
.lista-head { font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); background: var(--nebbia-25); }
.lista-head .r { text-align: right; }
.arrivo { border-top: 1px solid var(--nebbia-100); transition: background .12s; }
.arrivo:hover { background: var(--lilla-25); }
.arrivo-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.arrivo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arrivo-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arrivo-name-row .badge { max-width: 100%; }
.arrivo-name-row .badge-t { overflow: hidden; text-overflow: ellipsis; }
.arrivo-name { font-size: 15px; font-weight: 600; color: var(--nebbia-900); }
.arrivo-name.muted { color: var(--nebbia-600); font-weight: 500; }
.arrivo-sub { font-size: 13px; color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrivo-err { font-size: 12.5px; color: var(--corallo-700); }
.arrivo-pos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.arrivo-pos .t { font-size: 12.5px; color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrivo-none { font-size: 13px; color: var(--nebbia-600); }
.arrivo-rec { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.arrivo-rec span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrivo-time { display: flex; flex-direction: column; gap: 2px; }
.arrivo-time .h { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.arrivo-time .d { font-size: 12.5px; color: var(--nebbia-600); }
.arrivo-actions { display: flex; justify-content: flex-end; gap: 6px; }
.arrivo:hover .btn-quiet { --bs-btn-bg: #FFFFFF; }
.lista-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--nebbia-100); background: var(--nebbia-25); font-size: 13px; color: var(--nebbia-600); }
.lista-foot a { font-size: 13.5px; font-weight: 600; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--lilla-100); --bs-dropdown-link-active-color: var(--lilla-900); border: 0; border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(39, 26, 71, .16), 0 0 0 1px rgba(39, 26, 71, .04); font-size: 14px; }
.dropdown-item { border-radius: 9px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; color: var(--nebbia-800); }
.dropdown-item:hover { background: var(--nebbia-50); }
.dropdown-item .ico { width: 17px; height: 17px; color: var(--nebbia-500); }
.dropdown-item.text-danger .ico { color: var(--corallo-600); }
.dropdown-header { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia-600); padding: 8px 12px 4px; }
.dropdown-divider { border-color: var(--nebbia-100); margin: 6px 0; }

/* ------------------------------------------------------------ Validazione (schermata divisa) */
.page-validazione .app-main { padding: 0; }
@media (min-width: 992px) {
  .page-validazione .app-main { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
}
.val-head { min-height: 88px; flex-shrink: 0; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #FFFFFF; border-bottom: 1px solid var(--linea); }
.val-head-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.val-head-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.val-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.val-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.05; letter-spacing: -.025em; color: var(--lilla-950); }
.val-sub { font-size: 13px; color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.val-head-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lock-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--lilla-50); color: var(--lilla-800); font-size: 13px; font-weight: 600; white-space: nowrap; }
.lock-chip.altro { background: var(--ambra-50); color: var(--ambra-700); }
.nav-coda { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 14px; background: var(--nebbia-50); }
.nav-coda .btn-icon { width: 42px; height: 42px; min-height: 42px; border-radius: 11px; }
.nav-coda-n { font-size: 13.5px; font-weight: 600; color: var(--nebbia-800); padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.val-body { flex-grow: 1; min-height: 0; display: flex; gap: 24px; padding: 24px 32px; }
.val-doc { flex: 0 0 47%; max-width: 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.val-dati { position: relative; flex-grow: 1; min-width: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--nebbia-300) transparent; }
.val-stack { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.val-foot { min-height: 88px; flex-shrink: 0; padding: 12px 32px; background: #FFFFFF; border-top: 1px solid var(--linea); box-shadow: 0 -8px 24px rgba(39, 26, 71, .05); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.val-foot-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.val-hint { font-size: 13px; color: var(--nebbia-600); margin-right: 6px; }
.val-hint b { font-weight: 600; color: var(--nebbia-800); }
.doc-card { flex-grow: 1; min-height: 0; background: #FFFFFF; border-radius: 22px; box-shadow: var(--cva-shadow); display: flex; flex-direction: column; overflow: hidden; }
.doc-toolbar { min-height: 62px; flex-shrink: 0; padding: 0 14px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--nebbia-100); flex-wrap: wrap; }
.doc-tools { display: flex; align-items: center; gap: 8px; }
.doc-tools .btn-icon { width: 40px; height: 40px; min-height: 40px; border-radius: 11px; }
.ev-toggle { height: 40px; padding: 0 12px 0 8px; border: 0; border-radius: 11px; background: var(--ambra-50); color: var(--ambra-700); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ev-toggle .sw { width: 30px; height: 18px; border-radius: 999px; background: var(--ambra-500); position: relative; flex-shrink: 0; transition: background .15s; }
.ev-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 999px; background: #FFFFFF; transition: left .15s; }
.ev-toggle[aria-pressed="false"] { background: var(--nebbia-100); color: var(--nebbia-700); }
.ev-toggle[aria-pressed="false"] .sw { background: var(--nebbia-400); }
.ev-toggle[aria-pressed="false"] .sw::after { left: 2px; }
.zoom { display: inline-flex; align-items: center; border-radius: 11px; background: var(--nebbia-50); }
.zoom .btn-icon { --bs-btn-bg: transparent; }
.zoom-val { min-width: 44px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--nebbia-800); font-variant-numeric: tabular-nums; }
.pdf-canvas-wrap { position: relative; flex-grow: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; background: #EFEDF5; padding: 26px 16px 10px; }
.pdf-page { position: relative; margin: 0 auto 16px; background: #FFFFFF; border-radius: 4px; box-shadow: 0 1px 3px rgba(39, 26, 71, .10), 0 16px 40px rgba(39, 26, 71, .12); }
.pdf-page canvas { display: block; border-radius: 4px; }
/* moltiplicazione: il giallo tinge la carta ma il testo resta nero e leggibile */
.hl { position: absolute; background: var(--evidenza); border-radius: 2px; mix-blend-mode: multiply; cursor: pointer; transition: background .15s, box-shadow .15s; }
.hl.active { background: var(--evidenza-attiva); box-shadow: 0 0 0 1.5px rgba(121, 85, 208, .7); }
.doc-foot { min-height: 46px; flex-shrink: 0; padding: 0 12px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--nebbia-100); font-size: 12.5px; color: var(--nebbia-600); }
.doc-foot .ev-count { display: inline-flex; align-items: center; gap: 8px; }
.doc-foot .ev-swatch { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 214, 51, .5); }
.doc-foot .btn-icon { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; }
.mail-view { flex-grow: 1; min-height: 0; overflow: auto; padding: 24px; }
.mail-view pre { white-space: pre-wrap; font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: var(--nebbia-800); background: var(--nebbia-50); border-radius: 14px; padding: 16px 18px; margin: 16px 0 0; }
.mail-strip { flex-shrink: 0; background: #FFFFFF; border-radius: 18px; box-shadow: var(--cva-shadow); padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.mail-strip-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--lilla-50); color: var(--lilla-600); display: inline-flex; align-items: center; justify-content: center; }
.mail-strip-txt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.mail-strip-txt .s { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-strip-txt .b { font-size: 12.5px; color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-strip a, .mail-strip button { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.vcard { background: #FFFFFF; border-radius: 22px; box-shadow: var(--cva-shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.vcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vcard-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--nebbia-900); }
.vcard-note { font-size: 13px; line-height: 1.5; color: var(--nebbia-600); margin: 4px 0 0; }
.routing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; border-radius: 18px; }
.routing .form-label { font-size: 12.5px; color: var(--nebbia-600); margin-bottom: 6px; }
.routing .form-select { font-size: 13.5px; border-color: var(--nebbia-200); }
.routing-note { font-size: 12px; color: var(--ambra-700); margin-top: 6px; }
.dup { box-shadow: 0 0 0 1px var(--corallo-200), var(--cva-shadow); }
.dup-top { display: flex; gap: 14px; align-items: flex-start; }
.dup-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: var(--corallo-50); color: var(--corallo-600); display: inline-flex; align-items: center; justify-content: center; }
.score { flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--corallo-50); color: var(--corallo-700); white-space: nowrap; }
.score.debole { background: var(--ambra-50); color: var(--ambra-700); }
.dup-list { display: flex; flex-direction: column; gap: 8px; }
.dup-existing { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--nebbia-50); cursor: pointer; }
.dup-existing input { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--lilla-600); }
.dup-existing.sel { background: var(--lilla-25); box-shadow: inset 0 0 0 1.5px var(--lilla-300); }
.dup-existing-txt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.dup-existing-txt .n { font-size: 14.5px; font-weight: 600; }
.dup-existing-txt .n span { font-weight: 500; color: var(--nebbia-600); }
.dup-existing-txt .m { font-size: 12.5px; color: var(--nebbia-600); }
.dup-open { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); color: var(--nebbia-800); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.dup-open:hover { text-decoration: none; background: var(--nebbia-25); color: var(--nebbia-900); }
.cmp { display: flex; flex-direction: column; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--nebbia-100); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13.5px; }
.cmp-row + .cmp-row { border-top: 1px solid var(--nebbia-100); }
.cmp-row .k { font-weight: 600; color: var(--nebbia-800); }
.cmp-row .old { color: var(--nebbia-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-row .new { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-head { font-size: 12px; font-weight: 600; color: var(--nebbia-600); background: var(--nebbia-25); padding-top: 8px; padding-bottom: 8px; }
.auto-chip { justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--salvia-50); color: var(--salvia-800); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.auto-chip .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); cursor: pointer; transition: background .15s, box-shadow .15s; }
.choice label:has(input:checked) { background: var(--lilla-25); box-shadow: inset 0 0 0 1.5px var(--lilla-600); }
.choice input { margin: 3px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--lilla-600); }
.choice .t { display: block; font-size: 14px; font-weight: 600; color: var(--nebbia-800); }
.choice label:has(input:checked) .t { color: var(--lilla-900); }
.choice .d { display: block; font-size: 12.5px; color: var(--nebbia-600); margin-top: 2px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--lilla-50); color: var(--lilla-800); font-size: 12.5px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ai-chip .ico { width: 13px; height: 13px; stroke-width: 2; }
.meter { display: inline-flex; gap: 2px; align-items: flex-end; flex-shrink: 0; }
.meter i { display: block; width: 4px; border-radius: 2px; background: var(--nebbia-100); }
.meter i:nth-child(1) { height: 6px; } .meter i:nth-child(2) { height: 9px; } .meter i:nth-child(3) { height: 12px; }
.meter.alta i { background: var(--lilla-600); }
.meter.media i:nth-child(-n+2) { background: var(--lilla-300); }
.meter.bassa i:first-child { background: var(--ambra-500); }
.lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; min-height: 18px; }
.lbl-row .form-label { margin-bottom: 0; }
.lbl-aside { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lbl-aside.bassa { color: var(--ambra-700); }
.lbl-aside.manuale { color: var(--nebbia-600); }
.nel-cv { display: none; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--lilla-700); white-space: nowrap; }
.nel-cv .ico { width: 14px; height: 14px; stroke-width: 2; }
.field-ev { cursor: pointer; }
.field-ev.active .nel-cv { display: inline-flex; }
.field-ev.active .lbl-aside:not(.nel-cv) { display: none; }
.fld.field-ev.active .form-control, .fld.field-ev.active .form-select { border: 1.5px solid var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); }
.tl-row.field-ev.active, .exp-row.field-ev.active { background: var(--lilla-50); box-shadow: inset 0 0 0 1.5px var(--lilla-600); }
.tl-block.field-ev.active .tl-row.field-ev { box-shadow: inset 0 0 0 1.5px var(--lilla-300); }
.exp-row.field-ev { cursor: default; }
.conf-bassa .form-control, .conf-bassa .form-select { background-color: var(--ambra-100); border-color: var(--ambra-300); }
.fonte-nl { color: var(--nebbia-500); display: inline-flex; }
.classif { background: var(--lilla-25); box-shadow: 0 0 0 1px var(--lilla-200); }
.classif .vcard-title { color: var(--lilla-900); }
.chip-archivio { flex-shrink: 0; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--lilla-200); color: var(--lilla-800); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.val-alerts { display: flex; flex-direction: column; gap: 8px; }
.val-alerts:empty { display: none; }
/* arrivo in validazione da un altro utente: sola lettura */
.blocco-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: 18px; background: var(--ambra-50); color: var(--ambra-700); box-shadow: inset 0 0 0 1px var(--ambra-300); }
.blocco-banner > .ico { width: 22px; height: 22px; flex-shrink: 0; }
.blocco-banner > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
.blocco-banner b { color: var(--nebbia-900); font-size: 14px; font-weight: 700; }
.blocco-banner.ok { background: var(--salvia-50); color: var(--salvia-800); box-shadow: inset 0 0 0 1px var(--salvia-200); }
#fs-dati:disabled .form-control, #fs-dati:disabled .form-select { background-color: var(--nebbia-50); color: var(--nebbia-700); }
#fs-dati:disabled .btn-add-inline, #fs-dati:disabled .btn-plus, #fs-dati:disabled .tl-del { display: none; }
.tabs-mobile { display: none; }

/* ------------------------------------------------------------ Scheda candidato */
.crumbs-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var(--nebbia-600); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.crumbs a { font-weight: 600; }
.crumbs .ico { width: 14px; height: 14px; color: var(--nebbia-400); }
.crumbs span { color: var(--nebbia-700); }
.hero { background: #FFFFFF; border-radius: 24px; box-shadow: var(--cva-shadow); padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-left { display: flex; align-items: center; gap: 22px; min-width: 0; flex: 1 1 auto; }
@media (min-width: 992px) { .hero { flex-wrap: nowrap; } }
.hero-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; color: var(--lilla-950); }
.hero-line { font-size: 15px; color: var(--nebbia-700); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--nebbia-50); color: var(--nebbia-800); font-size: 13px; font-weight: 500; white-space: nowrap; }
.hchip .ico { width: 14px; height: 14px; stroke-width: 2; color: var(--nebbia-600); }
.hchip-lilla { background: var(--lilla-50); color: var(--lilla-800); }
.hchip-lilla .ico { color: var(--lilla-700); }
.hchip .mono { font-size: 12.5px; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-elimina { --bs-btn-color: var(--corallo-700); --bs-btn-hover-color: var(--corallo-700); --bs-btn-hover-bg: var(--corallo-50); --bs-btn-hover-border-color: var(--corallo-200); --bs-btn-active-color: var(--corallo-700); --bs-btn-active-bg: var(--corallo-50); --bs-btn-active-border-color: var(--corallo-200); }
.tabs-line { display: flex; gap: 28px; border-bottom: 1px solid var(--nebbia-200); margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; }
.tabs-line .nav-link { height: 46px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--nebbia-600); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tabs-line .nav-link:hover { color: var(--nebbia-900); text-decoration: none; }
.tabs-line .nav-link.active { color: var(--lilla-900); font-weight: 600; box-shadow: inset 0 -2.5px 0 var(--lilla-600); background: transparent; }
.tabs-line .nav-link.disabled { color: var(--nebbia-400); }
.tab-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--nebbia-100); color: var(--nebbia-700); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tab-count:empty { display: none; }
/* «Vai a» resta in alto mentre si scorre la scheda, sempre su un fondo bianco appena trasparente: sotto passano le
   sezioni e le chip devono restare leggibili; ferma in alto prende anche l'ombra */
.sez-nav { position: sticky; top: 12px; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 -10px 24px; padding: 8px 10px; border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow .15s; }
.sez-nav.ferma { box-shadow: inset 0 0 0 1px var(--linea), var(--cva-shadow); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sez-nav { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.sez-nav-lbl { font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); margin-right: 4px; }
.sez-chip { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); color: var(--nebbia-700); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; text-decoration: none; }
.sez-chip:hover { color: var(--nebbia-900); background: var(--nebbia-25); text-decoration: none; }
.sez-chip.active { background: var(--lilla-900); color: #FFFFFF; box-shadow: none; font-weight: 600; }
.sez-chip.more { background: var(--nebbia-100); box-shadow: none; font-weight: 600; color: var(--nebbia-700); }
.scheda-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; }
.scheda-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sez { background: #FFFFFF; border-radius: 22px; box-shadow: var(--cva-shadow); padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 92px; }
.sez-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sez-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--nebbia-900); }
/* sezione raggiunta dal «Vai a»: il titolo si illumina per un momento */
.sez.sez-evidenziata { box-shadow: 0 0 0 2px var(--lilla-300), var(--cva-shadow); transition: box-shadow .3s; }
.sez-evidenziata .sez-title { border-radius: 8px; animation: titolo-evidenziato 2.4s ease-out; }
@keyframes titolo-evidenziato { 0%, 55% { background: var(--lilla-100); color: var(--lilla-800); box-shadow: 0 0 0 6px var(--lilla-100); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .sez-evidenziata .sez-title { animation: none; background: var(--lilla-100); box-shadow: 0 0 0 6px var(--lilla-100); } }
.sez-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.sez-note { font-size: 12.5px; color: var(--nebbia-600); margin: 0; }
/* documenti del candidato: lo stato vuoto sta sotto il titolo, i moduli di caricamento sono compatti */
.sez-doc { gap: 12px; }
/* una riga per documento: il riquadro del file prende tutto lo spazio, i tasti stanno sempre alla sua destra,
   così tutte le versioni hanno lo stesso ingombro e i tasti restano in colonna */
.doc-riga { display: flex; align-items: center; gap: 12px; }
.doc-riga > .file-tile { flex: 1 1 auto; min-width: 0; }
.doc-azioni { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 575.98px) { .doc-riga { flex-wrap: wrap; } .doc-azioni { margin-left: auto; } }
.sez-head-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.doc-form-all { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.doc-form-all .doc-file { grid-column: 1 / -1; }
.fgrid { display: grid; gap: 16px; }
.fgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fgrid-val { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, .75fr); }
.fgrid .span-2 { grid-column: span 2; }
.fgrid .span-all { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; min-width: 0; }
.fld-suffix { position: relative; }
.fld-suffix .suf { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--nebbia-600); pointer-events: none; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.fld-check { align-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13.5px; font-weight: 500; color: var(--nebbia-800); cursor: pointer; }
.fld-check input { width: 18px; height: 18px; accent-color: var(--lilla-600); margin: 0; }
.voto-select { font-family: var(--font-mono); font-size: 13.5px; }
.prof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prof-panel { padding: 18px; border-radius: 18px; background: var(--nebbia-25); box-shadow: inset 0 0 0 1px var(--nebbia-200); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.prof-panel.primaria { background: var(--lilla-25); box-shadow: inset 0 0 0 1px var(--lilla-200); }
.panel-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia-600); }
.prof-panel.primaria .panel-eyebrow { color: var(--lilla-700); }
.flags { display: flex; gap: 10px; flex-wrap: wrap; }
.flag-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); font-size: 14px; font-weight: 500; color: var(--nebbia-800); cursor: pointer; margin: 0; }
.flag-pill input { width: 18px; height: 18px; margin: 0; accent-color: var(--lilla-600); }
.flag-pill.danger input { accent-color: var(--corallo-600); }
.flag-pill:has(input:checked) { background: var(--lilla-25); box-shadow: inset 0 0 0 1.5px var(--lilla-300); }
.flag-pill.danger:has(input:checked) { background: var(--corallo-50); box-shadow: inset 0 0 0 1.5px var(--corallo-200); }
.flag-pill small { color: var(--nebbia-600); font-weight: 400; }
.otable { display: flex; flex-direction: column; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--nebbia-100); overflow: hidden; }
.orow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px 84px 222px 44px; gap: 12px; align-items: center; padding: 12px 16px; font-size: 13.5px; }
.orow + .orow { border-top: 1px solid var(--nebbia-100); }
.orow.head { padding-top: 10px; padding-bottom: 10px; background: var(--nebbia-25); font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); }
.orow .tit { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.orow .tit b { font-weight: 600; }
.orow .tit span { font-size: 12.5px; color: var(--nebbia-600); }
.orow .conv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.orow .conv .form-control { max-width: 160px; }
/* valutazioni (feat-valutazioni): stessa tabella, più spazio ad azienda e mansione, meno al voto */
.otable-val .orow { grid-template-columns: 84px minmax(0, 1fr) 96px 76px 150px 44px; }
.oadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oadd .form-select { max-width: 320px; }
.oadd .form-control, .oadd .form-select-origine { width: auto; }
.exp-table { display: flex; flex-direction: column; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--nebbia-100); overflow: hidden; }
.exp-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, .8fr) 124px 124px 52px 36px; gap: 8px; align-items: center; padding: 8px 12px; }
.exp-row + .exp-row { border-top: 1px solid var(--nebbia-100); }
.exp-row.head { background: var(--nebbia-25); font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); padding-top: 10px; padding-bottom: 10px; }
.exp-row .form-control { min-height: 40px; font-size: 13.5px; padding: 0 10px; border-radius: 10px; }
.exp-row .ck { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; }
/* nel layout a tabella il periodo si scompone nelle colonne Dal, Al, In corso */
.exp-periodo, .exp-d { display: contents; }
.exp-lbl { display: none; font-size: 12.5px; font-weight: 600; color: var(--nebbia-600); white-space: nowrap; }
/* in validazione (colonna stretta) ogni esperienza va su due righe: dove e cosa, poi il periodo */
.exp-table.compatta .exp-row.head > span:nth-child(n+4) { display: none; }   /* Dal, Al e In corso hanno l'etichetta nella riga */
.exp-table.compatta .exp-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .9fr) 36px; row-gap: 8px; padding: 10px 12px; }
.exp-table.compatta .exp-periodo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; grid-column: 1 / 4; grid-row: 2; }
.exp-table.compatta .exp-d { display: inline-flex; align-items: center; gap: 8px; }
.exp-table.compatta .exp-d .form-control { width: 160px; }
.exp-table.compatta .exp-lbl { display: inline; }
.exp-table.compatta [data-del] { grid-column: 4; grid-row: 1; }
.exp-empty { padding: 14px 16px; font-size: 13px; color: var(--nebbia-600); }
/* Istruzione e lingue: le voci scelte una sotto l'altra, «Aggiungi» chiuso finché non si clicca */
.tl-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-list { display: flex; flex-direction: column; gap: 6px; }
.tl-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--nebbia-25); box-shadow: inset 0 0 0 1px var(--nebbia-200); transition: background .15s, box-shadow .15s; }
.tl-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--lilla-50); color: var(--lilla-600); }
.tl-ico .ico { width: 17px; height: 17px; }
.tl-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--nebbia-900); overflow-wrap: anywhere; }
.tl-name small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--ambra-700); }
.tl-name .fonte-nl { vertical-align: -2px; }
.tl-level { flex: 0 0 auto; width: 150px; min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; border-radius: 10px; background-color: #FFFFFF; }
.tl-del { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--nebbia-500); }
.tl-del:hover { background: var(--corallo-50); color: var(--corallo-700); }
.tl-row.da-abbinare { background: var(--ambra-100); box-shadow: inset 0 0 0 1px var(--ambra-300); }
.tl-row.da-abbinare .tl-ico { background: #FFFFFF; color: var(--ambra-700); }
.tl-row .btn-link { font-size: 13px; white-space: nowrap; }
.tl-empty { padding: 2px 2px 4px; font-size: 13.5px; color: var(--nebbia-500); }
.tl-add { display: flex; flex-direction: column; align-items: flex-start; }
.btn-add-inline { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px dashed var(--lilla-300); border-radius: 10px; background: transparent; color: var(--lilla-700); font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s; }
.btn-add-inline:hover { background: var(--lilla-50); border-color: var(--lilla-400); }
.tl-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 10px; border-radius: 14px; background: var(--lilla-25); box-shadow: inset 0 0 0 1px var(--lilla-200); }
.tl-add-form .input-group { flex: 1 1 150px; min-width: 0; }
.tl-add-lingua > select { flex: 0 1 170px; width: auto; }
.rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; min-width: 0; }   /* sotto «Vai a» */
.rcard { background: #FFFFFF; border-radius: 22px; box-shadow: var(--cva-shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rcard-title { margin: 0; font-size: 16px; font-weight: 600; }
.file-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--nebbia-50); }
.file-ico { width: 44px; height: 52px; flex-shrink: 0; border-radius: 8px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(39, 26, 71, .08), inset 0 0 0 1px var(--nebbia-200); color: var(--corallo-600); font-size: 10px; font-weight: 700; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.file-ico.doc { color: var(--lilla-700); }
.file-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-txt .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-txt .m { font-size: 12.5px; color: var(--nebbia-600); }
.rcard-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rcard-link { font-size: 13.5px; font-weight: 600; }
.info-list { margin: 0; display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nebbia-100); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-size: 13px; color: var(--nebbia-600); font-weight: 400; }
.info-row dd { margin: 0; font-size: 13.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mini-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mini-tl li { display: flex; gap: 12px; }
.mini-tl .dot { width: 10px; height: 10px; margin-top: 5px; flex-shrink: 0; border-radius: 999px; background: var(--nebbia-400); box-shadow: 0 0 0 4px var(--nebbia-100); }
.mini-tl .dot-lilla { background: var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); }
.mini-tl .tl-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-tl .a { font-size: 13.5px; font-weight: 600; }
.mini-tl .d { font-size: 12.5px; color: var(--nebbia-600); }
.mini-tl .w { font-size: 12px; color: var(--nebbia-600); }
.legacy-kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0; }
.legacy-kv dt { color: var(--nebbia-600); font-weight: 500; }
.legacy-kv dd { margin: 0; word-break: break-word; }

/* ------------------------------------------------------------ elementi comuni */
.empty-state { text-align: center; padding: 56px 16px; color: var(--nebbia-600); }
.empty-state i, .empty-state .ico { font-size: 2.4rem; width: 44px; height: 44px; color: var(--lilla-400); display: block; margin: 0 auto 14px; }
.empty-state h5 { color: var(--nebbia-900); font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.empty-state p { margin: 0 auto; max-width: 420px; }
.skeleton { background: linear-gradient(90deg, var(--nebbia-100) 25%, var(--nebbia-50) 50%, var(--nebbia-100) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.toast-container { z-index: 1090; }
.toast { border: 0; border-radius: 14px; box-shadow: 0 12px 32px rgba(39, 26, 71, .18); font-size: 14px; }
.toast.text-bg-success { background-color: var(--salvia-700) !important; }
.toast.text-bg-danger { background-color: var(--corallo-600) !important; }
.toast.text-bg-warning { background-color: var(--ambra-500) !important; color: var(--nebbia-900) !important; }
.toast.text-bg-primary { background-color: var(--lilla-600) !important; }
.modal { --bs-modal-border-radius: 22px; --bs-modal-inner-border-radius: 22px; --bs-modal-border-width: 0; --bs-modal-header-border-color: var(--nebbia-100); --bs-modal-footer-border-color: var(--nebbia-100); }
.modal-content { box-shadow: 0 24px 60px rgba(30, 26, 43, .25); }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--lilla-950); }
.modal-header, .modal-footer { padding: 18px 24px; }
.modal-body { padding: 22px 24px; }
.alert { border: 0; border-radius: 14px; font-size: 14px; padding: 12px 16px; margin: 0; }
.alert-warning { background: var(--ambra-50); color: var(--ambra-700); }
.alert-info { background: var(--lilla-50); color: var(--lilla-800); }
.alert-secondary { background: var(--nebbia-100); color: var(--nebbia-800); }
.alert-danger { background: var(--corallo-50); color: var(--corallo-700); }
.alert-success { background: var(--salvia-50); color: var(--salvia-800); }
.list-group { --bs-list-group-border-color: var(--nebbia-200); --bs-list-group-active-bg: var(--lilla-100); --bs-list-group-active-color: var(--lilla-900); --bs-list-group-active-border-color: var(--lilla-100); --bs-list-group-action-hover-bg: var(--nebbia-50); border-radius: 14px; }
.nav-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--nebbia-100); border-radius: 14px; }
.nav-pills .nav-link { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; color: var(--nebbia-700); font-weight: 600; font-size: 14px; }
.nav-pills .nav-link:hover { color: var(--nebbia-900); text-decoration: none; }
.nav-pills .nav-link.active { background: #FFFFFF; color: var(--lilla-900); box-shadow: 0 1px 2px rgba(39, 26, 71, .08), 0 2px 8px rgba(39, 26, 71, .06); }
.nav-tabs { border-bottom: 1px solid var(--nebbia-200); gap: 28px; }
.nav-tabs .nav-link { border: 0; padding: 12px 2px; color: var(--nebbia-600); font-weight: 500; background: transparent; }
.nav-tabs .nav-link.active { color: var(--lilla-900); font-weight: 600; box-shadow: inset 0 -2.5px 0 var(--lilla-600); background: transparent; }
.tab-content { padding-top: 0; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--nebbia-600); font-weight: 500; }
.kv dd { margin: 0; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--nebbia-100); }
.tl-item { position: relative; padding: 2px 0 18px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--nebbia-400); box-shadow: 0 0 0 4px var(--nebbia-100); }
.tl-item.manuale::before { background: var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); }
.tl-item.positivo::before { background: var(--salvia-600); box-shadow: 0 0 0 4px var(--salvia-100); }
.tl-date { font-size: 12.5px; color: var(--nebbia-600); }
.tl-item .fw-semibold { font-size: 14.5px; }
.dropzone { border: 2px dashed var(--lilla-300); border-radius: 16px; padding: 24px; text-align: center; color: var(--nebbia-600); background: var(--lilla-25); }
.dropzone.drag { border-color: var(--lilla-600); background: var(--lilla-50); }
.dropzone > .ico { width: 32px; height: 32px; color: var(--lilla-500); display: block; margin: 0 auto 8px; }   /* solo l'icona del riquadro: quelle dei file in elenco restano a sinistra */
/* ricerca avanzata: condizioni numerate unite da «e», alternative unite da «oppure», valori a chip */
.qb { background: #FFFFFF; border-radius: 24px; box-shadow: var(--cva-shadow); padding: 24px; margin-bottom: 16px; }
.qb-gruppi { display: flex; flex-direction: column; }
.qb-gruppo { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 16px 16px 12px; border-radius: 18px; background: var(--nebbia-25); box-shadow: inset 0 0 0 1px var(--nebbia-200); }
.qb-num { width: 32px; height: 32px; margin-top: 6px; border-radius: 10px; background: var(--lilla-100); color: var(--lilla-800); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.qb-gruppo-corpo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qb-riga { display: grid; grid-template-columns: 230px 150px minmax(0, 1fr) 36px; gap: 8px; align-items: start; }
.qb-riga > .btn-icon { margin-top: 4px; }
.qb-riga.vuota > .qb-op-fisso { display: none; }
.qb-riga.vuota > .qb-valore { grid-column: 2 / 4; }
.qb-op-fisso { min-height: 44px; display: flex; align-items: center; padding: 0 6px; font-size: 14.5px; font-weight: 600; color: var(--nebbia-700); }
.qb-hint { min-height: 44px; display: flex; align-items: center; font-size: 13.5px; color: var(--nebbia-500); }
.qb-oppure { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lilla-700); }
.qb-oppure::before { content: ""; width: 14px; height: 1px; background: var(--lilla-300); }
.qb-oppure::after { content: ""; flex: 1 1 0; height: 1px; background: var(--lilla-200); }
.qb-e { position: relative; height: 44px; display: flex; align-items: center; padding-left: 14px; }
.qb-e::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--lilla-200); }
.qb-e span { position: relative; padding: 3px 11px; border-radius: 999px; background: var(--lilla-600); color: #FFFFFF; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qb-gruppo-azioni { display: flex; gap: 20px; flex-wrap: wrap; padding: 2px 0; }
.qb-gruppo-azioni .btn-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; }
.qb-del-g { --bs-btn-color: var(--nebbia-600); --bs-btn-hover-color: var(--corallo-700); --bs-btn-active-color: var(--corallo-700); }
.qb-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.qb-foot-azioni { margin-left: auto; display: flex; gap: 8px; }
.qb-valore { position: relative; min-width: 0; }
.qb-valore-riga { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; font-size: 14px; color: var(--nebbia-700); }
.qb-valore-riga .form-control { width: auto; }
.qb-valore-riga .qb-num-in { width: 96px; }
.qb-lingua { display: flex; gap: 8px; align-items: start; }
.qb-lingua .qb-valore-multi { flex: 1 1 auto; min-width: 0; }
.qb-livello { width: auto; flex-shrink: 0; }
.qb-valore-multi { position: relative; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 10px 5px 6px; border: 1px solid var(--nebbia-300); border-radius: 12px; background: #FFFFFF; cursor: text; }
.pick:focus-within { border-color: var(--lilla-600); box-shadow: 0 0 0 4px var(--lilla-100); }
.pick-chips { display: contents; }
.pick-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 30px; padding: 0 3px 0 10px; border-radius: 9px; background: var(--lilla-100); color: var(--lilla-900); font-size: 13.5px; font-weight: 600; }
.pick-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-chip button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--lilla-700); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pick-chip button:hover { background: var(--lilla-200); }
.pick-o { font-size: 12.5px; font-weight: 600; color: var(--nebbia-500); }
.pick-input { flex: 1 1 120px; min-width: 90px; height: 32px; padding: 0 4px; border: 0; outline: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--nebbia-900); }
.pick-input::placeholder { color: var(--nebbia-400); }
.pick-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(39, 26, 71, .16), 0 0 0 1px rgba(39, 26, 71, .04); }
.pick-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--nebbia-800); cursor: pointer; }
.pick-opt:hover, .pick-opt.active { background: var(--lilla-50); color: var(--lilla-900); }
.pick-sub { font-size: 12.5px; color: var(--nebbia-500); text-align: right; }
.pick-vuoto { padding: 10px; font-size: 13px; color: var(--nebbia-500); }
.qb-salvate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 16px; }
.qb-salvate-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--nebbia-700); }
.qb-salvate-lbl .ico { color: var(--lilla-600); }
.qb-salvate-lista { display: flex; gap: 8px; flex-wrap: wrap; }
.qb-salvata { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--nebbia-200); }
.qb-salvata-btn { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--nebbia-800); font-size: 13.5px; font-weight: 600; }
.qb-salvata-btn:hover { color: var(--lilla-800); }
.qb-salvata-btn .ico { color: var(--lilla-600); }
.qb-salvata .dropdown { margin-left: -8px; }
.qb-salvata-menu { width: 32px; height: 32px; margin-right: 4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--nebbia-600); display: inline-flex; align-items: center; justify-content: center; }
.qb-salvata-menu:hover { background: var(--nebbia-100); color: var(--nebbia-900); }
.qb-riepilogo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 18px; border-radius: 14px; background: var(--lilla-50); color: var(--lilla-900); font-size: 14px; }
.qb-riepilogo .ico { color: var(--lilla-600); }
.qb-frase { font-weight: 600; min-width: 0; }
.qb-rip-nome { font-weight: 700; color: var(--lilla-950); white-space: nowrap; }   /* ricerca salvata aperta in breve */
.qb-rip-nome::after { content: "·"; margin-left: 10px; color: var(--lilla-400); font-weight: 400; }
.qb-riepilogo #btn-modifica { flex-shrink: 0; margin-left: auto; }
.qb-riepilogo .qb-rip-n + #btn-modifica { margin-left: 0; }   /* con il numero dei candidati, accanto al numero */
.qb-rip-n { margin-left: auto; font-weight: 700; white-space: nowrap; }
.qb-rip-nota { margin-left: auto; font-size: 13px; color: var(--nebbia-600); }
.sticky-actions { position: sticky; top: 0; z-index: 4; background: rgba(248, 247, 252, .92); backdrop-filter: blur(6px); padding: 8px 0; }
.mobile-cards { display: none; }
.code-box { font-family: var(--font-mono); font-weight: 500; background: var(--nebbia-50); border-radius: 12px; padding: 12px 14px; word-break: break-all; font-size: 13.5px; }

/* accesso diviso (ui-login): a sinistra il marchio dello studio, a destra il modulo e la firma FixIA */
.accesso { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.accesso-marca { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px 56px 40px; color: #FFFFFF; background: linear-gradient(140deg, var(--lilla-800) 0%, var(--lilla-600) 52%, var(--salvia-600) 100%); }
.accesso-simbolo { position: absolute; right: -16%; bottom: -14%; width: 76%; aspect-ratio: 1; background: url("/static/img/simbolo.svg") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.accesso-marca-testa { position: relative; display: flex; align-items: center; gap: 16px; }
.accesso-logo { display: block; width: 56px; height: 56px; border-radius: 26%; box-shadow: 0 14px 30px rgba(39, 26, 71, .28); }
.accesso-app { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; color: #FFFFFF; }
.accesso-marca-centro { position: relative; max-width: 560px; }
.accesso-motto { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.03; letter-spacing: -.025em; font-variation-settings: "SOFT" 100, "WONK" 0; }
.accesso-studio { margin: 18px 0 0; font-size: 17px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .88); }
.accesso-riservato { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.accesso-modulo { display: flex; flex-direction: column; align-items: center; padding: 40px 32px 20px; background: var(--nebbia-25); }
.accesso-colonna { width: 100%; max-width: 400px; margin: auto 0; }
.accesso-testo { margin: -6px 0 20px; font-size: 14.5px; color: var(--nebbia-600); }
.accesso-etichetta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.accesso-etichetta a { font-size: 13.5px; font-weight: 600; }
.accesso-link { margin: 18px 0 0; text-align: center; font-size: 14px; }
.accesso-modulo > .fixia-firma { margin-top: 28px; }
.login-titolo { margin: 0 0 20px; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: var(--lilla-950); }
.login-nota { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--nebbia-600); text-align: center; }
.login-nota .ico { color: var(--lilla-600); }
.login-piede { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--nebbia-100); font-size: 13px; color: var(--nebbia-500); }
.login-piede a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .accesso-marca-testa, .accesso-marca-centro, .accesso-colonna { animation: accesso-entra .6s cubic-bezier(.16, 1, .3, 1) both; }
  .accesso-marca-centro { animation-delay: .12s; }
  .accesso-colonna { animation-delay: .22s; }
}
@keyframes accesso-entra { from { opacity: 0; transform: translateY(12px); } }
/* sul telefono il marchio è una testata bassa sopra il modulo */
@media (max-width: 991.98px) {
  .accesso { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .accesso-marca { gap: 14px; padding: 26px 20px 24px; }
  .accesso-simbolo { right: -70px; top: -60px; bottom: auto; width: 240px; }
  .accesso-motto { font-size: 26px; }
  .accesso-studio { margin-top: 6px; font-size: 14px; }
  .accesso-riservato { display: none; }
  .accesso-app { font-size: 24px; }
  .accesso-logo { width: 44px; height: 44px; }
  .accesso-modulo { min-height: calc(100vh - 200px); padding: 28px 20px 16px; }
  .accesso-colonna { margin: 0 0 auto; }   /* sul telefono il modulo parte subito sotto la testata */
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1399.98px) {
  .val-doc { flex-basis: 44%; }
  .lista-head, .arrivo { grid-template-columns: minmax(0, 1fr) 124px 150px 120px 76px 140px; gap: 12px; }
}
@media (max-width: 1199.98px) {
  .scheda-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  /* elenco degli arrivi: sotto i 1200 px le sei colonne non ci stanno, le righe vanno a capo */
  .lista-head { display: none; }
  .arrivo { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .arrivo-who, .arrivo-rec, .arrivo-pos, .arrivo-stato { grid-column: 1 / -1; }
  .arrivo-time { flex-direction: row; gap: 6px; align-items: baseline; }
  .fgrid-val { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orow { grid-template-columns: 84px minmax(0, 1fr) 100px 190px 44px; }
  .otable-val .orow { grid-template-columns: 84px minmax(0, 1fr) 96px 150px 44px; }
  .orow .orig { display: none; }
}
@media (max-width: 991.98px) {
  .app-main { padding: 20px 16px 32px; }
  .app-sidebar { border-right: 0; }
  .page-title { font-size: 36px; }
  .contatori { grid-template-columns: minmax(0, 1fr); }
  .kpi-hero-azioni .btn { min-height: 44px; }
  .kpi-row { min-height: 64px; }
  .kpi-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cons-liste { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cons-guida { padding: 16px; }
  .cons-passi { grid-template-columns: minmax(0, 1fr); }
  .cons-tab > :not(caption) > tr > .cons-sel { position: sticky; left: 0; z-index: 1; background: #FFFFFF; }
  .cons-tab tbody th, .cons-tab thead th:nth-child(2) { position: sticky; left: 56px; z-index: 1; background: #FFFFFF; box-shadow: inset -1px 0 0 var(--nebbia-100); }
  .cons-tab thead th.cons-sel, .cons-tab thead th:nth-child(2) { background: var(--nebbia-25); }
  .cons-tab tbody tr.scelta > * { background: var(--lilla-50); }
  .andamento-grafico { min-height: 140px; }
  .toolbar { scroll-margin-top: 76px; }
  .sel-bar { left: 50%; }
  /* sul telefono «Vai a» è una fila che scorre, sotto la barra in alto */
  .sez-nav { top: 68px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sez-nav .sez-chip, .sez-nav .sez-nav-lbl { flex-shrink: 0; white-space: nowrap; }
  .sez { scroll-margin-top: 136px; }
  .val-head { padding: 12px 16px; flex-wrap: wrap; }
  .val-body { flex-direction: column; padding: 16px; }
  .val-doc { flex-basis: auto; max-width: none; }
  .doc-card { min-height: 70vh; }
  .val-dati { overflow: visible; padding-right: 0; }
  .val-foot { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px; flex-wrap: wrap; }
  .val-hint { display: none; }
  .tabs-mobile { display: inline-flex; }
  .routing { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-row > :last-child { grid-column: 1 / -1; }
  .hero { padding: 20px; }
  .hero-name { font-size: 32px; }
  .qb { padding: 16px; }
  .qb-gruppo { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 10px; }
  .qb-num { display: none; }
  .qb-riga { grid-template-columns: minmax(0, 1fr) 36px; }
  .qb-riga > .qb-campo { grid-column: 1; grid-row: 1; }
  .qb-riga > .btn-icon { grid-column: 2; grid-row: 1; }
  .qb-riga > .qb-op, .qb-riga > .qb-op-fisso, .qb-riga > .qb-valore { grid-column: 1 / -1; }
  .qb-riga.vuota > .qb-valore { grid-column: 1 / -1; }
  .qb-e { justify-content: center; padding-left: 0; }
  .qb-e::before { left: 50%; }
  .qb-lingua { flex-direction: column; align-items: stretch; }
}
@media (max-width: 767.98px) {
  .page-title { font-size: 32px; }
  .fgrid-2, .fgrid-3, .fgrid-4, .fgrid-val, .prof-grid, .choice { grid-template-columns: minmax(0, 1fr); }
  .fgrid .span-2 { grid-column: auto; }
  .table-wrap.responsive-cards .table { display: none; }
  .mobile-cards { display: block; }
  .mobile-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--nebbia-100); }
  .mobile-card:first-child { border-top: 0; }
  .kv, .legacy-kv { grid-template-columns: minmax(0, 1fr); }
  .card-body, .sez, .vcard { padding: 18px 16px; }
  .exp-row, .exp-table.compatta .exp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .exp-row.head, .exp-table.compatta .exp-row.head { display: none; }
  .exp-row [name=e_luogo] { grid-column: 1 / 3; }
  .exp-row [data-del], .exp-table.compatta [data-del] { grid-column: 3; grid-row: 1; }
  .exp-periodo, .exp-table.compatta .exp-periodo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; grid-column: 1 / -1; grid-row: auto; }
  .exp-d { display: inline-flex; align-items: center; gap: 8px; }
  .exp-lbl { display: inline; }
  .orow, .otable-val .orow { grid-template-columns: minmax(0, 1fr) auto; }
  .orow.head { display: none; }
  .hero-left { align-items: flex-start; }
  .av-80 { width: 56px; height: 56px; font-size: 19px; }
  .val-foot-right { width: 100%; }
  .val-foot-right .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------ firma «Powered by FixIA» (skill fixia-firma): piccola e tenue, si
   accende al passaggio; la scritta sta sulla linea di base di «fixia». A riposo almeno 4,5:1 sulla sua superficie. */
.fixia-firma { display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 7px; padding: 6px 4px; border-radius: 8px; text-decoration: none; color: var(--firma, var(--nebbia-600)); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; transition: color .16s ease-out; }
.fixia-firma span { white-space: nowrap; }
.fixia-firma-logo { display: block; width: 44px; height: 14px; position: relative; top: 1.4px; }
.fixia-firma:hover, .fixia-firma:focus-visible { color: var(--firma-attiva, var(--lilla-700)); text-decoration: none; }
.sb-footer .fixia-firma { --firma: var(--nebbia-700); --firma-attiva: var(--lilla-800); align-self: center; }
@media (min-width: 992px) {
  .sb-compact .fixia-firma { flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; letter-spacing: .08em; }
}

/* ------------------------------------------------------------ elenchi (ui-elenchi): le liste per gruppo a sinistra, le voci a destra */
.elenchi { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.elenchi-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-radius: 22px; background: #FFFFFF; box-shadow: var(--cva-shadow); }
.en-gruppo { padding: 14px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia-600); }
.en-gruppo:first-child { padding-top: 4px; }
.en-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--nebbia-700); font-size: 14.5px; font-weight: 500; text-align: left; transition: background-color .1s, color .1s; }
@media (hover: hover) { .en-link:hover { background: var(--lilla-25); color: var(--nebbia-900); } }
.en-link.active { background: var(--lilla-100); color: var(--lilla-900); font-weight: 600; }
.en-nome { flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-count { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--nebbia-100); color: var(--nebbia-700); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.en-link.active .en-count { background: var(--lilla-600); color: #FFFFFF; }
.ev-card { background: #FFFFFF; border-radius: 24px; box-shadow: var(--cva-shadow); }
.ev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.ev-title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--lilla-950); }
.ev-desc { margin: 6px 0 0; max-width: 68ch; font-size: 14px; color: var(--nebbia-600); }
.ev-tools { padding: 16px 24px; }
.ev-tools > .search-box { flex: 0 1 320px; }
.ev-conta { margin-left: auto; font-size: 13px; color: var(--nebbia-600); font-variant-numeric: tabular-nums; }
.ev-table > :not(caption) > * > * { padding: 10px 12px; vertical-align: middle; }
.ev-table > :not(caption) > * > :first-child { padding-left: 24px; }
.ev-table > :not(caption) > * > :last-child { padding-right: 20px; }
.ev-nome { font-weight: 600; color: var(--nebbia-900); }
.ev-off .ev-nome, .ev-off .ev-extra { color: var(--nebbia-500); }
.ev-extra { font-size: 13px; color: var(--nebbia-600); }
.ev-usi { font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-usi.zero { font-weight: 500; color: var(--nebbia-400); }
.ev-azioni { display: inline-flex; justify-content: flex-end; gap: 2px; }
/* colonne di larghezza fissa: quando una voce passa da «Attiva» a «Disattivata» (o torna attiva) non si sposta niente */
.ev-table .ev-col-usi { width: 96px; }
.ev-table .ev-col-stato { width: 128px; }
.ev-table .ev-col-azioni { width: 148px; }
@media (max-width: 991.98px) {
  .elenchi { grid-template-columns: minmax(0, 1fr); }
  .elenchi-nav { position: static; flex-direction: row; overflow-x: auto; padding: 8px; scroll-snap-type: x proximity; }
  .en-gruppo { display: none; }
  .en-link { flex-shrink: 0; width: auto; scroll-snap-align: start; }
  .ev-head { flex-wrap: wrap; padding: 18px 16px 0; }
  .ev-tools { padding: 14px 16px; }
}
@media (max-width: 575.98px) {
  .ev-table > :not(caption) > * > :nth-child(2) { display: none; }   /* sul telefono restano nome, utilizzi, stato e azioni */
  .ev-table > :not(caption) > * > :first-child { padding-left: 16px; }
  /* barra di selezione: conteggio e X in alto, le azioni sotto a metà riga ciascuna (Candidati, Conservazione dati) */
  .sel-bar { flex-wrap: wrap; gap: 8px; width: calc(100vw - 32px); padding: 8px 8px 10px 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sel-bar-n { flex: 1 0 calc(100% - 52px); }   /* il conteggio e la X riempiono la prima riga: le azioni vanno sotto */
  .sel-bar-sep { display: none; }
  .sel-bar .btn-icon { order: 1; }
  .sel-bar .btn:not(.btn-icon) { order: 2; flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }
  /* tabella dell'andamento nel pannello: celle più strette, le intestazioni vanno a capo */
  .and-tab th, .and-tab td { padding: 8px; }
  .and-tab thead th { white-space: normal; vertical-align: bottom; }
}

/* ------------------------------------------------------------ vetro (dec-logo-studio-e-vetro): dove il browser lo sa fare, le superfici
   lasciano intravedere il piano sfocato; altrimenti restano bianche piene. Più coprente sotto tabelle ed elenchi; mai su campi,
   chip e modali. Il vetro crea un contesto di sovrapposizione: la superficie con il focus (menu, suggerimenti) sta sopra le vicine. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero, .rcard, .kpi-row, .qb, .elenchi-nav, .lista-card, .andamento, .ev-card, .card, .dropdown-menu, .app-topbar, .val-foot, .sb-user {
    -webkit-backdrop-filter: var(--vetro-sfoca); backdrop-filter: var(--vetro-sfoca);
  }
  .hero, .rcard, .kpi-row, .qb, .elenchi-nav { background: var(--vetro); }
  .lista-card, .andamento, .ev-card, .card, .dropdown-menu { background: var(--vetro-denso); }
  .hero, .rcard, .kpi-row, .qb, .elenchi-nav, .lista-card, .andamento, .ev-card, .card { box-shadow: var(--vetro-luce), var(--cva-shadow); }
  .app-topbar { background: rgba(252, 251, 254, .72); }
  .val-foot { background: rgba(255, 255, 255, .78); }
  .sb-user { background: rgba(255, 255, 255, .62); }
  .hero:focus-within, .rcard:focus-within, .kpi-row:focus-within, .qb:focus-within, .lista-card:focus-within, .andamento:focus-within, .ev-card:focus-within, .card:focus-within { position: relative; z-index: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
