/* Base compartilhado: tokens, header, formulários (.table-*), painéis (.checkin-*). */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg-page: hsl(268 29% 15%);
  --fg: hsl(45 10% 92%);
  --card: hsl(268 25% 18%);
  --muted: hsl(268 10% 55%);
  --border: hsl(268 15% 24%);
  --primary: hsl(37 100% 59%);
  /* Bootstrap `.text-primary` usa --bs-primary-rgb; sem isto os ícones herdavam o azul padrão */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 254, 174, 45;
  --primary-fg: hsl(268 29% 10%);
  --secondary-bg: hsl(268 20% 22%);
  --success: hsl(145 63% 42%);
  --warning: hsl(38 92% 50%);
  --danger: hsl(0 72% 51%);
  --radius-card: 0.75rem;
}

html {
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background-color: var(--bg-page);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.glass-card {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.glow-primary {
  box-shadow:
    0 0 30px hsl(37 100% 59% / 0.2),
    0 0 80px hsl(37 100% 59% / 0.08);
}

.glow-primary-intense {
  box-shadow:
    0 0 40px hsl(37 100% 59% / 0.3),
    0 0 100px hsl(37 100% 59% / 0.12),
    0 0 160px hsl(37 100% 59% / 0.05);
}

.status-active {
  background: hsl(145 63% 42% / 0.15);
  color: var(--success);
  border: 1px solid hsl(145 63% 42% / 0.3);
}

.status-warning {
  background: hsl(38 92% 50% / 0.15);
  color: var(--warning);
  border: 1px solid hsl(38 92% 50% / 0.3);
}

.status-danger {
  background: hsl(0 72% 51% / 0.15);
  color: var(--danger);
  border: 1px solid hsl(0 72% 51% / 0.3);
}
.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.lucide--sm {
  width: 14px;
  height: 14px;
}

.lucide--md {
  width: 16px;
  height: 16px;
}

.lucide--lg {
  width: 24px;
  height: 24px;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tracking-hero-label {
  letter-spacing: 0.2em;
}

.mesa-flag {
  display: block;
  width: 2rem;
  height: auto;
  max-height: 1.375rem;
  margin: 0 auto 0.25rem;
  object-fit: contain;
}

.mesa-flag-placeholder {
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.375rem;
}

.mesa-id {
  font-size: 0.65rem;
  line-height: 1.2;
  max-width: 100%;
}

.text-muted-custom {
  color: var(--muted) !important;
}
.header-bar {
  position: relative;
  z-index: 100;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.header-nav {
  position: relative;
  z-index: 1;
}

.header-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.header-nav__toggle:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.header-nav__toggle:focus-visible {
  outline: 2px solid hsl(37 100% 59% / 0.45);
  outline-offset: 2px;
}

.header-nav__toggle[aria-expanded="true"] {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
}

.header-nav__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 110;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px hsl(268 29% 6% / 0.45);
}

.header-nav__menu[hidden] {
  display: none;
}

.header-nav__item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-nav__item:hover,
.header-nav__item:focus-visible {
  color: var(--fg);
  background: color-mix(in srgb, var(--primary) 12%, var(--secondary-bg));
  outline: none;
}

.header-nav__item.is-active {
  color: var(--primary);
  font-weight: 600;
}

.header-nav__item--logout {
  color: var(--muted);
}

.header-nav__item--logout:hover,
.header-nav__item--logout:focus-visible {
  color: var(--fg);
}

.header-nav__divider {
  height: 1px;
  margin: 0.35rem 0.75rem;
  background: color-mix(in srgb, var(--border) 50%, transparent);
  list-style: none;
}
.text-success-custom {
  color: var(--success) !important;
}

.text-warning-custom {
  color: var(--warning) !important;
}

.text-danger-custom {
  color: var(--danger) !important;
}
.tracking-title {
  letter-spacing: 0.15em;
}

.header-logo {
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.text-lg-md {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}
.table-page {
  --table-panel: hsl(268 20% 19%);
  --table-input: hsl(268 18% 26%);
  --table-muted: hsl(268 8% 58%);
  --table-btn: hsl(37 45% 42%);
  --table-btn-fg: hsl(268 29% 10%);
  background-color: var(--bg-page);
}

.table-layout {
  max-width: 1600px;
  margin-inline: auto;
}

.table-block {
  width: 100%;
  background: var(--table-panel);
  border: 1px solid hsl(268 16% 28% / 0.55);
  border-radius: 0.75rem;
}

.table-block--record {
  padding: 1.5rem 1.25rem 1.25rem;
}

.table-block--participant {
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.125rem 1.125rem 1.25rem;
}

.table-block--action {
  padding: 0;
  border: none;
  background: transparent;
}
.table-participant__title {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--primary);
}

.table-field + .table-field {
  margin-top: 0.75rem;
}

.table-label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--table-muted);
}

.table-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--fg);
  background: var(--table-input);
  border: none;
  border-radius: 0.5rem;
  outline: none;
}

.table-input::placeholder {
  color: hsl(268 8% 44%);
}

.table-input:focus {
  box-shadow: 0 0 0 2px hsl(37 100% 59% / 0.22);
}

.table-input.is-invalid {
  box-shadow: 0 0 0 2px hsl(0 72% 51% / 0.35);
}

.table-input--readonly,
.table-input[readonly] {
  cursor: default;
  color: color-mix(in srgb, var(--fg) 88%, var(--table-muted));
  background: color-mix(in srgb, var(--table-input) 75%, hsl(268 22% 14%));
}

.table-input--readonly:focus,
.table-input[readonly]:focus {
  box-shadow: none;
}

.table-input.is-loading {
  opacity: 0.65;
}

.table-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: hsl(0 72% 58%);
}

.table-field--cpf {
  position: relative;
  z-index: 1;
}

.table-cpf-wrap {
  position: relative;
}

.table-cpf-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 12rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow-y: auto;
  background: hsl(268 22% 16%);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px hsl(268 29% 6% / 0.45);
}

.table-cpf-suggestions[hidden] {
  display: none;
}

.table-cpf-suggestions__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  text-align: left;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.table-cpf-suggestions__item:hover,
.table-cpf-suggestions__item:focus-visible {
  background: color-mix(in srgb, var(--primary) 14%, var(--table-input));
  outline: none;
}

.table-cpf-suggestions__item--muted {
  cursor: default;
  color: var(--table-muted);
  font-size: 0.8125rem;
}

.table-cpf-suggestions__item--muted:hover {
  background: transparent;
}

.table-cpf-suggestions__cpf {
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: var(--table-muted);
}

.table-cpf-suggestions__name {
  font-size: 0.875rem;
  font-weight: 500;
}

.table-trade-error {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: hsl(0 72% 58%);
  background: hsl(0 72% 51% / 0.1);
  border: 1px solid hsl(0 72% 51% / 0.28);
  border-radius: 0.5rem;
}

.table-trade-error[hidden] {
  display: none;
}

.table-trade-success {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: hsl(142 52% 58%);
  background: hsl(142 52% 45% / 0.12);
  border: 1px solid hsl(142 52% 45% / 0.32);
  border-radius: 0.5rem;
}

.table-trade-success[hidden] {
  display: none;
}

.table-block--action .btn-table {
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--table-btn-fg);
  background: var(--table-btn);
  border: none;
  border-radius: 0.5rem;
}

.table-block--action .btn-table:hover {
  color: var(--table-btn-fg);
  filter: brightness(1.06);
}

.table-block--action .btn-table:focus-visible {
  outline: 2px solid hsl(37 100% 59% / 0.5);
  outline-offset: 2px;
}

.table-block--action .btn-table:disabled,
.table-block--action .btn-table.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: none;
}

.table-block--action .btn-table:disabled:hover,
.table-block--action .btn-table.is-disabled:hover {
  filter: none;
}

.table-field-error[hidden] {
  display: none;
}

.table-block--action .btn-table.is-loading {
  cursor: wait;
  opacity: 0.75;
}
.checkin-panel {
  position: relative;
}

.checkin-panel.is-loading > :not(.checkin-panel__loading) {
  pointer-events: none;
  opacity: 0.55;
}

.checkin-panel__loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: inherit;
  background: hsl(268 29% 10% / 0.55);
  backdrop-filter: blur(2px);
}

.checkin-panel__loading[hidden] {
  display: none;
}

.checkin-panel__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: checkin-spin 0.75s linear infinite;
}

.checkin-panel__loading-text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

@keyframes checkin-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkin-summary--inline {
  margin-top: 0.25rem;
}

.checkin-summary__divider {
  margin: 1.25rem 0 1rem;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  opacity: 1;
}

.checkin-summary__title {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.checkin-summary__grid {
  display: grid;
  gap: 0.75rem;
}

.checkin-summary__row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.checkin-summary__row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--table-muted);
}

.checkin-summary__row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg);
}

.checkin-summary__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
}

.checkin-summary__badge--yes {
  color: hsl(142 55% 88%);
  background: hsl(142 38% 28% / 0.55);
}

.checkin-summary__badge--no {
  color: hsl(268 10% 82%);
  background: color-mix(in srgb, var(--table-input) 80%, hsl(268 22% 14%));
}
.search-page__hint {
  line-height: 1.45;
}
