/* ===============================
   TUOIPUNTI — APP SHELL CLIENTE
   Mobile-first, app-like
   =============================== */

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

html, body {
  height: 100%;
  margin: 0;
  background: #f3f4f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.tp-app {
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* HEADER */
.tp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
}

.tp-app-title {
  font-weight: 600;
  font-size: 1rem;
}

.tp-circuit {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.tp-icon-btn {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
}

/* MAIN */
.tp-main {
  flex: 1;
  margin-top: 56px;
  margin-bottom: 72px;
  overflow-y: auto;
  padding: 12px;
}

/* ALERT */
.tp-alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.tp-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.tp-alert-success {
  background: #dcfce7;
  color: #166534;
}

/* CARD SELECTOR */
.tp-card-selector {
  margin-bottom: 12px;
}

.tp-section-title {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.tp-card-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tp-card-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e5e7eb;
  color: #111;
  text-decoration: none;
}

.tp-card-chip.active {
  background: #2563eb;
  color: #fff;
}

/* WALLET */
.tp-wallet {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.tp-wallet-frame {
  width: 100%;
  height: 70vh;
  border: 0;
}

/* FOOTER */
.tp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding-bottom: calc(12px + var(--safe-bottom));
}

/* CTA SCAN */
.tp-scan-btn {
  background: #2563eb;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,99,235,.4);
  margin-bottom: var(--safe-bottom);
}

.tp-scan-btn i {
  font-size: 1.2rem;
}

/* REFRESH ICON */
.tp-refresh-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
}

.tp-refresh-btn i {
  transition: transform 0.4s ease;
}

/* animazione durante refresh */
.tp-refreshing .tp-refresh-btn i {
  transform: rotate(360deg);
}

/* ===============================
   HEADER GRID (5 CELLE)
   =============================== */

.tp-header-grid {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 4px;
  align-items: center;
}

.tp-header-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* icone header */
.tp-header .tp-icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  padding: 4px;
  cursor: pointer;
}

.tp-header .tp-icon-btn:hover {
  opacity: 0.85;
}


/* ===============================
   HEADER LOGO ESERCENTE
   =============================== */

.tp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.tp-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-header-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* ===============================
   HEADER LOGO ESERCENTE (SAFE)
   =============================== */

.tp-header-logo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;

  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.tp-header-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}

/* ===============================
   OVERLAY ACCOUNT
   =============================== */

.tp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.55);
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
}

.tp-overlay.active {
  display: flex;
}

.tp-overlay-panel {
  width: 92%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  overflow: hidden;
}

/* HEADER */
.tp-overlay-header {
  height: 56px;
  background: var(--tp-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 600;
}

.tp-overlay-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* CONTENT */
.tp-overlay-content {
  padding: 16px;
}

.tp-account-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.tp-account-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
}

/* ===============================
   PROFILO CLIENTE
   =============================== */

.tp-profile-box {
  font-size: 0.95rem;
}

.tp-profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.tp-profile-row span {
  color: #6b7280;
}

/* ===============================
   LE MIE CARD
   =============================== */

.tp-cards-box {
  font-size: 0.95rem;
}

.tp-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  background: #fff;
}

.tp-card-row.active {
  border-color: var(--tp-primary);
  background: #eff6ff;
}

.tp-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tp-card-info {
  flex: 1;
}

.tp-card-qr {
  font-size: 0.85rem;
  word-break: break-all;
}

.tp-card-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tp-primary);
  color: #fff;
}

/* ===============================
   LOGO CARD (SAFE, ARMONIZZATO)
   =============================== */

.tp-card-logo {
  width: 40px;
  height: 40px;

  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;

  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.tp-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}

/* ===============================
   BADGE SALDO CARD
   =============================== */

.tp-card-badges {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.tp-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.tp-badge-euro {
  background: #16a34a;
  color: #fff;
}

.tp-badge-punti {
  background: #2563eb;
  color: #fff;
}

/* ===============================
   BADGE SALDO NUMERICO
   =============================== */

.tp-card-badges {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tp-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tp-badge-euro {
  background: #16a34a;
  color: #fff;
}

.tp-badge-punti {
  background: #2563eb;
  color: #fff;
}

.tp-card-badge {
  background: #111827;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
}

.tp-bell-on {
  color: #ffb020 !important; /* giallo caldo */
  filter: drop-shadow(0 0 4px rgba(255,176,32,.35));
}

/* STILE FOOTER */
/* Selettore specifico per il footer per evitare leak stilistici */
footer.tp-footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Riduzione larghezza pulsante QR e stile moderno */
footer.tp-footer .tp-scan-btn {
    flex-grow: 0 !important; /* Rimuove l'espansione forzata */
    flex-basis: auto;
    min-width: 200px; /* Larghezza controllata */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

footer.tp-footer .tp-scan-btn:active {
    transform: scale(0.97);
}

/* Restyling icona Calendario per renderla "premium" */
footer.tp-footer .tp-icon-btn {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8), 
        0 4px 6px rgba(0,0,0,0.05);
    text-shadow: 1px 2px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

footer.tp-footer .tp-icon-btn:hover {
    background: #ffffff !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ottimizzazione icone interne */
footer.tp-footer .tp-scan-btn i {
    font-size: 1.2rem;
}

/* ----------------------------------------------------------------------------------------------------------------------------------*/

/* Pagina login - Tema Federico */

/* Reset e Background della pagina di accesso */
body.bg-dark {
    background-color: #f4f7f9 !important; /* Grigio chiarissimo, professionale */
    color: #333 !important; /* Testo scuro per massimo contrasto */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Container Card Login */
.card {
    border: none !important;
    border-radius: 16px !important; /* Angoli più morbidi, stile moderno mobile */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important; /* Ombra leggera e diffusa */
    background-color: #ffffff !important;
    padding: 2rem !important;
}

/* Titolo e Label */
h1.h5 {
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem !important;
}

.form-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* Input Fields */
.form-control {
    border: 1.5px solid #e0e6ed !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    background-color: #f9fafb !important;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0056b3 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1) !important;
    outline: none;
}

/* Pulsante Primario */
.btn-primary {
    background-color: #0056b3 !important; /* Blu professionale AEG */
    border: none !important;
    border-radius: 10px !important;
    padding: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2) !important;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Link di registrazione */
a.small {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #0056b3 !important;
    text-decoration: none !important;
    font-weight: 500;
}

a.small:hover {
    text-decoration: underline !important;
}


/*----------------------------------------------*/
/* Shell Cliente - Tema Federico */

/* Configurazione Layout Mobile-First */
html, body.tp-app {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Blocca lo scroll del body per simulare app nativa */
    background-color: #f4f7f9;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tp-app {
    display: flex;
    flex-direction: column;
}

/* Header Professionale */
.tp-header {
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    flex-shrink: 0; /* Non si restringe */
}

.tp-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.tp-header-titles {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.tp-app-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.tp-circuit {
    font-size: 0.75rem;
    color: #0056b3;
    font-weight: 500;
}

/* Griglia Icone Header */
.tp-header-right {
    display: flex;
    gap: 8px;
}

.tp-icon-btn {
    background: #f0f3f7;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    transition: all 0.2s;
    text-decoration: none;
}

.tp-icon-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

/* MAIN CONTENT - Area Scorrevole */
.tp-main {
    flex-grow: 1; /* Prende tutto lo spazio tra header e footer */
    overflow-y: auto; /* Scroll verticale del contenuto */
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

/* Sezione Selettore Card */
.tp-card-selector {
    padding: 15px;
    background: #ffffff;
    max-height: 30%; /* Limita l'altezza per lasciare spazio al wallet */
    overflow-y: auto; 
    border-bottom: 2px solid #f0f3f7;
}

.tp-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0aec0;
    font-weight: 700;
    margin-bottom: 10px;
}

.tp-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-card-chip {
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1.5px solid #edf2f7;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s;
}

.tp-card-chip.active {
    background: #eef6ff;
    border-color: #0056b3;
    color: #0056b3;
    font-weight: 600;
}

/* WALLET SECTION */
.tp-wallet {
    flex-grow: 1; /* Il wallet occupa il resto dello spazio disponibile */
    overflow-y: auto;
    background: #f4f7f9;
}

.tp-wallet-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* FOOTER */
.tp-footer {
    height: 75px;
    background: #ffffff;
    border-top: 1px solid #e0e6ed;
    padding-bottom: env(safe-area-inset-bottom); /* Supporto per iPhone Notch */
    flex-shrink: 0;
}

.tp-scan-btn {
    background: #0056b3;
    color: white;
    border-radius: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* OVERLAY & PANELS (Account) */
.tp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.tp-overlay.active {
    display: flex;
    align-items: flex-end; /* Pannello che sale dal basso su mobile */
}

.tp-overlay-panel {
    width: 100%;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.tp-account-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.tp-account-list li {
    padding: 15px;
    border-bottom: 1px solid #f0f3f7;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #2d3748;
}

.tp-account-list li i {
    color: #0056b3;
    width: 20px;
}

/* Header Globale - Tema Federico */

.tp-header {
    height: 75px; /* Aumentato leggermente per ospitare un logo più grande */
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Ombra impercettibile per dare profondità */
    flex-shrink: 0;
    z-index: 100;
}

/* Logo Esercente */
.tp-header-logo {
    width: 52px; /* Più grande e visibile */
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f0f3f7;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Effetto "card" sul logo */
}

.tp-header-logo img {
    border-radius: 8px;
}

/* Titoli */
.tp-header-titles {
    margin-left: 12px;
}

.tp-app-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a202c;
    display: block;
    line-height: 1.1;
}

.tp-circuit {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0056b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulsanti Icona (Refined) */
.tp-icon-btn {
    background: #f8fafc !important; /* Sfondo quasi bianco ma distinto */
    border: 1px solid #e2e8f0 !important; /* Bordo sottile per definizione */
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #475569 !important; /* Grigio ardesia scuro per contrasto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tp-icon-btn:active {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: scale(0.92);
}

/* Colore specifico per icone d'azione */
.tp-refresh-btn {
    color: #0056b3 !important; /* Il refresh richiama il colore brand */
}

.fa-right-from-bracket {
    color: #e53e3e; /* Logout leggermente evidenziato in rosso soft */
}

/* Griglia Header */
.tp-header-right {
    display: flex;
    gap: 6px; /* Spazio ottimizzato per mobile */
}

/* Animazione Refresh */
.tp-refreshing .tp-refresh-btn i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Update Logo Header - Tema Federico */

.tp-header-logo {
    width: 65px; /* Aumentato ulteriormente */
    height: 65px; /* Quasi l'intera altezza dell'header */
    border-radius: 0; /* Rimuoviamo l'arrotondamento del contenitore */
    background: transparent; /* Nessun fondo */
    border: none !important; /* Rimosso bordo come richiesto */
    padding: 0 !important; /* Rimosso padding per usare tutto lo spazio */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important; /* Pulizia totale */
}

.tp-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene le proporzioni senza tagliare il logo */
    /* Se il logo ha uno sfondo bianco e vuoi che si integri perfettamente: */
    mix-blend-mode: multiply; 
}

/* Bilanciamento titoli per logo più grande */
.tp-header-titles {
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------------------------------------------------------------- */
/* Appuntamenti.php - Tema Federico */

/* Gestione Layout per Appuntamenti */
.tp-main {
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Gestiamo il padding internamente per lo scroll */
    overflow: hidden !important;
}

/* Barra di Stato Fissa (Notifiche e Switch) */
.tp-main > .d-flex.justify-content-between {
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #edf2f7;
    z-index: 10;
    flex-shrink: 0;
}

/* Styling dello Switch e Notifiche */
.tp-main .text-muted.small b {
    color: #0056b3;
    background: #eef6ff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.form-check-input:checked {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* LISTA APPUNTAMENTI SCORREVOLE */
.list-group {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    background: #f4f7f9;
    border-radius: 0 !important;
}

/* Item della lista come Card */
.list-group-item {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    padding: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.list-group-item:active {
    transform: scale(0.98);
    background: #fcfcfc !important;
}

/* Testi e Icone nella lista */
.list-group-item .text-muted {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

.list-group-item .fw-bold {
    color: #1e293b;
    font-size: 1rem;
    margin-top: 4px;
}

/* Pulsante Lente (Info) */
.btn-outline-info {
    color: #0056b3 !important;
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-info:hover {
    background: #0056b3 !important;
    color: #ffffff !important;
}

/* Icona Notifica Attiva */
.text-warning {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.2));
}

/* Badge Notifica nell'Header (se presente) */
.tp-bell-on {
    color: #0056b3;
    position: relative;
}

.tp-bell-on::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

body > main > div.d-flex.justify-content-between.align-items-center.mb-3 {
	margin-top: 10px !important;
}

/* Sistemazioni per PWA iOS */
.tp-overlay-panel {
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
/*  SELETTORE ACCESSO UTENTE/ESERCENTE */
.tp-role-box {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.tp-role-box > div {
  background:#fff;
  padding:30px;
  border-radius:16px;
  text-align:center;
}
.tp-role-box button {
  width:100%;
  margin:10px 0;
  padding:14px;
  font-weight:700;
}

/* SELETTORE ACCESSO UTENTE/ESERCENTE V2 */
/* ================================
   Overlay scelta ruolo login
================================ */

#tpRoleOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* sfondo scuro + blur */
.tp-role-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* card centrale */
.tp-role-card {
  position: relative;
  background: #ffffff;
  color: #111;
  width: 90%;
  max-width: 420px;
  padding: 30px 24px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  z-index: 1;
}
