/* ==========================================================
   DXZone Events — UI Extension
   File:    /css/dxzone-events-26.css
   Version: 1.10.0
   Date:    2026-07-18

   v1.10.0 — Barra di progresso eventi LIVE (event.php v1.19.0 +
             dxzone-events-26.js v1.1.0):
   - .dxe-progress / -track / -fill / -label: barra "grande" nell'hero
     one-shot (DXpedition/DX Operations/Special Events/Hamfest) e nel
     next block Contest su event.php. Markup sempre presente nell'HTML
     (display:none inline da PHP), il JS la mostra/valorizza solo se
     l'evento e' live in questo momento (mai una percentuale scritta
     server-side: la pagina e' cacheata fino a 1h).
   - .dxe-progress-inline / -track / -fill / -label: versione compatta
     iniettata via JS DENTRO celle/righe gia' esistenti di calendar.php
     (tabella Agenda, righe Live Today) — NESSUNA modifica PHP a
     calendar.php: il JS crea questi nodi a runtime dentro contenitori
     che gia' espongono gli estremi start/end via data-attributes.

   v1.9.0 — OTTIMIZZAZIONE (nessuna modifica visiva intenzionale se non
            dove esplicitamente indicato) dopo diverse sessioni di
            aggiunte incrementali. Verificato l'uso reale di ogni classe
            contro calendar.php/event.php/events-manager.php prima di
            rimuovere qualunque cosa.
   - RIMOSSO codice morto (nessun chiamante PHP residuo):
     .dxe-weekend-title/-card/-name(+tier)/-meta/-exchange/-bands
       (vecchia vista "This Weekend" a card, sostituita da Next 8 Days);
     .dxe-dxped-flatlist/.dxe-dxped-row(+varianti) (vecchia flatlist
       DXpedition, assorbita da Agenda/Next 8 Days unificate);
     .dxe-agenda-group/-weekend/-item/-type-icon/-title/-range/-countdown
       (vecchia vista Agenda a blocchi per weekend, sostituita dalla
       tabella ordinabile dxe-agenda-table);
     .dxe-dxped-section/-title/-cards/-card(+.is-live)/-call/-entity/
       -dates (blocco "DXpedition layer" ancora piu' vecchio);
     .dxe-badge-dxped (badge testuale sostituito da .dxe-badge-major
       ecc. + is-type-* sulle rese correnti);
     .dxe-details-grid/-row/-label/-value (sezione "Contest Details"
       pubblica rimossa da event.php in una release precedente);
     riferimenti a .dxe-onair-strip/-chip nella regola @media print.
   - CONSOLIDATO sistema colori tipo/tier in UNA fonte (vedi sezione
     "SISTEMA COLORI TIPO/TIER"): la Gantt bar, il chip Agenda, il chip
     mese e il pallino sidebar condividono ora le stesse classi
     (.dxe-badge-major/regional/specialty/local per i tier contest,
     .is-dxped/.is-type-ops/.is-type-ses per i tipi a colore fisso) SENZA
     ridichiarare i colori per ogni componente.
   - FIX .dxe-badge-draft: assoluto scoped al solo contesto Gantt.
   - NUOVO (dalla sessione corrente, gia' in produzione lato PHP):
     vista "Next 8 Days" (.dxe-week-glance, sostituisce This Weekend),
     Importance chips (.dxe-importance-chip, sostituiscono la select),
     Agenda type chip per riga (.dxe-agenda-type-chip).

   v1.8.0 — RIORDINO NAVIGAZIONE (calendar.php v2.4.0)
   v1.7.0 — VISTA "LIVE TODAY" (calendar.php v2.3.0)
   v1.6.0 — NAV ROW UNIFICATA + rimozione chip tipo
   v1.3.0 — UI pack — tz pill, chip filtri attivi, today line, sticky
            header, empty state, hint mobile, toolbar row.
   v1.2.0 — FIX label DXpedition invisibili nel Gantt.
   v1.1.0 — fix layout Gantt; shading colonne weekend.

   Caricato DOPO dxzone-dir-26.css (e dopo dxzone-tools-26.css se
   presente sulla stessa pagina — nessun conflitto: prefisso dxe-).
   Riusa i token --dxt-* di dxzone-tools-26.css (stesso accent).
   ========================================================== */

:root {
  --dxt-accent:        #0891b2;
  --dxt-accent-dark:   #0369a1;
  --dxt-accent-light:  #e0f2fe;
  --dxt-accent-muted:  #7dd3fc;
  --dxt-result:        #059669;
  --dxt-warn:          #d97706;
  --dxt-error:         #dc2626;
  --dxt-surface:       #f8fafc;
  --dxt-surface-2:     #f1f5f9;
  --dxt-border:        #e2e8f0;
  --dxt-border-dark:   #cbd5e1;
  --dxt-text:          #1e293b;
  --dxt-text-muted:    #64748b;
  --dxt-text-faint:    #94a3b8;
  --dxt-mono:          'Fira Mono', 'Cascadia Code', 'Consolas', monospace;
  --dxt-radius-card:   14px;

  --dxe-tier-major:    #b45309;
  --dxe-tier-major-bg: #fffbeb;
  --dxe-tier-regional: #4338ca;
  --dxe-tier-regional-bg: #eef2ff;
  --dxe-tier-specialty: #0891b2;
  --dxe-tier-specialty-bg: #ecfeff;
  --dxe-tier-local:    #64748b;
  --dxe-tier-local-bg: #f1f5f9;
  --dxe-type-dxped:    #0d6efd;
  --dxe-type-dxped-dark: #0a58ca;
  --dxe-type-ops:      #fd7e14;
  --dxe-type-ses:      #7c3aed;
  --dxe-type-ses-dark: #5b21b6;
  --dxe-live:          #dc2626;
  --dxe-weekend-tint:  rgba(8, 145, 178, .055);
}

/* ============================================================
   PAGE TITLE / SECTION TITLES
============================================================ */
.dxe-page-title { margin: 8px 0 14px; }

.dxe-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; color: var(--dxt-text);
  padding-bottom: 10px; border-bottom: 2px solid var(--dxt-border);
  margin: 28px 0 14px;
}
.dxe-section-title i { color: var(--dxt-accent); }

/* ============================================================
   ADMIN BANNER (draft preview)
============================================================ */
.dxe-admin-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fef3c7; border: 1px solid #fbbf24; color: #78350f;
  border-radius: 8px; padding: 10px 16px; margin-bottom: 16px;
  font-size: .85rem; font-weight: 600;
}
.dxe-admin-banner i { color: #d97706; }
.dxe-admin-edit-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  color: #78350f; text-decoration: underline; font-weight: 700;
}

/* ============================================================
   FAMILY TABS (navigazione primaria, LIVELLO 1)
============================================================ */
.dxe-family-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.dxe-family-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; text-decoration: none;
  font-size: .95rem; font-weight: 800; letter-spacing: .01em;
  background: #fff; border: 2px solid var(--dxt-border);
  color: var(--dxt-text-muted); transition: .15s; white-space: nowrap;
}
.dxe-family-tab i { font-size: 1.05rem; }
.dxe-family-tab:hover { border-color: var(--dxt-accent); color: var(--dxt-accent-dark); transform: translateY(-1px); }
.dxe-family-tab.active {
  background: var(--dxt-accent); border-color: var(--dxt-accent);
  color: #fff; box-shadow: 0 3px 10px rgba(8,145,178,.35);
}
.dxe-family-tab.is-disabled { opacity: .4; cursor: not-allowed; border-style: dashed; }
.dxe-family-tab.is-disabled:hover { border-color: var(--dxt-border); color: var(--dxt-text-muted); transform: none; }

@media (max-width: 767.98px) {
  .dxe-family-tab { padding: 9px 14px; font-size: .84rem; gap: 7px; }
  .dxe-family-tab.is-disabled { display: none; }
}
@media (max-width: 575.98px) {
  .dxe-family-tab { padding: 8px 12px; font-size: .78rem; border-radius: 10px; }
  .dxe-family-tab i { font-size: .95rem; }
}
@media (prefers-color-scheme: dark) {
  .dxe-family-tab { background: #0f172a; border-color: #334155; }
}

/* ============================================================
   VIEW TABS
============================================================ */
.dxe-view-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--dxt-surface-2); border-radius: 10px; padding: 4px;
  width: fit-content; margin: 0 0 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.dxe-view-tab {
  padding: 7px 14px; border-radius: 7px; font-size: .82rem; font-weight: 600;
  color: var(--dxt-text-muted); text-decoration: none; transition: .15s;
  white-space: nowrap;
}
.dxe-view-tab:hover { color: var(--dxt-accent-dark); }
.dxe-view-tab.active { background: #fff; color: var(--dxt-accent-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

@media (max-width: 575.98px) {
  .dxe-view-tabs { width: 100%; padding: 3px; }
  .dxe-view-tab { padding: 6px 11px; font-size: .76rem; }
}

/* ============================================================
   MOBILE HINT
============================================================ */
.dxe-mobile-hint {
  display: none; align-items: center; gap: 8px;
  background: var(--dxt-accent-light); border: 1px solid var(--dxt-accent-muted);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
  font-size: .8rem; color: var(--dxt-accent-dark);
}
.dxe-mobile-hint a { color: var(--dxt-accent-dark); font-weight: 700; }
.dxe-hint-close {
  margin-left: auto; border: none; background: transparent;
  font-size: 1.1rem; line-height: 1; color: var(--dxt-accent-dark);
  cursor: pointer; padding: 0 4px;
}
@media (max-width: 480px) {
  .dxe-mobile-hint { display: flex; }
}

/* ============================================================
   FILTERS BAR + ACTIVE CHIPS + IMPORTANCE CHIPS
============================================================ */
.dxe-filters-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 14px;
}
.dxe-filter-group { display: flex; flex-direction: column; gap: 3px; }
.dxe-filter-label {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--dxt-text-faint); padding-left: 2px;
}
.dxe-filter-group-reset { justify-content: flex-end; }
.dxe-filter-group-search { min-width: 200px; }
.dxe-search-row { display: flex; gap: 4px; }
.dxe-search-input { min-width: 160px; }
.dxe-search-btn { flex-shrink: 0; }
.dxe-filter-select {
  width: auto; min-width: 130px; font-size: .82rem;
  border-color: var(--dxt-border-dark);
}
.dxe-filter-select:focus { border-color: var(--dxt-accent); box-shadow: 0 0 0 3px rgba(8,145,178,.15); }
.dxe-filter-reset {
  font-size: .78rem; color: var(--dxt-error); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; height: 31px;
}
.dxe-filter-reset:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
  .dxe-filters-bar { gap: 8px; }
  .dxe-filter-select { min-width: 110px; font-size: .76rem; }
}

.dxe-active-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.dxe-active-chips-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--dxt-text-faint);
}
.dxe-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px; font-size: .76rem; font-weight: 600;
  background: var(--dxt-accent-light); border: 1px solid var(--dxt-accent-muted);
  color: var(--dxt-accent-dark); text-decoration: none; transition: .15s;
}
.dxe-chip:hover { background: #fff; border-color: var(--dxt-error); color: var(--dxt-error); }
.dxe-chip-x { font-size: .68rem; opacity: .7; }
.dxe-chip:hover .dxe-chip-x { opacity: 1; }

.dxe-importance-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.dxe-importance-chips-label { font-size: .82rem; font-weight: 700; color: var(--dxt-text-muted); }
.dxe-importance-chip {
  border: 1px solid var(--dxt-border-dark); border-radius: 20px; padding: 4px 12px;
  font-size: .8rem; font-weight: 600; color: var(--dxt-text-muted); background: var(--dxt-surface);
  text-decoration: none; transition: .15s;
}
.dxe-importance-chip:hover { border-color: var(--dxt-accent); color: var(--dxt-accent-dark); }
.dxe-importance-chip.active { background: var(--dxt-accent); border-color: var(--dxt-accent); color: #fff; }

@media (prefers-color-scheme: dark) {
  .dxe-chip { background: rgba(8,145,178,.18); border-color: #155e75; }
  .dxe-chip:hover { background: #0f172a; }
  .dxe-importance-chip { background: #0f172a; border-color: #334155; }
}

/* ============================================================
   RICERCA GLOBALE + TZ PILL
============================================================ */
.dxe-search-tz-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dxe-global-search-bar { flex: 1 1 auto; margin-bottom: 0; }
.dxe-global-search-bar .dxe-filter-group-search { min-width: 240px; flex: 1 1 auto; }
.dxe-global-search-bar .dxe-search-input { width: 100%; }
.dxe-search-tz-row .dxe-tz-pill { flex-shrink: 0; }

@media (max-width: 767.98px) {
  .dxe-search-tz-row { flex-direction: column; align-items: stretch; }
  .dxe-search-tz-row .dxe-tz-pill { align-self: flex-end; }
  .dxe-global-search-bar .dxe-filter-group-search { min-width: 0; }
}

.dxe-tz-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--dxt-surface-2); border: 1px solid var(--dxt-border);
  border-radius: 20px; padding: 4px 6px 4px 12px;
}
.dxe-tz-clock { font-family: var(--dxt-mono); font-size: .78rem; font-weight: 700; color: var(--dxt-accent-dark); white-space: nowrap; }
.dxe-tz-btn {
  border: 1px solid transparent; background: transparent; border-radius: 14px;
  font-size: .72rem; font-weight: 700; color: var(--dxt-text-muted);
  padding: 3px 10px; cursor: pointer; transition: .15s;
}
.dxe-tz-btn:hover { color: var(--dxt-accent-dark); }
.dxe-tz-btn.active { background: #fff; color: var(--dxt-accent-dark); border-color: var(--dxt-border-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.dxe-live-dot { color: var(--dxe-live); font-size: .55rem; animation: dxe-pulse 1.4s ease infinite; }
@keyframes dxe-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

@media (prefers-color-scheme: dark) {
  .dxe-tz-pill { background: #1e293b; border-color: #334155; }
  .dxe-tz-btn.active { background: #0f172a; border-color: #475569; }
}

/* ============================================================
   CALENDAR CARD WRAPPER + MONTH/WEEK NAV
============================================================ */
.dxe-calendar-card { padding: 20px; overflow-x: auto; }
.dxe-glance-empty { padding: 30px; text-align: center; color: var(--dxt-text-faint); font-size: .9rem; }

.dxe-glance-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.dxe-glance-month { font-size: 1.15rem; font-weight: 700; color: var(--dxt-text); min-width: 180px; text-align: center; }
.dxe-nav-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--dxt-border-dark); color: var(--dxt-text-muted);
  text-decoration: none; transition: .15s;
}
.dxe-nav-btn:hover { background: var(--dxt-accent-light); color: var(--dxt-accent-dark); border-color: var(--dxt-accent); }

.dxe-empty-reset {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 6px 14px; border: 1px solid var(--dxt-border-dark); border-radius: 6px;
  background: #fff; color: var(--dxt-accent-dark); font-size: .8rem;
  font-weight: 600; text-decoration: none; transition: .15s;
}
.dxe-empty-reset:hover { border-color: var(--dxt-accent); background: var(--dxt-accent-light); }

.dxe-today-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--dxe-live); opacity: .7; z-index: 3; pointer-events: none;
}
.dxe-glance-sticky {
  position: fixed; top: 0; display: none; overflow: hidden;
  background: #fff; z-index: 1030; border-bottom: 1px solid var(--dxt-border);
  box-shadow: 0 2px 6px rgba(0,0,0,.12); padding-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .dxe-glance-sticky { background: #0f172a; border-color: #334155; }
  .dxe-empty-reset { background: #0f172a; border-color: #475569; }
}
@media (max-width: 991.98px) {
  .dxe-calendar-card { padding: 12px; }
}

/* ============================================================
   SISTEMA COLORI TIPO/TIER — fonte unica
============================================================ */
.dxe-glance-bar.dxe-badge-major, .dxe-month-chip.dxe-badge-major,
.dxe-agenda-type-chip.dxe-badge-major, .dxe-today-dot.dxe-badge-major,
.dxe-tier-dot.dxe-badge-major { background: var(--dxe-tier-major); }

.dxe-glance-bar.dxe-badge-regional, .dxe-month-chip.dxe-badge-regional,
.dxe-agenda-type-chip.dxe-badge-regional, .dxe-today-dot.dxe-badge-regional,
.dxe-tier-dot.dxe-badge-regional { background: var(--dxe-tier-regional); }

.dxe-glance-bar.dxe-badge-specialty, .dxe-month-chip.dxe-badge-specialty,
.dxe-agenda-type-chip.dxe-badge-specialty, .dxe-today-dot.dxe-badge-specialty,
.dxe-tier-dot.dxe-badge-specialty { background: var(--dxe-tier-specialty); }

.dxe-glance-bar.dxe-badge-local, .dxe-month-chip.dxe-badge-local,
.dxe-agenda-type-chip.dxe-badge-local, .dxe-today-dot.dxe-badge-local,
.dxe-tier-dot.dxe-badge-local { background: var(--dxe-tier-local); }

.dxe-glance-bar.is-dxped, .dxe-month-chip.is-dxped,
.dxe-agenda-type-chip.is-dxped, .dxe-agenda-type-chip.is-type-dxped
  { background: var(--dxe-type-dxped); }

.dxe-glance-bar.is-type-ops, .dxe-month-chip.is-type-ops,
.dxe-agenda-type-chip.is-type-ops, .dxe-today-dot.is-type-ops
  { background: var(--dxe-type-ops); }

.dxe-glance-bar.is-type-ses, .dxe-month-chip.is-type-ses,
.dxe-agenda-type-chip.is-type-ses, .dxe-today-dot.is-type-ses
  { background: var(--dxe-type-ses); }

/* ============================================================
   MONTH AT A GLANCE (Gantt)
============================================================ */
.dxe-glance-grid-header { display: grid; gap: 2px; margin-bottom: 4px; }
.dxe-glance-day-h { font-size: .68rem; text-align: center; color: var(--dxt-text-faint); font-weight: 600; padding-bottom: 4px; }
.dxe-glance-day-h.is-weekend { color: var(--dxt-accent-dark); font-weight: 800; }

.dxe-glance-body { position: relative; }
.dxe-glance-daybg { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 6px; overflow: hidden; }
.dxe-daycol { position: absolute; top: 0; bottom: 0; }
.dxe-daycol.is-weekend { background: var(--dxe-weekend-tint); }

.dxe-glance-bars { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.dxe-glance-row { position: relative; height: 28px; }
.dxe-glance-layer-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dxt-text-muted); margin: 6px 0 3px; position: relative; z-index: 2; }

.dxe-glance-bar {
  position: absolute; top: 0; height: 28px; border-radius: 6px;
  overflow: hidden; text-decoration: none; border: none;
  display: flex; align-items: center; gap: 5px; padding: 0 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.dxe-bar-icon { font-size: .68rem; color: #fff; opacity: .9; flex-shrink: 0; }
.dxe-bar-label {
  display: block; flex: 1 1 auto; min-width: 0; line-height: 26px;
  font-size: .74rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dxe-glance-bar.is-narrow .dxe-bar-icon { display: none; }
.dxe-glance-bar.is-narrow .dxe-bar-label { padding-left: 1px; }

.dxe-glance-bar.is-dxped { border: 1px solid var(--dxe-type-dxped-dark); }
.dxe-glance-bar.is-dxped.is-estimated { border-style: dashed; opacity: .85; }
.dxe-glance-bar.is-type-ops { border: 2px dashed var(--dxe-type-ops); opacity: .82; box-sizing: border-box; }
.dxe-glance-bar.is-type-ops:hover { opacity: .95; }
.dxe-glance-bar.is-type-ses { border: 1px solid var(--dxe-type-ses-dark); }
.dxe-glance-bar.is-estimated { opacity: .75; }

.dxe-badge-new {
  font-size: .58rem; font-weight: 800; background: var(--dxt-result);
  color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 6px;
}
.dxe-badge-draft {
  display: inline-block; font-size: .58rem; font-weight: 800;
  background: var(--dxt-warn); color: #fff; padding: 1px 5px; border-radius: 4px;
}
.dxe-glance-bar .dxe-badge-draft {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
}

@media (prefers-color-scheme: dark) {
  .dxe-glance-bar.is-type-ops { background: rgba(253,126,20,.85); }
  .dxe-glance-bar.is-type-ses { background: rgba(124,58,237,.9); }
}

/* ============================================================
   VISTA "NEXT 8 DAYS"
============================================================ */
.dxe-week-glance { overflow-x: auto; }
.dxe-week-grid-header { display: grid; gap: 2px; margin-bottom: 4px; }
.dxe-week-day-h {
  text-align: center; font-size: .78rem; font-weight: 600; padding: 6px 2px;
  border-radius: 4px; background: var(--dxt-surface-2); color: var(--dxt-text);
  display: flex; flex-direction: column;
}
.dxe-week-day-h.is-weekend { background: var(--dxe-weekend-tint); }
.dxe-week-day-h.is-today { background: var(--dxt-accent); color: #fff; }
.dxe-week-day-wd { font-weight: 700; }
.dxe-week-day-num { font-size: .72rem; opacity: .85; }

/* ============================================================
   MESE CLASSICO (griglia)
============================================================ */
.dxe-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; min-width: 700px; }
.dxe-month-wd {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--dxt-text-faint);
  text-align: center; padding-bottom: 6px;
}
.dxe-month-cell {
  min-height: 100px; border: 1px solid var(--dxt-border); border-radius: 8px; padding: 6px;
  display: flex; flex-direction: column; gap: 3px; background: #fff;
}
.dxe-month-cell.is-empty { background: transparent; border: none; }
.dxe-month-cell.is-weekend { background: var(--dxe-weekend-tint); }
.dxe-month-cell.is-today { border: 2px solid var(--dxt-accent); background: var(--dxt-accent-light); }
.dxe-month-daynum { font-size: .78rem; font-weight: 700; color: var(--dxt-text-muted); margin-bottom: 2px; }
.dxe-month-chip {
  font-size: .68rem; padding: 2px 6px; border-radius: 4px; color: #fff; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.dxe-month-chip i { font-size: .62rem; margin-right: 2px; }
.dxe-month-more { font-size: .65rem; color: var(--dxt-text-faint); }

@media (max-width: 991.98px) {
  .dxe-month-grid { min-width: 560px; }
}
@media (prefers-color-scheme: dark) {
  .dxe-month-cell { background: #0f172a; border-color: #334155; }
  .dxe-month-cell.is-weekend { background: rgba(8,145,178,.12); }
  .dxe-daycol.is-weekend { background: rgba(125,211,252,.08); }
}

/* ============================================================
   VISTA "LIVE TODAY"
============================================================ */
.dxe-today { display: flex; flex-direction: column; gap: 22px; }
.dxe-today-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--dxt-text);
  padding-bottom: 8px; border-bottom: 1px solid var(--dxt-border); margin: 0 0 8px;
}
.dxe-today-group-title i { color: var(--dxt-accent); }
.dxe-today-count {
  font-size: .74rem; font-weight: 700; color: var(--dxt-text-faint);
  background: var(--dxt-surface-2); padding: 1px 8px; border-radius: 10px;
}
.dxe-today-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
  color: var(--dxt-text); transition: .15s;
}
.dxe-today-row:hover { background: var(--dxt-surface); }
.dxe-today-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dxe-today-title { font-weight: 600; flex: 1 1 200px; }
.dxe-today-range { font-size: .78rem; color: var(--dxt-text-muted); font-family: var(--dxt-mono); }
.dxe-today-ends { font-size: .76rem; color: var(--dxe-live); font-weight: 700; white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  .dxe-today-count { background: #1e293b; }
}

/* ============================================================
   AGENDA (tabella ordinabile, tutte le famiglie)
============================================================ */
.dxe-agenda-table-wrap { overflow-x: auto; }
.dxe-agenda-table { width: 100%; border-collapse: collapse; }
.dxe-agenda-table th {
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--dxt-border-dark);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.dxe-agenda-table td { padding: 8px 10px; border-bottom: 1px solid var(--dxt-border); vertical-align: middle; }
.dxe-agenda-table tr.is-live { background: #fff8e6; }
.dxe-sort-icon { font-size: .7rem; opacity: .5; margin-left: 4px; }
.dxe-agenda-table th.is-sorted-asc .dxe-sort-icon, .dxe-agenda-table th.is-sorted-desc .dxe-sort-icon { opacity: 1; }
.dxe-agenda-dxcc-entity { color: var(--dxt-text-muted); font-size: .85em; margin-left: 4px; }
.dxe-agenda-table-link { font-weight: 600; text-decoration: none; color: var(--dxt-text); }
.dxe-agenda-table-link:hover { text-decoration: underline; }

.dxe-agenda-type-chip {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; color: #fff; margin-right: 4px;
}
.dxe-agenda-type-chip.is-dxped, .dxe-agenda-type-chip.is-type-dxped { color: #fff; }

.dxe-live-badge { font-size: .68rem; font-weight: 800; color: var(--dxe-type-dxped); letter-spacing: .04em; }

/* ============================================================
   EVENT.PHP — TAXONOMY BADGES
============================================================ */
.dxe-taxonomy-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 14px; }
.dxe-badge {
  font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  letter-spacing: .03em; text-transform: uppercase;
}
.dxe-badge-mode { background: #eef2ff; color: #3730a3; }
.dxe-badge-band { background: #f0fdf4; color: #14532d; font-family: var(--dxt-mono); }
.dxe-badge-tag  { background: var(--dxt-surface-2); color: var(--dxt-text-muted); }
.dxe-badge-ctype { background: #fdf4ff; color: #86198f; }

@media (prefers-color-scheme: dark) {
  .dxe-badge-mode { background: #1e1b4b; color: #a5b4fc; }
  .dxe-badge-band { background: #052e16; color: #86efac; }
  .dxe-badge-tag  { background: #1e293b; color: #94a3b8; }
  .dxe-badge-ctype { background: #3b0764; color: #e9d5ff; }
}

/* ============================================================
   EVENT.PHP — TRUST BLOCK (EEAT)
============================================================ */
.dxe-trust {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 9px 14px; background: var(--dxt-surface-2); border: 1px solid var(--dxt-border);
  border-radius: 8px; font-size: .76rem; color: var(--dxt-text-muted); margin-bottom: 14px;
}
.dxe-trust-item { display: flex; align-items: center; gap: 5px; }
.dxe-trust-item i { color: var(--dxt-accent); font-size: .72rem; }
.dxe-trust-fresh { color: var(--dxt-result); font-weight: 600; }
.dxe-trust-fresh i { color: var(--dxt-result); }

@media (prefers-color-scheme: dark) {
  .dxe-trust { background: #1e293b; border-color: #334155; }
}

/* ============================================================
   EVENT.PHP — NEXT OCCURRENCE BLOCK (Contest)
============================================================ */
.dxe-next-block {
  background: var(--dxt-surface); border: 1px solid var(--dxt-border-dark);
  border-left: 3px solid var(--dxt-accent); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px;
}
.dxe-next-header {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--dxt-text-faint); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.dxe-next-header i { color: var(--dxt-accent); }
.dxe-next-body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dxe-next-range { font-size: .95rem; font-weight: 600; color: var(--dxt-text); font-family: var(--dxt-mono); }
.dxe-next-countdown {
  display: inline-flex; align-items: center; font-size: .8rem; font-weight: 700;
  background: var(--dxt-accent); color: #fff; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.dxe-next-empty {
  background: var(--dxt-surface-2); color: var(--dxt-text-muted); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px; font-size: .85rem;
}

/* ============================================================
   PROGRESS BAR — versione GRANDE (event.php hero one-shot + next
   block Contest). Markup sempre emesso da PHP con display:none
   inline; il JS lo rende visibile e lo valorizza solo se live.
============================================================ */
.dxe-progress {
  display: none; align-items: center; gap: 10px; margin-top: 10px;
}
.dxe-progress-track {
  flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--dxt-surface-2);
  border: 1px solid var(--dxt-border); overflow: hidden;
}
.dxe-progress-fill {
  height: 100%; width: 0%; background: var(--dxe-live);
  background-image: linear-gradient(90deg, var(--dxe-live), #f87171);
  border-radius: 4px; transition: width 1s linear;
}
.dxe-progress-label {
  font-size: .78rem; font-weight: 700; color: var(--dxe-live); white-space: nowrap; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .dxe-progress-track { background: #1e293b; border-color: #334155; }
}

/* ============================================================
   PROGRESS BAR — versione INLINE (calendar.php, iniettata via JS
   dentro celle Agenda / righe Live Today, nessun markup PHP dedicato)
============================================================ */
.dxe-progress-inline {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle;
}
.dxe-progress-inline-track {
  display: inline-block; width: 60px; height: 6px; border-radius: 3px;
  background: var(--dxt-surface-2); border: 1px solid var(--dxt-border); overflow: hidden; vertical-align: middle;
}
.dxe-progress-inline-fill {
  display: block; height: 100%; width: 0%; background: var(--dxe-live); border-radius: 3px;
  transition: width 1s linear;
}
.dxe-progress-inline-label {
  font-size: .68rem; font-weight: 700; color: var(--dxe-live); white-space: nowrap;
}
@media (max-width: 575.98px) {
  .dxe-progress-inline-track { width: 40px; }
}

/* ============================================================
   EVENT.PHP — EXCHANGE / DESCRIPTION / SPONSOR / ACTIONS
============================================================ */
.dxe-exchange-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  padding: 10px 14px; font-size: .88rem; margin-bottom: 14px;
}
.dxe-description { font-size: .95rem; line-height: 1.7; color: #374151; margin-bottom: 18px; }
.dxe-description strong { color: var(--dxt-text); font-weight: 700; }
.dxe-description p { margin: 0 0 12px; }
.dxe-description p:last-child { margin-bottom: 0; }

.dxe-sponsor-box {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--dxt-surface-2); border: 1px solid var(--dxt-border);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 12px;
}
.dxe-sponsor-box-label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dxt-text-faint); }
.dxe-sponsor-box-name { font-size: .9rem; font-weight: 700; color: var(--dxt-text); }
.dxe-sponsor { font-size: .85rem; color: var(--dxt-text-muted); margin-bottom: 6px; }

.dxe-action-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dxe-btn-tool, .dxt-btn-tool {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  border: 1px solid var(--dxt-border-dark); border-radius: 6px; background: #fff;
  color: var(--dxt-text-muted); font-size: .8rem; font-weight: 500; text-decoration: none; transition: .15s;
}
.dxe-btn-tool:hover, .dxt-btn-tool:hover { border-color: var(--dxt-accent); color: var(--dxt-accent-dark); background: var(--dxt-accent-light); }
.dxe-btn-cluster { border-color: var(--dxe-type-dxped); color: var(--dxe-type-dxped); font-weight: 600; }

/* ============================================================
   EVENT.PHP — HOW TO SUBMIT YOUR LOG / LOGGING SOFTWARE (Contest)
============================================================ */
.dxe-logsubmit-box {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.dxe-logsubmit-title { font-weight: 700; color: #065f46; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dxe-logsubmit-title i { color: #059669; }
.dxe-logsubmit-deadline { font-size: .85rem; color: #065f46; margin-bottom: 8px; }
.dxe-btn-logsubmit { background: #059669; border-color: #059669; color: #fff; }
.dxe-btn-logsubmit:hover { background: #047857; border-color: #047857; color: #fff; }

.dxe-logging-box {
  background: var(--dxt-surface-2); border: 1px solid var(--dxt-border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .85rem;
}
.dxe-logging-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; color: var(--dxt-text); }
.dxe-logging-title i { color: var(--dxt-accent); }
.dxe-logging-cabrillo { margin-bottom: 4px; }
.dxe-logging-hint { color: var(--dxt-text-muted); font-size: .8rem; }

/* ============================================================
   EVENT.PHP — HISTORY / UPCOMING LISTS (Contest)
============================================================ */
.dxe-history-list, .dxe-upcoming-list { list-style: none; padding: 0; margin: 0; }
.dxe-history-list li, .dxe-upcoming-list li {
  padding: 8px 0; border-bottom: 1px solid var(--dxt-border); font-size: .88rem; color: #374151;
}
.dxe-history-list li:last-child, .dxe-upcoming-list li:last-child { border-bottom: none; }
.dxe-history-year { display: inline-block; min-width: 44px; font-weight: 700; color: var(--dxt-accent-dark); font-family: var(--dxt-mono); }
.dxe-history-list a { color: var(--dxt-accent-dark); text-decoration: none; }
.dxe-history-list a:hover { text-decoration: underline; }

/* ============================================================
   EVENT.PHP — HERO IMAGE / SIDEBAR
============================================================ */
.dxe-hero-img { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; display: block; }

.dxe-sidebar-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--dxt-text-faint); margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.dxe-sidebar-title i { color: var(--dxt-accent); }

.dxe-related-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.dxe-related-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--dxt-border); }
.dxe-related-list li:last-child { border-bottom: none; }
.dxe-related-list a { display: flex; align-items: center; gap: 6px; color: var(--dxt-accent-dark); text-decoration: none; flex: 1; min-width: 0; }
.dxe-related-list a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxe-related-list a:hover { text-decoration: underline; }
.dxe-related-date { font-size: .72rem; color: var(--dxt-text-faint); white-space: nowrap; }

.dxe-tier-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dxe-related-dxped .dxe-related-call { font-family: monospace; font-weight: 700; color: var(--dxe-type-dxped); margin-right: 6px; }
.dxe-related-dxped .dxe-related-entity { color: #495057; font-size: .85rem; }
.dxe-related-dxped .dxe-rarity-dot { width: 8px; height: 8px; }

/* ============================================================
   RARITY DOT (Club Log Most Wanted)
============================================================ */
.dxe-rarity-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex-shrink: 0; }
.dxe-glance-bar.is-dxped .dxe-rarity-dot { width: 9px; height: 9px; margin-right: 0; }
.dxe-dxped-call .dxe-rarity-dot { width: 10px; height: 10px; margin-right: 6px; }
.dxe-dxped-rarity-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid; border-radius: 20px; padding: 3px 12px; margin: 2px 0 8px; background: #fff;
}

/* ============================================================
   EVENT.PHP — DXPEDITION / DX OPERATION detail page
============================================================ */
.dxe-dxped-h1 { line-height: 1.15; }
.dxe-dxped-h1-call { font-family: monospace; font-weight: 800; color: var(--dxe-type-dxped); letter-spacing: .02em; }
.dxe-dxped-h1-entity { font-weight: 700; }
.dxe-dxped-h1-suffix { font-weight: 400; color: #6c757d; font-size: .7em; }
.dxe-dxped-subtitle { color: #6c757d; font-size: .95rem; margin: -4px 0 10px; }

.dxe-dxped-dates-hero {
  margin: .75rem 0 1rem; padding: 16px 20px; border: 1px solid #dee2e6;
  border-left: 4px solid var(--dxe-type-dxped); border-radius: 8px; background: #f8f9fa;
}
.dxe-dxped-dates-hero.is-live { border-color: var(--dxe-type-dxped); background: #eaf2ff; }
.dxe-dxped-dates-hero.is-past { border-color: var(--dxt-border-dark); background: var(--dxt-surface-2); }
.dxe-dxped-live-flag { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--dxe-type-dxped); letter-spacing: .06em; margin-bottom: 8px; }
.dxe-dxped-past-flag { color: var(--dxt-text-muted) !important; }
.dxe-dxped-dates-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dxe-dxped-date { display: flex; flex-direction: column; }
.dxe-dxped-date-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; }
.dxe-dxped-date-value { font-size: 1.25rem; font-weight: 700; }
.dxe-dxped-date-sep { color: #adb5bd; font-size: 1.1rem; }
.dxe-dxped-info { display: flex; flex-wrap: wrap; gap: 18px; margin: .5rem 0 1rem; padding: 10px 14px; background: #f8f9fa; border-radius: 6px; }
.dxe-dxped-info-item { font-size: .9rem; }
.dxe-dxped-est { font-style: italic; }
.dxe-badge-estimated { background: #ffc107; color: #212529; font-size: .7rem; padding: 3px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; }

@media (prefers-color-scheme: dark) {
  .dxe-dxped-dates-hero.is-past { background: #1e293b; border-color: #334155; }
}

/* ============================================================
   EVENT.PHP — SOURCE REPORTS (fonti come arricchitori)
============================================================ */
.dxe-source-editorial-intro {
  font-size: .92rem; color: #495057; margin-bottom: 14px;
  padding: 10px 14px; background: #fff8e6; border: 1px solid #ffe1a1; border-radius: 8px;
}
.dxe-source-editorial-intro.dxe-source-agree { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dxe-source-report { border: 1px solid var(--dxt-border); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.dxe-source-report.has-conflict { border-color: #dc3545; background: #fff5f5; }
.dxe-source-report-head { margin-bottom: 4px; }
.dxe-source-report-name { font-weight: 700; color: var(--dxt-text); text-decoration: none; }
a.dxe-source-report-name:hover { text-decoration: underline; color: var(--dxt-accent-dark); }
.dxe-source-report-body { font-size: .85rem; color: #374151; }
.dxe-source-report-body > div { margin-bottom: 3px; }
.dxe-source-ok { color: #198754; }
.dxe-source-ok i { margin-right: 4px; }
.dxe-source-diff-claim { color: #b45309; font-weight: 700; }

.dxe-marginal-freshness {
  margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--dxt-border);
  font-size: .74rem; color: var(--dxt-text-faint); display: flex; align-items: center; gap: 5px;
}
.dxe-marginal-freshness i { color: var(--dxt-text-faint); }

@media (prefers-color-scheme: dark) {
  .dxe-source-editorial-intro { background: rgba(180,83,9,.12); border-color: #78350f; color: #fbbf24; }
  .dxe-source-editorial-intro.dxe-source-agree { background: rgba(6,95,70,.15); border-color: #065f46; color: #6ee7b7; }
  .dxe-source-report { background: #0f172a; border-color: #334155; }
  .dxe-source-report.has-conflict { background: rgba(220,53,69,.1); border-color: #dc3545; }
  .dxe-marginal-freshness { border-color: #334155; }
}

/* ============================================================
   EVENT.PHP — ADSENSE PLACEHOLDER SLOTS (non attivi)
============================================================ */
.dxe-ad-slot:empty { display: none; }
.dxe-ad-slot { margin-bottom: 16px; text-align: center; }
.dxe-ad-slot-top { margin-bottom: 20px; }

/* ============================================================
   UTILITY
============================================================ */
.dxt-mono { font-family: var(--dxt-mono); }

/* ============================================================
   PRINT — Weekend Cheat Sheet
============================================================ */
@media print {
  .dxe-search-tz-row, .dxe-view-tabs, .dxe-filters-bar, .dxe-family-tabs,
  .dxe-importance-chips, .dxe-active-chips,
  .dxe-admin-banner, #mainNav, .breadcrumb-bar, footer,
  .sidebar-widget, .ad-container { display: none !important; }
  @page { margin: 1.5cm; }
}


.dxe-updatelog-list { list-style: none; padding: 0; margin: 0 0 20px; }
.dxe-updatelog-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.dxe-updatelog-item:last-child { border-bottom: none; }
.dxe-updatelog-icon { color: #6c757d; padding-top: 3px; flex: 0 0 auto; }
.dxe-updatelog-body { flex: 1; min-width: 0; }
.dxe-updatelog-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; margin-bottom: 3px; }
.dxe-updatelog-kind { font-weight: 700; color: #495057; }
.dxe-updatelog-date { color: #6c757d; }
.dxe-updatelog-source { color: #0d6efd; }
.dxe-updatelog-text { font-size: .92rem; color: #333; }

.dxe-year-jump {
  font-size: .85rem; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #dee2e6; background: #fff; color: #333; cursor: pointer;
}

.dxe-planner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.dxe-planner-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dxe-today-jump-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
    transition: opacity .15s ease;
}
.dxe-today-jump-chip:hover:not(.is-disabled) {
    background: #0b5ed7;
    color: #fff;
}
.dxe-today-jump-chip.is-disabled {
    background: transparent;
    color: #adb5bd;
    border-color: #dee2e6;
    cursor: default;
    pointer-events: none;
}

.dxe-iota-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 0 5px;
  margin-right: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .92);
  color: #16325c;
  line-height: 1.5;
  vertical-align: middle;
  letter-spacing: .2px;
}
.dxe-iota-pill-row { margin: .35rem 0; }
.dxe-iota-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);
}