/*
  Prenotazioni · ParcheggiAPP, l'app. Tutto in px fissi sotto .pr-app (il dispositivo si scala, l'app no).
  Grafica fedele all'app reale: fondo #f3f3f3, sidebar bianca 260 px con voce attiva #4361ee (ombra rgba(67,97,238,.2)),
  hover #f1f5f9, testi slate #1e293b/#64748b, card arrotondate 16 px con ombra leggera, pulsanti a pillola,
  stati Bootstrap (primary #0d6efd, success #198754, danger #dc3545, warning #ffc107). Marchio P al posto del logo.

  - .pr-app        ambito e contenitore «pr» (container query sulla larghezza dell'app, ovunque sia montata)
  - .pr-desktop    sidebar 260 px; sotto i 760 px di larghezza diventa barra in alto con menu a scomparsa
  - .pr-mobile     telefono (306–393 px): stessa impaginazione stretta
  - .pr-main       contenitore «prmain»: le tabelle nascondono le colonne meno importanti
                   (.pr-xl < 1100 px · .pr-lg < 820 px · .pr-md < 560 px; .pr-lt-lg solo sotto gli 820 px, .pr-sm-only sotto i 560 px)
  - .pr-scheda     scheda email singola, nel flusso della pagina (scene)
  - .pr-demo       barra «Demo» del prototipo: non fa parte dell'app, fondo scuro
  Nessuno scorrimento orizzontale: righe che vanno a capo, tabelle a layout fisso con ellissi.
*/
.pr-app {
  --pr-fondo: #f3f3f3;
  --pr-carta: #fff;
  --pr-ink: #1e293b;
  --pr-slate: #64748b;
  --pr-slate-t: #556274;
  --pr-indaco: #4361ee;
  --pr-indaco-t: #3a54e0;
  --pr-indaco-tenue: #eef1fd;
  --pr-hover: #f1f5f9;
  --pr-line: #e2e8f0;
  --pr-line-2: #dee2e6;
  --pr-primary: #0d6efd;
  --pr-link: #0a58ca;
  --pr-success: #198754;
  --pr-danger: #dc3545;
  --pr-warning: #ffc107;
  --pr-ombra: 0 2px 4px rgba(0, 0, 0, .075);
  --pr-font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pr-mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; container: pr / inline-size;
  background: var(--pr-fondo); color: var(--pr-ink); font-family: var(--pr-font); font-size: 13px; line-height: 1.4; text-align: left; letter-spacing: normal;
  -webkit-font-smoothing: antialiased; font-synthesis: none;
}
.pr-app, .pr-app *, .pr-app *::before, .pr-app *::after { box-sizing: border-box; }
/* Reset con specificità (0,1,1): batte gli stili per elemento della presentazione (h1, h2, p, main, nav…),
   perde contro le classi dell'app (0,2,0). */
.pr-app h1, .pr-app h2, .pr-app h3, .pr-app p, .pr-app ul, .pr-app ol, .pr-app dl, .pr-app dt, .pr-app dd, .pr-app figure, .pr-app fieldset, .pr-app legend {
  margin: 0; padding: 0; max-width: none; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; text-wrap: wrap; text-transform: none; }
.pr-app h1, .pr-app h2, .pr-app h3, .pr-app b, .pr-app strong { font-weight: 700; }
.pr-app section, .pr-app aside, .pr-app header, .pr-app nav, .pr-app article, .pr-app form { display: block; position: static; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none; }
.pr-app fieldset { border: 0; min-width: 0; }
.pr-app ul, .pr-app ol { list-style: none; }
.pr-app table, .pr-app th, .pr-app td { font-family: inherit; }
.pr-app button, .pr-app input, .pr-app select, .pr-app textarea { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
.pr-app button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.pr-app .pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-weight: 600; transition: background .15s ease, filter .15s ease, transform .12s ease; }
.pr-app [hidden] { display: none !important; }
.pr-app :where(button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--pr-indaco); outline-offset: 2px; }
.pr-app .pr-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-app .pr-mark { flex: none; display: block; }
.pr-app .pr-mono { font-family: var(--pr-mono); font-variant-numeric: tabular-nums; }
.pr-app .pr-muted { color: var(--pr-slate); font-size: 12px; }
.pr-app .pr-empty { padding: 24px 16px; text-align: center; color: var(--pr-slate); font-size: 12.5px; }
.pr-app .pr-sm-only, .pr-app .pr-sm-only-cell, .pr-app .pr-lt-lg, .pr-app .pr-corto { display: none; }
.pr-app .pr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* =========================================================================
   Barra «Demo» del prototipo (fuori dall'app vera)
   ========================================================================= */
.pr-app .pr-demo { flex: none; position: relative; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 7px 12px;
  background: #1e293b; color: #e2e8f0; font-size: 11.5px; border-bottom: 2px dashed #8fa2f7; }
.pr-app .pr-demo-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--pr-warning); color: #1e293b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pr-app .pr-demo-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.pr-app .pr-demo-l { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.pr-app .pr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 14px; background: rgba(255, 255, 255, .08); min-width: 0; }
.pr-app .pr-seg-b { height: 24px; padding: 0 10px; border-radius: 999px; color: #cbd5e1; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pr-app button.pr-seg-b:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pr-app .pr-seg-b[aria-pressed="true"], .pr-app .pr-seg-b.is-on { background: var(--pr-indaco); color: #fff; }
.pr-app .pr-demo-step { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #e2e8f0; background: rgba(255, 255, 255, .08); }
.pr-app .pr-demo-step .pr-ico { width: 14px; height: 14px; stroke-width: 2.2; }
.pr-app button.pr-demo-step:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.pr-app .pr-demo-step:disabled, .pr-app .pr-demo-step.is-disabled { opacity: .35; cursor: default; }
.pr-app .pr-demo-cap { color: #94a3b8; font-size: 11px; }
.pr-app .pr-demo-time { display: inline-flex; flex-direction: column; align-items: center; min-width: 96px; font: 700 13px/1.1 var(--pr-mono); color: #fff; }
.pr-app .pr-demo-time small { font: 500 9.5px/1.2 var(--pr-font); color: #94a3b8; }
.pr-app .pr-demo-ante { padding: 1px 7px; border: 1px dashed #8fa2f7; border-radius: 999px; color: #c7d2fe; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pr-app .pr-demo-sel { height: 26px; max-width: 150px; padding: 0 8px; border-radius: 8px; border: 1px solid #475569; background: #334155; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.pr-app .pr-demo-note { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #cbd5e1; font-size: 11px; }
.pr-app .pr-demo-note .pr-ico { width: 13px; height: 13px; color: #8fa2f7; }
.pr-mobile .pr-demo { gap: 6px 8px; padding: 6px 10px; }
.pr-mobile .pr-demo-l { display: none; }
.pr-mobile .pr-demo-note { margin-left: 0; }

/* =========================================================================
   Guscio: sidebar bianca 260 px + contenuto; stretto = barra in alto e menu
   ========================================================================= */
.pr-app .pr-shell { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "side main"; overflow: hidden; }
.pr-app .pr-mtop { display: none; grid-area: top; align-items: center; gap: 8px; height: 52px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e7eaef; }
.pr-app .pr-mtop-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pr-app .pr-mtop .pr-mailbtn { margin-left: auto; width: 34px; height: 34px; }
.pr-app .pr-burger { margin-left: auto; width: 36px; height: 32px; display: grid; place-items: center; border: 1px solid var(--pr-line-2); border-radius: 8px; color: var(--pr-ink); }
.pr-app .pr-mtop .pr-mailbtn + .pr-burger { margin-left: 0; }
.pr-app .pr-side { grid-area: side; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 18px 14px 12px; position: relative; overflow-y: auto; background: #fff; border-right: 1px solid rgba(0, 0, 0, .06); box-shadow: 4px 0 10px rgba(0, 0, 0, .02); }
.pr-app .pr-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.pr-app .pr-brand > span { flex: 1; min-width: 0; }
.pr-app .pr-brand b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.pr-app .pr-brand small { display: block; font-size: 11px; color: var(--pr-slate); }
.pr-app .pr-btn.pr-side-x { display: none; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--pr-slate); }
.pr-app .pr-nav { display: grid; gap: 4px; }
.pr-app .pr-nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 10px; color: var(--pr-slate); font-size: 13.5px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.pr-app .pr-nav-item .pr-ico { width: 18px; height: 18px; stroke-width: 1.7; }
.pr-app .pr-nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-app button.pr-nav-item:hover { background: var(--pr-hover); color: var(--pr-ink); }
.pr-app .pr-nav-item.is-active, .pr-app button.pr-nav-item.is-active:hover { background: var(--pr-indaco); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(67, 97, 238, .2); }
.pr-app .pr-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 4px 2px; border-top: 1px solid var(--pr-line); }
.pr-app .pr-user > div { flex: 1; min-width: 0; }
.pr-app .pr-user b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-user small { display: block; font-size: 11px; color: var(--pr-slate); }
.pr-app .pr-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1e293b, #334155); color: #fff; font-size: 12px; font-weight: 600; }
.pr-app .pr-avatar.is-sm { width: 32px; height: 32px; font-size: 11px; }
.pr-app .pr-icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--pr-slate); }
.pr-app button.pr-icon-btn:hover { background: var(--pr-hover); color: var(--pr-ink); }
.pr-app .pr-icon-btn.is-edit { color: var(--pr-primary); }
.pr-app .pr-icon-btn.is-del { color: var(--pr-danger); }
.pr-app .pr-backdrop { display: none; position: absolute; inset: 0; z-index: 35; background: rgba(15, 23, 42, .35); }
.pr-app .pr-main { grid-area: main; display: block; position: relative; min-width: 0; min-height: 0; padding: 22px 26px 16px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; container: prmain / inline-size; }
.pr-app .pr-page { min-width: 0; }
.pr-app .pr-nota { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--pr-slate-t); }
.pr-app .pr-nota .pr-ico { width: 13px; height: 13px; color: var(--pr-indaco); }

@container pr (max-width: 1079px) { .pr-app .pr-main { padding-left: 20px; padding-right: 20px; } }
@container pr (max-width: 759px) {
  .pr-app .pr-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .pr-app .pr-mtop { display: flex; }
  .pr-app .pr-side { position: absolute; z-index: 40; top: 0; bottom: 0; left: 0; width: 260px; max-width: 86%; visibility: hidden; transform: translateX(-102%);
    box-shadow: 12px 0 30px rgba(15, 23, 42, .18); transition: transform .25s ease, visibility 0s .25s; }
  .pr-app.is-menu .pr-side { visibility: visible; transform: none; transition: transform .25s ease; }
  .pr-app.is-menu .pr-backdrop { display: block; }
  .pr-app .pr-btn.pr-side-x { display: grid; }
  .pr-app .pr-main { padding: 14px 12px 12px; }
  .pr-app .pr-head-right .pr-mailbtn { display: none; }
}

/* Testata della pagina */
.pr-app .pr-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin-bottom: 18px; }
.pr-app .pr-head-text { flex: 1 1 260px; min-width: 0; }
.pr-app .pr-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--pr-ink); }
.pr-app .pr-head p { margin-top: 4px; font-size: 13px; color: var(--pr-slate-t); }
.pr-app .pr-head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-app .pr-mailbtn { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--pr-line); color: var(--pr-ink); }
.pr-app .pr-mailbtn .pr-ico { width: 18px; height: 18px; }
.pr-app button.pr-mailbtn:hover { background: var(--pr-hover); }
.pr-app .pr-mailbtn-n { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; box-shadow: 0 0 0 2px #fff; display: grid; place-items: center; border-radius: 999px; background: var(--pr-danger); color: #fff; font-size: 10px; font-weight: 700; }
.pr-app .pr-evo { display: inline-flex; align-items: center; padding: 3px 10px; border: 1.5px dashed var(--pr-slate-t); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--pr-slate-t); background: #fff; }
@container prmain (max-width: 639px) {
  .pr-app .pr-head-evo { display: none; }
  .pr-app .pr-nota { margin-top: 10px; }
  .pr-app .pr-evo { padding: 2px 8px; font-size: 10.5px; }
  .pr-app .pr-head { margin-bottom: 12px; }
  .pr-app .pr-head h1 { font-size: 20px; }
  .pr-app .pr-head p { font-size: 12px; }
}

/* =========================================================================
   Mattoni: card, pulsanti, badge, avvisi, toast, finestre
   ========================================================================= */
.pr-app .pr-card { background: var(--pr-carta); border-radius: 16px; box-shadow: var(--pr-ombra); padding: 16px 18px; min-width: 0; }
.pr-app .pr-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 8px; }
.pr-app .pr-card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.pr-app .pr-card-foot { display: flex; justify-content: center; padding: 10px 0 6px; }
.pr-app .pr-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-slate); }

.pr-app .pr-btn-primary, .pr-app .pr-btn-secondary, .pr-app .pr-btn-outline, .pr-app .pr-btn-danger, .pr-app .pr-btn-warning, .pr-app .pr-btn-success, .pr-app .pr-btn-off { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 13px; }
.pr-app .pr-btn-primary { background: var(--pr-primary); color: #fff; }
.pr-app button.pr-btn-primary:hover:not(:disabled) { background: #0b5ed7; }
.pr-app .pr-btn-secondary { background: #6c757d; color: #fff; }
.pr-app .pr-btn-outline { background: #fff; color: var(--pr-link); border: 1px solid var(--pr-primary); }
.pr-app button.pr-btn-outline:hover { background: #f0f6ff; }
.pr-app .pr-btn-danger { background: var(--pr-danger); color: #fff; }
.pr-app .pr-btn-warning { background: var(--pr-warning); color: #000; }
.pr-app .pr-btn-success { background: var(--pr-success); color: #fff; }
.pr-app .pr-btn-off { background: #e9ecef; color: #6c757d; }
.pr-app button.pr-btn-danger:hover, .pr-app button.pr-btn-warning:hover, .pr-app button.pr-btn-success:hover { filter: brightness(.93); }
.pr-app .pr-btn-block { display: flex; width: 100%; }
.pr-app .pr-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 999px; }
.pr-app .pr-btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 999px; }
.pr-app .pr-btn-xs .pr-ico, .pr-app .pr-btn-sm .pr-ico { width: 14px; height: 14px; }
.pr-app .pr-btn-danger-o { background: #fff; color: #b02a37; border: 1px solid var(--pr-danger); }
.pr-app button.pr-btn-danger-o:hover { background: #fdf0f1; }
.pr-app .pr-btn-excel { background: #fff; color: #146c43; border: 1px solid var(--pr-success); }
.pr-app .pr-btn-pdf { background: #fff; color: #b02a37; border: 1px solid var(--pr-danger); }
.pr-app .pr-btn:disabled, .pr-app .pr-btn.is-disabled { opacity: .7; cursor: default; }
.pr-app .pr-btn.is-press, .pr-app button.pr-btn:active:not(:disabled) { transform: scale(.96); filter: brightness(.92); }
.pr-app .pr-link { align-self: center; color: var(--pr-link); font-size: 12.5px; font-weight: 600; }
.pr-app button.pr-link:hover { text-decoration: underline; }
.pr-app .pr-back { display: none; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--pr-link); font-size: 12.5px; font-weight: 600; }

.pr-app .pr-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; vertical-align: middle; }
.pr-app .pr-badge.is-success { background: #d1e7dd; color: #0a3622; }
.pr-app .pr-badge.is-danger { background: #f8d7da; color: #58151c; }
.pr-app .pr-badge.is-warning { background: #fff3cd; color: #664d03; }
.pr-app .pr-badge.is-secondary { background: #e9ecef; color: #495057; }
.pr-app .pr-badge.is-dark { background: #1e293b; color: #fff; font-size: 10px; padding: 2px 8px; }
.pr-app .pr-prio { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pr-app .pr-prio-l { font-weight: 500; }
.pr-app .pr-prio.is-A { background: var(--pr-indaco); color: #fff; }
.pr-app .pr-prio.is-B { background: #dbe2fd; color: #2f45c4; }
.pr-app .pr-prio.is-C { background: #e2e8f0; color: #334155; }
.pr-app .pr-prio.is-D { background: #f1f5f9; color: #475569; }
.pr-app .pr-prio.is-E { background: #f8fafc; color: var(--pr-slate); box-shadow: inset 0 0 0 1px var(--pr-line); }
.pr-app .pr-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 9px; border-radius: 999px; background: var(--pr-hover); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-chip.is-park { background: var(--pr-indaco-tenue); color: var(--pr-indaco-t); }
.pr-app .pr-chip .pr-ico { width: 12px; height: 12px; }
.pr-app .pr-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: rgba(0, 0, 0, .07); font-size: 10.5px; font-weight: 700; }
.pr-app .pr-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-app .pr-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.pr-app .pr-sw.is-rip { background: #fff3cd; box-shadow: inset 0 0 0 1px #ffe69c; }
.pr-app .pr-sw.is-no { background: #f8d7da; box-shadow: inset 0 0 0 1px #f1aeb5; }

.pr-app .pr-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; border-radius: 14px; border: 1px solid; }
.pr-app .pr-alert .pr-ico { width: 22px; height: 22px; }
.pr-app .pr-alert b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pr-app .pr-alert p { margin-top: 3px; font-size: 12.5px; }
.pr-app .pr-alert.is-ok { background: #d1e7dd; border-color: #a3cfbb; color: #0a3622; }
.pr-app .pr-alert.is-wait { background: #fff3cd; border-color: #ffe69c; color: #664d03; }
.pr-app .pr-alert.is-ko { background: #f8d7da; border-color: #f1aeb5; color: #58151c; }
.pr-app .pr-alert p.pr-alert-rip { margin-top: 8px; font-size: 12px; }
.pr-app .pr-pill-park { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--pr-success); color: #fff; font-size: 12.5px; font-weight: 700; }
.pr-app .pr-pill-park .pr-ico { width: 14px; height: 14px; stroke-width: 2; }
.pr-app .pr-banner { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid; font-size: 12.5px; line-height: 1.4; }
.pr-app .pr-banner .pr-ico { width: 17px; height: 17px; margin-top: 1px; }
.pr-app .pr-banner.is-info { background: #cff4fc; border-color: #9eeaf9; color: #055160; }
.pr-app .pr-banner.is-success { background: #d1e7dd; border-color: #a3cfbb; color: #0a3622; }
.pr-app .pr-banner.is-warning { background: #fff3cd; border-color: #ffe69c; color: #664d03; }
.pr-app .pr-banner.is-danger { background: #f8d7da; border-color: #f1aeb5; color: #58151c; }

.pr-app .pr-toasts { position: absolute; z-index: 60; top: 12px; right: 14px; width: 360px; max-width: calc(100% - 28px); display: grid; gap: 8px; pointer-events: none; }
.pr-app .pr-toast { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; color: #fff; font-size: 12.5px; line-height: 1.4; box-shadow: 0 12px 28px rgba(15, 23, 42, .28); animation: pr-toast-in .3s cubic-bezier(.2, .7, .2, 1) both; }
.pr-app .pr-toast .pr-ico { width: 17px; height: 17px; margin-top: 1px; stroke-width: 2; }
.pr-app .pr-toast.is-success { background: var(--pr-success); }
.pr-app .pr-toast.is-info { background: #0b5ed7; }
.pr-app .pr-toast.is-email { background: #1e293b; }
.pr-app .pr-toast.is-warning { background: var(--pr-warning); color: #000; }
.pr-app .pr-toast.is-error { background: var(--pr-danger); }
.pr-app .pr-toast.is-still { animation: none; }
.pr-app .pr-toast.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
@keyframes pr-toast-in { from { opacity: 0; transform: translateY(-10px); } }
@container pr (max-width: 759px) { .pr-app .pr-toasts { left: 10px; right: 10px; top: 8px; width: auto; max-width: none; } }

.pr-app .pr-modal { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); }
.pr-app .pr-dialog { width: 100%; max-width: 460px; min-width: 0; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5); }
.pr-app .pr-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--pr-line); }
.pr-app .pr-dialog-head h2 { font-size: 16px; font-weight: 700; }
.pr-app .pr-dialog-body { padding: 16px 18px; overflow-y: auto; font-size: 13px; color: #334155; }
.pr-app .pr-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--pr-line); }
.pr-app .pr-dialog-foot .pr-btn { height: 36px; padding: 0 18px; }

/* Campi */
.pr-app .pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-app .pr-field-l { font-size: 12.5px; font-weight: 600; color: var(--pr-ink); }
.pr-app .pr-field-hint { font-size: 11.5px; color: var(--pr-slate); }
.pr-app .pr-field-err { font-size: 11.5px; font-weight: 600; color: #b02a37; }
.pr-app .pr-input { width: 100%; min-width: 0; height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--pr-line-2); border-radius: 10px; background: #fff; font-size: 13.5px; color: var(--pr-ink); outline: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app input.pr-input:focus, .pr-app .pr-select:focus { border-color: #86b7fe; box-shadow: 0 0 0 4px rgba(13, 110, 253, .2); outline: 0; }
.pr-app .pr-input.is-err { border-color: var(--pr-danger); }
.pr-app .pr-input.is-ph { color: #94a3b8; }
.pr-app .pr-input.is-pwd { letter-spacing: .25em; }
.pr-app .pr-input.is-ro, .pr-app input.pr-input[readonly] { background: #f8f9fa; color: #475569; }
.pr-app .pr-input .pr-ico { color: var(--pr-slate); }
.pr-app .pr-input-sm { height: 34px; padding: 0 12px; font-size: 12.5px; width: auto; }
.pr-app .pr-targa { font-family: var(--pr-mono); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pr-app .pr-targa .ty-field { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.pr-app .pr-ph { color: #94a3b8; font-family: var(--pr-font); font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pr-app .pr-caret { width: 1.5px; height: 18px; margin-left: 1px; background: var(--pr-primary); opacity: 0; }
.pr-app .is-typing .pr-caret { opacity: 1; animation: pr-caret .8s steps(1) infinite; }
@keyframes pr-caret { 50% { opacity: 0; } }
.pr-app .pr-risorsa { font-weight: 650; color: var(--pr-indaco-t); background: var(--pr-indaco-tenue); border-style: dashed; border-color: #b8c4f6; }
.pr-app .pr-risorsa .pr-ico { color: var(--pr-indaco); }
.pr-app .pr-input-ico { position: relative; display: block; }
.pr-app .pr-input-ico .pr-ico { position: absolute; left: 13px; top: 50%; margin-top: -8px; color: var(--pr-slate); }
.pr-app .pr-input-ico .pr-input { padding-left: 38px; }
.pr-app .pr-select { height: 34px; max-width: 100%; padding: 0 30px 0 10px; border: 1px solid var(--pr-line-2); border-radius: 10px; font-size: 12.5px; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 9px center / 14px no-repeat; }
.pr-app .pr-select-fake { padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 9px center / 14px no-repeat; }
.pr-app .pr-form { display: grid; gap: 12px; }
.pr-app .pr-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pr-app .pr-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pr-app .pr-radio input, .pr-app .pr-check input { accent-color: var(--pr-primary); width: 16px; height: 16px; margin: 0; }

/* =========================================================================
   Prenota Parcheggio
   ========================================================================= */
.pr-app .pr-pren { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-app .pr-pren-col { display: grid; gap: 16px; min-width: 0; }
.pr-app .pr-req { display: flex; flex-direction: column; gap: 12px; }
.pr-app .pr-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.pr-app .pr-flow::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 8px; height: 2px; background: var(--pr-line); }
.pr-app .pr-flow::after { content: ""; position: absolute; left: 16.6%; top: 8px; height: 2px; width: calc(66.8% * var(--done, 0)); background: var(--pr-indaco); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.pr-app .pr-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.pr-app .pr-node i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.pr-app .pr-node b { margin-top: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--pr-slate); }
.pr-app .pr-node span { font: 700 12.5px/1 var(--pr-mono); color: var(--pr-ink); }
.pr-app .pr-node.is-now i { border-color: var(--pr-indaco); box-shadow: 0 0 0 4px rgba(67, 97, 238, .2); }
.pr-app .pr-node.is-now i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pr-indaco); }
.pr-app .pr-node.is-done i { border-color: var(--pr-indaco); background: var(--pr-indaco); }
.pr-app .pr-node.is-done i::after { content: ""; width: 5px; height: 3px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pr-app .pr-node.is-now b, .pr-app .pr-node.is-done b { color: var(--pr-indaco-t); }
.pr-app .pr-day { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-app .pr-day strong { display: block; margin-top: 4px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.pr-app .pr-free { display: inline-flex; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: #d1e7dd; color: #0a3622; font-size: 11.5px; font-weight: 650; }
.pr-app .pr-cal { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--pr-indaco-tenue); color: var(--pr-indaco); }
.pr-app .pr-cal .pr-ico { width: 18px; height: 18px; stroke-width: 1.6; }
.pr-app .pr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.pr-app .pr-req .pr-btn-block { height: 44px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: normal; line-height: 1.15; text-align: center; }
.pr-app .pr-req .pr-btn-block .pr-ico { width: 16px; height: 16px; }
@container prmain (max-width: 639px) {
  .pr-app .pr-pren { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pr-app .pr-pren-col { gap: 12px; }
  .pr-app .pr-pren .pr-card { padding: 14px; }
  .pr-app .pr-pren .pr-day { padding: 12px 14px; }
  .pr-app .pr-flow { margin-top: 10px; }
  .pr-app .pr-alert { padding: 11px 12px; }
  .pr-app .pr-day strong { font-size: 19px; }
  .pr-app .pr-req { gap: 10px; }
  .pr-app .pr-req .pr-btn-block { font-size: 11px; letter-spacing: .02em; padding: 0 8px; }
}

/* =========================================================================
   Dashboard
   ========================================================================= */
.pr-app .pr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.pr-app .pr-kpi { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: var(--pr-ombra); text-align: left; }
.pr-app button.pr-kpi:hover { box-shadow: var(--pr-ombra), 0 0 0 1px #c7d2fe; }
.pr-app .pr-kpi-text { flex: 1; min-width: 0; }
.pr-app .pr-kpi small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-kpi b { display: block; margin: 4px 0 3px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-app .pr-kpi b.pr-kpi-state { font-size: 18px; letter-spacing: .02em; padding: 4px 0; }
.pr-app .pr-kpi-state.is-success { color: #146c43; }
.pr-app .pr-kpi-state.is-warning { color: #997404; }
.pr-app .pr-kpi-state.is-secondary { color: #6c757d; }
.pr-app .pr-kpi-sub { display: block; font-size: 11.5px; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.pr-app .pr-tile .pr-ico { width: 20px; height: 20px; }
.pr-app .pr-tile.is-primary { background: var(--pr-indaco-tenue); color: var(--pr-indaco); }
.pr-app .pr-tile.is-info { background: #e7f1ff; color: var(--pr-primary); }
.pr-app .pr-tile.is-dark { background: #e2e8f0; color: #1e293b; }
.pr-app .pr-tile.is-success { background: #d1e7dd; color: var(--pr-success); }
.pr-app .pr-tile.is-warning { background: #fff3cd; color: #997404; }
.pr-app .pr-tile.is-secondary { background: #e9ecef; color: #6c757d; }
.pr-app .pr-recent { padding: 14px 18px 8px; }
.pr-app .pr-rec-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pr-hover); }
.pr-app .pr-rec-list li:last-child { border-bottom: 0; }
.pr-app .pr-rec-who { min-width: 0; }
.pr-app .pr-rec-who b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-rec-who small { display: block; font-size: 11px; color: var(--pr-slate); }
.pr-app .pr-rec-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
@container prmain (max-width: 819px) { .pr-app .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@container prmain (max-width: 639px) {
  .pr-app .pr-kpi { padding: 12px 12px; }
  .pr-app .pr-kpi .pr-tile { display: none; }
  .pr-app .pr-kpi b { font-size: 22px; }
  .pr-app .pr-kpi b.pr-kpi-state { font-size: 15px; }
  .pr-app .pr-rec-list li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .pr-app .pr-rec-chips { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; }
  .pr-app .pr-rec-list li > .pr-badge { grid-column: 3; grid-row: 1; }
  .pr-app .pr-recent { padding: 12px 14px 6px; }
}

/* =========================================================================
   Tabelle (layout fisso: niente scorrimento orizzontale) e barre degli strumenti
   ========================================================================= */
.pr-app .pr-table-card { padding: 0; overflow: hidden; }
.pr-app .pr-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12.5px; }
.pr-app .pr-table th { padding: 11px 10px; background: #fff; border-bottom: 1px solid var(--pr-line); text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-table td { padding: 10px; border-bottom: 1px solid var(--pr-hover); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-app .pr-table td.pr-wrap { white-space: normal; overflow-wrap: anywhere; }
.pr-app .pr-table td b { font-weight: 650; }
.pr-app .pr-table td small { display: block; margin-top: 1px; font-size: 11px; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-table td small.pr-sm-only { display: none; }
.pr-app .pr-table .pr-c { text-align: center; }
.pr-app .pr-table .pr-actions { text-align: right; }
.pr-app .pr-table .pr-actions .pr-btn + .pr-btn { margin-left: 2px; }
.pr-app .pr-table tr.is-ev td { background: var(--pr-indaco-tenue); }
.pr-app .pr-table tr.is-ev td:first-child { box-shadow: inset 3px 0 0 var(--pr-indaco); }
.pr-app .pr-table tr.is-rip td { background: #fff3cd; }
.pr-app .pr-table tr.is-off td { color: #94a3b8; }
.pr-app .pr-table tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--pr-indaco); }
.pr-app .pr-table tr.is-noshow td { background: #f8d7da; }
.pr-app .pr-table th.is-col { background: var(--pr-indaco-tenue); color: var(--pr-indaco-t); }
.pr-app .pr-table td.is-col { background: rgba(67, 97, 238, .07); }
.pr-app .pr-table tr.is-rip td.is-col { background: #fbe9b7; }
.pr-app .pr-pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pr-hover); font-size: 11.5px; font-weight: 700; }
.pr-app .pr-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-app .pr-tag-rip, .pr-app .pr-tag-dir { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.pr-app .pr-tag-rip { background: var(--pr-warning); color: #000; }
.pr-app .pr-tag-dir { background: #d1e7dd; color: #0a3622; }
.pr-app .pr-tag-dir .pr-ico { width: 10px; height: 10px; }
.pr-app .pr-table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 14px; border-top: 1px solid var(--pr-line); font-size: 11.5px; color: var(--pr-slate); }
.pr-app .pr-prio-sel { width: 100%; }
.pr-app .pr-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 14px; }
.pr-app .pr-date { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-app .pr-date > span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-slate-t); }
.pr-app .pr-check { display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: 12.5px; font-weight: 600; }
.pr-app .pr-check > i { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #adb5bd; border-radius: 4px; background: #fff; }
.pr-app .pr-check.is-on > i { background: var(--pr-primary); border-color: var(--pr-primary); color: #fff; }
.pr-app .pr-check > i .pr-ico { width: 12px; height: 12px; stroke-width: 2.6; }
.pr-app .pr-export-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pr-app .pr-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 18px; background: #e9ecef; }
.pr-app .pr-tab { height: 30px; padding: 0 14px; border-radius: 999px; color: #475569; font-size: 12.5px; font-weight: 600; }
.pr-app .pr-tab.is-active { background: #fff; color: var(--pr-indaco-t); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pr-app .pr-tab.is-ev { outline: 2px solid var(--pr-indaco); outline-offset: 2px; }
.pr-app .pr-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.pr-app .pr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-app .pr-chips-l { margin-right: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-slate-t); }
.pr-app .pr-chip-b { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pr-line-2); background: #fff; color: #475569; font-size: 12px; font-weight: 600; }
.pr-app button.pr-chip-b:hover { background: var(--pr-hover); }
.pr-app .pr-chip-b.is-active, .pr-app button.pr-chip-b.is-active:hover { background: var(--pr-indaco); border-color: var(--pr-indaco); color: #fff; }

@container prmain (max-width: 1099px) {
  .pr-app .pr-xl { display: none; }
  .pr-app .pr-prio-l { display: none; }
  .pr-app th.pr-prio-cell { width: 84px !important; }
  .pr-app th.pr-prio-sel-cell { width: 132px !important; }
}
@container prmain (max-width: 819px) {
  .pr-app .pr-lg { display: none; }
  .pr-app .pr-table th.pr-lt-lg, .pr-app .pr-table td.pr-lt-lg { display: table-cell; }
  .pr-app .pr-actions .pr-btn-xs span { display: none; }
  .pr-app .pr-actions .pr-btn-xs { width: 30px; padding: 0; }
  .pr-app th.pr-actions { width: 52px !important; }
  .pr-app th.pr-act2 { width: 88px !important; }
  .pr-app th.pr-actions .pr-lungo { display: none; }
  .pr-app th.pr-actions .pr-corto { display: inline; }
}
@container prmain (max-width: 559px) {
  .pr-app .pr-md, .pr-app .pr-lungo { display: none; }
  .pr-app .pr-corto { display: inline; }
  .pr-app .pr-table td small.pr-sm-only, .pr-app .pr-sm-only { display: block; }
  .pr-app .pr-table th.pr-sm-only-cell, .pr-app .pr-table td.pr-sm-only-cell { display: table-cell; }
  .pr-app .pr-table { font-size: 12px; }
  .pr-app .pr-table th, .pr-app .pr-table td { padding-left: 7px; padding-right: 7px; }
  .pr-app th.pr-pos-cell { width: 36px !important; }
  .pr-app th.pr-prio-cell { width: 46px !important; }
  .pr-app th.pr-prio-sel-cell { width: 116px !important; }
  .pr-app th.pr-conf-cell { width: 64px !important; }
  .pr-app th.pr-stato-cell { width: 84px !important; }
  .pr-app th.pr-actions { width: 44px !important; }
  .pr-app th.pr-act2 { width: 84px !important; }
  .pr-app th.pr-lib-cell { width: 70px !important; }
  .pr-app th.pr-pri-cell { width: 58px !important; }
  .pr-app th.pr-ric-cell { width: 96px !important; }
  .pr-app th.pr-plate-cell { width: 92px !important; }
  .pr-app th.pr-show-cell { width: 128px !important; }
  .pr-app .pr-pos { width: 22px; height: 22px; }
  .pr-app .pr-tag-rip, .pr-app .pr-tag-dir { margin-left: 0; }
  .pr-app .pr-export-btns { margin-left: 0; }
}

/* Gestione parcheggi */
.pr-app .pr-history { margin-top: 16px; }
.pr-app .pr-history li { padding: 8px 0; border-bottom: 1px solid var(--pr-hover); }
.pr-app .pr-history li:last-child { border-bottom: 0; }
.pr-app .pr-history b { display: block; font-size: 12.5px; font-weight: 600; }
.pr-app .pr-history small { display: block; font-size: 11px; color: var(--pr-slate); }

/* Lista auto */
.pr-app .pr-plate { display: inline-block; padding: 2px 8px 2px 12px; border: 1.5px solid #1e293b; border-radius: 5px; background: #fff; box-shadow: inset 5px 0 0 #1d4ed8; font: 700 12px/1.3 var(--pr-mono); letter-spacing: .06em; color: #1e293b; }
.pr-app .pr-show { display: inline-flex; border: 1px solid #ced4da; border-radius: 999px; overflow: hidden; background: #fff; }
.pr-app .pr-show-b { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; color: #475569; font-size: 11.5px; font-weight: 650; border-radius: 0; }
.pr-app .pr-show-b .pr-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.pr-app .pr-show-b + .pr-show-b { border-left: 1px solid #ced4da; }
.pr-app .pr-show-b.is-show.is-on { background: var(--pr-success); color: #fff; }
.pr-app .pr-show-b.is-no.is-on { background: var(--pr-danger); color: #fff; }
.pr-app button.pr-show-b:not(.is-on):hover { background: var(--pr-hover); }
.pr-app .pr-export { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--pr-ombra); border-left: 4px solid var(--pr-success); }
.pr-app .pr-export > div { flex: 1; min-width: 0; }
.pr-app .pr-export b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-export small { display: block; font-size: 11px; color: var(--pr-slate); }
.pr-app .pr-export .pr-ico { width: 26px; height: 26px; }
.pr-app .pr-export .is-xls { color: var(--pr-success); }
.pr-app .pr-export .is-pdf { color: var(--pr-danger); }
.pr-app .pr-export .is-dl { width: 18px; height: 18px; color: var(--pr-slate); }
@container prmain (max-width: 559px) {
  .pr-app .pr-show-b { padding: 0 8px; }
  .pr-app .pr-show-b .pr-ico { display: none; }
  .pr-app .pr-plate { padding: 2px 6px 2px 10px; font-size: 11.5px; }
}

/* Calendario festività (stile FullCalendar) */
.pr-app .pr-cal-card { padding: 14px 16px; }
.pr-app .pr-cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pr-app .pr-cal-title { flex: 1 1 120px; text-align: center; font-size: 17px; font-weight: 700; }
.pr-app .pr-btn-group { display: inline-flex; }
.pr-app .pr-btn-cal { height: 32px; min-width: 34px; padding: 0 10px; background: #2c3e50; color: #fff; border-radius: 0; }
.pr-app .pr-btn-group .pr-btn-cal:first-child { border-radius: 8px 0 0 8px; }
.pr-app .pr-btn-group .pr-btn-cal:last-child { border-radius: 0 8px 8px 0; }
.pr-app .pr-btn-group .pr-btn-cal + .pr-btn-cal { border-left: 1px solid #1a252f; }
.pr-app .pr-btn-cal-t { font-size: 12px; }
.pr-app > .pr-btn-cal, .pr-app .pr-cal-bar > .pr-btn-cal { border-radius: 8px; }
.pr-app .pr-btn-cal.is-active { background: #1a252f; }
.pr-app button.pr-btn-cal:hover { background: #1e2b37; }
.pr-app .pr-cal-dow, .pr-app .pr-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pr-app .pr-cal-dow { border: 1px solid var(--pr-line-2); border-bottom: 0; }
.pr-app .pr-cal-dow span { padding: 6px 2px; text-align: center; font-size: 11px; font-weight: 700; color: #475569; border-right: 1px solid var(--pr-line-2); }
.pr-app .pr-cal-dow span:last-child { border-right: 0; }
.pr-app .pr-cal-days { border-left: 1px solid var(--pr-line-2); border-top: 1px solid var(--pr-line-2); }
.pr-app .pr-day-cell { min-width: 0; min-height: 62px; padding: 4px 5px; border-right: 1px solid var(--pr-line-2); border-bottom: 1px solid var(--pr-line-2); overflow: hidden; }
.pr-app .pr-day-n { display: block; text-align: right; font-size: 11.5px; color: #334155; }
.pr-app .pr-day-cell.is-we { background: #fafafa; }
.pr-app .pr-day-cell.is-out .pr-day-n { color: #cbd5e1; }
.pr-app .pr-day-cell.is-today { background: #fff8db; }
.pr-app .pr-ev { display: flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 5px; border-radius: 4px; color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.pr-app .pr-ev span { overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-ev i { display: none; }
.pr-app .pr-ev.is-ric, .pr-app .pr-ev-dot.is-ric { background: #1e8e3e; }
.pr-app .pr-ev.is-sing, .pr-app .pr-ev-dot.is-sing { background: #d93025; }
.pr-app .pr-ev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pr-app .pr-cal-leg { display: flex; margin-top: 10px; gap: 6px 16px; font-size: 11.5px; color: var(--pr-slate-t); }
.pr-app .pr-cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.pr-app .pr-fest { margin-top: 16px; }
.pr-app .pr-fest-list li { display: grid; grid-template-columns: 10px 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--pr-hover); font-size: 12.5px; }
.pr-app .pr-fest-list li:last-child { border-bottom: 0; }
.pr-app .pr-fest-list li.pr-muted { display: block; }
.pr-app .pr-fest-list b { font-variant-numeric: tabular-nums; }
.pr-app .pr-fest-list small { color: var(--pr-slate); font-size: 11px; }
@container prmain (max-width: 519px) {
  .pr-app .pr-cal-card { padding: 12px 10px; }
  .pr-app .pr-day-cell { min-height: 42px; padding: 3px; }
  .pr-app .pr-ev { justify-content: center; margin-top: 4px; padding: 0; background: none !important; }
  .pr-app .pr-ev i { display: block; width: 8px; height: 8px; border-radius: 50%; }
  .pr-app .pr-ev.is-ric i { background: #1e8e3e; }
  .pr-app .pr-ev.is-sing i { background: #d93025; }
  .pr-app .pr-ev span { display: none; }
  .pr-app .pr-cal-title { order: -1; flex-basis: 100%; text-align: left; }
  .pr-app .pr-fest-list li { grid-template-columns: 10px 78px minmax(0, 1fr); }
  .pr-app .pr-fest-list small { display: none; }
}

/* =========================================================================
   Accesso
   ========================================================================= */
.pr-app.pr-login .pr-login-wrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; }
.pr-app .pr-login-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.pr-app .pr-login-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; text-align: center; }
.pr-app .pr-login-brand b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pr-app .pr-login-brand span { font-size: 12.5px; color: var(--pr-slate-t); }
.pr-app .pr-login-card { display: grid; gap: 14px; padding: 20px; }
.pr-app .pr-login-card .pr-btn-primary { height: 44px; margin-top: 2px; }
.pr-app .pr-login-card .pr-input { font-size: 12px; padding-right: 10px; }
.pr-app .pr-login-card .pr-input-ico .pr-input { padding-left: 34px; }
.pr-app .pr-login-card .pr-input-ico .pr-ico { left: 11px; }
.pr-app .pr-login-note { text-align: center; font-size: 11.5px; color: var(--pr-slate-t); }
.pr-app.pr-login .pr-nota { justify-content: center; }

/* =========================================================================
   Email simulate: scheda singola e schermata «Email inviate»
   ========================================================================= */
.pr-app.pr-scheda { position: relative; inset: auto; display: block; overflow: visible; background: transparent; }
.pr-app .pr-email { overflow: hidden; border: 1px solid var(--pr-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .35); text-align: left; }
.pr-app .pr-email-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--pr-line); }
.pr-app .pr-email-head > div { flex: 1; min-width: 0; }
.pr-app .pr-email-head b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-email-head small { display: block; font-size: 11px; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-email-head time { flex: none; font: 600 11px/1 var(--pr-mono); color: var(--pr-slate); }
.pr-app .pr-email-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--pr-indaco-tenue); color: var(--pr-indaco); }
.pr-app .pr-email-body { padding: 16px 18px 14px; }
.pr-app .pr-email-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--pr-indaco); }
.pr-app .pr-email-brand b { font-size: 14px; font-weight: 700; }
.pr-app .pr-email-brand span { margin-left: auto; font-size: 11px; color: var(--pr-slate); }
.pr-app .pr-email-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.pr-app .pr-email-title .pr-ico { width: 20px; height: 20px; }
.pr-app .pr-email.is-ok .pr-email-title { color: #0f5132; }
.pr-app .pr-email.is-ko .pr-email-title { color: #842029; }
.pr-app .pr-email-body > p { margin-top: 8px; font-size: 12.5px; color: #334155; }
.pr-app .pr-email-rows { margin-top: 12px; border: 1px solid var(--pr-line); border-radius: 10px; overflow: hidden; }
.pr-app .pr-email-rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--pr-line); }
.pr-app .pr-email-rows > div:last-child { border-bottom: 0; }
.pr-app .pr-email-rows dt { padding: 8px 10px; background: #f8fafc; font-size: 12px; font-weight: 600; color: #475569; }
.pr-app .pr-email-rows dd { padding: 8px 10px; font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.pr-app .pr-email-rows dd.is-ko { color: #b02a37; }
.pr-app .pr-email-body > p.pr-email-foot { margin-top: 12px; font-size: 11px; color: var(--pr-slate); }
@container pr (max-width: 379px) {
  .pr-app .pr-email-rows > div { grid-template-columns: minmax(0, 1fr); }
  .pr-app .pr-email-rows dt { padding-bottom: 2px; }
  .pr-app .pr-email-rows dd { padding-top: 2px; }
}
.pr-app .pr-mail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-app .pr-mail-col { padding: 6px; }
.pr-app .pr-mail-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; }
.pr-app button.pr-mail-item:hover { background: var(--pr-hover); }
.pr-app .pr-mail-item.is-active { background: var(--pr-indaco-tenue); }
.pr-app .pr-mail-item.is-new .pr-mail-txt b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--pr-indaco); vertical-align: 1px; }
.pr-app .pr-mail-txt { min-width: 0; }
.pr-app .pr-mail-txt b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-mail-txt small { display: block; font-size: 11px; color: var(--pr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-app .pr-mail-item time { font: 600 11px/1 var(--pr-mono); color: var(--pr-slate); }
.pr-app .pr-mail-dot { width: 8px; height: 8px; border-radius: 50%; }
.pr-app .pr-mail-dot.is-ok { background: var(--pr-success); }
.pr-app .pr-mail-dot.is-ko { background: var(--pr-danger); }
.pr-app .pr-mail-detail { min-width: 0; }
.pr-app .pr-mail-detail.is-empty { display: grid; place-items: center; min-height: 200px; border: 1.5px dashed var(--pr-line-2); border-radius: 16px; }
.pr-app .pr-mail-detail.is-empty p { display: inline-flex; align-items: center; gap: 8px; }
@container prmain (max-width: 639px) {
  .pr-app .pr-mail { grid-template-columns: minmax(0, 1fr); }
  .pr-app .pr-mail.has-sel .pr-mail-col, .pr-app .pr-mail-detail.is-empty { display: none; }
  .pr-app .pr-back { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-app *, .pr-app *::before, .pr-app *::after { animation: none !important; transition: none !important; }
}
