/* Tax workspace tabs: compatible with both light and dark DMT palettes. */
body.ui-v3[data-page="tax"] .tax-workspace-inactive {
  display: none !important;
}
body.ui-v3[data-page="tax"] .tax-workspace-tabs {
  position: sticky;
  top: var(--tax-header-height, 88px);
  z-index: 1290;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  margin: 10px 20px 2px;
  background: var(--tax-surface, #15212d);
  border: 1px solid var(--tax-border, rgba(148,163,184,.18));
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
body.ui-v3[data-page="tax"] .tax-workspace-tab {
  flex: 1 1 205px;
  min-height: 44px;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
  transition: background .15s, border-color .15s;
}
body.ui-v3[data-page="tax"] .tax-workspace-tab:hover:not(:disabled) {
  background: var(--tax-surface-2, #203346);
  border-color: var(--tax-border-strong, #587c98);
}
body.ui-v3[data-page="tax"] .tax-workspace-tab.is-active {
  background: rgba(74,143,201,.14);
  border-color: rgba(97,166,224,.48);
  color: var(--tax-tab-accent, #8fc5f4);
}
body.ui-v3[data-page="tax"] .tax-workspace-tab:disabled { opacity: .45; cursor: not-allowed; }
body.ui-v3[data-page="tax"] .tax-workspace-tab:focus-visible {
  outline: 2px solid #82bbf0;
  outline-offset: 2px;
}
body.ui-v3[data-page="tax"] .tax-workspace-count {
  display: inline-flex;
  justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  margin-left: 7px;
  border-radius: 12px;
  background: rgba(202,153,78,.18);
  color: #f0c882;
  font-size: .72rem;
}
body.ui-v3[data-page="tax"] .tax-workspace-count[hidden] { display: none !important; }
body.ui-v3[data-page="tax"] .tax-ops-search { flex: 2 1 300px; }
body.ui-v3[data-page="tax"] .tax-ops-advanced-toolbar label { min-width: 145px; }
body.ui-v3[data-page="tax"] .tax-ops-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.ui-v3[data-page="tax"] #tax-general-ops-body tr { vertical-align: middle; }
:root[data-theme="light"] body.ui-v3[data-page="tax"] .tax-workspace-tab.is-active {
  color: #164a72;
}
:root[data-theme="light"] body.ui-v3[data-page="tax"] .tax-workspace-count {
  color: #865a16;
}
@media (max-width: 720px) {
  body.ui-v3[data-page="tax"] .tax-workspace-tabs {
    gap: 4px;
    padding: 6px;
    margin: 6px 12px 2px;
  }
  body.ui-v3[data-page="tax"] .tax-workspace-tab {
    flex-basis: 100%;
    min-height: 38px;
    padding: 6px 10px;
    text-align: left;
  }
  body.ui-v3[data-page="tax"] .tax-ops-pagination > * { width: 100%; }
}
