/* =============================================================================
   header.css — Gestão global de navegação e cabeçalhos de view
   ============================================================================ */

/* --- Linha 1: Abas de Domínio --- */
.domain-tabs {
  display: flex;
  align-items: flex-end;
  min-height: 40px;
  padding: 0 1rem;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.domain-tabs::-webkit-scrollbar {
  display: none;
}

.domain-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--slate-10, var(--lv-slate-10)));
  background: none;
  border: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms ease;
  user-select: none;
}

.domain-tab:hover {
  color: rgb(var(--slate-12, var(--lv-slate-12)));
}

.domain-tab.active {
  color: rgb(var(--slate-12, var(--lv-slate-12)));
  background: rgb(var(--background-color, var(--lv-background-color)));
}

/* --- Linha 2: Sub-tabs --- */
.tabbar {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: rgb(var(--background-color, var(--lv-background-color)));
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.25rem;
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tab-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(var(--slate-10, var(--lv-slate-10)));
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms ease;
  user-select: none;
}

.tab-item::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 120ms ease;
}

.tab-item:hover {
  color: rgb(var(--slate-12, var(--lv-slate-12)));
}

.tab-item.active {
  color: rgb(var(--blue-11, var(--lv-blue-11)));
}

.tab-item.active::after {
  background: rgb(var(--blue-9, var(--lv-blue-9)));
}

/* --- Toolbar: Identificação da View (Título e Subtítulo) --- */
.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.5rem;
}

.toolbar__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.toolbar__title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(var(--slate-12, var(--lv-slate-12)));
  margin: 0;
}

.toolbar__subtitle {
  font-size: 0.8125rem;
  color: rgb(var(--slate-9, var(--lv-slate-9)));
}

.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
