
/* TOALDO Account Workspace Performance V1 */

.toaldo-current-account-left-v1 {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
  margin: 0 !important;
  max-width: min(420px, 100%) !important;
  box-sizing: border-box !important;
}

/* Personal account: current account sits under the TOALDO brand in the left rail. */
.account-sidebar > .toaldo-current-account-left-v1 {
  display: flex !important;
  width: calc(100% - 24px) !important;
  margin: 10px 12px 12px !important;
}

/* Enterprise / Partner: keep the account chip on the LEFT and out of module navigation. */
.te-console-header,
.tp-console-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
}

.te-console-header > .toaldo-current-account-left-v1,
.tp-console-header > .toaldo-current-account-left-v1 {
  order: -100 !important;
  flex: 0 1 auto !important;
  margin: 0 8px 0 0 !important;
}

.te-console-header .te-console-brand,
.tp-console-header .tp-console-brand {
  flex: 1 1 320px !important;
  min-width: 220px !important;
}

.te-console-header .te-toolbar,
.tp-console-header .tp-toolbar {
  flex: 1 1 420px !important;
  min-width: min(100%, 320px) !important;
}

/* Never allow account chip to cover business module tab rails. */
#te-enterprise .te-tabs,
#tp-partner .tp-nav {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 900px) {
  .te-console-header > .toaldo-current-account-left-v1,
  .tp-console-header > .toaldo-current-account-left-v1,
  .account-sidebar > .toaldo-current-account-left-v1 {
    width: 100% !important;
    max-width: 100% !important;
  }
}
