/* =====================================================================================
   atlas-telefono.css - REV 1.0.0 - 24/11/2026 - Claude (sessione f89386 «ATLAS TELEFONO»), Build 1245
   GRAFICA DELL'APP DEL TELEFONO (/m/), ordine Max 23/11/2026: «rifai tutta la grafica dell'app
   telefono con Syncfusion e Quiver». Un solo foglio per tutte le pagine /m/:
   - due temi (CHIARO di serie, SCURO col pulsante luna) presi dalla palette del video d'intro
     (blu notte #040c1a, blu neon, «A» rossa); il tema sta su <html data-tm="chiaro|scuro">;
   - i componenti sono Syncfusion (tema fluent2 / fluent2-dark caricato da atlas-telefono.js) con
     la classe e-bigger sul contenitore: bottoni e campi a misura di dito;
   - le icone sono glifi Quiver (MGlifo / MIcona), mai emoji;
   - classi comuni tm-*: le pagine NON ridefiniscono colori propri, usano i token --tm-*.
   ===================================================================================== */

/* ---------- token: tema CHIARO (di serie) ---------- */
.atlas-mobile {
    --tm-bg: #f3f6fc;
    --tm-bg-alone: radial-gradient(120% 60% at 50% -10%, #dbe6ff 0%, rgba(219, 230, 255, 0) 70%);
    --tm-surface: rgba(255, 255, 255, .82);
    --tm-surface-pieno: #ffffff;
    --tm-surface-2: #eef2fa;
    --tm-border: rgba(15, 23, 42, .09);
    --tm-text: #0f172a;
    --tm-muted: #5b6478;
    --tm-debole: #8a93a6;
    --tm-a1: #2f6bff;
    --tm-a1b: #5b8cff;
    --tm-a1-tenue: rgba(47, 107, 255, .10);
    --tm-a2: #ff4d6d;
    --tm-ok: #16a34a;     --tm-ok-tenue: rgba(22, 163, 74, .12);
    --tm-warn: #d97706;   --tm-warn-tenue: rgba(217, 119, 6, .13);
    --tm-stop: #dc2626;   --tm-stop-tenue: rgba(220, 38, 38, .11);
    --tm-neu: #64748b;    --tm-neu-tenue: rgba(100, 116, 139, .12);
    --tm-info: #0891b2;   --tm-info-tenue: rgba(8, 145, 178, .12);
    --tm-ombra: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
    --tm-ombra-su: 0 16px 40px rgba(15, 23, 42, .14), 0 4px 10px rgba(15, 23, 42, .06);
    --tm-raggio: 20px;
    --tm-raggio-p: 14px;
    /* Syncfusion: l'accento di ATLAS al posto del blu Fluent */
    --color-sf-primary: #2f6bff;
    --color-sf-primary-light: #c9d8ff;
    --color-sf-primary-lighter: #eef3ff;
    --color-sf-primary-dark: #1f55e0;
    --color-sf-primary-darker: #173fa8;
}

/* ---------- token: tema SCURO (blu notte del video) ---------- */
html[data-tm="scuro"] .atlas-mobile {
    --tm-bg: #040c1a;
    --tm-bg-alone: radial-gradient(110% 55% at 50% -5%, rgba(29, 78, 216, .38) 0%, rgba(4, 12, 26, 0) 70%);
    --tm-surface: rgba(15, 31, 60, .72);
    --tm-surface-pieno: #0d1b33;
    --tm-surface-2: rgba(255, 255, 255, .05);
    --tm-border: rgba(148, 178, 230, .16);
    --tm-text: #e7eefb;
    --tm-muted: #9fb0cc;
    --tm-debole: #6f80a0;
    --tm-a1: #3d8bff;
    --tm-a1b: #6aa8ff;
    --tm-a1-tenue: rgba(61, 139, 255, .16);
    --tm-a2: #ff5a74;
    --tm-ok: #34d399;     --tm-ok-tenue: rgba(52, 211, 153, .14);
    --tm-warn: #fbbf24;   --tm-warn-tenue: rgba(251, 191, 36, .14);
    --tm-stop: #f87171;   --tm-stop-tenue: rgba(248, 113, 113, .15);
    --tm-neu: #94a3b8;    --tm-neu-tenue: rgba(148, 163, 184, .14);
    --tm-info: #22d3ee;   --tm-info-tenue: rgba(34, 211, 238, .13);
    --tm-ombra: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
    --tm-ombra-su: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(61, 139, 255, .25);
    --color-sf-primary: #3d8bff;
    --color-sf-primary-light: #1d3d75;
    --color-sf-primary-lighter: #10254a;
    --color-sf-primary-dark: #6aa8ff;
    --color-sf-primary-darker: #9cc4ff;
}

/* ---------- contenitore dell'app ---------- */
html:has(.atlas-mobile), body:has(.atlas-mobile) { background: var(--tm-bg-fondo, #f3f6fc); }
html[data-tm="scuro"]:has(.atlas-mobile), html[data-tm="scuro"] body:has(.atlas-mobile) { --tm-bg-fondo: #040c1a; background: #040c1a; }

.atlas-mobile {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--tm-bg-alone), var(--tm-bg);
    background-attachment: fixed;
    color: var(--tm-text);
    line-height: 1.45;   /* e-bigger di Syncfusion porta un'interlinea di 48 px che le etichette ereditavano */
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .35s ease, color .35s ease;
}
.atlas-mobile *, .atlas-mobile *::before, .atlas-mobile *::after { box-sizing: border-box; }
.atlas-mobile a { color: var(--tm-a1); }
.atlas-mobile b, .atlas-mobile strong { color: inherit; }

/* piede: revisione + tema */
.tm-piede {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 18px 16px 26px; font-size: 11px; color: var(--tm-debole); letter-spacing: .3px;
}
.tm-piede-marchio { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: 2px; color: var(--tm-muted); }
.tm-piede-marchio img { width: 16px; height: 16px; }
.tm-tema {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tm-border);
    background: var(--tm-surface); color: var(--tm-muted); border-radius: 999px; padding: 6px 12px;
    font: 700 11.5px 'Segoe UI', sans-serif; cursor: pointer; backdrop-filter: blur(10px);
}
.tm-tema:active { transform: scale(.96); }
.tm-solo-chiaro { display: inline-flex; }
.tm-solo-scuro { display: none; }
html[data-tm="scuro"] .tm-solo-chiaro { display: none; }
html[data-tm="scuro"] .tm-solo-scuro { display: inline-flex; }

/* ---------- pagina ---------- */
.tm-pagina { max-width: 560px; margin: 0 auto; padding: 0 16px 20px; animation: tm-entra .35s ease both; }
.tm-pagina.larga { max-width: 760px; }
.tm-centro { text-align: center; }
@keyframes tm-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* testata (MTestata) */
.tm-testata {
    position: sticky; top: 0; z-index: 50; margin: 0 -16px 16px; padding: 10px 12px 10px 10px;
    padding-top: max(10px, env(safe-area-inset-top));
    display: flex; align-items: center; gap: 10px;
    background: var(--tm-surface); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--tm-border);
}
.tm-testata-ico { flex: none; }
.tm-testata-testi { flex: 1; min-width: 0; }
.tm-testata-titolo { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--tm-text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-testata-sotto { font-size: 12px; color: var(--tm-muted); margin-top: 1px; overflow-wrap: anywhere; line-height: 1.35; }   /* 1245b D5: si legge tutto, anche la revisione */
.tm-testata-dx { flex: none; display: flex; align-items: center; gap: 6px; }
.tm-marchio { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 6px rgba(47, 107, 255, .35)); }
.atlas-mobile .e-btn.tm-tondo {
    width: 42px; height: 42px; min-width: 42px; min-height: 42px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tm-surface-2); border: 1px solid var(--tm-border); color: var(--tm-text); box-shadow: none;
}
.atlas-mobile .e-btn.tm-tondo:active { transform: scale(.94); }

/* marchio grande (accesso, schermate d'ingresso) */
.tm-hero { text-align: center; padding: 30px 0 8px; }
.tm-hero-logo { display: inline-flex; align-items: center; gap: 12px; }
.tm-hero-logo img { width: 58px; height: 58px; filter: drop-shadow(0 6px 18px rgba(47, 107, 255, .45)); }
.tm-hero-nome { font-size: 30px; font-weight: 900; letter-spacing: 7px; color: var(--tm-text); }
.tm-hero-nome .a { color: var(--tm-a2); text-shadow: 0 0 18px rgba(255, 77, 109, .45); }
.tm-hero-titolo { font-size: 22px; font-weight: 800; margin: 18px 0 4px; color: var(--tm-text); }
.tm-hero-sotto { font-size: 13.5px; color: var(--tm-muted); }

/* ---------- schede in vetro ---------- */
.atlas-mobile .e-card.tm-scheda, .tm-scheda {
    background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-raggio);
    box-shadow: var(--tm-ombra); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    padding: 16px; margin-bottom: 14px; color: var(--tm-text); overflow: visible; min-height: 0;
    transition: transform .2s ease, box-shadow .2s ease, background-color .35s ease, border-color .3s ease;
    display: block; text-align: left;
}
.atlas-mobile .e-card.tm-scheda:hover { border-color: var(--tm-border); }
.tm-scheda.ok { border-left: 4px solid var(--tm-ok); }
.tm-scheda.warn { border-left: 4px solid var(--tm-warn); }
.tm-scheda.stop { border-left: 4px solid var(--tm-stop); }
.tm-scheda.info { border-left: 4px solid var(--tm-a1); }
.tm-scheda.neu { border-left: 4px solid var(--tm-neu); }
.tm-scheda.cliccabile { cursor: pointer; }
.tm-scheda.cliccabile:hover, .tm-solleva:hover { transform: translateY(-2px); box-shadow: var(--tm-ombra-su); }
.tm-scheda.cliccabile:active, .tm-solleva:active { transform: scale(.985); }
.tm-scheda-testa { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tm-scheda-titolo { font-size: 15.5px; font-weight: 800; color: var(--tm-text); line-height: 1.25; }
.tm-scheda-sotto { font-size: 12.5px; color: var(--tm-muted); margin-top: 2px; line-height: 1.4; }
.tm-scheda-corpo { font-size: 13.5px; line-height: 1.55; color: var(--tm-text); }
.tm-scheda-piede { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.tm-sezione {
    display: flex; align-items: center; gap: 8px; margin: 20px 2px 10px;
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--tm-muted);
}
.tm-sezione::after { content: ""; flex: 1; height: 1px; background: var(--tm-border); }

/* righe di elenco dentro una scheda */
.tm-elenco { display: flex; flex-direction: column; }
.tm-riga { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--tm-border); }
.tm-riga:last-child { border-bottom: none; }
.tm-riga-testi { flex: 1; min-width: 0; }
.tm-riga-titolo { font-size: 14px; font-weight: 700; color: var(--tm-text); overflow-wrap: anywhere; }
.tm-riga-sotto { font-size: 12px; color: var(--tm-muted); margin-top: 2px; overflow-wrap: anywhere; }
.tm-riga-valore { flex: none; font-size: 14px; font-weight: 800; color: var(--tm-text); text-align: right; }
.tm-riga.cliccabile { cursor: pointer; }
.tm-riga.cliccabile:active { background: var(--tm-a1-tenue); border-radius: 12px; }

/* coppie etichetta / valore */
.tm-dati { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.tm-dati dt { color: var(--tm-muted); font-weight: 600; }
.tm-dati dd { margin: 0; color: var(--tm-text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* ---------- tessere della home (griglia di voci) ---------- */
.tm-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .tm-griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-tessera {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    min-height: 128px; padding: 18px 10px 14px; text-align: center; cursor: pointer;
    background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-raggio);
    box-shadow: var(--tm-ombra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--tm-text); font-family: inherit; transition: transform .2s ease, box-shadow .2s ease;
    animation: tm-entra .4s ease both;
}
.tm-tessera:hover { transform: translateY(-3px); box-shadow: var(--tm-ombra-su); }
.tm-tessera:active { transform: scale(.96); }
.tm-tessera-titolo { font-size: 14px; font-weight: 800; line-height: 1.2; }
.tm-tessera-sotto { font-size: 11px; color: var(--tm-muted); line-height: 1.3; }
.tm-tessera .e-badge { position: absolute; top: 10px; right: 10px; }
.tm-griglia > :nth-child(2) { animation-delay: .04s; } .tm-griglia > :nth-child(3) { animation-delay: .08s; }
.tm-griglia > :nth-child(4) { animation-delay: .12s; } .tm-griglia > :nth-child(5) { animation-delay: .16s; }
.tm-griglia > :nth-child(6) { animation-delay: .2s; }  .tm-griglia > :nth-child(n+7) { animation-delay: .24s; }

/* ---------- icona a tessera colorata (MIcona) ---------- */
.tm-icona {
    display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff;
    border-radius: 28%; box-shadow: 0 6px 16px rgba(47, 107, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    background: linear-gradient(135deg, #5b8cff, #2f6bff);
}
.tm-icona.c-blu    { background: linear-gradient(135deg, #5b8cff, #2f6bff); box-shadow: 0 6px 16px rgba(47, 107, 255, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-verde  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 16px rgba(5, 150, 105, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-ambra  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 16px rgba(217, 119, 6, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-rosso  { background: linear-gradient(135deg, #ff7a8f, #e11d48); box-shadow: 0 6px 16px rgba(225, 29, 72, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-viola  { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 6px 16px rgba(124, 58, 237, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-ciano  { background: linear-gradient(135deg, #22d3ee, #0891b2); box-shadow: 0 6px 16px rgba(8, 145, 178, .30), inset 0 1px 0 rgba(255,255,255,.35); }
.tm-icona.c-grigio { background: linear-gradient(135deg, #94a3b8, #475569); box-shadow: 0 6px 16px rgba(71, 85, 105, .28), inset 0 1px 0 rgba(255,255,255,.3); }
.tm-icona.c-tenue  { background: var(--tm-a1-tenue); color: var(--tm-a1); box-shadow: none; }

/* ---------- pill di stato: sempre pallino + testo ---------- */
.tm-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; line-height: 1.3; white-space: nowrap;
    background: var(--tm-neu-tenue); color: var(--tm-neu);
}
.tm-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.tm-pill.ok { background: var(--tm-ok-tenue); color: var(--tm-ok); }
.tm-pill.warn { background: var(--tm-warn-tenue); color: var(--tm-warn); }
.tm-pill.stop { background: var(--tm-stop-tenue); color: var(--tm-stop); }
.tm-pill.info { background: var(--tm-a1-tenue); color: var(--tm-a1); }
.tm-pill.neu { background: var(--tm-neu-tenue); color: var(--tm-neu); }
.tm-pill.attivo::before { animation: tm-pulsa 1.6s ease-in-out infinite; }
@keyframes tm-pulsa { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 5px transparent; } }

/* alone pulsante (elemento attivo / in corso) */
.tm-alone { animation: tm-alone 2.2s ease-in-out infinite; }
@keyframes tm-alone { 0%, 100% { box-shadow: var(--tm-ombra), 0 0 0 0 rgba(47, 107, 255, .0); } 50% { box-shadow: var(--tm-ombra), 0 0 0 6px rgba(47, 107, 255, .18); } }

/* numeri grandi (contatori) */
.tm-numeri { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tm-numero { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 16px; padding: 12px 10px; text-align: center; box-shadow: var(--tm-ombra); }
.tm-numero-v { font-size: 26px; font-weight: 900; line-height: 1.1; color: var(--tm-text); font-variant-numeric: tabular-nums; }
.tm-numero-e { font-size: 11px; font-weight: 700; color: var(--tm-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }
.tm-numero.ok .tm-numero-v { color: var(--tm-ok); } .tm-numero.warn .tm-numero-v { color: var(--tm-warn); }
.tm-numero.stop .tm-numero-v { color: var(--tm-stop); } .tm-numero.info .tm-numero-v { color: var(--tm-a1); }

/* stato vuoto */
.tm-vuoto { text-align: center; padding: 30px 16px; color: var(--tm-muted); font-size: 13.5px; line-height: 1.5; }
.tm-vuoto .tm-icona { margin-bottom: 12px; }
.tm-vuoto-titolo { font-size: 15.5px; font-weight: 800; color: var(--tm-text); margin-bottom: 4px; }

/* testi */
.tm-testo { font-size: 13.5px; line-height: 1.6; color: var(--tm-text); }
.tm-nota { font-size: 12px; line-height: 1.5; color: var(--tm-muted); }
.tm-debole { color: var(--tm-debole); }
.tm-forte { font-weight: 800; }
.tm-ok-t { color: var(--tm-ok); } .tm-warn-t { color: var(--tm-warn); } .tm-stop-t { color: var(--tm-stop); } .tm-info-t { color: var(--tm-a1); }

/* ---------- moduli ---------- */
.tm-campo { margin-bottom: 14px; text-align: left; }
.tm-campo > label, .tm-etichetta {
    display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--tm-muted); margin: 0 0 6px 2px; line-height: 1.3;
}
.tm-campo .tm-nota { margin: 5px 2px 0; }
.tm-oppure { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; color: var(--tm-debole); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tm-oppure::before, .tm-oppure::after { content: ""; flex: 1; height: 1px; background: var(--tm-border); }

/* colonna di azioni */
.tm-azioni { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tm-azioni.riga { flex-direction: row; flex-wrap: wrap; }
.tm-azioni.riga > * { flex: 1 1 140px; }
/* barra azioni fissa in fondo (i comandi restano sempre a portata di dito) */
.tm-barra-fondo {
    position: sticky; bottom: 0; z-index: 40; margin: 16px -16px 0; padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--tm-surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--tm-border); display: flex; gap: 10px;
}
.tm-barra-fondo > * { flex: 1; }

/* ---------- Syncfusion dentro l'app ---------- */
.atlas-mobile .e-btn { border-radius: var(--tm-raggio-p); font-weight: 700; font-family: inherit; letter-spacing: .1px; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.atlas-mobile .e-btn:not(.e-flat):not(.tm-tondo):active { transform: scale(.98); }
.atlas-mobile .e-btn.e-block { min-height: 50px; font-size: 15.5px; }
/* testi lunghi dei bottoni e delle caselle: a capo, mai oltre il bordo dello schermo (giro 1245: 360 px) */
.atlas-mobile .e-btn:not(.tm-tondo) { white-space: normal; height: auto; line-height: 1.25; overflow-wrap: anywhere; max-width: 100%; }
.atlas-mobile .e-checkbox-wrapper, .atlas-mobile .e-checkbox-wrapper label { max-width: 100%; }
.atlas-mobile .e-checkbox-wrapper .e-label { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; min-width: 0; flex: 1 1 auto; }
.atlas-mobile .e-checkbox-wrapper label { display: flex; align-items: flex-start; width: 100%; }
.atlas-mobile .e-checkbox-wrapper .e-frame { flex: none; }
.atlas-mobile .e-btn.e-primary:not(.e-outline):not(.e-flat) {
    background: linear-gradient(135deg, var(--tm-a1b), var(--tm-a1)); border-color: transparent; color: #fff;
    box-shadow: 0 8px 20px rgba(47, 107, 255, .32);
}
.atlas-mobile .e-btn.e-success:not(.e-outline):not(.e-flat) { background: linear-gradient(135deg, #22c55e, #15803d); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.atlas-mobile .e-btn.e-danger:not(.e-outline):not(.e-flat) { background: linear-gradient(135deg, #f43f5e, #dc2626); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, .28); }
.atlas-mobile .e-btn.e-warning:not(.e-outline):not(.e-flat) { background: linear-gradient(135deg, #fbbf24, #d97706); border-color: transparent; color: #1f1300; box-shadow: 0 8px 20px rgba(217, 119, 6, .26); }
.atlas-mobile .e-btn.e-info:not(.e-outline):not(.e-flat) { background: linear-gradient(135deg, #22d3ee, #0891b2); border-color: transparent; color: #fff; }
.atlas-mobile .e-btn:not(.e-primary):not(.e-success):not(.e-danger):not(.e-warning):not(.e-info):not(.e-flat):not(.tm-tondo) {
    background: var(--tm-surface-pieno); border: 1px solid var(--tm-border); color: var(--tm-text);
}
.atlas-mobile .e-btn.e-flat { background: transparent; color: var(--tm-a1); border-color: transparent; }
.atlas-mobile .e-btn:disabled, .atlas-mobile .e-btn.e-disabled { opacity: .55; box-shadow: none; }
.atlas-mobile .e-btn .mglifo { margin-right: 7px; }
.atlas-mobile .e-btn.tm-tondo .mglifo { margin-right: 0; }

.atlas-mobile .e-input-group, .atlas-mobile .e-input-group.e-control-wrapper,
.atlas-mobile .e-float-input, .atlas-mobile .e-float-input.e-control-wrapper {
    border-radius: 12px !important; background: var(--tm-surface-pieno); border-color: var(--tm-border);
}
.atlas-mobile .e-input-group input.e-input, .atlas-mobile .e-input-group textarea.e-input,
.atlas-mobile input.e-input, .atlas-mobile textarea.e-input { font-size: 16px; font-family: inherit; color: var(--tm-text); }
.atlas-mobile .e-input-group::before, .atlas-mobile .e-input-group::after { display: none; }

/* 1245b: e-bigger porta 48 px di interlinea anche dentro le schede Syncfusion (e-card): testi distanziati nel MES e nelle richieste */
.atlas-mobile .e-card, .atlas-mobile .e-card * { line-height: 1.45; }
.atlas-mobile .e-card .e-btn, .atlas-mobile .e-card .e-input, .atlas-mobile .e-card .e-input-group { line-height: normal; }
/* 1245b D7: badge rosso leggibile anche nel tema scuro */
html[data-tm="scuro"] .atlas-mobile .e-badge.e-badge-danger { background: #dc2626; color: #fff; }
/* 1245b D4: tendine e calendari si aprono FUORI dall'app (in fondo alla pagina): voci a misura di dito, blu notte nel tema scuro */
html[data-tm] .e-popup .e-list-item, html[data-tm] .e-popup .e-list-group-item { min-height: 46px; line-height: 46px; font-size: 15.5px; }
html[data-tm] .e-popup .e-list-item { white-space: normal; line-height: 1.3; display: flex; align-items: center; padding-top: 8px; padding-bottom: 8px; }
html[data-tm] .e-popup.e-popup-open { border-radius: 14px; overflow: hidden; }
html[data-tm="scuro"] .e-popup.e-popup-open, html[data-tm="scuro"] .e-popup .e-content, html[data-tm="scuro"] .e-popup .e-list-parent,
html[data-tm="scuro"] .e-popup .e-calendar, html[data-tm="scuro"] .e-popup .e-calendar .e-header, html[data-tm="scuro"] .e-popup .e-calendar .e-content,
html[data-tm="scuro"] .e-popup .e-timepicker, html[data-tm="scuro"] .e-datetimepopup-wrapper { background-color: #0d1b33; }
html[data-tm="scuro"] .e-popup .e-list-item:not(.e-active):not(.e-hover), html[data-tm="scuro"] .e-popup .e-list-group-item { background-color: #0d1b33; color: #e7eefb; }
html[data-tm] .e-popup .e-calendar .e-content td > .e-day { width: 40px; height: 40px; line-height: 40px; font-size: 15px; }

/* SfMessage: esiti a video */
.atlas-mobile .e-message { border-radius: var(--tm-raggio-p); margin: 0 0 12px; font-family: inherit; text-align: left; }
.atlas-mobile .e-message .e-msg-content { font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* SfTab / SfAccordion / SfListView in vetro */
.atlas-mobile .e-tab .e-tab-header { background: transparent; }
.atlas-mobile .e-tab .e-content { background: transparent; }
.atlas-mobile .e-accordion { background: transparent; border: none; }
.atlas-mobile .e-accordion .e-acrdn-item { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.atlas-mobile .e-accordion .e-acrdn-item .e-acrdn-header { background: transparent; }
.atlas-mobile .e-listview { background: transparent; border: none; }

/* SfDialog: a tutta larghezza sul telefono */
.atlas-mobile .e-dialog, .e-dialog.tm-dialogo { border-radius: var(--tm-raggio); max-width: calc(100vw - 24px); }
.e-dialog.tm-dialogo .e-dlg-header-content { border-radius: var(--tm-raggio) var(--tm-raggio) 0 0; }

/* badge Syncfusion (classi del tema) */
.atlas-mobile .e-badge { font-weight: 800; }

/* ---------- immagini, foto, tabelle ---------- */
.tm-foto { width: 100%; border-radius: 16px; display: block; object-fit: cover; }
.tm-tabella-box { overflow-x: auto; border-radius: 14px; border: 1px solid var(--tm-border); }
.tm-tabella { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm-tabella th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--tm-muted); padding: 9px 10px; background: var(--tm-surface-2); }
.tm-tabella td { padding: 10px; border-top: 1px solid var(--tm-border); color: var(--tm-text); }

/* rispetto per chi chiede meno movimento */
@media (prefers-reduced-motion: reduce) {
    .atlas-mobile *, .atlas-mobile *::before, .atlas-mobile *::after { animation: none !important; transition: none !important; }
}
