/* Full-height module navigation; shared visual contract with Tasks. */
:is(.soft1-workspace.crm-erp .workspace .topbar, .app-navbar.inspyre-topbar):has(.header-module-tabs) {
  --module-header-height: 64px;
  height: var(--module-header-height);
  min-height: var(--module-header-height);
  padding: 0 16px 0 0;
  gap: 16px;
}
:is(.topbar-left, .inspyre-topbar-left):has(.header-module-tabs) {
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0;
}
.header-module-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.header-module-tabs-mobile { display: none; }
.header-module-tabs .header-module-tab {
  position: relative;
  display: flex;
  flex: 0 0 100px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #e8ebef;
  border-radius: 0;
  background: transparent;
  color: #505761;
  font: 600 12px/1.4 Manrope, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.header-module-tabs .header-module-tab :is(.icon, svg) {
  width: 18px;
  height: 18px;
  flex: none;
}
.header-module-tabs .header-module-tab:hover { background: #f7f8fa; color: #20242b; }
.header-module-tabs .header-module-tab.is-active {
  background: #edf5ff;
  color: #0056aa;
  font-weight: 800;
}
.header-module-tabs .header-module-tab.is-active::after {
  position: absolute;
  content: '';
  inset: auto 0 0;
  height: 3px;
  background: #0056aa;
}
.header-module-tabs .header-module-tab:focus-visible {
  outline: 2px solid #0056aa;
  outline-offset: -3px;
}
:is(.soft1-workspace.crm-erp .topbar, .app-navbar.inspyre-topbar) .workspace-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
:is(.topbar-tools, .inspyre-topbar-tools) { flex: none; }
:is(.topbar-left, .inspyre-topbar-left):has(.header-module-tabs) :is(.mobile-menu, .inspyre-mobile-menu) {
  flex: none;
  align-self: center;
  margin: 0 4px;
}
@media (max-width: 1440px) {
  .header-module-tabs .header-module-tab { flex-basis: 90px; }
  .soft1-workspace.crm-erp .topbar:has(.header-module-tabs) .global-search { width: 40px; padding: 0; justify-content: center; }
  .soft1-workspace.crm-erp .topbar:has(.header-module-tabs) .global-search :is(span, kbd) { display: none; }
}
@media (max-width: 1023px) {
  .header-module-tabs .header-module-tab { flex-basis: 56px; padding: 0; }
  .header-module-label { display: none; }
  .inspyre-topbar:has(.header-module-tabs) :is(.inspyre-account-trigger-name, .inspyre-account-chevron) { display: none; }
}
@media (max-width: 640px) {
  :is(.soft1-workspace.crm-erp .workspace .topbar, .app-navbar.inspyre-topbar):has(.header-module-tabs) {
    --module-header-height: 56px;
    padding: 0 8px 0 0;
    gap: 6px;
  }
  .header-module-tabs .header-module-tab { flex-basis: 44px; }
  .header-module-tabs-desktop { display: none; }
  .header-module-tabs-mobile {
    display: flex;
    flex: none;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid #d6dae0;
    background: #fff;
  }
  .header-module-tabs-mobile .header-module-tab {
    flex: 1 0 44px;
    border-right: 0;
    background: transparent;
  }
  .header-module-tabs-mobile .header-module-tab :is(.icon, svg) { width: 20px; height: 20px; }
  .header-module-tabs-mobile .header-module-tab.is-active { background: transparent; }
  :is(.topbar-tools, .inspyre-topbar-tools) { gap: 4px !important; }
  .soft1-workspace.crm-erp .topbar:has(.header-module-tabs) :is(.circle, .global-search, .notification-button, .account-trigger),
  .inspyre-topbar:has(.header-module-tabs) :is(.inspyre-notification-button, .inspyre-account-trigger) {
    width: 32px;
    min-width: 32px;
    height: 36px;
    min-height: 36px;
    padding: 4px;
  }
}
