/* Barra de navegação: cluster | evento activo (centro, uma linha) | extras */
.site-header .top-tabs.top-tabs-bar--with-active-event {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.site-header .top-tabs.top-tabs-bar--with-active-event .nav-cluster {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.site-header .top-tabs.top-tabs-bar--with-active-event .nav-extras {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}

/* Bloco central: uma linha horizontal, sem moldura nem fundo de «caixa» */
.header-active-event {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(820px, 78vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-active-event__inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  padding: 2px 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  line-height: 1.28;
  font-size: 13px;
  color: rgba(240, 236, 228, 0.9);
}

.header-active-event__label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.header-active-event__sep {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  padding: 0 0.45em;
  user-select: none;
}

.header-active-event__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f0ece4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-active-event__none {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mesas / Cadeia / Sessão em linha */
.header-active-event__stat {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.28em;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-active-event__stat-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.header-active-event__stat-v {
  font-size: 14px;
  font-weight: 800;
  color: #e8a020;
  font-variant-numeric: tabular-nums;
}

.header-active-event__session-timer {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 28px;
  padding: 10px 14px 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(126, 184, 255, 0.32);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.header-active-event__session-timer::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.2);
}
.header-active-event__session-timer-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.header-active-event__session-timer-v {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #9ec8ff;
  min-width: 4.5em;
  text-align: center;
  line-height: 1;
}
.header-active-event__session-timer--paused .header-active-event__session-timer-v {
  color: #f0c050;
}
.header-active-event__session-timer--idle .header-active-event__session-timer-v {
  color: rgba(255, 255, 255, 0.38);
  font-size: 20px;
}
.header-active-event__session-timer-controls {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-active-event__session-timer-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f0ece4;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.header-active-event__session-timer-btn[hidden] {
  display: none;
}
.header-active-event__session-timer-btn--reset {
  font-size: 18px;
}
.header-active-event__session-timer-btn:hover:not(:disabled) {
  background: rgba(47, 125, 208, 0.45);
  border-color: rgba(126, 184, 255, 0.65);
}
.header-active-event__session-timer-btn--reset:hover:not(:disabled) {
  background: rgba(200, 120, 32, 0.35);
  border-color: rgba(232, 160, 32, 0.55);
}
.header-active-event__session-timer-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.header-active-event__session-timer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.header-active-event__idle {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.header-active-event--empty .header-active-event__inner {
  opacity: 0.92;
}

.header-active-event--error .header-active-event__inner {
  justify-content: center;
}
.header-active-event__error {
  color: #e8a8a8;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .header-active-event__session-timer {
    margin-left: 18px;
    padding: 8px 10px 8px 14px;
    gap: 8px;
  }
  .header-active-event__session-timer::before {
    left: -10px;
  }
  .header-active-event__session-timer-v {
    font-size: 18px;
    min-width: 3.8em;
  }
  .header-active-event__session-timer-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
@media (max-width: 720px) {
  .header-active-event__session-timer-k {
    display: none;
  }
  .header-active-event__session-timer {
    margin-left: 12px;
    padding-left: 12px;
  }
}
