/* ============================================================
   SORVEA — demo-tour.css
   Animated product tour played inside .demo-video-frame
   ============================================================ */

/* ── Tour root ────────────────────────────────────────────── */
.demo-tour {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #F8FAFC;
  font-family: 'Inter', -apple-system, sans-serif;
  overflow: hidden;
  color: #0F172A;
  font-size: 13px;
  line-height: 1.4;
}
.demo-tour.active {
  display: flex;
}

/* ── Progress bar ────────────────────────────────────────── */
.dt-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
  z-index: 100;
}
.dt-progress-fill {
  height: 100%;
  background: #2563EB;
  width: 0%;
  transition: width .4s linear;
}

/* ── Scene badge ─────────────────────────────────────────── */
.dt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 90;
  background: #2563EB;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.dt-badge.visible { opacity: 1; }

/* ── Caption ─────────────────────────────────────────────── */
.dt-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 90;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .3s;
  max-width: 60%;
  pointer-events: none;
  white-space: nowrap;
}
.dt-caption.visible { opacity: 1; }

/* ── Problem overlay ─────────────────────────────────────── */
.dt-overlay-msg {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .3s;
  white-space: nowrap;
  pointer-events: none;
}
.dt-overlay-msg.visible { opacity: 1; }

/* ── Cursor dot ──────────────────────────────────────────── */
.dt-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,205,0,.85);
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 3px rgba(255,205,0,.25);
  pointer-events: none;
  z-index: 80;
  transform: translate(-50%, -50%);
  transition: left .6s cubic-bezier(.4,0,.2,1), top .6s cubic-bezier(.4,0,.2,1);
}
.dt-cursor.clicking {
  transform: translate(-50%,-50%) scale(.75);
  transition: transform .12s ease, left .6s cubic-bezier(.4,0,.2,1), top .6s cubic-bezier(.4,0,.2,1);
}

/* ── Scene container ─────────────────────────────────────── */
.dt-scene {
  flex: 1;
  position: relative;
  display: none;
  overflow: hidden;
}
.dt-scene.active { display: flex; }

/* ─────────────────────────────────────────────────────────
   APP SHELL — shared nav + sidebar
   ───────────────────────────────────────────────────────── */
.dt-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #F1F5F9;
}

/* Top nav bar */
.dt-nav {
  height: 40px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.dt-nav-logo {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.3px;
}
.dt-nav-logo span { color: #2563EB; }
.dt-nav-spacer { flex: 1; }
.dt-nav-company {
  font-size: 10px;
  font-weight: 600;
  color: #0F172A;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background .2s;
}
.dt-nav-company .dt-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; display: inline-block; }
.dt-nav-bell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.dt-nav-bell-dot {
  width: 7px; height: 7px;
  border-radius: 50%; background: #EF4444;
  border: 1.5px solid #fff;
  position: absolute; top: 4px; right: 4px;
}
.dt-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}

/* App body = sidebar + main */
.dt-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.dt-sidebar {
  width: 148px;
  background: #fff;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  flex-shrink: 0;
}
.dt-sidebar-section {
  font-size: 8px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px 3px;
}
.dt-sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.dt-sidebar-item:hover, .dt-sidebar-item.active {
  background: #EFF6FF;
  color: #2563EB;
}
.dt-sidebar-item svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Main content area */
.dt-main {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Page title */
.dt-page-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px;
}
.dt-page-sub {
  font-size: 10px;
  color: #64748B;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   SCENE 1 — LOGIN
   ───────────────────────────────────────────────────────── */
.dt-login {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.dt-login-logo {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 18px;
  letter-spacing: -.4px;
}
.dt-login-logo span { color: #2563EB; }
.dt-login-label {
  font-size: 9px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.dt-login-input {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: #0F172A;
  margin-bottom: 10px;
  background: #F8FAFC;
  box-sizing: border-box;
  font-family: inherit;
}
.dt-login-input.focused {
  border-color: #2563EB;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.dt-login-btn {
  width: 100%;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}
.dt-login-btn:hover { background: #1D4ED8; }
.dt-typing-cursor {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #2563EB;
  margin-left: 1px;
  vertical-align: middle;
  animation: dt-blink .7s step-end infinite;
}
@keyframes dt-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─────────────────────────────────────────────────────────
   SCENE 2 — DASHBOARD
   ───────────────────────────────────────────────────────── */
.dt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dt-kpi-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.dt-kpi-label {
  font-size: 9px;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.dt-kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}
.dt-kpi-value.green { color: #16A34A; }
.dt-kpi-value.amber { color: #D97706; }
.dt-kpi-value.red   { color: #DC2626; }
.dt-kpi-delta {
  font-size: 9px;
  color: #64748B;
  margin-top: 3px;
}
.dt-kpi-delta.up   { color: #16A34A; }
.dt-kpi-delta.down { color: #DC2626; }
.dt-kpi-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}
.dt-kpi-accent.green { background: linear-gradient(90deg,#22C55E,#16A34A); }
.dt-kpi-accent.amber { background: linear-gradient(90deg,#F59E0B,#D97706); }
.dt-kpi-accent.red   { background: linear-gradient(90deg,#F87171,#DC2626); }
.dt-kpi-accent.blue  { background: linear-gradient(90deg,#60A5FA,#2563EB); }

/* Alert card */
.dt-alert-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.dt-alert-card:hover, .dt-alert-card.hovered {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.dt-alert-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #FEF3C7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.dt-alert-title { font-size: 11px; font-weight: 600; color: #0F172A; }
.dt-alert-sub   { font-size: 9px; color: #64748B; margin-top: 1px; }

/* Tooltip */
.dt-tooltip {
  position: absolute;
  background: #1E293B;
  color: #fff;
  font-size: 9px;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity .25s;
  transform: translateY(-4px);
}
.dt-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1E293B;
}
.dt-tooltip.visible { opacity: 1; transform: translateY(0); }

/* Compliance gauge row */
.dt-gauge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dt-gauge-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
}
.dt-gauge-title { font-size: 10px; font-weight: 600; color: #0F172A; margin-bottom: 8px; }
.dt-gauge-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.dt-gauge-bar-label { font-size: 9px; color: #64748B; width: 80px; flex-shrink: 0; }
.dt-gauge-bar-track { flex: 1; height: 6px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.dt-gauge-bar-fill { height: 100%; border-radius: 3px; }
.dt-gauge-bar-fill.green { background: #22C55E; }
.dt-gauge-bar-fill.amber { background: #F59E0B; }
.dt-gauge-bar-fill.blue  { background: #2563EB; }
.dt-gauge-pct { font-size: 9px; font-weight: 700; color: #0F172A; width: 28px; text-align: right; }

/* ─────────────────────────────────────────────────────────
   SCENE 3 — LAVORATORI TABLE
   ───────────────────────────────────────────────────────── */
.dt-table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dt-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 9px;
  flex: 1;
  font-size: 10px;
  color: #94A3B8;
}
.dt-filter-btn {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dt-filter-btn.active {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #2563EB;
}
.dt-filter-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 4px;
  z-index: 60;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.dt-filter-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dt-filter-option {
  padding: 6px 9px;
  font-size: 10px;
  color: #475569;
  border-radius: 5px;
  cursor: pointer;
}
.dt-filter-option:hover { background: #F1F5F9; }
.dt-filter-option.selected { background: #EFF6FF; color: #2563EB; font-weight: 600; }

.dt-table {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
.dt-table-head {
  display: grid;
  padding: 7px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dt-table-row {
  display: grid;
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  align-items: center;
  cursor: pointer;
  transition: background .15s;
}
.dt-table-row:last-child { border-bottom: none; }
.dt-table-row:hover, .dt-table-row.hovered { background: #F8FAFC; }
.dt-table-row.selected { background: #EFF6FF; }

/* Lavoratori columns: name, mansione, stato, scadenza */
.dt-table-lav .dt-table-head,
.dt-table-lav .dt-table-row {
  grid-template-columns: 130px 1fr 80px 80px;
}
.dt-worker-name { font-size: 11px; font-weight: 600; color: #0F172A; }
.dt-worker-role { font-size: 10px; color: #64748B; }

/* Status badge */
.dt-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}
.dt-status.ok     { background: #DCFCE7; color: #16A34A; }
.dt-status.warn   { background: #FEF3C7; color: #B45309; }
.dt-status.danger { background: #FEE2E2; color: #B91C1C; }
.dt-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Worker detail panel */
.dt-detail-panel {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}
.dt-detail-header {
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-detail-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.dt-detail-name { font-size: 12px; font-weight: 700; color: #0F172A; }
.dt-detail-sub  { font-size: 9px; color: #64748B; margin-top: 1px; }
.dt-detail-tabs {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 14px;
  gap: 0;
}
.dt-detail-tab {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dt-detail-tab.active { color: #2563EB; border-bottom-color: #2563EB; }
.dt-detail-body { padding: 10px 14px; }
.dt-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 10px;
}
.dt-detail-row:last-child { border-bottom: none; }
.dt-detail-key   { color: #64748B; }
.dt-detail-val   { font-weight: 600; color: #0F172A; }

/* ─────────────────────────────────────────────────────────
   SCENE 4 — SCADENZE
   ───────────────────────────────────────────────────────── */
.dt-scad-list { display: flex; flex-direction: column; gap: 4px; }
.dt-scad-row {
  display: grid;
  grid-template-columns: 12px 130px 1fr 70px 80px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.dt-scad-row:hover, .dt-scad-row.hovered { background: #FEF3C7; border-color: #FCD34D; }
.dt-scad-row.danger { border-left: 3px solid #EF4444; }
.dt-scad-row.warn   { border-left: 3px solid #F59E0B; }
.dt-scad-row.ok     { border-left: 3px solid #22C55E; }
.dt-scad-indicator { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dt-scad-name       { font-size: 10px; font-weight: 600; color: #0F172A; }
.dt-scad-type       { font-size: 9px; color: #64748B; }
.dt-scad-date       { font-size: 9px; color: #64748B; text-align: right; }

/* Alert modal */
.dt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 65;
  display: none;
  align-items: center;
  justify-content: center;
}
.dt-modal-backdrop.open { display: flex; }
.dt-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 260px;
  overflow: hidden;
}
.dt-modal-header {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dt-modal-title { font-size: 12px; font-weight: 700; color: #0F172A; }
.dt-modal-close {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  line-height: 1;
}
.dt-modal-body { padding: 12px 14px; }
.dt-alert-schedule { display: flex; flex-direction: column; gap: 6px; }
.dt-alert-sched-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.dt-alert-sched-days {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 700;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}
.dt-alert-sched-label { color: #475569; }
.dt-alert-recip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}
.dt-alert-recip-label { font-size: 9px; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.dt-alert-email {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #475569;
  padding: 3px 0;
}

/* ─────────────────────────────────────────────────────────
   SCENE 5 — REGISTRO DPI
   ───────────────────────────────────────────────────────── */
.dt-table-dpi .dt-table-head,
.dt-table-dpi .dt-table-row {
  grid-template-columns: 130px 1fr 70px 60px;
}
.dt-dpi-detail {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
}
.dt-sig-box {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #F8FAFC;
  padding: 8px 10px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-sig-thumb {
  width: 52px; height: 28px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dt-sig-thumb svg { width: 40px; height: 20px; }
.dt-sig-info { flex: 1; }
.dt-sig-name { font-size: 10px; font-weight: 600; color: #0F172A; }
.dt-sig-ts   { font-size: 9px; color: #64748B; margin-top: 1px; }
.dt-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}
.dt-dl-btn:hover { background: #1D4ED8; }
.dt-dl-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #1E293B;
  color: #fff;
  font-size: 9px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .25s, transform .25s;
}
.dt-dl-bar.visible { opacity: 1; transform: translateY(0); }
.dt-dl-bar-icon { font-size: 11px; }
.dt-dl-bar-name { flex: 1; }

/* ─────────────────────────────────────────────────────────
   SCENE 6 — MULTI-CLIENTE SWITCHER
   ───────────────────────────────────────────────────────── */
.dt-company-panel {
  position: absolute;
  top: 40px;
  right: 14px;
  width: 230px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 60;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.dt-company-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dt-company-panel-header {
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.dt-company-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid #F8FAFC;
}
.dt-company-item:last-child { border-bottom: none; }
.dt-company-item:hover, .dt-company-item.hovered { background: #F8FAFC; }
.dt-company-name { font-size: 10px; font-weight: 600; color: #0F172A; flex: 1; }
.dt-company-pct {
  font-size: 10px;
  font-weight: 700;
}
.dt-company-pct.green { color: #16A34A; }
.dt-company-pct.amber { color: #D97706; }
.dt-company-pct.red   { color: #DC2626; }
.dt-company-alerts {
  font-size: 8px;
  background: #FEE2E2;
  color: #B91C1C;
  padding: 1px 5px;
  border-radius: 20px;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   SCENE 7 — REPORT CONFORMITÀ
   ───────────────────────────────────────────────────────── */
.dt-report-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}
.dt-gauge-circle-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.dt-gauge-circle {
  position: relative;
  width: 76px;
  height: 76px;
}
.dt-gauge-circle svg {
  width: 76px;
  height: 76px;
  transform: rotate(-90deg);
}
.dt-gauge-circle-bg { fill: none; stroke: #E2E8F0; stroke-width: 8; }
.dt-gauge-circle-fill { fill: none; stroke: #22C55E; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 25; transition: stroke-dashoffset 1.2s ease; }
.dt-gauge-circle-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}
.dt-gauge-circle-label {
  font-size: 9px;
  color: #64748B;
  font-weight: 600;
  text-align: center;
}
.dt-breakdown-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
}
.dt-breakdown-title { font-size: 10px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.dt-reparto-table { width: 100%; }
.dt-reparto-row {
  display: grid;
  grid-template-columns: 1fr 60px 40px;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 10px;
}
.dt-reparto-row:last-child { border-bottom: none; }
.dt-reparto-name { color: #475569; }
.dt-reparto-bar-wrap { height: 5px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.dt-reparto-bar { height: 100%; border-radius: 3px; background: #2563EB; }
.dt-reparto-pct { font-size: 9px; font-weight: 700; color: #0F172A; text-align: right; }

/* ─────────────────────────────────────────────────────────
   SCENE 8 — END CARD
   ───────────────────────────────────────────────────────── */
.dt-endcard {
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.dt-endcard-logo {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s, transform .5s;
}
.dt-endcard-logo span { color: #2563EB; }
.dt-endcard-tagline {
  font-size: 13px;
  color: #64748B;
  font-weight: 400;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s .15s, transform .5s .15s;
}
.dt-endcard-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s .25s, transform .5s .25s;
}
.dt-endcard-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s .4s, transform .5s .4s;
}
.dt-endcard-btn-primary {
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.dt-endcard-btn-outline {
  background: #fff;
  color: #2563EB;
  border: 1.5px solid #2563EB;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.dt-endcard-url {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 12px;
  letter-spacing: .03em;
  opacity: 0;
  transition: opacity .5s .55s;
}
.dt-endcard.animate .dt-endcard-logo,
.dt-endcard.animate .dt-endcard-tagline,
.dt-endcard.animate .dt-endcard-sub,
.dt-endcard.animate .dt-endcard-btns,
.dt-endcard.animate .dt-endcard-url {
  opacity: 1;
  transform: translateY(0);
}
.dt-endcard.animate .dt-endcard-url { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────── */
.dt-fade-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.dt-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.dt-stagger > * { opacity: 0; transform: translateY(6px); }
.dt-stagger.go > *:nth-child(1) { animation: dt-fadein .35s .05s forwards; }
.dt-stagger.go > *:nth-child(2) { animation: dt-fadein .35s .12s forwards; }
.dt-stagger.go > *:nth-child(3) { animation: dt-fadein .35s .19s forwards; }
.dt-stagger.go > *:nth-child(4) { animation: dt-fadein .35s .26s forwards; }
@keyframes dt-fadein {
  to { opacity: 1; transform: translateY(0); }
}

/* Scene transition fade */
.dt-scene { opacity: 0; transition: opacity .35s; }
.dt-scene.active { opacity: 1; }
