/* Shared workbook worksheet tab bar — matches mobile sidebar pill style */

.ws-tabs {
  margin: 0 0 28px;
  min-width: 0;
  max-width: 100%;
}

.ws-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border, rgba(15, 118, 110, 0.15));
  background: #ffffff;
  color: var(--color-text-secondary, #475569);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-tabs__link:hover {
  color: var(--color-primary, #0f766e);
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.04);
}

.ws-tabs__link.is-active {
  background: var(--color-primary, #0f766e);
  border-color: var(--color-primary, #0f766e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
}

@media (max-width: 720px) {
  .ws-tabs {
    margin-bottom: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .ws-tabs__list {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
  }
}
