/* =============================================
   EVENTOS.CSS
   ============================================= */

/* ── Setup / Onboarding ──────────────────────── */
.ev-setup-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.ev-setup-wrap .card {
  padding: 32px;
}

.ev-setup-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.ev-setup-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.93rem;
}

/* ── Dashboard ───────────────────────────────── */
.ev-dashboard {
  display: grid;
  gap: 20px;
}

/* Filial card top */
.ev-filial-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
  flex-wrap: wrap;
}

.ev-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  background: #e0e7ff;
  flex-shrink: 0;
}

.ev-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.ev-filial-info {
  flex: 1;
  min-width: 200px;
}

.ev-filial-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ev-filial-endereco {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.ev-horarios-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ev-horario-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 500;
}

.ev-filial-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* ── Stats row ───────────────────────────────── */
.ev-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.ev-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}

.ev-stat-box .ev-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.ev-stat-box .ev-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Next event highlight */
.ev-next-event-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ev-countdown {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  min-width: 60px;
  text-align: center;
}

.ev-countdown small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

.ev-next-info {
  flex: 1;
  min-width: 160px;
}

.ev-next-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-next-nome {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2px 0 4px;
}

.ev-next-data {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ── Calendar preview (mini) ─────────────────── */
.ev-cal-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.ev-cal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.ev-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ev-cal-header strong {
  font-size: 1rem;
}

.ev-cal-nav {
  display: flex;
  gap: 4px;
}

.ev-cal-nav button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.ev-cal-nav button:hover {
  background: #eff6ff;
}

.ev-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.ev-cal-day-name {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 0;
}

.ev-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
  cursor: default;
  position: relative;
  transition: background .15s;
}

.ev-cal-day.other-month {
  color: #d1d5db;
}

.ev-cal-day.today {
  background: #eff6ff;
  font-weight: 700;
  color: var(--primary);
}

.ev-cal-day.has-event {
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
}

.ev-cal-day.has-event:hover {
  background: var(--primary-600);
}

.ev-cal-day.has-event.today {
  background: var(--primary);
  box-shadow: 0 0 0 3px #bfdbfe;
}

/* ── Eventos list ────────────────────────────── */
.ev-list-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.ev-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.ev-evento-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}

.ev-evento-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.ev-evento-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.ev-evento-dot.public {
  background: var(--success);
}

.ev-evento-nome {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.ev-evento-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.ev-badge-public {
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.ev-badge-private {
  background: #f3f4f6;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* ── Dialogs / Modals ────────────────────────── */
dialog.ev-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  max-width: 700px;
  width: calc(100vw - 32px);
  max-height: 90vh;
  overflow-y: auto;
}

dialog.ev-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.ev-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  border-radius: 18px 18px 0 0;
}

.ev-dialog-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.ev-dialog-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s;
}

.ev-dialog-close:hover { color: var(--danger); }

.ev-dialog-body {
  padding: 20px 24px;
}

.ev-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 0 0 18px 18px;
}

/* ── Form helpers ────────────────────────────── */
.ev-field {
  margin-bottom: 14px;
}

.ev-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.ev-field .input,
.ev-field select,
.ev-field textarea {
  width: 100%;
}

.ev-field textarea {
  resize: vertical;
  min-height: 70px;
}

.ev-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Horários builder */
.ev-horarios-builder {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.ev-horario-row {
  display: grid;
  grid-template-columns: 120px 90px 90px 1fr 36px;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.ev-horario-row:last-child { border-bottom: none; }

.ev-horario-row input,
.ev-horario-row select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  width: 100%;
}

.ev-horario-add {
  padding: 10px 14px;
  background: #f8fafc;
  text-align: center;
}

/* Datas builder */
.ev-dates-section {
  margin-top: 20px;
}

.ev-date-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ev-date-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}

.ev-date-block-header input[type="date"] {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
}

.ev-date-block-body {
  padding: 14px 16px;
}

.ev-momento-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.ev-momento-row input {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  width: 100%;
}

.ev-momento-add {
  margin-top: 6px;
}

/* PDF upload area */
.ev-pdf-area {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.ev-pdf-area:hover,
.ev-pdf-area.drag-over {
  border-color: var(--primary);
  background: #eff6ff;
}

.ev-pdf-file-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ev-pdf-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #1e40af;
}

.ev-pdf-chip a {
  color: #1e40af;
  font-weight: 600;
}

.ev-pdf-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
}

/* ── Full Calendar dialog ────────────────────── */
.ev-fullcal-wrap {
  min-width: 320px;
}

.ev-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.ev-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}

.ev-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ev-fullcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.ev-fullcal-day-name {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 0;
  text-transform: uppercase;
}

.ev-fullcal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
  cursor: default;
  transition: background .15s;
}

.ev-fullcal-day.other-month { color: #e5e7eb; }
.ev-fullcal-day.today {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
}
.ev-fullcal-day.has-event {
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.ev-fullcal-day.has-event:hover { background: var(--primary-600); }
.ev-fullcal-day.has-event.today {
  box-shadow: 0 0 0 3px #bfdbfe;
}

/* Event detail modal */
.ev-detail-filial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ev-detail-filial-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s;
}

.ev-detail-filial-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.ev-cronograma {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ev-cronograma-row {
  display: grid;
  grid-template-columns: 70px 70px 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  font-size: 0.85rem;
}

.ev-cronograma-row:last-child { border-bottom: none; }

.ev-cronograma-row .ev-time {
  color: var(--muted);
  font-size: 0.78rem;
}

.ev-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: background .15s;
}

.ev-delete-btn:hover { background: #fee2e2; }

/* Toggle switch */
.ev-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.ev-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ev-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ev-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}

.ev-toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ev-toggle input:checked + .ev-toggle-slider { background: var(--primary); }
.ev-toggle input:checked + .ev-toggle-slider:before { transform: translateX(20px); }

.ev-empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
}

.ev-empty-state .ev-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVIDADE - EVENTOS
   ============================================ */

/* ── Tablets e mobile (768px ou menos) ─────── */
@media (max-width: 768px) {

  /* Setup */
  .ev-setup-wrap { max-width: 100%; }
  .ev-setup-wrap .card { padding: 20px; }

  /* ── Filial card ── */
  .ev-filial-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }
  .ev-filial-info { width: 100%; min-width: 0; }
  .ev-horarios-list { justify-content: center; }

  /* Botões da filial: coluna, largura total */
  .ev-filial-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }
  .ev-filial-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Stats ── */
  .ev-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ev-stat-box { padding: 14px 12px; }
  .ev-stat-box .ev-stat-num { font-size: 1.6rem; }

  /* ── Próximo evento ── */
  .ev-next-event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .ev-next-event-card .btn {
    width: 100%;
    justify-content: center;
  }
  .ev-countdown { font-size: 2rem; min-width: auto; }
  .ev-next-info { width: 100%; }

  /* ── Calendário + lista: empilha em coluna única ── */
  .ev-cal-wrapper {
    grid-template-columns: 1fr;
  }

  /* ── Calendário mini ── */
  .ev-cal-section { padding: 14px; }
  .ev-cal-header { margin-bottom: 10px; }

  /* ── Lista de eventos ── */
  .ev-list-section { padding: 14px; }
  .ev-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ev-list-header .btn {
    width: 100%;
    justify-content: center;
  }
  .ev-evento-item { flex-wrap: wrap; gap: 8px; }
  .ev-evento-nome { flex: 1 1 100%; order: 1; }
  .ev-evento-meta { order: 2; }
  .ev-badge-public,
  .ev-badge-private { order: 3; }

  /* ── Dialogs ── */
  dialog.ev-dialog {
    width: calc(100vw - 16px);
    max-height: 95vh;
    border-radius: 14px;
  }
  .ev-dialog-header { padding: 14px 16px 12px; }
  .ev-dialog-body { padding: 14px 16px; }
  .ev-dialog-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px 16px;
  }
  .ev-dialog-footer .btn {
    width: 100%;
    justify-content: center;
  }
  /* Botão excluir (danger) não ocupa largura total */
  #evEventoDelete {
    width: auto;
    align-self: flex-start;
    order: 10;
    border: 1px solid var(--danger);
    background: none;
    color: var(--danger);
  }

  /* ── Formulário: 2→1 coluna ── */
  .ev-row-2 { grid-template-columns: 1fr; gap: 10px; }

  /* ── Horários builder (flexbox) ──
     Desktop usa grid: 120px 90px 90px 1fr 36px
     Mobile: flex-wrap com classes alvo                */
  .ev-horario-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 10px 12px;
  }
  /* Ocultar linha de cabeçalho (spans) no mobile */
  .ev-horarios-builder > .ev-horario-row:first-child {
    display: none;
  }
  /* Dia: linha inteira */
  .ev-horario-row .ev-h-dia { flex: 1 1 100%; font-size: 16px; }
  /* Início e Fim: metade cada */
  .ev-horario-row .ev-h-inicio,
  .ev-horario-row .ev-h-fim  { flex: 1 1 calc(50% - 4px); font-size: 16px; }
  /* Observação: preenche restante antes do delete */
  .ev-horario-row .ev-h-obs  { flex: 1 1 calc(100% - 44px); font-size: 16px; }
  /* Botão remover: tamanho fixo, alinhado ao centro */
  .ev-horario-row .ev-delete-btn {
    flex: 0 0 34px;
    height: 34px;
    align-self: flex-end;
    margin-left: auto;
  }

  /* ── Momentos builder (flexbox) ──
     Desktop usa grid: 1fr 80px 80px 36px              */
  .ev-momento-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  /* Nome do momento: linha inteira */
  .ev-momento-row .ev-m-nome  { flex: 1 1 100%; font-size: 16px; }
  /* Início e Fim: metade cada */
  .ev-momento-row .ev-m-inicio,
  .ev-momento-row .ev-m-fim   { flex: 1 1 calc(50% - 22px); font-size: 16px; }
  /* Delete: após os horários */
  .ev-momento-row .ev-delete-btn { flex: 0 0 34px; height: 34px; }

  /* ── Cronograma (visualização) ── */
  .ev-cronograma-row {
    grid-template-columns: 55px 55px 1fr;
    font-size: 0.8rem;
    padding: 8px 10px;
    gap: 6px;
  }

  /* ── Date blocks ── */
  .ev-date-block-header { flex-wrap: wrap; gap: 8px; }
  .ev-date-block-header strong { flex: 1 1 100%; }
  .ev-date-block-header input[type="date"] { flex: 1; }

  /* ── Tabs ── */
  .ev-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ev-tab  { padding: 8px 10px; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }

  /* ── Full calendar ── */
  .ev-fullcal-wrap { min-width: 0; width: 100%; }
  .ev-fullcal-grid { gap: 2px; }

  /* ── PDF area ── */
  .ev-pdf-area { padding: 10px; }
}

/* ── Smartphones (480px ou menos) ──────────── */
@media (max-width: 480px) {

  /* Avatar menor */
  .ev-avatar,
  .ev-avatar-placeholder {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  .ev-filial-nome { font-size: 1.1rem; }

  /* Stats */
  .ev-stat-box .ev-stat-num { font-size: 1.4rem; }

  /* Countdown */
  .ev-countdown { font-size: 1.6rem; }

  /* Setup */
  .ev-setup-wrap .card { padding: 14px; }
  .ev-setup-title { font-size: 1.15rem; }
  .ev-setup-subtitle { font-size: 0.85rem; }

  /* Horário: empilha dia e delete juntos na 1ª linha */
  .ev-horario-row .ev-h-dia { flex: 1; }

  /* Momento: empilha tempos */
  .ev-momento-row .ev-m-inicio,
  .ev-momento-row .ev-m-fim   { flex: 1 1 calc(50% - 4px); }

  /* Cronograma: 3 colunas mais estreitas */
  .ev-cronograma-row {
    grid-template-columns: 48px 48px 1fr;
    font-size: 0.76rem;
    padding: 7px 8px;
  }

  /* Calendário: dias menores */
  .ev-cal-day,
  .ev-fullcal-day     { font-size: 0.7rem; }
  .ev-cal-day-name,
  .ev-fullcal-day-name { font-size: 0.56rem; }

  /* PDF chips */
  .ev-pdf-chip { font-size: 0.72rem; padding: 3px 8px; }

  /* Dialog próximo ao topo */
  dialog.ev-dialog { max-height: 97vh; }

  /* Detalhe de filial: tabs scrolláveis */
  .ev-detail-filial-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .ev-detail-filial-tab  { flex-shrink: 0; }
}

/* ── Telas muito pequenas (360px ou menos) ── */
@media (max-width: 360px) {

  /* Stats: 1 coluna */
  .ev-stats-row { grid-template-columns: 1fr; }
  .ev-stat-box .ev-stat-num { font-size: 1.3rem; }

  .ev-filial-card { padding: 12px; }

  .ev-next-event-card { padding: 12px; }

  /* Dialog: bottom sheet */
  dialog.ev-dialog {
    position: fixed;
    bottom: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }
}
