/* Events page — conference/trade-show list + edit drawer. ev- namespaced. */

/* A DataTable in an intermediate page root needs the root to be a flex column,
   or the table grows to content height and the pagination footer is clipped
   off-viewport (main.css .route-view.active:has(.dt-host) locks overflow). */
.ev-page-root {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ev-page-root > .page-header { flex-shrink: 0; }

.ev-name-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #4f46e5;
  cursor: pointer;
  text-align: left;
}
.ev-name-btn:hover { text-decoration: underline; }

.ev-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Registration-deadline buckets. Only three of the five get colour — "Later"
   and "" are the quiet majority and should not compete for attention. */
.ev-due-passed { color: #b91c1c; font-weight: 600; }
.ev-due-now    { color: #c2410c; font-weight: 600; }
.ev-due-soon   { color: #a16207; }

/* ── Drawer form ───────────────────────────────────────────────────────── */

.ev-form { display: flex; flex-direction: column; gap: 16px; }

.ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ev-field { display: flex; flex-direction: column; gap: 6px; }
.ev-field-full { grid-column: 1 / -1; }

.ev-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.ev-field-hint { font-size: 12px; color: #6b7280; margin: 0; }

.ev-req { color: #dc2626; }

.ev-textarea { width: 100%; resize: vertical; }

.ev-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}
.ev-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.ev-form input[disabled],
.ev-form select[disabled],
.ev-form textarea[disabled],
.ev-checks input[disabled] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
}

@media (max-width: 700px) {
  .ev-grid { grid-template-columns: 1fr; }
}
