/* Nitido · pagine «lavoro» nel design editoriale (tavola-editoriale e anteprime sul Desktop).
   Un file per gruppo di pagine, caricato dopo nitido.css (vedi _pagine_css.html): così più gruppi si rifanno
   in parallelo senza toccare lo stesso file. Solo token di colore di nitido.css, classi con lo scope della pagina.

   Pagine: Calendario (calendar.html), Produzione (workflow_dashboard.html), Album (albums_dashboard.html),
   Task (tasks.html, task_form.html, _task_row.html), Team (operators_dashboard.html), Promemoria
   (reminders_report.html). I pezzi comuni sono le macro di _lavoro.html.
   Modello: Oggi (sezione 14 di nitido.css) e le tavole 01, 03, 05; scelte di Francesco 1A 2A 3A 4B:
   angoli, ombre e margini come oggi (10 bottoni, 12 campi, 14–16 riquadri, 40 px di margine, 16 sul telefono).
   Classi: lv- (questo file); dentro le pagine si riusano nx-sh, nx-figs, nx-thumb, nx-name, nx-meta, nx-st...

   Indice (le regole del telefono stanno in fondo a ogni sezione)
    1. Base dello scope .nx-lavoro      6. Album
    2. Testata, filtri, intestazioni    7. Task (anche nella scheda della coppia: .lv-task)
    3. Bottoni e conferma in linea      8. Team
    4. Finestre (modali) e campi        9. Promemoria
    5. Produzione                      10. Calendario
                                       11. Passaggio del mouse
*/

/* ───────────────────────── 1. Base dello scope ───────────────────────── */
/* come .nx-oggi: niente margini di p/ul/figure del ponte Bootstrap, link senza sottolineatura, grassetto 500 */
:where(.nx-lavoro, .lv-task) :is(p, ul, ol, figure, h1, h2, h3) { margin: 0; }
:where(.nx-lavoro, .lv-task) :is(ul, ol):not(.dropdown-menu) { padding: 0; list-style: none; }
:where(.nx-lavoro, .lv-task) a:not(.nx-btn):not(.dropdown-item) { color: inherit; text-decoration: none; }
.nx-lavoro :is(b, strong), .lv-task :is(b, strong) { font-weight: 500 !important; }
.nx-lavoro .nx-st, .lv-task .nx-st { height: auto; line-height: 1.35; align-items: baseline; }
.nx-lavoro .nx-st::before, .lv-task .nx-st::before { align-self: center; }
.nx-lavoro .is-due { color: var(--nx-wine); }
.nx-lavoro .nx-name a, .lv-task .nx-name a { color: inherit; }

/* ───────────────────────── 2. Testata, filtri, intestazioni ───────────────────────── */
/* il titolo della pagina in DM Serif, come il saluto di Oggi (48/34): la voce del menu, una parola */
.lv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: 8px; }
.lv-head-t { min-width: 0; flex: 1 1 460px; }
.lv-kick { margin-bottom: 10px; }
.lv-title { letter-spacing: -.024em; }
.lv-dek { margin-top: 12px; }
.lv-dek .is-due { color: var(--nx-wine); }
.lv-head-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 4px; }

.lv-figs { margin-top: 28px; }
.nx-lavoro .nx-fig-v.is-due { color: var(--nx-wine); }

/* filtri: pillole bianche con filetto, l'attiva col filetto d'inchiostro (tavola 05) */
.lv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; }
.lv-fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lv-fgroup > .nx-eb { margin-right: 6px; }
.lv-fnote { flex-basis: 100%; margin: -2px 0 0; font-size: 13px; color: var(--nx-ink2); }
.lv-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 15px; border-radius: var(--nx-r-pill);
  font-size: 13.5px; font-weight: 500; line-height: 1; color: var(--nx-ink); background: var(--nx-wall); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--nx-line); transition: box-shadow .15s, background .15s;
}
.lv-pill.is-on { font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--nx-ink); }
.lv-pill-n { font-size: 12.5px; font-weight: 500; color: var(--nx-ink2); font-variant-numeric: tabular-nums; }
.lv-pill-w { display: inline-grid; color: var(--nx-wine); }
.lv-select {                                           /* tendina «per persona» nella fila dei filtri */
  -webkit-appearance: none; appearance: none; min-height: 36px; padding: 0 34px 0 15px; border: 0; border-radius: var(--nx-r-pill);
  font: 500 13.5px var(--nx-f-ui); color: var(--nx-ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--nx-line);
  background: var(--nx-wall) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F656D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 13px center / 12px no-repeat;
}
.lv-select.is-on { font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--nx-ink); }

/* intestazione delle colonne: il filetto pieno d'inchiostro e le etichette (tavola 05) */
.lv-cols { display: grid; align-items: end; column-gap: 16px; margin-top: 28px; padding: 12px 0 10px; border-top: 2px solid var(--nx-rule-strong); border-bottom: 1px solid var(--nx-rule); }
.lv-cols .nx-eb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* i gruppi della lista: titolo serif col filetto; righe da 64 px (come «Da fare oggi») */
.lv-grp { margin-top: 40px; }
.lv-grp:first-of-type { margin-top: 32px; }
.lv-sh { margin-bottom: 4px; }
.lv-sh-due { color: var(--nx-wine); }
.lv-rows { list-style: none; margin: 0; padding: 0; }
.lv-none { margin: 14px 0 0; font-size: 14px; color: var(--nx-ink2); }
.lv-warm { margin-top: 32px; }

@media (max-width: 767px) {
  .lv-head { margin-top: 4px; gap: 14px; }
  .lv-head-t { flex-basis: 100%; }
  .lv-dek { margin-top: 8px; }
  .lv-head-a { width: 100%; }
  .lv-head-a > .nx-btn { height: 44px; flex: 1 1 auto; }
  .lv-figs { margin-top: 22px; }
  .lv-filters { gap: 10px; margin-top: 22px; }
  .lv-fgroup {                                         /* una fila di pillole che scorre di lato, mai la pagina */
    flex-wrap: nowrap; width: calc(100% + 2 * var(--nx-gutter)); margin: 0 calc(-1 * var(--nx-gutter));
    padding: 2px var(--nx-gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .lv-fgroup::-webkit-scrollbar { display: none; }
  .lv-pill, .lv-select { min-height: 44px; }
  .lv-fnote { padding: 0; }
  .lv-grp { margin-top: 32px; }
  .lv-ibtn { width: 44px; height: 44px; }
  /* titoli dei gruppi: la nota va a capo a destra invece di uscire dallo schermo */
  .lv-sh.nx-sh--plain { grid-template-columns: auto minmax(12px, 1fr) minmax(0, max-content); }
  .lv-sh .nx-sh-x { min-width: 0; }
  .lv-sh .nx-mt { white-space: normal; text-align: right; line-height: 1.3; }
}

/* ───────────────────────── 3. Bottoni e conferma in linea ───────────────────────── */
.lv-ibtn {                                             /* bottone quadrato con un'icona: 40 px, 44 sul telefono */
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: var(--nx-r);
  color: var(--nx-ink); background: var(--nx-wall); box-shadow: inset 0 0 0 1px var(--nx-line); cursor: pointer; transition: box-shadow .15s, background .15s, color .15s;
}
.lv-ibtn--ghost { box-shadow: none; color: var(--nx-ink2); }
.lv-ibtn .nx-i { width: 17px; height: 17px; }
.lv-btn-danger { color: var(--nx-wine); background: var(--nx-wall); box-shadow: inset 0 0 0 1px rgba(107, 30, 44, .35); }
.lv-btn-danger:hover, .lv-btn-danger:focus { color: var(--nx-wine); }
.lv-link {                                             /* azione testuale con filetto: «Modifica», «Svuota» */
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 13px var(--nx-f-ui); color: var(--nx-ink2); white-space: nowrap;
}
.lv-link span { background: linear-gradient(var(--nx-line), var(--nx-line)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.lv-link--due { color: var(--nx-wine); }
.lv-link--due span { background-image: linear-gradient(rgba(107, 30, 44, .35), rgba(107, 30, 44, .35)); }

/* il bottone che apre la conferma (la finestra è quella di Nitido: data-nx-conferma, nitido.js) */
.lv-confirm { display: inline-block; }
.lv-confirm-s {
  display: inline-flex; padding: 0; border: 0; font-family: inherit; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--nx-wine);
  background: linear-gradient(rgba(107, 30, 44, .35), rgba(107, 30, 44, .35)) 0 calc(100% - 8px) / 100% 1px no-repeat;
}
.lv-confirm.is-btn > .lv-confirm-s { padding: 0 15px; border-radius: var(--nx-r); background: var(--nx-wall); box-shadow: inset 0 0 0 1px rgba(107, 30, 44, .35); min-height: 38px; font-size: 13.5px; }
.lv-confirm.is-btn.is-primary > .lv-confirm-s {
  color: #fff; background: linear-gradient(180deg, var(--nx-wine-hi) 0%, var(--nx-wine) 55%, var(--nx-wine-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(60, 10, 20, .2), 0 8px 18px -8px rgba(107, 30, 44, .55);
}

/* ───────────────────────── 4. Finestre (modali) e campi ───────────────────────── */
.lv-modal .modal-header { align-items: flex-start; padding-bottom: 4px; }
.nx-lavoro .lv-modal .modal-title { font: 400 26px/1.15 var(--nx-f-serif); letter-spacing: -.014em; color: var(--nx-ink); }
.nx-lavoro .lv-modal .modal-title .lv-mkick { font-family: var(--nx-f-ui); }
.lv-modal .lv-mkick { display: block; margin-bottom: 6px; }
.lv-modal .modal-body { padding-top: 14px; }
.lv-modal .modal-footer { justify-content: space-between; }
.lv-modal .modal-footer > :only-child { margin-left: auto; }
.lv-modal .nx-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.lv-modal .nx-span-2 { grid-column: 1 / -1; }
.lv-msec { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--nx-rule); }
.lv-msec > .nx-eb { display: block; margin-bottom: 12px; }
.lv-msec-n { margin: -6px 0 12px; font-size: 13px; color: var(--nx-ink2); }
.lv-box { padding: 14px 16px; border-radius: 14px; background: var(--nx-grey); }
.lv-box + .lv-box { margin-top: 10px; }
.lv-box .nx-input { background: var(--nx-wall); }
.lv-box .nx-check { font-weight: 500; }
.lv-box .nx-form-grid { margin-top: 12px; }
.lv-money { position: relative; }
.lv-money > .nx-input { padding-left: 32px; }
.lv-money > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--nx-ink2); pointer-events: none; }
.lv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--nx-r-md); background: var(--nx-grey); }
.lv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lv-seg label { display: grid; place-items: center; min-height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--nx-ink2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.lv-seg input:checked + label { color: var(--nx-ink); background: var(--nx-wall); box-shadow: var(--nx-sh-1), 0 0 0 1px rgba(16, 24, 40, .05); }
.lv-seg input:focus-visible + label { outline: 2px solid var(--nx-ink); outline-offset: 1px; }
.lv-kv-m { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
.lv-kv-m dt { font-weight: 500; color: var(--nx-ink2); font-size: 13px; padding-top: 1px; }
.lv-kv-m dd { margin: 0; color: var(--nx-ink); white-space: pre-line; overflow-wrap: anywhere; }

/* ───────────────────────── 5. Produzione ───────────────────────── */
/* una riga per lavoro: monogramma · nome · le cinque fasi (scatto, backup, foto, video, consegna) · consegna */
.lv-prod { --lv-job-cols: 48px minmax(170px, 1.2fr) repeat(5, minmax(0, 1fr)) 184px 32px; }
.lv-job-cols { grid-template-columns: var(--lv-job-cols); }
.lv-job-cols .lv-col-name { grid-column: 1 / span 2; }
.lv-job-cols .lv-col-when { grid-column: 8 / span 2; text-align: right; padding-right: 52px; }
.lv-job-cols .nx-eb { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; } /* le intestazioni vanno a capo (« Copia di / sicurezza »), non si tagliano con i puntini */
.lv-job {
  position: relative; display: grid; grid-template-columns: var(--lv-job-cols); column-gap: 16px; align-items: center;
  min-height: var(--nx-row-h); padding: 12px 0; border-bottom: 1px solid var(--nx-rule);
}
@media (min-width: 1600px) { .lv-job, .lv-job-cols { column-gap: 12px; } }      /* in fila: un po' più di posto alle piastrelle */
.lv-job-t { min-width: 0; }
.lv-job-n { white-space: normal; text-wrap: balance; }
.lv-job-s { display: contents; }

/* la riga piccola sotto la frase: il tempo di consegna dello studio, o l'invito a scriverlo (tavola 4) */
.lv-tempi { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--nx-ink2); }
.lv-tempi .nx-ul { min-height: 0; padding: 0; margin: 0; background-position: 0 100%; }
.lv-tempi--invito { font-size: 14px; color: var(--nx-ink); }
.lv-tempi--invito .nx-ul { padding: 0 0 1px; margin-left: 6px; background-image: linear-gradient(var(--nx-wine), var(--nx-wine)); color: var(--nx-wine); }

/* i gruppi sono sezioni a scomparsa come quelle delle Richieste (nx-ric-sec, richieste.css): qui solo la nota che sparisce sul telefono */
.lv-grp { scroll-margin-top: 16px; }
.lv-nota { color: inherit; }

/* le fasi sono piastrelle piene (tavola C «Griglia a colori»): 40 px, e il colore segue data-st, che lo script cambia subito */
.lv-stg { position: relative; display: block; min-width: 0; margin: 0; }
.lv-stg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lv-stg-v { position: relative; display: block; }
.lv-stg-sel {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 0; padding: 0 18px 0 12px; border: 0;
  border-radius: var(--nx-r-sm); font: 500 13px/1 var(--nx-f-ui); color: var(--nx-ink); text-overflow: ellipsis; cursor: pointer;
  background: var(--nx-wall) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA1A9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 7px center / 10px no-repeat;
  box-shadow: inset 0 0 0 1px var(--nx-line);                                   /* da fare: bianca con il filetto */
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.lv-stg-sel:focus-visible { outline: 2px solid var(--nx-ink); outline-offset: 2px; }
.lv-stg-sel:disabled { opacity: .55; cursor: progress; }
.lv-stg-ic { display: none; position: absolute; left: 8px; top: 50%; margin-top: -6.5px; stroke-width: 2.2; pointer-events: none; }
.lv-stg-nd { display: none; position: absolute; inset: 0; place-items: center; font-weight: 400; color: var(--nx-mute); pointer-events: none; }
.lv-stg:is([data-st="done"], [data-st="delivered"]) .lv-stg-sel { background-color: var(--nx-paid-veil); color: var(--nx-paid); padding-left: 25px; box-shadow: none; }
.lv-stg:is([data-st="done"], [data-st="delivered"]) .lv-stg-ic { display: block; color: var(--nx-paid); }
.lv-stg[data-st="progress"] .lv-stg-sel { background-color: var(--nx-veil); color: var(--nx-wine); box-shadow: none; }
.lv-stg[data-st="na"] .lv-stg-sel {                                              /* non previsto: righe oblique grigie e «—» */
  background-color: var(--nx-grey); color: transparent; box-shadow: none; text-align: center; text-align-last: center;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(154, 161, 169, .32) 6px 7px);
}
.lv-stg[data-st="na"] .lv-stg-nd { display: grid; }
.lv-job.is-after .lv-stg:is([data-st="todo"], [data-st="pending"]) .lv-stg-sel { color: var(--nx-wine); }
.lv-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; margin: 0; text-align: right; }
.lv-when-m { font-size: 13.5px; font-weight: 500; color: var(--nx-ink); white-space: nowrap; }
.lv-when-s { font-size: 12.5px; color: var(--nx-ink2); white-space: nowrap; }
.lv-when.is-due .lv-when-m { color: var(--nx-wine); }
.lv-when-wait { color: var(--nx-ink2); font-weight: 400; }
.lv-open { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--nx-r); color: var(--nx-ink2); justify-self: end; }
.lv-open .nx-i { width: 16px; height: 16px; }
.lv-grp--done .lv-job { opacity: .78; }

/* computer stretto (sotto i 1600 px): le fasi scendono sotto il nome, con la loro etichetta. In fila, più stretto di così, le
   piastrelle scendevano sotto i 116 px che servono a «✓ Consegnato» (a 1280 px erano 80 e anche «Fatto» finiva coi puntini) */
@media (max-width: 1599px) and (min-width: 768px) {
  .lv-prod { --lv-job-cols: 48px minmax(0, 1fr) 150px 36px; }
  .lv-job-cols .lv-col-s { display: none; }
  .lv-job-cols .lv-col-when { grid-column: 3 / span 2; }
  .lv-job { row-gap: 12px; }
  .lv-job .lv-when { grid-column: 3; grid-row: 1; }
  .lv-job .lv-open { grid-column: 4; grid-row: 1; }
  .lv-job-s { display: grid; grid-column: 2 / -1; grid-row: 2; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .lv-stg-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-bottom: 5px; }
}

/* telefono (tavola 03 e tavola C): niente colonne, una scheda per lavoro; le piastrelle (44 px) su una griglia sotto il nome */
@media (max-width: 767px) {
  .lv-prod { --lv-job-cols: 40px minmax(0, 1fr) 32px; }
  .lv-job { column-gap: 12px; row-gap: 10px; min-height: 0; padding: 14px 0; align-items: start; }
  .lv-job > .nx-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .lv-job-t { grid-column: 2; grid-row: 1; }
  .lv-job .lv-open { grid-column: 3; grid-row: 1; margin-top: -4px; }
  .lv-job .lv-when { grid-column: 2 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 8px; text-align: left; }
  .lv-when-m, .lv-when-s { white-space: normal; }
  .lv-job-s { display: grid; grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .lv-job-s > .lv-stg:nth-child(5) { grid-column: 1 / -1; }
  .lv-stg-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--nx-ink2); }
  .lv-stg-sel { height: 44px; font-size: 13.5px; }
  .lv-nota { display: none; }
  .lv-job-cols { display: block; margin-top: 24px; padding: 10px 0 0; border-bottom: 0; }
  .lv-job-cols > :not(.lv-col-name) { display: none; }
  /* con tre cifre sole (senza il tempo di consegna) stanno in fila, più strette */
  .lv-figs.nx-figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lv-figs.nx-figs--3 .nx-fig { padding: 12px 8px; box-shadow: none; border-top: 0; }
  .lv-figs.nx-figs--3 .nx-fig:first-child { padding-left: 0; }
  .lv-figs.nx-figs--3 .nx-fig + .nx-fig { box-shadow: inset 1px 0 0 var(--nx-rule); }
  .lv-figs.nx-figs--3 .nx-fig-d { font-size: 12px; }
  .lv-figs.nx-figs--3 .nx-fig-v { font-size: 30px; }
}

/* ───────────────────────── 6. Album ───────────────────────── */
/* un riquadro per cliente: monogramma, nome in serif, recapiti; sotto i suoi album con un solo stato */
.lv-alb-cols { display: block; }
.lv-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.lv-abox { display: flex; flex-direction: column; min-width: 0; padding: 22px 0 20px; border-bottom: 1px solid var(--nx-rule); }
.lv-abox-h { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
.lv-abox-t { min-width: 0; }
.lv-abox-n { white-space: normal; text-wrap: balance; }
.lv-abox-menu .dropdown-menu { min-width: 200px; }
.lv-danger, .dropdown-item.lv-danger { color: var(--nx-wine); display: flex; align-items: center; gap: 8px; }
.lv-danger:hover, .lv-danger:focus { color: var(--nx-wine); }
.nx-lavoro .dropdown-item .nx-i { vertical-align: -3px; margin-right: 4px; color: var(--nx-ink2); }
.lv-contacts { display: flex; flex-direction: column; gap: 0; margin: 10px 0 0 62px; padding: 0; list-style: none; font-size: 13px; color: var(--nx-ink2); }
.lv-contacts li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-width: 0; }
.lv-contacts-n { color: var(--nx-ink2); }
.lv-contacts-n i { font-style: normal; }
.lv-contacts-l { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; min-width: 0; color: var(--nx-ink); font-weight: 500; }
.lv-contacts-l .nx-i { color: var(--nx-ink2); }
.lv-contacts-e span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-contacts--none { display: block; padding: 6px 0; }
.lv-alb { margin: 14px 0 0 62px; padding: 0; list-style: none; border-top: 1px solid var(--nx-rule); }
.lv-alb-i { padding: 12px 0; border-bottom: 1px solid var(--nx-rule); }
.lv-alb-i:last-child { border-bottom: 0; }
.lv-alb-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.lv-alb-n { min-width: 0; font-size: 15px; line-height: 1.35; color: var(--nx-ink); }
.lv-alb-a { display: flex; align-items: center; gap: 4px; flex: none; }
.lv-alb-a form { margin: 0; }
.lv-alb-a .lv-link { margin-left: 8px; }
.lv-alb-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.lv-alb-d { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--nx-ink2); }
.lv-alb-d.is-due { color: var(--nx-wine); font-weight: 500; }
.lv-alb-note { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--nx-ink2); }
.lv-alb-note .nx-i { vertical-align: -2px; }
.lv-alb-i.is-trashed .lv-alb-n { color: var(--nx-ink2); }
.lv-alb-empty { font-size: 13.5px; color: var(--nx-ink2); }
.lv-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: var(--nx-r-pill); vertical-align: 1px;
  font: 500 12px/1 var(--nx-f-ui); color: var(--nx-ink2); background: var(--nx-grey); white-space: nowrap;
}
.lv-tag .nx-i { width: 12px; height: 12px; }
/* lo stato dell'album: una pillola che si cambia sul posto, con il pallino del suo colore */
.lv-astat { position: relative; margin: 0; }
.lv-astat::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--nx-wait); pointer-events: none;
}
.lv-astat:is([data-st="layout"], [data-st="print_ready"])::before { background: var(--nx-wine); }
.lv-astat[data-st="returned"]::before { background: var(--nx-ink); }
.lv-astat[data-st="delivered"]::before { background: var(--nx-paid); }
.lv-astat[data-st="no_print"]::before { background: var(--nx-mute); }
.lv-astat-sel {
  -webkit-appearance: none; appearance: none; height: 34px; padding: 0 32px 0 26px; border: 0; border-radius: var(--nx-r-pill);
  font: 500 13px var(--nx-f-ui); color: var(--nx-ink); cursor: pointer;
  background: var(--nx-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F656D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 11px no-repeat;
}
.lv-astat-sel:focus-visible { outline: 2px solid var(--nx-ink); outline-offset: 1px; }
.lv-abox-f { display: flex; align-items: center; margin: 12px 0 0 62px; }
.lv-numbers { margin-top: 56px; }
.lv-figs-b { margin-top: 10px; }
.lv-fig-money { white-space: nowrap; }
.lv-field-end { justify-content: flex-end; padding-bottom: 12px; }
.lv-mlead { margin: 0 0 16px; }
.lv-hint-b { margin-top: 32px; }
.lv-confirm-text { font-size: 14.5px; line-height: 1.5; color: var(--nx-ink); }

@media (max-width: 1099px) and (min-width: 768px) {
  .lv-boxes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .lv-boxes { grid-template-columns: minmax(0, 1fr); }
  .lv-abox-h { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; }
  .lv-contacts, .lv-alb, .lv-abox-f { margin-left: 0; }
  .lv-astat-sel { height: 44px; font-size: 14px; }
  .lv-abox-f .nx-btn { height: 44px; }
  .lv-modal .nx-form-grid { grid-template-columns: minmax(0, 1fr); }
  .lv-hint-b { margin-top: 0; }
}

/* ───────────────────────── 7. Task (pagina Task e scheda della coppia) ───────────────────────── */
/* la riga di «Da fare oggi»: l'anello dello stato, il monogramma del matrimonio (o l'icona), il titolo,
   la scadenza a destra, chi e il WhatsApp. Il corpo (sotto-punti, note) si apre toccando il titolo. */
.lv-tasks .lv-task-list, .lv-task-list { border-top: 1px solid var(--nx-rule); }
.lv-grp .lv-task-list { border-top: 0; }
.lv-fform { margin: 0; }
.lv-task { padding: 0; border-bottom: 1px solid var(--nx-rule); box-shadow: none; }
.lv-task:last-child { border-bottom: 0; }
.lv-task-h {
  display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) auto auto; column-gap: 14px; align-items: center;
  min-height: var(--nx-row-h, 64px); padding: 10px 0;
}
.lv-task-st { display: grid; place-items: center; width: 30px; margin: 0; }
.lv-ring {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -7px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lv-ring.is-static { cursor: default; }
.lv-ring-i {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--nx-ring); transition: background .25s var(--nx-ease), box-shadow .2s, color .2s;
}
.lv-ring-i .nx-i { width: 12px; height: 12px; stroke-width: 2.6; }
.lv-task[data-st="doing"] .lv-ring-i { box-shadow: inset 0 0 0 1.5px var(--nx-wine); background: linear-gradient(90deg, var(--nx-wine) 50%, transparent 50%); }
.lv-task[data-st="done"] .lv-ring-i { background: var(--nx-paid); box-shadow: none; color: var(--nx-wall); }
.lv-ring:focus-visible { outline: 0; }
.lv-ring:focus-visible .lv-ring-i { box-shadow: 0 0 0 2px var(--nx-wall), 0 0 0 4px var(--nx-ink); }
.lv-task-t { min-width: 0; }
.lv-task-title {
  display: inline; font: 500 15px/1.35 var(--nx-f-ui); letter-spacing: -.005em; color: var(--nx-ink); text-decoration: none;
  overflow-wrap: anywhere; cursor: pointer;
}
.lv-task-title .nx-dot-due { vertical-align: 2px; }
.lv-task-m { margin-top: 3px; }
.lv-task-m .nx-st { font-size: 13px; }
.lv-task-s::before { box-shadow: inset 0 0 0 1.5px var(--nx-ring); background: transparent; }
.lv-task[data-st="doing"] .lv-task-s { color: var(--nx-wine); }
.lv-task[data-st="doing"] .lv-task-s::before { background: var(--nx-wine); box-shadow: none; }
.lv-task[data-st="done"] .lv-task-s { color: var(--nx-paid); }
.lv-task[data-st="done"] .lv-task-s::before { background: var(--nx-paid); box-shadow: none; }
.lv-task-m .nx-i--xs { vertical-align: -2px; color: var(--nx-ink2); }
.lv-task-c { color: var(--nx-ink); }
.lv-task-wm { display: none; }
.lv-task-w { font-size: 13.5px; font-weight: 500; color: var(--nx-ink); white-space: nowrap; text-align: right; }
.lv-task-w.is-due, .lv-task-wm.is-due { color: var(--nx-wine); }
.lv-task-a { display: flex; align-items: center; gap: 8px; justify-self: end; }
.lv-avs { display: inline-flex; padding-left: 6px; }
.lv-av {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border-radius: 50%;
  font: 600 10.5px/1 var(--nx-f-ui); letter-spacing: .02em; color: var(--nx-ink); background: var(--nx-grey); box-shadow: 0 0 0 2px var(--nx-wall);
}
.lv-task.task-done .lv-task-title { color: var(--nx-ink2); text-decoration: line-through; text-decoration-color: var(--nx-mute); }
.lv-task.task-done .nx-thumb { opacity: .6; }

/* il corpo: sotto-punti e note affiancati, allineati al testo della riga */
.lv-task-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; padding: 4px 0 20px calc(30px + 48px + 28px); }
.lv-task-sec > .nx-eb { margin-bottom: 6px; }
.lv-check { list-style: none; margin: 0; padding: 0; }
.lv-check li { display: flex; align-items: center; gap: 4px; min-height: 44px; border-bottom: 1px solid var(--nx-rule); }
.lv-check li form { margin: 0; }
.lv-check li > form:first-child, .lv-check li > .lv-box-btn { flex: 1 1 auto; min-width: 0; }
.lv-box-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: none;
  font: 400 14px/1.4 var(--nx-f-ui); color: var(--nx-ink); text-align: left; cursor: pointer;
}
.lv-box-btn.is-static { cursor: default; }
.lv-cb {
  display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px; color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--nx-ring); transition: background .15s, box-shadow .15s;
}
.lv-cb .nx-i { width: 11px; height: 11px; stroke-width: 3; }
.lv-check li.is-done .lv-cb { background: var(--nx-ink); box-shadow: none; color: var(--nx-wall); }
.lv-check li.is-done .lv-check-t { color: var(--nx-ink2); text-decoration: line-through; text-decoration-color: var(--nx-mute); }
.lv-check-t { min-width: 0; overflow-wrap: anywhere; }
.lv-task-none { padding: 10px 0; font-size: 13.5px; color: var(--nx-ink2); }
.lv-task-add { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.lv-task-add .nx-input { flex: 1 1 auto; min-width: 0; }
.lv-task-add .nx-btn { height: 44px; flex: none; }
.lv-task-add--note .nx-textarea { min-height: 44px; height: 44px; padding-top: 11px; resize: vertical; }
.lv-note { margin: 0 0 8px; padding: 6px 0 6px 12px; box-shadow: inset 2px 0 0 var(--nx-rule); }
.lv-note-h { font-size: 12.5px; color: var(--nx-ink2); }
.lv-note-h b { color: var(--nx-ink); }
.lv-note-b { margin-top: 2px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.lv-task-f {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  padding-top: 12px; border-top: 1px solid var(--nx-rule); font-size: 12.5px; color: var(--nx-ink2);
}
.lv-task-fa { display: inline-flex; align-items: center; gap: 18px; }

/* modulo del task: i campi di Nitido, gli assegnatari come pillole da spuntare */
.lv-form { max-width: 780px; margin-top: 30px; }
.lv-input-lg { height: 52px; font-size: 16px; }
.lv-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.lv-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lv-legend .nx-label { float: none; width: auto; margin: 0; padding: 0; }
.lv-people { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-person {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 8px; border-radius: var(--nx-r-pill);
  font-size: 14px; font-weight: 500; color: var(--nx-ink); background: var(--nx-wall); box-shadow: inset 0 0 0 1px var(--nx-line); cursor: pointer;
  transition: box-shadow .15s, background .15s;
}
.lv-person input { position: absolute; opacity: 0; pointer-events: none; }
.lv-person .lv-av { margin: 0; box-shadow: none; }
.lv-person:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--nx-ink); }
.lv-person:has(input:checked) .lv-av { color: var(--nx-wall); background: var(--nx-ink); }
.lv-person:has(input:focus-visible) { outline: 2px solid var(--nx-ink); outline-offset: 2px; }
.lv-form-a { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nx-rule); }

/* pagina Task: «Fatti» richiudibile e lo stato vuoto */
.lv-done-t { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; color: var(--nx-ink); border-bottom: 1px solid var(--nx-rule); }
.lv-done-t .nx-sh-t { font-size: 22px; color: var(--nx-ink2); }
.lv-done-t .nx-i { align-self: center; margin-left: auto; color: var(--nx-ink2); transition: transform .2s var(--nx-ease); }
.lv-done-t[aria-expanded="true"] .nx-i { transform: rotate(180deg); }
.lv-empty { margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--nx-rule); }
.lv-empty .lv-none { margin-top: 8px; max-width: 60ch; }

@media (max-width: 767px) {
  .lv-task-h { grid-template-columns: 30px 40px minmax(0, 1fr) auto; column-gap: 12px; min-height: 60px; padding: 9px 0; }
  .lv-task-w { display: none; }
  .lv-task-wm { display: inline; }
  .lv-task-title { font-size: 14.5px; }
  .lv-avs { display: none; }
  .lv-task-b { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
}

/* ───────────────────────── 8. Team ───────────────────────── */
/* a sinistra le assegnazioni per data, a destra (filetto verticale, come in Oggi) promemoria e rubrica */
.lv-board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--nx-gap-col); align-items: start; }
.lv-board-main { min-width: 0; }
.lv-side { min-width: 0; margin-top: 28px; padding: 14px 0 0 40px; margin-left: -24px; box-shadow: inset 1px 0 0 var(--nx-rule); }
.lv-side-blk + .lv-side-blk { margin-top: 40px; }
.lv-side-x { margin: 12px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--nx-ink2); text-wrap: pretty; }
.lv-ops { margin: 0; padding: 0; list-style: none; }
.lv-op {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: 100%; min-height: 56px;
  padding: 8px 0; border: 0; border-bottom: 1px solid var(--nx-rule); background: none; font: inherit; color: var(--nx-ink); text-align: left; cursor: pointer;
}
.lv-ops li:last-child .lv-op { border-bottom: 0; }
.lv-op .lv-av { width: 32px; height: 32px; margin: 0; box-shadow: none; font-size: 11px; }
.lv-op-t { min-width: 0; }
.lv-op-t b { display: block; font-size: 14px; font-weight: 500; }
.lv-op-t small { display: block; font-size: 12.5px; color: var(--nx-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-op-r { font-size: 13px; color: var(--nx-ink2); }
.lv-side-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.lv-side-form .nx-btn { margin-top: 4px; }

.lv-crew-cols { grid-template-columns: 64px 48px minmax(0, 1fr) minmax(0, 1.3fr) 40px; }
.lv-crew-cols .lv-col-who { grid-column: 2 / span 2; }
.lv-crew {
  display: grid; grid-template-columns: 64px 48px minmax(0, 1fr) minmax(0, 1.3fr) 40px; column-gap: 16px; align-items: center;
  min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--nx-rule);
}
.lv-day { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.lv-day-n { font: 400 34px/.9 var(--nx-f-serif); letter-spacing: -.03em; color: var(--nx-ink); }
.lv-day-m { margin-top: 7px; font: 600 10.5px/1 var(--nx-f-ui); letter-spacing: var(--nx-eb-track); text-transform: uppercase; color: var(--nx-ink2); white-space: nowrap; }
.lv-crew-t { min-width: 0; }
.lv-crew-t .nx-name { white-space: normal; text-wrap: balance; }
.lv-crew-t .nx-meta .nx-st { font-size: 13px; }
.lv-svc {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 30px; margin-top: 2px; padding: 0; border: 0;
  background: none; font: 500 12.5px var(--nx-f-ui); color: var(--nx-ink2); text-align: left; cursor: pointer;
}
.lv-svc span { display: inline-flex; align-items: center; gap: 5px; }
.lv-crew-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.lv-crew-s .btn-assign { cursor: pointer; }
/* servizi da scegliere o squadra da completare: fondo vino velato, filo vino a sinistra, pulsante in vino */
.lv-crew.is-todo { padding-left: 14px; padding-right: 10px; background: var(--nx-veil); box-shadow: inset 3px 0 0 var(--nx-wine); }
.lv-crew.is-todo .lv-crew-s .btn-assign { box-shadow: inset 0 0 0 1px rgba(107, 30, 44, .4), 0 1px 2px rgba(16, 24, 40, .05); color: var(--nx-wine); }
.lv-crew.is-todo .lv-manca { font-size: 13px; color: var(--nx-wine); }
.lv-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 30px; padding: 0 12px 0 4px; border-radius: var(--nx-r-pill);
  font-size: 13px; font-weight: 500; color: var(--nx-ink); background: var(--nx-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-chip-r {
  display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: var(--nx-r-pill);
  font-size: 11px; font-weight: 600; color: var(--nx-ink2); background: var(--nx-wall); flex: none;
}
.lv-crew .lv-ibtn { justify-self: end; }
.lv-table { margin-top: 4px; }
.lv-table.nx-table tfoot tr:last-child td { height: 46px; padding: 6px 12px; font-weight: 600; box-shadow: inset 0 2px 0 var(--nx-rule-strong); }
.lv-table.nx-table tfoot tr:last-child td:first-child { padding-left: 0; }
.lv-table.nx-table tfoot tr:last-child td:last-child { padding-right: 0; }
.lv-table td:first-child, .lv-table th:first-child { padding-left: 0; }
.lv-table td:last-child, .lv-table th:last-child { padding-right: 0; }

/* finestre del Team */
.lv-aday + .lv-aday { margin-top: 20px; }
.lv-aday-h { margin: 0 0 6px; }
.lv-arole { display: grid; grid-template-columns: 136px minmax(0, 1fr) 96px 96px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--nx-rule); }
.lv-arole:last-child { border-bottom: 0; }
.lv-arole--h { padding: 4px 0 2px; border-bottom: 0; }
.lv-arole-l { font-size: 13.5px; font-weight: 500; color: var(--nx-ink); }
.lv-arole .nx-input { height: 40px; }
.lv-arole .lv-money .nx-input::placeholder { color: transparent; }   /* sul computer ci sono le etichette sopra */
.lv-mfield + .lv-mfield { margin-top: 18px; }
.lv-mfield > .nx-label { margin-bottom: 8px; }
.lv-spouses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 0 0 18px; }
.lv-spouses .lv-fieldset { display: flex; flex-direction: column; gap: 12px; }
.lv-spouse-h { margin: 0; font-size: 14px; font-weight: 600; color: var(--nx-ink); }

@media (max-width: 1180px) {
  .lv-board { grid-template-columns: minmax(0, 1fr); }
  .lv-side {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; align-items: start;
    margin: 48px 0 0; padding: 24px 0 0; box-shadow: inset 0 1px 0 var(--nx-rule);
  }
  .lv-side-blk + .lv-side-blk { margin-top: 0; }
  .lv-side-blk:last-child { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 767px) {
  .lv-side { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lv-side-blk:last-child { grid-column: auto; grid-row: auto; }
  .lv-crew-cols { display: none; }
  .lv-crew { grid-template-columns: 60px minmax(0, 1fr) 44px; column-gap: 12px; row-gap: 10px; align-items: start; padding: 16px 0; }
  .lv-crew > .nx-thumb { display: none; }
  .lv-crew > .lv-day { grid-column: 1; grid-row: 1 / span 2; }
  .lv-crew-t { grid-column: 2; grid-row: 1; }
  .lv-crew > .lv-ibtn { grid-column: 3; grid-row: 1; margin-top: -6px; }
  .lv-crew-s { grid-column: 2 / -1; grid-row: 2; }
  .lv-day-n { font-size: 30px; }
  .lv-crew-s .nx-btn { height: 40px; }
  .lv-arole { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lv-arole-l, .lv-arole .nx-select { grid-column: 1 / -1; }
  .lv-arole--h { display: none; }
  .lv-arole .nx-input { height: 44px; }
  .lv-arole .lv-money .nx-input::placeholder { color: var(--nx-ink2); }
  .lv-spouses { grid-template-columns: minmax(0, 1fr); }
}

/* ───────────────────────── 9. Promemoria ───────────────────────── */
/* «Chi chiamare» della tavola 04: il matrimonio, chi ci lavora, il WhatsApp già scritto */
.lv-rem-cols { display: block; }
.lv-rem {
  display: grid; grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
  min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--nx-rule);
}
.lv-rem-w, .lv-rem-p { min-width: 0; }
.lv-rem .nx-name { white-space: normal; }
.lv-rem .nx-meta .nx-i { vertical-align: -2px; color: var(--nx-ink2); }
.lv-rem-n { font-size: 15px; font-weight: 500; color: var(--nx-ink); }
.lv-tel { color: var(--nx-ink); text-decoration: underline; text-decoration-color: var(--nx-line); text-underline-offset: 3px; }
.lv-rem-a { justify-self: end; }
@media (max-width: 767px) {
  .lv-rem { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; padding: 14px 0; }
  .lv-rem > .nx-thumb { grid-row: 1 / span 3; }
  .lv-rem-p, .lv-rem-a { grid-column: 2; }
  .lv-rem-a { justify-self: start; }
  .lv-rem-a .nx-btn { height: 44px; }
  .lv-head-a .lv-confirm { display: block; flex: 1 1 100%; }
  .lv-head-a .lv-confirm > .lv-confirm-s { display: flex; justify-content: center; width: 100%; min-height: 44px; }
}

/* ───────────────────────── 10. Calendario ───────────────────────── */
/* il mese in serif con la sua frase, poi FullCalendar coi colori di Nitido: matrimonio = etichetta bianca col
   filetto vino, richiesta = bordo tratteggiato, task = puntino e testo piccolo, oggi = segnalibro vino */
.lv-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13.5px; font-weight: 500; color: var(--nx-ink); cursor: pointer; }
.lv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-switch-t { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--nx-ring); transition: background .2s; flex: none; }
.lv-switch-t::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--nx-wall); box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform .2s var(--nx-ease); }
.lv-switch input:checked + .lv-switch-t { background: var(--nx-ink); }
.lv-switch input:checked + .lv-switch-t::after { transform: translateX(14px); }
.lv-switch input:focus-visible + .lv-switch-t { outline: 2px solid var(--nx-ink); outline-offset: 2px; }

/* «Il tuo anno» in cima (le righe dell'anno sono quelle di Oggi: nx-yr in nitido.css) */
.lv-year { margin-top: 36px; }
.lv-year-strip { margin-top: 16px; }
.lv-year .nx-warm em { font-style: italic; }
.lv-cal-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-top: 32px; padding-bottom: 14px; border-bottom: 2px solid var(--nx-rule-strong);
}
.lv-cal-t { min-width: 0; }
.lv-cal-month { font-size: var(--nx-t-fig); line-height: 1; white-space: normal; }
.lv-cal-y { color: var(--nx-ink2); }
.lv-cal-sum { margin-top: 8px; font-size: 14px; color: var(--nx-ink2); min-height: 20px; }
.lv-cal-legend { flex: 0 1 auto; min-width: 0; padding-top: 0; }
.lv-k { display: inline-block; width: 16px; height: 11px; border-radius: 3px; flex: none; }
.lv-k--booked { background: var(--nx-wall); box-shadow: inset 2px 0 0 var(--nx-wine), inset 0 0 0 1px var(--nx-line); }
.lv-k--request { border: 1px dashed var(--nx-ring); }
.lv-k--task { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-ink2); }
.lv-k--today { width: 2px; height: 12px; border-radius: 0; background: var(--nx-wine); }
.lv-k--free { background: repeating-linear-gradient(135deg, var(--nx-track) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--nx-rule); }

.lv-fc { --fc-today-bg-color: transparent; --fc-neutral-bg-color: var(--nx-wall); margin-top: 16px; }
.lv-fc .fc-header-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 14px !important; }
.lv-fc .fc-toolbar-chunk { display: flex; align-items: center; gap: 6px; }
.lv-fc .fc-button { min-height: 36px; }
.lv-fc .fc-scrollgrid { border: 0; }
.lv-fc .fc-col-header-cell { border-left: 0; border-right: 0; }
.lv-fc .fc-col-header-cell-cushion { padding: 10px 4px; font: 600 11px/1 var(--nx-f-ui); letter-spacing: var(--nx-eb-track); text-transform: uppercase; color: var(--nx-ink2); }
.lv-fc .fc-daygrid-day-frame { min-height: 112px; }
.lv-fc .fc-daygrid-day-top { flex-direction: row; }
.lv-fc .fc-daygrid-day-number { padding: 8px 10px 4px; font: 500 13px/1 var(--nx-f-ui); color: var(--nx-ink); }
.lv-fc .fc-day-other .fc-daygrid-day-number { color: var(--nx-mute); }
.lv-fc .fc-day-today .fc-daygrid-day-frame { box-shadow: inset 0 2px 0 var(--nx-wine); }
.lv-fc .fc-day-today .fc-daygrid-day-number { color: var(--nx-wine); font-weight: 600; }
.lv-fc .fc-daygrid-day.lv-free { position: relative; background: repeating-linear-gradient(135deg, rgba(220, 224, 228, .35) 0 2px, transparent 2px 7px); }
.lv-fc .fc-daygrid-day.lv-free::after { content: attr(data-free); position: absolute; right: 10px; top: 8px; font-size: 11.5px; color: var(--nx-ink2); pointer-events: none; }
/* gli eventi: i colori dell'API restano dati, qui conta il tipo */
.lv-fc .fc-event.lv-ev { border: 0 !important; background: transparent !important; color: var(--nx-ink) !important; box-shadow: none; }
.lv-fc .fc-event.lv-ev .fc-event-main { color: inherit; }
.lv-fc .fc-daygrid-event.lv-ev { margin: 2px 6px 0 !important; border-radius: 6px; }
.lv-fc .fc-daygrid-event.lv-ev--booked { padding: 3px 8px 3px 10px; background: var(--nx-wall) !important; box-shadow: inset 2px 0 0 var(--nx-wine), inset 0 0 0 1px var(--nx-line); }
.lv-fc .fc-daygrid-event.lv-ev--request { padding: 2px 8px; box-shadow: inset 0 0 0 1px transparent; outline: 1px dashed var(--nx-ring); outline-offset: -1px; color: var(--nx-ink2) !important; }
.lv-fc .fc-daygrid-event.lv-ev--task { padding: 1px 6px; }
.lv-fc .lv-ev .fc-event-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-ev-t { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-ev--booked .lv-ev-t, .lv-ev--request .lv-ev-t { font: 400 14.5px/1.25 var(--nx-f-serif); letter-spacing: -.005em; }
.lv-ev--task .lv-ev-t { font-size: 12px; color: var(--nx-ink2); }
.lv-ev-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--nx-ink2); }
.lv-ev--task.is-urgent .lv-ev-dot { background: var(--nx-wine); }
.lv-fc.hide-tasks .fc-task, .lv-fc.hide-tasks .fc-daygrid-event-harness:has(.fc-task) { display: none; }
/* la vista lista (sul telefono è la prima) */
.lv-fc .fc-list { border: 0; }
.lv-fc .fc-list-day-cushion { padding: 18px 2px 8px; background: var(--nx-wall); font: 600 11px/1.2 var(--nx-f-ui); letter-spacing: var(--nx-eb-track); text-transform: uppercase; color: var(--nx-ink); }
.lv-fc .fc-list-day-cushion a { color: inherit; }
.lv-fc .fc-list-table td { border-left: 0; border-right: 0; }
.lv-fc .fc-list-event td { padding: 12px 6px; vertical-align: middle; }
.lv-fc .fc-list-event-time { display: none; }        /* sono tutti eventi di un giorno intero */
.lv-fc .fc-list-event-graphic { width: 1%; padding-right: 2px !important; }
.lv-fc .fc-list-event-dot { border-color: var(--nx-ink2) !important; border-width: 3.5px; }
.lv-fc .fc-list-event.lv-ev--booked .fc-list-event-dot { border-color: var(--nx-wine) !important; }
.lv-fc .fc-list-event.lv-ev--task.is-urgent .fc-list-event-dot { border-color: var(--nx-wine) !important; }
.lv-fc .fc-list-event.lv-ev--request .fc-list-event-dot { border-width: 1.5px; border-color: var(--nx-ring) !important; width: 9px; height: 9px; }
.lv-fc .fc-list-event .lv-ev-dot { display: none; }
.lv-fc .fc-list-event.lv-ev--booked .lv-ev-t, .lv-fc .fc-list-event.lv-ev--request .lv-ev-t { font-size: 17px; white-space: normal; }
.lv-fc .fc-list-event.lv-ev--task .lv-ev-t { font-size: 13.5px; white-space: normal; }
.lv-fc .fc-list-event-title a { color: inherit; text-decoration: none; }
.lv-fc .fc-list-empty { background: var(--nx-wall); }
.lv-fc .fc-list-empty-cushion { font: italic 400 18px/1.4 var(--nx-f-serif); color: var(--nx-ink); }

@media (max-width: 767px) {
  .lv-cal-top { margin-top: 24px; }
  .lv-year { margin-top: 28px; }
  .lv-fc .fc-header-toolbar { justify-content: space-between; }
  .lv-fc .fc-button { min-height: 44px; }
  .lv-fc .fc-toolbar-chunk:nth-child(2) { display: none; }
}

/* ───────────────────────── 11. Passaggio del mouse (solo puntatori veri) ───────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .lv-pill:hover { box-shadow: inset 0 0 0 1px var(--nx-ink); }
  .lv-pill.is-on:hover { box-shadow: inset 0 0 0 1.5px var(--nx-ink); }
  .lv-select:hover { box-shadow: inset 0 0 0 1px var(--nx-ink); }
  .lv-ibtn:hover { box-shadow: inset 0 0 0 1px var(--nx-ink); }
  .lv-ibtn--ghost:hover { color: var(--nx-ink); background: var(--nx-hover); box-shadow: none; }
  .lv-link:hover { color: var(--nx-ink); }
  .lv-link:hover span { background-size: 100% 1.5px; }
  .lv-link--due:hover { color: var(--nx-wine); }
  .lv-confirm-s:hover { background-size: 100% 2px; }
  .lv-btn-danger:hover { background: var(--nx-veil); }
  /* le righe: il segnalibro d'inchiostro a sinistra, come in Oggi */
  .lv-job:hover::after, .lv-crew:hover::after, .lv-rem:hover::after, .lv-tasks .lv-task-h:hover::after {
    content: ""; position: absolute; left: calc(-1 * var(--nx-hang)); top: 16px; bottom: 16px; width: var(--nx-mark); background: var(--nx-ink);
  }
  .lv-crew, .lv-rem, .lv-task-h { position: relative; }
  .lv-stg:is([data-st="todo"], [data-st="pending"]) .lv-stg-sel:hover { box-shadow: inset 0 0 0 1px var(--nx-ink); }
  .lv-stg:not([data-st="todo"], [data-st="pending"], [data-st="na"]) .lv-stg-sel:hover { box-shadow: inset 0 0 0 1px var(--nx-line); }
  .lv-astat-sel:hover { box-shadow: inset 0 0 0 1px var(--nx-line); }
  .lv-open:hover { color: var(--nx-ink); background: var(--nx-hover); }
  .lv-job-n a:hover, .lv-abox-n a:hover, .lv-task-c:hover, .lv-tel:hover {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--nx-line);
  }
  .lv-task-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--nx-line); }
  .lv-ring:hover .lv-ring-i { box-shadow: inset 0 0 0 1.5px var(--nx-ink); }
  .lv-task[data-st="done"] .lv-ring:hover .lv-ring-i { box-shadow: none; filter: brightness(1.1); }
  .lv-box-btn:hover .lv-cb { box-shadow: inset 0 0 0 1.5px var(--nx-ink); }
  .lv-contacts-l:hover { text-decoration: underline; text-decoration-color: var(--nx-line); text-underline-offset: 3px; }
  .lv-op:hover { background: var(--nx-hover); }
  .lv-op:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--nx-line); }
  .lv-svc:hover { color: var(--nx-ink); }
  .lv-crew-s:hover .lv-chip { background: #EDEFF1; }
  .lv-person:hover { box-shadow: inset 0 0 0 1px var(--nx-ink); }
  .lv-done-t:hover .nx-sh-t { color: var(--nx-ink); }
  .lv-seg label:hover { color: var(--nx-ink); }
  .lv-fc .fc-daygrid-event.lv-ev--booked:hover { box-shadow: inset 2px 0 0 var(--nx-wine), inset 0 0 0 1px var(--nx-ink); }
  .lv-fc .fc-daygrid-event.lv-ev--request:hover { outline-color: var(--nx-ink); }
  .lv-fc .fc-daygrid-event.lv-ev--task:hover .lv-ev-t { color: var(--nx-ink); }
}

/* movimento ridotto: niente scivolamenti delle piastrelle e degli anelli */
@media (prefers-reduced-motion: reduce) {
  .lv-stg-sel, .lv-ring-i, .lv-switch-t::after, .lv-done-t .nx-i { transition: none; }
}

/* ───────────────────────── Profondità (palette Grafite) ─────────────────────────
   Profondità (palette Grafite): Produzione, Album, Team, Calendario, Task. Elenchi e schede come fogli; azioni secondarie tranquille.
   Le regole stanno sotto .nx-crm (il body della cornice): fuori dalla cornice questo file non cambia nulla. */
.nx-crm .lv-rows,
.nx-crm .lv-abox,
.nx-crm .lv-side-blk,
.nx-crm .lv-report .nx-table-wrap {
  background: var(--nx-sheet); border-radius: var(--nx-r-sheet); box-shadow: var(--nx-sheet-ring);
}

.nx-crm .lv-day-m { color: var(--nx-accent); }

.nx-crm .lv-stg[data-st="progress"] .lv-stg-sel { background-color: var(--nx-prog-veil); color: var(--nx-prog); }

.nx-crm .lv-rows { margin-top: 8px; }

.nx-crm .lv-job,
.nx-crm .lv-crew {
  padding-left: var(--nx-sheet-padx); padding-right: var(--nx-sheet-padx); border-bottom-color: var(--nx-rule);
}

.nx-crm .lv-rows > :last-child { border-bottom: 0; }

.nx-crm .lv-rows > :first-child { border-radius: var(--nx-r-sheet) var(--nx-r-sheet) 0 0; }

.nx-crm .lv-rows > :last-child { border-radius: 0 0 var(--nx-r-sheet) var(--nx-r-sheet); }

.nx-crm .lv-rows > :only-child { border-radius: var(--nx-r-sheet); }

.nx-crm .lv-cols { border-top: 0; border-bottom: 0; padding: 0 var(--nx-sheet-padx); margin-top: 24px; }

.nx-crm .lv-grp { margin-top: 28px; }

.nx-crm .lv-grp:first-of-type { margin-top: 20px; }

.nx-crm .lv-sh { margin-bottom: 0; }

.nx-crm .lv-pill,
.nx-crm .lv-select { background-color: var(--nx-sheet); }

@media (hover: hover) and (pointer: fine) {
  .nx-crm .lv-job:hover,
  .nx-crm .lv-crew:hover { background: var(--nx-hover); }
  .nx-crm .lv-job:hover::after,
  .nx-crm .lv-crew:hover::after { left: 0; }
}

/* ───────────────────────── 7. Schede: un foglio intero ───────────────────────── */
/* Album: un lavoro è un foglio; fra i fogli uno spazio vero, dentro nessun filetto: gli album stanno su zone di lavoro grigie */
.nx-crm .lv-boxes {
  column-gap: var(--nx-gap-sheet); row-gap: var(--nx-gap-sheet); align-items: start; margin-top: 20px;
}

.nx-crm .lv-abox { padding: 20px var(--nx-sheet-pad) 18px; border-bottom: 0; }

.nx-crm .lv-alb { border-top: 0; margin-top: 12px; }

.nx-crm .lv-alb-i {
  margin-top: 8px; padding: 10px 14px 12px; border-bottom: 0; border-radius: var(--nx-r-md); background: var(--nx-grey);
}

.nx-crm .lv-alb-i:last-child { border-bottom: 0; }

.nx-crm .lv-astat-sel { background-color: var(--nx-sheet); box-shadow: inset 0 0 0 1px var(--nx-sheet-line); }

.nx-crm .lv-alb-i .nx-i { color: var(--nx-ink2); }

.nx-crm .lv-contacts { margin-top: 8px; }

/* il ripetuto scende di tono: una riga piccola, lo stato resta il protagonista */
.nx-crm .lv-alb-note,
.nx-crm .lv-alb-note .nx-i { font-size: var(--nx-fs-xs); line-height: 1.4; color: var(--nx-ink2); }

.nx-crm .lv-alb-note { margin-top: 6px; }

.nx-crm .lv-alb-note .nx-i { width: 12px; height: 12px; opacity: .7; }

.nx-crm .lv-alb-d { font-size: var(--nx-fs-xs); }

.nx-crm .lv-figs-b { margin-top: 12px; }

/* Team: i lavori sono un foglio, promemoria e collaboratori altri due; la squadra incompleta si vede dal bordo tratteggiato */
.nx-crm .lv-side { margin: 0; padding: 0; box-shadow: none; }

.nx-crm .lv-side-blk { padding: var(--nx-sheet-pad); }

.nx-crm .lv-side-blk + .lv-side-blk { margin-top: var(--nx-gap-sheet); }

.nx-crm .lv-board { column-gap: var(--nx-gap-col); }

.nx-crm .lv-board-main > .lv-grp { margin-top: 28px; }

.nx-crm .lv-report .nx-table-wrap { margin-top: 12px; padding: 8px var(--nx-sheet-padx) 12px; }

.nx-crm .lv-op { border-bottom-color: var(--nx-rule); }

.nx-crm .lv-crew.is-todo {
  padding-left: var(--nx-sheet-padx); padding-right: var(--nx-sheet-padx); background: none; box-shadow: none;
}

.nx-crm .lv-crew .btn-assign,
.nx-crm .lv-crew .btn-assign.nx-btn { background: none; color: var(--nx-ink2); box-shadow: inset 0 0 0 1px var(--nx-line); }

.nx-crm .lv-crew.is-todo .lv-crew-s .btn-assign {
  background: none; color: var(--nx-wine); box-shadow: none; border: 1.5px dashed var(--nx-wine);
}

.nx-crm .lv-chip {
  height: 26px; padding: 0 10px 0 3px; font-size: 12.5px; font-weight: 400; color: var(--nx-ink); background: var(--nx-grey); box-shadow: none;
}

.nx-crm .lv-chip-r {
  height: 20px; padding: 0 7px; font-size: 10.5px; font-weight: 500; background: var(--nx-sheet);
}

/* Produzione: le fasi restano piastrelle, il lavoro è una riga del foglio */
.nx-crm .lv-figs { margin-top: 24px; }

.nx-crm .lv-filters { margin-top: 24px; }

.nx-crm .lv-grp--done .lv-job { opacity: .85; }

/* azioni secondarie tranquille: con il mouse attenuate a riposo, accese sulla riga, sul foglio e con la tastiera; al telefono restano accese */
@media (hover: hover) and (pointer: fine) {
  .nx-crm .lv-alb-i .lv-alb-a,
  .nx-crm .lv-abox-menu,
  .nx-crm .lv-crew > .lv-ibtn,
  .nx-crm .lv-job .lv-open { opacity: .5; transition: opacity .15s; }
  .nx-crm .lv-alb-i:hover .lv-alb-a,
  .nx-crm .lv-abox:hover .lv-alb-a,
  .nx-crm .lv-abox:focus-within .lv-alb-a,
  .nx-crm .lv-abox:hover .lv-abox-menu,
  .nx-crm .lv-abox:focus-within .lv-abox-menu,
  .nx-crm .lv-crew:hover > .lv-ibtn,
  .nx-crm .lv-crew:focus-within > .lv-ibtn,
  .nx-crm .lv-job:hover .lv-open,
  .nx-crm .lv-job:focus-within .lv-open,
  .nx-crm .lv-abox-menu:has(.show),
  .nx-crm .lv-abox-menu:focus-within { opacity: 1; }
}

/* ───────────────────────── Profondità (palette Grafite): Task e Calendario ───────────────────────── */
/* i task: il titolo del gruppo sul tavolo, le righe in un foglio */
.nx-crm .lv-grp .lv-task-list { margin-top: 8px; background: var(--nx-sheet); border-radius: var(--nx-r-sheet); box-shadow: var(--nx-sheet-ring); }
.nx-crm .lv-grp .lv-task { padding-left: var(--nx-sheet-padx); padding-right: var(--nx-sheet-padx); }
.nx-crm .lv-grp .lv-task-list > :first-child { border-radius: var(--nx-r-sheet) var(--nx-r-sheet) 0 0; }
.nx-crm .lv-grp .lv-task-list > :last-child { border-radius: 0 0 var(--nx-r-sheet) var(--nx-r-sheet); }
.nx-crm .lv-grp .lv-task-list > :only-child { border-radius: var(--nx-r-sheet); }
@media (hover: hover) and (pointer: fine) {
  .nx-crm .lv-grp .lv-task:hover { background: var(--nx-hover); }
}

.nx-crm .lv-year-strip { margin-top: 8px; padding: 14px 24px 8px; background: var(--nx-sheet); border-radius: var(--nx-r-sheet); box-shadow: var(--nx-sheet-ring); }
.nx-crm .lv-year .nx-year-f { margin-top: 14px; }
.nx-crm .lv-cal-top { margin-top: 36px; padding-bottom: 0; border-bottom: 0; }
.nx-crm .lv-fc { margin-top: 16px; padding: 16px var(--nx-sheet-pad) 18px; background: var(--nx-sheet); border-radius: var(--nx-r-sheet); box-shadow: var(--nx-sheet-ring); }
.nx-crm .lv-form { margin-top: 20px; padding: var(--nx-sheet-pad); background: var(--nx-sheet); border-radius: var(--nx-r-sheet); box-shadow: var(--nx-sheet-ring); }
.nx-crm .lv-form .lv-form-a { border-top-color: var(--nx-rule); }
/* azioni secondarie tranquille: l'avviso WhatsApp di un task si accende sulla riga */
@media (hover: hover) and (pointer: fine) {
  .nx-crm .lv-task .lv-task-a .lv-ibtn { opacity: .5; transition: opacity .15s; }
  .nx-crm .lv-task:hover .lv-task-a .lv-ibtn, .nx-crm .lv-task:focus-within .lv-task-a .lv-ibtn { opacity: 1; }
}
