html {
  background: initial;
  overscroll-behavior: none;
}

body {
  background: var(--colors--background);
}

small {
  font-size: 85%;
}

#main {
  margin-left: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}

#main .view-description.alert {
  margin-bottom: 0;
}

#content {
  padding: 16px 14px;
}

@media (min-width: 980px) {
  #hide-menu {
    display: none;
  }
}

@media (max-width: 979px) {
  #top-nav {
    display: none !important;
  }
}

/* Integrations */
.integration {
  position: relative;
  background: var(--colors--background--content);
  border-radius: var(--radius--default);
  border: var(--border--default);
  display: inline-block;
  margin-right: 0.5em;
  max-width: 100%;
  padding: 2em;
  width: 20em;
  opacity: 0.95;
}
.integration:hover {
  border: var(--border--dark);
  opacity: 1;
}
.integration__logo {
  transition: all 0.15s ease-out;
  display: block;
  margin: 0 auto;
  max-width: 75%;
  max-height: 45px;
}
.integration:hover .integration__logo {
  margin-top: 4px;
  margin-bottom: -4px;
}
.integration__title {
  color: var(--colors--primary);
  font-size: 1em;
  font-weight: var(--font--weight--semi-bold);
  margin: 2.7em auto 1em auto;
  padding: 0;
  text-align: center;
}

.compact-form {
  padding-left: 5em;
  max-width: 50em;
}

/* Temporary attempt at cloning some shared styles from TM wireframes */
.tm-pane {
  display: block;
  padding: 2.33em 2em;
  border-radius: var(--radius--default);
  box-shadow: var(--shadow--default);
  border: var(--border--default);
  background: var(--colors--background--content);
}
.tm-pane--dark-border {
  border: var(--border--dark);
}
.tm-pane--no-bottom-pad {
  padding-bottom: 0;
}
.tm-pane--thin-pad {
  padding: 0.538461538em;
}
.tm-pane--no-shadow {
  box-shadow: none;
}
.tm-pane--restrained {
  max-width: 509px;
}

.tm-alert {
  font-size: 1.076923077em;
  padding: 0.857142857em 1.142857143em;
  border-radius: var(--radius--large);
}
.tm-alert__icon {
  margin-right: 0.57em;
}
.tm-alert--danger {
  background: var(--colors--error-light);
  color: var(--colors--error-dark);
}

.tm-customer-name {
  font-family: var(--font-family);
  font-size: var(--font--size--7);
  font-weight: var(--font--weight--semi-bold);
  color: var(--colors--text);
  letter-spacing: normal;
  max-width: 50vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-title {
  font-size: 1.384615385em;
  font-weight: var(--font--weight--semi-bold);
  color: var(--colors--text);
  letter-spacing: normal;
}

.tm-subtitle {
  font-size: 0.8em;
  text-transform: uppercase;
  color: var(--colors--text--secondary);
  font-weight: var(--font--weight--semi-bold);
  text-rendering: optimizeLegibility;
  padding: 0.5em;
  letter-spacing: normal;
}

.tm-title--numbers-big-dark {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 22px;
  line-height: 25px;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  color: var(--colors--text);
  margin-top: 18px;
  margin-bottom: 18px;
}
.tm-navigation {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 16px;
  color: var(--colors--text);
  letter-spacing: normal;
  margin: 0;
}
.tm-search-label {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 18px;
  color: var(--colors--text--secondary);
  letter-spacing: normal;
}
.tm-sub-navigation {
  font-family: var(--font-family);
  text-rendering: optimizeLegibility;
  font-weight: var(--font--weight--semi-bold);
  font-size: 14px;
  color: var(--colors--text);
  letter-spacing: 0;
  line-height: 19px;
}
.tm-sub-navigation--muted {
  color: var(--colors--text--secondary);
}
.tm-regular-text {
  font-family: var(--font-family);
  text-rendering: optimizeLegibility;
  font-size: 14px;
  color: var(--colors--text--secondary);
  line-height: 19px;
  letter-spacing: normal;
  font-weight: var(--font--weight--regular);
}
.tm-regular-text--darker {
  color: var(--colors--text);
}
.tm-regular-text--smaller {
  font-size: 12px;
  line-height: 15px;
}
.tm-regular-text--bolder {
  font-weight: var(--font--weight--bold);
}
.tm-small-text {
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--colors--text--extra-light);
}
.tm-label {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: var(--font--weight--semi-bold);
  color: var(--colors--text--secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  letter-spacing: normal;
}
.tm-link {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--colors--primary--lighter);
  letter-spacing: 0;
  line-height: 19px;
  font-weight: var(--font--weight--semi-bold);
}
.tm-link--disabled {
  color: var(--colors--text--disabled);
  text-decoration: underline;
}
.tm-link--disabled:hover {
  cursor: not-allowed;
}
.tm-small-numbers {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 14px;
  color: var(--colors--text);
  letter-spacing: 0;
  line-height: 19px;
}

.tm-goal {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 28px;
  color: var(--colors--text--secondary);
}

.tm-total-balance {
  font-family: var(--font-family);
  font-weight: var(--font--weight--semi-bold);
  font-size: 22px;
  color: var(--colors--text);
}

.tm-small-numbers {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--colors--text);
  letter-spacing: 0;
  line-height: 19px;
}

/* Forms */
.tm-form-group {
  margin-bottom: 3.8em;
}

/* Blocks */
.tm-block-over-white {
  background: var(--colors--background--content);
  border: var(--border--default);
  border-radius: var(--radius--default);
}

/* Toasts */
.toast__container {
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 0px;
  z-index: 9999;
  justify-content: center;
  width: 100%;
}
.toast {
  background: var(--colors--white-12);
  border: var(--border--default);
  box-shadow: var(--shadow--modal);
  border-radius: var(--radius--default);
  max-width: 420px;
  padding: 16px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--colors--text);
  line-height: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toast svg {
  margin-right: 16px;
}
.toast .close {
  margin-left: 32px;
  opacity: 1;
  font-size: 24px;
  font-weight: var(--font--weight--light);
  color: var(--colors--text--secondary);
}

/* TM Blocks */
.default-block {
  background: var(--colors--background--content);
  box-shadow: var(--shadow--default);
  border-radius: var(--radius--default);
}
.default-block--with-padding {
  padding: var(--spacing--6);
}

.default-block--on-white {
  border: var(--border--default);
  box-shadow: none;
}

.default-block__title {
  background-color: var(--colors--background--alternate);
  height: 40px;
  display: flex;
  justify-content: flex-start;
  align-content: center;
  padding-left: var(--spacing--6);
  border-radius: var(--radius--default);
  line-height: 40px;
}
.default-block--with-padding .default-block__title {
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -24px;
  margin-bottom: 24px;
}

/* TM headers */
.upper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing--5);
  background-color: var(--colors--background--content) !important;
  box-shadow: var(--shadow--default);
  padding-inline: var(--spacing--6);
  position: relative;
  min-height: 56px;
}

.beta-label {
  height: 50px;
  width: 50px;
  overflow: hidden;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.beta-label::before {
  content: '';
  height: 15px;
  width: 75px;
  display: block;
  position: absolute;
  background-color: var(--colors--success);
  transform: rotate(-45deg);
  left: -17px;
  top: 3px;
}
.beta-label::after {
  content: 'BETA';
  position: absolute;
  color: var(--colors--white-12);
  font-size: 11px;
  transform: rotate(-45deg);
  top: 8px;
  left: 2px;
}

.lower-header {
  background: var(--colors--background--alternate);
  box-shadow: var(--shadow--default);
  padding: 0 24px;
  display: flex;
}
.secondary-breadcrumbs__item {
  font-family: var(--font-family);
  font-weight: var(--font--weight--medium);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 19px;
  padding: 14px 0;
  display: block;
  margin-right: 24px;
  border-bottom: 3px solid transparent;
  color: var(--colors--text--secondary);
}
.secondary-breadcrumbs__item--active,
.secondary-breadcrumbs__item:hover {
  text-decoration: none;
  color: var(--colors--primary--lighter);
  border-bottom: 3px solid var(--colors--primary--lighter);
}

/* Grid */
.grid-row {
  margin-left: 45px;
  margin-right: 45px;
  margin-top: 16px;
}
.grid-row--first {
  margin-top: 24px;
}
.grid-row--last {
  margin-bottom: 70px;
}

/* Side nav */
#body__container {
  margin-left: 72px;
}

/* if has id body__container and class iframe remove marging-left */
body.iframe #body__container {
  margin-left: 0;
}

body.iframe :is(.hide-in-iframe, .intercom-lightweight-app) {
  display: none !important;
}
