/* Shared tab bar and tab panel primitives.
   Used by Team, Restaurant and Employee schedule pages.
   Tab action row layout (.rs-tab-bar) lives here, not in workbench. */

.rs-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 2px 10px;
  margin: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--rst-ui-surface-divider);
  border-radius: 0;
  background: transparent;
}

.rs-entity-header + .rs-tab-bar .rs-tabs {
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--rst-ui-surface-divider);
  background: transparent;
}

.rs-workbench-body > .rs-tab-bar .rs-tabs {
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rs-tab {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--rst-ui-radius-md);
  background: transparent;
  color: var(--rst-ui-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--rst-fw-bold);
  cursor: pointer;
  transition: color var(--rst-motion-ui) var(--rst-motion-smooth),background var(--rst-motion-ui) var(--rst-motion-smooth),border-color var(--rst-motion-ui) var(--rst-motion-smooth),box-shadow var(--rst-motion-ui) var(--rst-motion-smooth);
}

.rs-tab svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.rs-tab:hover {
  background: var(--rst-ui-surface-field-strong);
  color: var(--rst-ui-text-heading);
}

.rs-tab.is-active {
  color: var(--rst-ui-text);
  background: var(--rst-ui-section-row-hover);
  border-color: var(--rst-ui-line-strong);
  box-shadow: none;
}

.rs-tab small {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--rst-ui-radius-pill);
  background: var(--rst-ui-divider);
  color: var(--rst-ui-text);
  font-size: 9px;
  font-weight: var(--rst-fw-bold);
}

.rs-tab-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 11px;
  border: 0;
  border-radius: 0;
  background: var(--rst-ui-surface-panel-body);
}

/* Toolbar row combining tabs (left) and action buttons (right). */
.rs-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rs-tab-bar .rs-tabs {
  min-width: 0;
  flex: 1 1 auto;
}

.rs-workbench-body > .rs-tab-bar {
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rst-ui-surface-divider);
  background: var(--rst-ui-surface-panel-body);
}

.rs-action-row {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 34px;
}
