:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.portal-impersonation-banner {
  align-items: center;
  background: #231f20;
  border-bottom: 4px solid #f5a706;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: center;
  min-height: 52px;
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.portal-impersonation-banner p {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.portal-end-impersonation {
  background: #f5a706;
  border: 1px solid #f5a706;
  border-radius: 4px;
  color: #231f20;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 12px;
}

.portal-end-impersonation:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.portal-end-impersonation:disabled {
  cursor: wait;
  opacity: 0.7;
}

html,
body.portal-dashboard-page {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}

body.portal-dashboard-page {
  background: #ffffff;
  color: #231f20;
}

button,
input {
  font: inherit;
}

.portal-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.portal-sidebar {
  align-self: start;
  background: #ffffff;
  border-right: 1px solid #deded9;
  color: #231f20;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 26px 18px 20px;
  position: sticky;
  top: 0;
}

.portal-sidebar-toggle {
  align-items: center;
  align-self: flex-end;
  background: #ffffff;
  border: 1px solid #c9c9c4;
  border-radius: 4px;
  color: #231f20;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  margin-bottom: 12px;
  padding: 0;
  width: 36px;
}

.portal-sidebar-toggle:hover {
  background: #f4f4f2;
}

.portal-brand {
  background: transparent;
  display: block;
  padding: 6px;
  text-align: center;
  text-decoration: none;
}

.portal-brand img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 190px;
  width: 100%;
}

.portal-product-name {
  color: #555150;
  font-size: 11px;
  font-weight: 800;
  margin: 10px 0 0;
  text-transform: uppercase;
}

.portal-brand .portal-brand-icon,
.portal-signout-icon {
  display: none;
}

.portal-nav {
  align-content: start;
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  grid-auto-rows: min-content;
  margin-top: 24px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.portal-nav a {
  align-items: center;
  border-left: 4px solid transparent;
  color: #231f20;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 13px 14px;
  position: relative;
  text-decoration: none;
}

.portal-nav-label {
  min-width: 0;
}

.portal-nav-notification,
.portal-nav-mention-notification {
  align-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  min-width: 22px;
  padding: 0 5px;
}

.portal-nav-notification {
  background: #c92a2a;
  color: #ffffff;
}

.portal-nav-mention-notification {
  background: #e4eef0;
  color: #174a55;
}

.portal-nav-notification + .portal-nav-mention-notification {
  margin-left: -6px;
}

.portal-nav-icon {
  display: block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.portal-nav a:hover {
  background: #f4f4f2;
  color: #231f20;
}

.portal-nav a[aria-current="page"] {
  background: #f7f7f4;
  border-left-color: #f5a706;
  color: #231f20;
}

.portal-workspace-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.portal-workspace-bar label {
  color: #555550;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-location-picker {
  max-width: 460px;
  position: relative;
  width: 100%;
  z-index: 20;
}

.portal-location-control {
  align-items: center;
  background: #ffffff;
  border: 1px solid #777770;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 40px;
  min-height: 42px;
}

.portal-location-control:focus-within {
  border-color: #231f20;
  outline: 3px solid #f5a706;
  outline-offset: 1px;
}

.portal-location-search-icon {
  color: #666660;
  height: 17px;
  margin-left: 10px;
  width: 17px;
}

.portal-workspace-bar input[role="combobox"] {
  background: transparent;
  border: 0;
  color: #231f20;
  font-size: 13px;
  min-height: 40px;
  min-width: 0;
  outline: 0;
  padding: 8px 10px;
  width: 100%;
}

.portal-workspace-bar input[role="combobox"]:disabled {
  cursor: default;
  opacity: 0.8;
}

.portal-location-toggle {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  border-left: 1px solid #deded9;
  color: #231f20;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.portal-location-toggle svg {
  height: 18px;
  width: 18px;
}

.portal-location-toggle:disabled {
  cursor: default;
  opacity: 0.5;
}

.portal-location-listbox {
  background: #ffffff;
  border: 1px solid #777770;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(35, 31, 32, 0.16);
  left: 0;
  margin-top: 5px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: 100%;
}

.portal-location-option {
  align-items: center;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
}

.portal-location-option[data-active="true"] {
  background: #f3f3ef;
}

.portal-location-option[aria-selected="true"] .portal-location-option-name {
  font-weight: 800;
}

.portal-location-option-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-location-notification {
  align-items: center;
  background: #c92a2a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-width: 22px;
  padding: 0 6px;
}

.portal-location-empty {
  color: #666660;
  font-size: 13px;
  margin: 0;
  padding: 12px 10px;
}

.portal-account-block {
  border-top: 1px solid #deded9;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 18px 6px 0;
}

.portal-account-label {
  color: #666660;
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-account-name,
.portal-account-email,
.portal-account-role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-account-name {
  font-size: 13px;
  margin-top: 6px;
  white-space: nowrap;
}

.portal-account-email {
  color: #666660;
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
}

.portal-account-role {
  color: #666660;
  font-size: 12px;
  margin-top: 4px;
}

.portal-signout {
  background: #ffffff;
  border: 1px solid #a8a8a2;
  border-radius: 4px;
  color: #231f20;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
  min-height: 40px;
  padding: 8px 12px;
  width: 100%;
}

.portal-signout:hover {
  background: #f4f4f2;
  color: #231f20;
}

.portal-signout:disabled {
  cursor: wait;
  opacity: 0.65;
}

.portal-main {
  min-width: 0;
  padding: 42px clamp(22px, 4vw, 58px) 64px;
}

.portal-main-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.portal-page-header {
  border-bottom: 1px solid #d8d8d4;
  margin-bottom: 28px;
  padding-bottom: 20px;
}

.portal-eyebrow {
  color: #777770;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.portal-page-header h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.portal-status {
  background: #ffffff;
  border-left: 4px solid #777770;
  margin: 0;
  padding: 14px 16px;
}

.portal-status[data-type="error"] {
  background: #fff0f0;
  border-color: #a52020;
  color: #721c1c;
}

.portal-welcome {
  background: #ffffff;
  border-left: 5px solid #f5a706;
  padding: 24px 26px;
}

.portal-welcome h2 {
  margin: 0;
}

.portal-welcome h2 {
  font-size: 22px;
}

.portal-welcome p {
  color: #666660;
  line-height: 1.55;
  margin: 8px 0 0;
}

.portal-dashboard-tools {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  margin-top: 24px;
}

.portal-dashboard-card {
  border: 1px solid #d8d8d4;
  border-radius: 6px;
  color: #231f20;
  display: block;
  min-height: 150px;
  padding: 22px;
  text-decoration: none;
}

.portal-dashboard-card:hover {
  background: #f7f7f4;
  border-color: #a8a8a2;
  color: #231f20;
}

.portal-dashboard-card-heading {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.portal-dashboard-card-icon {
  height: 22px;
  width: 22px;
}

.portal-dashboard-card h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.portal-dashboard-card > p {
  color: #666660;
  font-size: 14px;
  margin: 18px 0 0 34px;
}

.portal-corporate-summary {
  background: #ffffff;
  border-left: 5px solid #f5a706;
  padding: 24px 26px;
}

.portal-corporate-summary h2,
.portal-corporate-card h2 {
  color: #231f20;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.portal-corporate-summary p,
.portal-corporate-card p {
  color: #666660;
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.portal-corporate-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}

.portal-corporate-card {
  border: 1px solid #d8d8d4;
  border-radius: 6px;
  min-height: 142px;
  padding: 22px;
}

.portal-notification-badge {
  background: #f5a706;
  border: 1px solid #231f20;
  border-radius: 999px;
  color: #231f20;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.portal-nav a:focus-visible,
.portal-dashboard-card:focus-visible,
.portal-location-toggle:focus-visible,
.portal-sidebar-toggle:focus-visible,
.portal-signout:focus-visible {
  outline: 3px solid #f5a706;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 821px) {
  .portal-shell[data-sidebar-collapsed="true"] {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-sidebar {
    padding: 20px 10px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-sidebar-toggle {
    align-self: center;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-brand {
    padding: 6px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-brand-full,
  .portal-shell[data-sidebar-collapsed="true"] .portal-product-name,
  .portal-shell[data-sidebar-collapsed="true"] .portal-nav-label,
  .portal-shell[data-sidebar-collapsed="true"] .portal-account-label,
  .portal-shell[data-sidebar-collapsed="true"] .portal-account-name,
  .portal-shell[data-sidebar-collapsed="true"] .portal-account-email,
  .portal-shell[data-sidebar-collapsed="true"] .portal-account-role,
  .portal-shell[data-sidebar-collapsed="true"] .portal-signout-label {
    display: none;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-brand-icon {
    display: block;
    margin: 0 auto;
    max-width: 42px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-nav a {
    gap: 0;
    justify-content: center;
    padding: 10px 6px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-nav-notification,
  .portal-shell[data-sidebar-collapsed="true"] .portal-nav-mention-notification {
    margin: 0;
    position: absolute;
    right: 2px;
    top: 2px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-nav-mention-notification {
    top: 22px;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-signout-icon {
    display: inline;
    font-size: 14px;
    font-weight: 800;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-account-block {
    padding: 14px 0 0;
    text-align: center;
  }

  .portal-shell[data-sidebar-collapsed="true"] .portal-signout {
    margin: 0 auto;
    padding: 0;
    width: 44px;
  }
}

@media (max-width: 820px) {
  .portal-impersonation-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 9px 14px;
    text-align: center;
  }

  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    align-self: auto;
    border-bottom: 1px solid #deded9;
    border-right: 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 16px;
    position: static;
  }

  .portal-sidebar-toggle {
    display: none;
  }

  .portal-brand {
    grid-column: 1;
    grid-row: 1;
    padding: 10px;
  }

  .portal-brand img {
    max-width: 150px;
  }

  .portal-product-name {
    margin-top: 6px;
  }

  .portal-nav {
    border-top: 1px solid #deded9;
    display: flex;
    flex: initial;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 10px;
    scrollbar-gutter: auto;
  }

  .portal-nav a {
    border-bottom: 3px solid transparent;
    border-left: 0;
    flex: 0 0 auto;
    font-size: 12px;
    gap: 6px;
    min-height: 40px;
    padding: 9px 8px;
  }

  .portal-nav-label {
    white-space: nowrap;
  }

  .portal-nav-notification,
  .portal-nav-mention-notification {
    border-width: 1px;
    font-size: 9px;
    height: 20px;
    min-width: 20px;
    padding: 0 4px;
  }

  .portal-nav a[aria-current="page"] {
    border-bottom-color: #f5a706;
    border-left: 0;
  }

  .portal-account-block {
    border: 0;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    text-align: right;
  }

  .portal-account-label,
  .portal-account-role {
    display: none;
  }

  .portal-account-name {
    font-size: 12px;
    margin: 0;
    max-width: 180px;
  }

  .portal-account-email {
    font-size: 12px;
    margin: 0;
    max-width: 180px;
  }

  .portal-signout {
    margin-top: 8px;
    min-height: 34px;
    padding: 5px 10px;
    width: auto;
  }

  .portal-main {
    padding: 28px 16px 48px;
  }

  .portal-workspace-bar {
    align-items: stretch;
    display: grid;
    gap: 7px;
  }

  .portal-location-picker {
    width: 100%;
  }

  .portal-page-header h1 {
    font-size: 27px;
  }
}
