/* The vendor workspace uses the ISO side's shell: the same rail, menu order,
   tools row, page heading and page tabs. Values follow the ISO shell
   (style.css, v1.css, interface.css and design.css), which this page does not load. */
.vs-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
.vs-side,
.vs-topbar,
.vs-heading,
.vs-tabs {
  line-height: 1.45;
}
.vs-side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 208px;
  height: 100vh;
  padding: 24px 12px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--rule);
  background: var(--tint);
  color: var(--text);
}
.vs-home {
  display: block;
  padding-left: 10px;
  color: var(--text);
  text-decoration: none;
}
.vs-home .brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 24px;
  font-size: 29px;
  line-height: 1;
}
.vs-menu-toggle {
  display: none;
}
.vs-side nav {
  margin-top: 12px;
}
.vs-side nav button,
.vs-profile {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 14px;
  font-weight: 470;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.vs-side nav button {
  gap: 13px;
  padding: 8px 13px;
}
.vs-side nav button .ui-icon {
  flex: none;
  width: 21px;
  height: 21px;
}
.vs-side nav button.active {
  color: var(--accent-text);
  background: var(--selection);
  box-shadow: inset 2px 0 var(--focus);
  font-weight: 600;
}
.vs-side nav button:hover,
.vs-profile:hover {
  color: var(--text);
  background: var(--selection);
}
.vs-side-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.vs-profile {
  gap: 12px;
  margin-top: 18px;
  padding: 20px 0 2px;
  border-top: 1px solid var(--rule);
  border-radius: 7px;
  font-size: 13px;
}
.vs-profile incentive-account-identity {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vs-profile :is(.avatar, .account-symbol) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}
.vs-profile .account-copy {
  flex: 1;
  width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vs-profile .account-copy small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.vs-chevron {
  display: flex;
  flex: 0 0 22px;
}
.vs-chevron .ui-icon {
  width: 22px;
  height: 22px;
}
.vs-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}
.vs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 7px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
}
.vs-crumb {
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.45;
}
.vs-crumb span {
  margin: 0 12px;
  color: #bebcb8;
}
.vs-crumb b {
  color: var(--text);
  font-weight: 500;
}
.vs-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.vs-portal-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vs-portal-link .ui-icon {
  width: 16px;
  height: 16px;
}
.vs-private {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  color: var(--quiet);
  font-size: 12px;
  white-space: nowrap;
}
.vs-private .ui-icon {
  width: 14px;
  height: 14px;
}
.vs-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
[data-theme="dark"] .vs-avatar {
  background: var(--tint);
}
.vs-avatar .ui-icon {
  width: 20px;
  height: 20px;
}
.vs-avatar:hover {
  background: var(--selection);
}
.vs-body > .vw-progress {
  border-radius: 0;
}
/* The page area: the vendor pages' own widths and spacing still apply inside it. */
.vs-shell .vw-main.vs-content {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 20px 40px 33px;
}
.vs-shell .vw-main.vs-content:is(:has(#vw-product), :has(.vw-review)) {
  max-width: 824px;
  margin-inline: auto;
  padding: 24px 32px;
}
.vs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}
.vs-heading h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.035em;
}
.vs-heading p {
  margin: 9px 0 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.6;
}
/* A vendor in more than one company switches here, where the ISO side keeps its portal switch. */
.vs-tools #vw-company {
  max-width: 220px;
  min-height: 36px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background-color: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.vs-heading .page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}
.vs-heading .page-actions :is(a, .btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.vs-heading .page-actions .text-button {
  border: 0;
  padding: 0 4px;
}
.vs-tabs {
  display: flex;
  gap: 24px;
  margin: -4px 0 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: thin;
}
.vs-tabs button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--quiet);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
  cursor: pointer;
}
.vs-tabs button:hover {
  color: var(--text);
}
.vs-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent-text);
  color: var(--text);
  font-weight: 650;
}
/* The dashboard and lists sit at the page's width, as on the ISO side. */
.vs-shell :is(.va-dashboard, .vw-catalog, .vw-reporting, .vw-billing) {
  max-width: none;
  margin-inline: 0;
}
.vs-shell .vw-main > .vw-notice {
  max-width: none;
}
.vs-shell .in-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .vs-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 28px;
  }
  .vs-private {
    display: none;
  }
  .vs-shell .vw-main.vs-content {
    padding: 20px 28px 28px;
  }
  .vs-heading {
    align-items: flex-start;
    margin-bottom: 28px;
  }
}
@media (max-width: 760px) {
  .vs-shell {
    display: block;
  }
  .vs-side {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 8px 14px;
    overflow: visible;
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }
  .vs-home {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 0;
  }
  .vs-home .brand {
    margin: 0;
    font-size: 26px;
  }
  .vs-menu-toggle {
    position: absolute;
    top: 8px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  .vs-menu-toggle .ui-icon {
    width: 20px;
    height: 20px;
  }
  .vs-side nav,
  .vs-side-bottom {
    display: none;
  }
  .vs-side[data-menu-open="true"] nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 12px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--rule);
  }
  .vs-side[data-menu-open="true"] .vs-side-bottom {
    display: block;
    margin-top: 16px;
  }
  .vs-side nav button {
    gap: 8px;
    padding: 8px 12px;
  }
  .vs-side nav button .ui-icon {
    width: 19px;
    height: 19px;
  }
  .vs-body {
    min-height: 0;
  }
  .vs-topbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 16px;
  }
  .vs-crumb {
    display: none;
  }
  .vs-tools {
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
  }
  .vs-tools .vs-portal-link:first-of-type {
    margin-inline-start: auto;
  }
  .vs-shell .vw-main.vs-content {
    padding: 20px 18px 24px;
  }
  .vs-heading {
    display: block;
    margin-bottom: 16px;
  }
  .vs-heading h1 {
    font-size: 24px;
    line-height: 1.25;
  }
  .vs-heading .page-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
}
@media (max-width: 360px) {
  .vs-side[data-menu-open="true"] nav {
    grid-template-columns: 1fr;
  }
  .vs-shell .vw-main.vs-content {
    padding-inline: 14px;
  }
}

/* The ISO side's note under the page, with the vendor's terms beside privacy. */
.vs-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 10px;
}
.vs-note > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-note .ui-icon {
  width: 15px;
  height: 15px;
}
.vs-note nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.vs-note nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--quiet);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.vs-note nav :is(a, button):hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .vs-note {
    display: block;
    line-height: 1.8;
  }
  .vs-note nav {
    margin-top: 10px;
  }
}

/* Pages that open from a page line up with the page heading, as on the ISO side. */
.vs-shell :is(.apx-page, .ig-setup, .vw-terms-page) {
  margin-inline: 0;
}
