/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.t-micro { font-size: var(--fs-micro); }
.t-mini { font-size: var(--fs-mini); }
.t-piccolo { font-size: var(--fs-piccolo); }
.t-testo { font-size: var(--fs-testo); }
.t-nome { font-size: var(--fs-nome); }
.t-titolo {
    font-size: var(--fs-titolo);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.025em;
  }
/* riga sopra il titolo: sezione · azienda */
.t-sopra {
    font-size: var(--fs-mini);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(var(--accent-rgb) / var(--tw-text-opacity, 1));
  }
/* testo descrittivo di una scheda o di una sezione (sotto un titolo, sotto un campo): piccolo e grigio, uguale in tutte le schede dell'azienda */
.\!descrizione {
    font-size: var(--fs-micro) !important;
    color: var(--text-muted) !important;
  }
.descrizione {
    font-size: var(--fs-micro);
    color: var(--text-muted);
  }
/* etichetta maiuscola di un campo, di un riquadro o di una colonna di tabella */
.t-etichetta {
    font-size: var(--fs-micro);
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }
/* bottoni: sempre 13px, stessa altezza */
.btn {
    font-size: var(--fs-piccolo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.4;
}
.btn-primario { background: var(--btn-bg); --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); }
.btn-primario:hover:not(:disabled) { background: var(--btn-bg-hover); }
.btn-secondario {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
  }
.btn-secondario:hover:not(:disabled) { background: var(--surface-sunken); }
/* pulsanti piccoli, per le righe degli elenchi (come i testi colorati dello stato delle fatture) */
.btn-sm {
    font-size: var(--fs-micro);
    border-radius: 0.375rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
  }
.btn-pericolo {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.btn-pericolo:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
/* campi di testo */
.campo {
    font-family: inherit;
    font-size: var(--fs-testo);
    font-weight: 400;                /* un campo dentro un'etichetta (t-etichetta: grassetto e maiuscolo) scrive in carattere normale */
    text-transform: none;
    letter-spacing: normal;
    background: #fff;
    color: #141c28;                  /* sfondo sempre bianco, quindi testo sempre scuro: senza, il campo prende il colore dell'etichetta che lo contiene */
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
  }
.campo:focus {
  --tw-border-opacity: 1;
  border-color: rgb(var(--accent-rgb) / var(--tw-border-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
}
/* tendine: tutte sottili come quelle dentro le tabelle (13px, poco spazio sopra e sotto), anche fuori dalle tabelle (regola dell'operatore, 2026-11-02) */
select.campo, .campo-sottile {
    font-size: var(--fs-piccolo);
    border-radius: 0.375rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
/* Campo modificabile DENTRO una tabella (conto, codice IVA, importi, scadenze): stesso
     carattere e stessa misura ovunque (13px), bordo solo al passaggio del mouse. Il carattere a larghezza fissa e' solo degli importi: lo mette ImportoInput. */
.campo-tabella {
    font-size: var(--fs-piccolo);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    width: 100%;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: transparent;
    background-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
.campo-tabella:focus {
  --tw-border-opacity: 1;
  border-color: rgb(var(--accent-rgb) / var(--tw-border-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.campo-tabella:hover { border-color: var(--border); }
/* l'elenco delle opzioni di una tendina ha sempre sfondo chiaro (come .campo): senza, nel tema scuro il testo chiaro finisce su fondo bianco */
.campo-tabella option { background: #fff; color: #141c28; }
/* importo in valuta: a destra, cifre di larghezza uguale, mai a capo. Si usa su ogni cella o campo con un importo (la scrittura "€12.234,60" la da' fmtValuta
     in lib/formato.ts): regola dell'operatore, 2026-10-12 */
/* importo con il segno: verde se positivo (incasso), rosso se negativo (pagamento); si aggiunge a `importo` */
.importo-positivo { color: var(--ok); }
.importo-negativo { color: var(--errore); }
.importo {
    /* l'unico carattere a larghezza fissa del sito: le cifre in euro, in lettura e nei campi modificabili (stesso aspetto, stessa altezza) */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
/* testo di una cella di tabella che sta accanto a celle con un campo (select, input): stessa altezza del campo, testo centrato, cosi' le colonne restano allineate in alto */
.testo-con-campo {
    display: flex;
    align-items: center;
    min-height: 2.45rem;
  }
/* come sopra, accanto ai campi sottili (campo-tabella, 13px, py-1, bordo 1px): altezza = riga di testo + padding + bordo, cosi' il testo sta sulla stessa linea del valore dei campi */
.testo-con-campo-sottile {
    display: flex;
    align-items: center;
    min-height: calc(1.5 * var(--fs-piccolo) + 0.5rem + 2px);
  }
/* riquadro */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
  }
/* ── Elementi ricorrenti delle maschere (2026-11-02): si usano queste classi, senza padding, angoli o colori scritti a mano. Vedi reference/docs/sviluppo/STILI_FRONTEND.md ── */
/* contenuto di una scheda di impostazioni: testo, riga di pulsanti, messaggi e tabella uno sotto l'altro */
.scheda {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* testo a sinistra e pulsante a destra; va a capo su schermi stretti */
.riga-azione {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
/* riga di pulsanti */
.riga-pulsanti {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
/* messaggi: verde (fatto), rosso (errore), ambra (attenzione); con `msg-riquadro` stanno in un riquadro colorato */
.msg { font-size: var(--fs-piccolo); overflow-wrap: anywhere; }
/* un errore lungo senza spazi non deve uscire dal riquadro */
.msg-ok { color: var(--ok); }
.msg-errore { color: var(--errore); }
.msg-avviso { color: var(--avviso); }
.msg-riquadro {
  border-radius: 0.5rem;
  border-width: 1px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.msg-riquadro.msg-ok { background: var(--ok-bg); border-color: var(--ok-bordo); }
.msg-riquadro.msg-errore { background: var(--errore-bg); border-color: var(--errore-bordo); }
.msg-riquadro.msg-avviso { background: var(--avviso-bg); border-color: var(--avviso-bordo); }
/* tabella: <div class="tabella-wrap"><table class="tabella"> con <colgroup>, <thead><tr><th>…</th></tr></thead><tbody>. Su schermi stretti scorre di lato.
     Celle: `destra` allinea a destra (importi: `importo`), `grigio` per le descrizioni, riga vuota con <td class="tabella-vuota" colSpan>. */
.tabella-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow-x: auto;
    border-radius: 0.75rem;
  }
.tabella { font-size: var(--fs-piccolo); width: 100%; }
.tabella thead tr { background: var(--surface-sunken); border-bottom: 1px solid var(--border); }
.tabella th {
    font-size: var(--fs-micro);
    color: var(--text-faint);
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }
.tabella td {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  vertical-align: top;
}
.tabella tbody tr { border-bottom: 1px solid var(--border); }
.tabella tbody tr:last-child { border-bottom: 0; }
.tabella th.destra, .tabella td.destra { text-align: right; }
.tabella .grigio { color: var(--text-muted); }
/* piede della tabella (es. la riga «Nuovo ...» con i campi per aggiungere): prima riga con il titolo (t-etichetta), seconda con i campi */
.tabella tfoot tr { background: var(--surface-sunken); }
.tabella tfoot td {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  vertical-align: top;
}
.tabella tfoot tr:first-child td { border-top: 1px solid var(--border); padding-bottom: 0.25rem; padding-top: 0.75rem; }
.tabella tfoot tr:last-child td {
  padding-bottom: 0.75rem;
  padding-top: 0.25rem;
}
.tabella td.tabella-vuota { color: var(--text-faint); padding-left: 0.75rem; padding-right: 0.75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; text-align: center; }
/* etichetta breve dentro una cella (es. la natura IVA); `badge-speciale` per una caratteristica da far notare */
.badge {
    font-size: var(--fs-micro);
    background: var(--surface-sunken);
    color: var(--text-muted);
    display: inline-block;
    border-radius: 0.25rem;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
  }
.badge-speciale { background: var(--speciale-bg); color: var(--speciale); }
/* azioni testuali in una riga di tabella (Modifica, Elimina) */
.link-azione {
  --tw-text-opacity: 1;
  color: rgb(var(--accent-rgb) / var(--tw-text-opacity, 1));
}
.link-azione:hover {
  text-decoration-line: underline;
}
.link-pericolo { color: var(--errore); }
.link-pericolo:hover { text-decoration: underline; }
/* elenco di righe (non tabellare): <ul class="elenco"><li>…</li></ul>; stesso riquadro della tabella */
.elenco {
    font-size: var(--fs-piccolo);
    background: var(--surface);
    border: 1px solid var(--border);
    list-style: none;
    margin: 0px;
    overflow: hidden;
    border-radius: 0.75rem;
    padding: 0px;
  }
.elenco > li { border-bottom: 1px solid var(--border); padding-left: 0.75rem; padding-right: 0.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.elenco > li:last-child { border-bottom: 0; }
/* etichetta tonda di stato (stato della fattura, regola del fornitore): colori dalle variabili di stato */
.pillola { font-size: var(--fs-micro); display: inline-block; border-radius: 9999px; padding-left: 0.5rem; padding-right: 0.5rem; padding-top: 0.125rem; padding-bottom: 0.125rem; font-weight: 500; }
.pillola-ok { background: var(--ok-bg); color: var(--ok); }
.pillola-avviso { background: var(--avviso-bg); color: var(--avviso); }
.pillola-errore { background: var(--errore-bg); color: var(--errore); }
.pillola-speciale { background: var(--speciale-bg); color: var(--speciale); }
.pillola-neutra { background: var(--surface-sunken); color: var(--text-muted); }
/* blocco di una pagina fatto di sezioni impilate (testata, tabella, pagamento): bordo e angoli, titolo di sezione con `blocco-titolo` */
.blocco {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: 0.75rem;
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
.blocco-titolo {
    background: var(--surface-sunken);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
.blocco-titolo h2 { font-size: var(--fs-testo); font-weight: 600; }
/* riga dei totali nel piede di una tabella */
.tabella tfoot tr.totali td { border-top: 1px solid var(--border); padding-top: 0.375rem; padding-bottom: 0.375rem; font-weight: 600; }
/* pulsante con la sola icona in una riga di tabella (togli riga) */
.btn-icona {
    color: var(--text-faint);
    border-radius: 0.375rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
.btn-icona:hover { color: var(--errore); background: var(--errore-bg); }
/* riga «+ Aggiungi ...» sotto una tabella */
.riga-aggiungi {
    font-size: var(--fs-piccolo);
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    text-align: left;
  }
.riga-aggiungi:hover { background: var(--surface-sunken); --tw-text-opacity: 1; color: rgb(var(--accent-rgb) / var(--tw-text-opacity, 1)); }
/* colonne delle fatture passive */
.col-pannello { width: var(--w-pannello); }
.area-mobile .campo, .area-mobile .campo-tabella { font-size: 1rem; min-height: 44px; }
.area-mobile .btn { font-size: 1rem; min-height: 44px; padding-left: 1rem; padding-right: 1rem; }
.area-mobile .btn-sm { font-size: var(--fs-piccolo); min-height: 40px; }
.area-mobile .descrizione { font-size: var(--fs-mini); }
.area-mobile .\!descrizione { font-size: var(--fs-mini) !important; }
.area-mobile .msg { font-size: var(--fs-testo); }
.area-mobile .pillola { font-size: var(--fs-mini); }
/* barra delle azioni in basso (solo telefono); rispetta la fascia sicura dell'iPhone */
.barra-azioni {
  position: fixed;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top-width: 1px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
}
@media (min-width: 768px) {

  .barra-azioni {
    display: none;
  }
}
.barra-azioni { background: var(--surface); border-color: var(--border); padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
/* un elemento di un elenco come scheda (telefono) */
.voce-mobile {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.375rem;
  border-radius: 0.75rem;
  border-width: 1px;
  padding: 0.75rem;
  text-align: left; background: var(--surface); border-color: var(--border);
}
.pointer-events-none {
  pointer-events: none;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.bottom-0 {
  bottom: 0px;
}
.left-\[5px\] {
  left: 5px;
}
.right-0 {
  right: 0px;
}
.top-0 {
  top: 0px;
}
.top-3 {
  top: 0.75rem;
}
.top-full {
  top: 100%;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[60\] {
  z-index: 60;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.m-3 {
  margin: 0.75rem;
}
.-mx-4 {
  margin-left: -1rem;
  margin-right: -1rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}
.-mb-px {
  margin-bottom: -1px;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-1\.5 {
  margin-left: 0.375rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-6 {
  margin-right: 1.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-14 {
  height: 3.5rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-6 {
  height: 1.5rem;
}
.h-\[11px\] {
  height: 11px;
}
.h-\[78vh\] {
  height: 78vh;
}
.h-\[80vh\] {
  height: 80vh;
}
.h-\[calc\(100vh-var\(--altezza-barra\)\)\] {
  height: calc(100vh - var(--altezza-barra));
}
.h-\[var\(--altezza-barra\)\] {
  height: var(--altezza-barra);
}
.h-full {
  height: 100%;
}
.max-h-40 {
  max-height: 10rem;
}
.max-h-60 {
  max-height: 15rem;
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-80 {
  max-height: 20rem;
}
.max-h-\[14\.75rem\] {
  max-height: 14.75rem;
}
.max-h-\[26rem\] {
  max-height: 26rem;
}
.max-h-\[65vh\] {
  max-height: 65vh;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-\[92dvh\] {
  max-height: 92dvh;
}
.max-h-\[92vh\] {
  max-height: 92vh;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-\[40vh\] {
  min-height: 40vh;
}
.min-h-full {
  min-height: 100%;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-32 {
  width: 8rem;
}
.w-36 {
  width: 9rem;
}
.w-40 {
  width: 10rem;
}
.w-44 {
  width: 11rem;
}
.w-48 {
  width: 12rem;
}
.w-52 {
  width: 13rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-80 {
  width: 20rem;
}
.w-96 {
  width: 24rem;
}
.w-\[11px\] {
  width: 11px;
}
.w-\[26rem\] {
  width: 26rem;
}
.w-\[30rem\] {
  width: 30rem;
}
.w-full {
  width: 100%;
}
.w-max {
  width: -moz-max-content;
  width: max-content;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[14rem\] {
  min-width: 14rem;
}
.min-w-\[66rem\] {
  min-width: 66rem;
}
.min-w-full {
  min-width: 100%;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[12rem\] {
  max-width: 12rem;
}
.max-w-\[16rem\] {
  max-width: 16rem;
}
.max-w-\[45\%\] {
  max-width: 45%;
}
.max-w-\[7rem\] {
  max-width: 7rem;
}
.max-w-\[90vw\] {
  max-width: 90vw;
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-screen-2xl {
  max-width: 1536px;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.shrink-0 {
  flex-shrink: 0;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.list-disc {
  list-style-type: disc;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-\[2rem_5\.5rem_minmax\(0\2c 1fr\)_8rem_9rem\] {
  grid-template-columns: 2rem 5.5rem minmax(0,1fr) 8rem 9rem;
}
.grid-cols-\[2rem_5\.5rem_minmax\(0\2c 1fr\)_8rem_9rem_15rem\] {
  grid-template-columns: 2rem 5.5rem minmax(0,1fr) 8rem 9rem 15rem;
}
.grid-cols-\[5\.5rem_minmax\(0\2c 1fr\)_7rem_13rem\] {
  grid-template-columns: 5.5rem minmax(0,1fr) 7rem 13rem;
}
.grid-cols-\[auto_1fr\] {
  grid-template-columns: auto 1fr;
}
.grid-cols-\[minmax\(0\2c 1fr\)_8rem_auto\] {
  grid-template-columns: minmax(0,1fr) 8rem auto;
}
.grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1fr\)_8rem_auto\] {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 8rem auto;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-x-1 {
  -moz-column-gap: 0.25rem;
       column-gap: 0.25rem;
}
.gap-x-10 {
  -moz-column-gap: 2.5rem;
       column-gap: 2.5rem;
}
.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-5 {
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
.gap-y-0\.5 {
  row-gap: 0.125rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.gap-y-3 {
  row-gap: 0.75rem;
}
.space-y-0 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.self-start {
  align-self: flex-start;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-b-none {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-\[var\(--border\)\] {
  border-color: var(--border);
}
.border-\[var\(--speciale\)\] {
  border-color: var(--speciale);
}
.border-accent {
  --tw-border-opacity: 1;
  border-color: rgb(var(--accent-rgb) / var(--tw-border-opacity, 1));
}
.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
}
.border-neutral-100 {
  --tw-border-opacity: 1;
  border-color: rgb(245 245 245 / var(--tw-border-opacity, 1));
}
.border-neutral-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
}
.border-neutral-300 {
  --tw-border-opacity: 1;
  border-color: rgb(212 212 212 / var(--tw-border-opacity, 1));
}
.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}
.border-rose-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.bg-\[var\(--avviso\)\] {
  background-color: var(--avviso);
}
.bg-\[var\(--avviso-bg\)\] {
  background-color: var(--avviso-bg);
}
.bg-\[var\(--border\)\] {
  background-color: var(--border);
}
.bg-\[var\(--errore\)\] {
  background-color: var(--errore);
}
.bg-\[var\(--errore-bg\)\] {
  background-color: var(--errore-bg);
}
.bg-\[var\(--ok\)\] {
  background-color: var(--ok);
}
.bg-\[var\(--speciale-bg\)\] {
  background-color: var(--speciale-bg);
}
.bg-\[var\(--surface\)\] {
  background-color: var(--surface);
}
.bg-\[var\(--surface-2\)\] {
  background-color: var(--surface-2);
}
.bg-\[var\(--surface-sunken\)\] {
  background-color: var(--surface-sunken);
}
.bg-\[var\(--text\)\] {
  background-color: var(--text);
}
.bg-\[var\(--text-faint\)\] {
  background-color: var(--text-faint);
}
.bg-accent {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--accent-rgb) / var(--tw-bg-opacity, 1));
}
.bg-accent-strong\/10 {
  background-color: rgb(var(--accent-strong-rgb) / 0.1);
}
.bg-accent-strong\/5 {
  background-color: rgb(var(--accent-strong-rgb) / 0.05);
}
.bg-accent\/10 {
  background-color: rgb(var(--accent-rgb) / 0.1);
}
.bg-amber-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/30 {
  background-color: rgb(0 0 0 / 0.3);
}
.bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-emerald-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.bg-orange-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1));
}
.bg-rose-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));
}
.bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.bg-rose-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1));
}
.bg-sky-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity, 1));
}
.bg-violet-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.bg-violet-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(139 92 246 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-0 {
  padding: 0px;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1\.5 {
  padding-bottom: 0.375rem;
}
.pb-28 {
  padding-bottom: 7rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-top {
  vertical-align: top;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.font-sans {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.normal-case {
  text-transform: none;
}
.italic {
  font-style: italic;
}
.leading-none {
  line-height: 1;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.text-\[var\(--accent-strong\)\] {
  color: var(--accent-strong);
}
.text-\[var\(--avviso\)\] {
  color: var(--avviso);
}
.text-\[var\(--errore\)\] {
  color: var(--errore);
}
.text-\[var\(--ok\)\] {
  color: var(--ok);
}
.text-\[var\(--speciale\)\] {
  color: var(--speciale);
}
.text-\[var\(--surface\)\] {
  color: var(--surface);
}
.text-\[var\(--text\)\] {
  color: var(--text);
}
.text-\[var\(--text-faint\)\] {
  color: var(--text-faint);
}
.text-\[var\(--text-muted\)\] {
  color: var(--text-muted);
}
.text-accent {
  --tw-text-opacity: 1;
  color: rgb(var(--accent-rgb) / var(--tw-text-opacity, 1));
}
.text-accent-strong {
  --tw-text-opacity: 1;
  color: rgb(var(--accent-strong-rgb) / var(--tw-text-opacity, 1));
}
.text-accent-strong\/70 {
  color: rgb(var(--accent-strong-rgb) / 0.7);
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.text-amber-900 {
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity, 1));
}
.text-emerald-900 {
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-neutral-500 {
  --tw-text-opacity: 1;
  color: rgb(115 115 115 / var(--tw-text-opacity, 1));
}
.text-neutral-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 82 / var(--tw-text-opacity, 1));
}
.text-neutral-700 {
  --tw-text-opacity: 1;
  color: rgb(64 64 64 / var(--tw-text-opacity, 1));
}
.text-neutral-900 {
  --tw-text-opacity: 1;
  color: rgb(23 23 23 / var(--tw-text-opacity, 1));
}
.text-orange-900 {
  --tw-text-opacity: 1;
  color: rgb(124 45 18 / var(--tw-text-opacity, 1));
}
.text-rose-700 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.text-rose-800 {
  --tw-text-opacity: 1;
  color: rgb(159 18 57 / var(--tw-text-opacity, 1));
}
.text-violet-800 {
  --tw-text-opacity: 1;
  color: rgb(91 33 182 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-150 {
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.will-change-transform {
  will-change: transform;
}
.\[overflow-wrap\:anywhere\] {
  overflow-wrap: anywhere;
}

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-sunken: #edf0f4;
  --border: #dce1e8;
  --text: #141c28;
  --text-muted: #5b6b7e;
  --text-faint: #8794a3;
  --accent: #0b1f3a;
  --accent-strong: #1d3a63;
  --accent-rgb: 11 31 58;          /* gli stessi colori come canali, per le classi di Tailwind con trasparenza (bg-accent/10) */
  --accent-strong-rgb: 29 58 99;
  --btn-bg: #0b1f3a;               /* sfondo dei pulsanti primari: testo bianco, contrasto alto in entrambi i temi */
  --btn-bg-hover: #1d3a63;
  --logo-testo: #0b1f3a;
  --logo-ciano: #00c8dc;
  /* colori di stato: messaggi di conferma, errore e avviso (classi msg-*) */
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --ok-bordo: #a7f3d0;
  --errore: #be123c;
  --errore-bg: #fff1f2;
  --errore-bordo: #fecdd3;
  --avviso: #b45309;
  --avviso-bg: #fffbeb;
  --avviso-bordo: #fde68a;
  /* colore di una caratteristica speciale (es. reverse charge): classe badge-speciale */
  --speciale: #6d28d9;
  --speciale-bg: #ede9fe;
  --altezza-barra: 54px;           /* barra in alto: la usano TopBar.tsx e layout.tsx (un solo posto); il logo da 43 px ci sta con il nome allineato */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218;
    --surface: #151a22;
    --surface-sunken: #11151c;
    --border: #28303b;
    --text: #e8eef4;
    --text-muted: #a3afbd;
    --text-faint: #75808e;
    --accent: #2aa7ba;
    --accent-strong: #5cc8d8;
    --accent-rgb: 42 167 186;
    --accent-strong-rgb: 92 200 216;
    --btn-bg: #0f7f90;             /* turchese scuro: bianco sopra ha contrasto 4,7:1 (l'accento #2aa7ba, giusto per i testi sul fondo scuro, dava 2,9:1) */
    --btn-bg-hover: #0c6a78;
    --logo-testo: #e8eef4;
    --speciale: #c4b5fd;
    --speciale-bg: rgb(139 92 246 / 0.2);
    --ok: #34d399;
    --ok-bg: rgb(16 185 129 / 0.12);
    --ok-bordo: rgb(16 185 129 / 0.35);
    --errore: #fb7185;
    --errore-bg: rgb(244 63 94 / 0.12);
    --errore-bordo: rgb(244 63 94 / 0.35);
    --avviso: #fbbf24;
    --avviso-bg: rgb(245 158 11 / 0.12);
    --avviso-bordo: rgb(245 158 11 / 0.35);
  }
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ───────────────────────────────────────────────────────────────────────────
   Scala tipografica e componenti comuni (2026-09-25)

   Una sola scala di caratteri per tutte le pagine, con nomi per RUOLO invece che per
   dimensione: nei componenti si usano queste classi (t-*, btn, campo, card), non le misure
   di Tailwind (text-sm, text-[11px]...). Per cambiare l'aspetto di tutto il sito basta
   cambiare le variabili qui sotto. La densita' e' quella dell'anteprima della fattura.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* 2026-10-12: tutte le misure alzate di 1px (prima 10/11/12/13/15/18): a 1280x720 si leggeva troppo piccolo, come il menu */
  --fs-micro: 0.6875rem;  /* 11px  etichette maiuscole, intestazioni di tabella */
  --fs-mini: 0.75rem;     /* 12px  didascalie, note sotto un campo */
  --fs-piccolo: 0.8125rem; /* 13px  testo di lavoro: tabelle, campi, bottoni, messaggi */
  --fs-testo: 0.875rem;   /* 14px  testo corrente, menu */
  --fs-nome: 1rem;        /* 16px  nomi (fornitore, cedente) e sottotitoli */
  --fs-titolo: 1.1875rem; /* 19px  titolo della pagina */

  /* larghezza delle colonne laterali (fatture passive) */
  --w-lista: 25rem;
  --w-pannello: 21rem;
}

body {
  font-size: var(--fs-testo);
}

/* Pagine che continuano il sito commerciale (www.contabilia.eu): sfondo blu e ciano come la homepage, qualunque sia il tema del sistema. Oggi la usa la richiesta della demo. */
.vetrina {
  --bg: #0b1f3a; --surface: #102943; --surface-sunken: #0d2238; --border: rgb(232 238 244 / 0.18);
  --text: #e8eef4; --text-muted: #8fa3b8; --text-faint: #8fa3b8;
  --accent: #00c8dc; --accent-strong: #6ce4ee; --btn-bg: #00c8dc; --btn-bg-hover: #6ce4ee; --logo-testo: #e8eef4;
  --ok: #34d399; --ok-bg: rgb(16 185 129 / 0.12); --ok-bordo: rgb(16 185 129 / 0.35);
  --errore: #fb7185; --errore-bg: rgb(244 63 94 / 0.12); --errore-bordo: rgb(244 63 94 / 0.35);
  background: var(--bg);
  color: var(--text);
}
.vetrina .btn-primario { color: #0b1f3a; font-weight: 700; border-radius: 9999px; }
.vetrina .card { border-radius: 1.5rem; border-color: rgb(0 200 220 / 0.35); }

/* Area del dipendente (note spese dal telefono, app/d), pensata prima per il telefono come la console: bersagli da 44 px, campi da 16 px (iOS non ingrandisce la pagina
   quando si scrive), testi un po' piu' grandi, azioni principali in una barra in basso raggiungibile col pollice, elenchi a schede invece che a tabella. */
.last\:border-0:last-child {
  border-width: 0px;
}
.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:border-accent\/50:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
}
.hover\:bg-\[var\(--surface-2\)\]:hover {
  background-color: var(--surface-2);
}
.hover\:bg-\[var\(--surface-sunken\)\]:hover {
  background-color: var(--surface-sunken);
}
.hover\:bg-rose-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 205 211 / var(--tw-bg-opacity, 1));
}
.hover\:bg-rose-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.hover\:text-\[var\(--errore\)\]:hover {
  color: var(--errore);
}
.hover\:text-\[var\(--text\)\]:hover {
  color: var(--text);
}
.hover\:text-\[var\(--text-muted\)\]:hover {
  color: var(--text-muted);
}
.hover\:text-accent:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--accent-rgb) / var(--tw-text-opacity, 1));
}
.hover\:text-accent-strong:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--accent-strong-rgb) / var(--tw-text-opacity, 1));
}
.hover\:text-rose-600:hover {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:no-underline:hover {
  text-decoration-line: none;
}
.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.focus-visible\:outline:focus-visible {
  outline-style: solid;
}
.focus-visible\:outline-2:focus-visible {
  outline-width: 2px;
}
.focus-visible\:outline-offset-2:focus-visible {
  outline-offset: 2px;
}
.focus-visible\:outline-\[var\(--logo-ciano\)\]:focus-visible {
  outline-color: var(--logo-ciano);
}
.disabled\:opacity-60:disabled {
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) {

  .motion-reduce\:transition-none {
    transition-property: none;
  }
}
@media (min-width: 640px) {

  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:flex-1 {
    flex: 1 1 0%;
  }

  .sm\:basis-64 {
    flex-basis: 16rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {

  .md\:block {
    display: block;
  }

  .md\:inline-flex {
    display: inline-flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:max-h-none {
    max-height: none;
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:rounded-b-xl {
    border-bottom-right-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
  }

  .md\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (min-width: 1024px) {

  .lg\:block {
    display: block;
  }

  .lg\:grid-cols-\[repeat\(auto-fit\2c minmax\(11\.5rem\2c 1fr\)\)\] {
    grid-template-columns: repeat(auto-fit,minmax(11.5rem,1fr));
  }
}

