.gin--dark-mode body.anrt-entity-full-page,
html:not(.gin--dark-mode) body.anrt-entity-full-page {
  --gin-bg-app: var(--anrt-entity-color-page-bg);
  --app-bg-color: var(--anrt-entity-color-page-bg);
}

html:not(.gin--dark-mode) body.anrt-entity-full-page {
  --anrt-entity-color-page-bg: #f0f0f0;
}

.gin--dark-mode body.anrt-entity-full-page {
  --anrt-entity-color-page-bg: #1b1b1d;
}

.anrt-entity-full-tabs {
  --anrt-entity-color-heading: #0d335c;
  --anrt-entity-color-accent: #006391;
  --anrt-entity-color-link: #0451e5;
  --anrt-entity-color-card-bg: #fff;
  --anrt-entity-color-subcard-bg: #f7f8fa;
  --anrt-entity-color-tab-active-bg: #006391;
  --anrt-entity-color-tab-active-text: #fff;
  --anrt-entity-color-tab-hover-bg: #fff;
  --anrt-entity-color-border: #d2d5da;
  --anrt-entity-color-text: #222;
}

.gin--dark-mode .anrt-entity-full-tabs {
  --anrt-entity-color-heading: #e4f2ff;
  --anrt-entity-color-accent: #75c8ec;
  --anrt-entity-color-link: #8eb7ff;
  --anrt-entity-color-card-bg: #2a2a2d;
  --anrt-entity-color-subcard-bg: #303033;
  --anrt-entity-color-tab-active-bg: #285f78;
  --anrt-entity-color-tab-active-text: #fff;
  --anrt-entity-color-tab-hover-bg: #303033;
  --anrt-entity-color-border: #55575c;
  --anrt-entity-color-text: #e4e5e6;
}

.anrt-entity-dashboard-action {
  display: flex;
  justify-content: flex-end;
  margin-block-end: var(--admin-space-l);
}

.anrt-entity-dashboard-action:empty {
  display: none;
}

.anrt-entity-dashboard-action .anrt-entity-dashboard-link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding-inline: var(--admin-space-l);
  margin: 0;
  color: var(--anrt-color-action-text);
  border: 0;
  border-radius: 10px;
  background: var(--anrt-color-action-bg);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.anrt-entity-dashboard-action .anrt-entity-dashboard-link:visited {
  color: var(--anrt-color-action-text);
}

.anrt-entity-dashboard-action .anrt-entity-dashboard-link:hover,
.anrt-entity-dashboard-action .anrt-entity-dashboard-link:focus {
  color: var(--anrt-color-action-text);
  background: var(--anrt-color-action-hover-bg);
}

.anrt-entity-dashboard-action .anrt-entity-dashboard-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.15em;
}

.anrt-entity-dashboard-action .anrt-entity-dashboard-link:focus-visible {
  outline: 3px solid var(--admin-color-focus);
  outline-offset: 3px;
}

.anrt-entity-full-tabs .vertical-tabs {
  margin-block: var(--admin-space-l);
}

.anrt-entity-full-tabs .vertical-tabs__menu {
  padding: 0 var(--admin-space-l) 0 0;
}

.anrt-entity-full-tabs .vertical-tabs__menu-item {
  width: auto;
  padding: 0;
  margin: 0 0 var(--admin-space-s);
  overflow: visible;
}

.anrt-entity-full-tabs .vertical-tabs__menu .vertical-tabs__menu-item::before,
.anrt-entity-full-tabs .vertical-tabs__menu .vertical-tabs__menu-item::after {
  display: none;
  border: 0;
  content: none;
}

.anrt-entity-full-tabs .vertical-tabs__menu-link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.55rem var(--admin-space-m);
  margin: 0;
  color: var(--anrt-entity-color-heading);
  border: 0;
  border-inline-start: 4px solid transparent;
  border-radius: 8px;
  background: transparent;
  line-height: 1.2;
  text-decoration: none;
}

.anrt-entity-full-tabs .vertical-tabs__menu-link::before {
  content: none;
}

.anrt-entity-full-tabs .vertical-tabs__menu-link:hover,
.anrt-entity-full-tabs .vertical-tabs__menu-link:focus {
  color: var(--anrt-entity-color-accent);
  background: var(--anrt-entity-color-tab-hover-bg);
}

.anrt-entity-full-tabs .vertical-tabs__menu .vertical-tabs__menu-item.is-selected .vertical-tabs__menu-link {
  width: auto;
  color: var(--anrt-entity-color-tab-active-text);
  border-inline-start-color: var(--anrt-entity-color-accent);
  background: var(--anrt-entity-color-tab-active-bg);
  box-shadow: none;
}

.anrt-entity-full-tabs .vertical-tabs__items {
  padding: 0;
  color: var(--anrt-entity-color-text);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.anrt-entity-full-tabs .vertical-tabs__pane.gin-details {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--anrt-entity-color-border);
  border-radius: 10px;
  background: var(--anrt-entity-color-card-bg);
  box-shadow: none;
}

.js .anrt-entity-full-tabs .vertical-tabs__pane > summary {
  display: none;
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper {
  padding: var(--admin-space-l);
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div) {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: var(--admin-space-m);
  min-width: 0;
  padding-block: var(--admin-space-m);
  border-bottom: 1px solid var(--anrt-entity-color-border);
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div):first-child {
  padding-block-start: 0;
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div):last-child {
  padding-block-end: 0;
  border-bottom: 0;
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div):has(+ div .person) {
  border-bottom: 0;
}

.anrt-entity-full-tabs .person.anrt-box--outline {
  border-color: var(--anrt-entity-color-border);
}

.anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div) > div:first-child {
  color: var(--anrt-entity-color-heading);
  font-weight: var(--admin-font-weight-bold);
}

.anrt-entity-full-tabs .vertical-tabs__pane .field-group-details > .gin-details__wrapper > div:has(> div + div) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--admin-space-xs);
  align-items: baseline;
  padding-block: var(--admin-space-xs);
}

.anrt-entity-full-tabs .vertical-tabs__pane .field-group-details > .gin-details__wrapper > div:has(> div + div) > div:first-child {
  color: var(--anrt-entity-color-heading);
  font-weight: var(--admin-font-weight-bold);
}

.anrt-entity-full-tabs .vertical-tabs__pane .field-group-details > .gin-details__wrapper > div:has(> div + div) > div:first-child::after {
  content: ":";
}

.anrt-entity-full-tabs .vertical-tabs__pane a {
  color: var(--anrt-entity-color-link);
}

.anrt-entity-full-tabs .anrt-entity-related-records {
  margin-block: 0;
  padding-inline-start: 1.25rem;
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone,
.anrt-entity-full-tabs .paragraph--type--service-contact,
.anrt-entity-full-tabs .paragraph--type--support-packages {
  padding: var(--admin-space-m);
  border: 1px solid var(--anrt-entity-color-border);
  border-radius: 8px;
  background: var(--anrt-entity-color-subcard-bg);
}

.anrt-entity-full-tabs div:has(> .paragraph--type--payment-milestone) + div:has(> .paragraph--type--payment-milestone),
.anrt-entity-full-tabs div:has(> .paragraph--type--service-contact) + div:has(> .paragraph--type--service-contact),
.anrt-entity-full-tabs div:has(> .paragraph--type--support-packages) + div:has(> .paragraph--type--support-packages) {
  margin-block-start: var(--admin-space-m);
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone > div,
.anrt-entity-full-tabs .paragraph--type--service-contact > div,
.anrt-entity-full-tabs .paragraph--type--support-packages > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: var(--admin-space-m);
  padding-block: var(--admin-space-xs);
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone > div:first-child,
.anrt-entity-full-tabs .paragraph--type--service-contact > div:first-child,
.anrt-entity-full-tabs .paragraph--type--support-packages > div:first-child {
  padding-block-start: 0;
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone > div:first-child {
  display: block;
  padding-block-end: var(--admin-space-s);
  color: var(--anrt-entity-color-heading);
  border-bottom: 1px solid var(--anrt-entity-color-border);
  font-size: 1rem;
  font-weight: var(--admin-font-weight-bold);
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone > div:last-child,
.anrt-entity-full-tabs .paragraph--type--service-contact > div:last-child,
.anrt-entity-full-tabs .paragraph--type--support-packages > div:last-child {
  padding-block-end: 0;
}

.anrt-entity-full-tabs .paragraph--type--payment-milestone > div > div:first-child,
.anrt-entity-full-tabs .paragraph--type--service-contact > div > div:first-child,
.anrt-entity-full-tabs .paragraph--type--support-packages > div > div:first-child {
  color: var(--anrt-entity-color-heading);
  font-weight: var(--admin-font-weight-bold);
}

@media screen and (max-width: 48rem) {
  .anrt-entity-full-tabs .vertical-tabs__menu {
    display: flex;
    float: none;
    flex-wrap: wrap;
    gap: var(--admin-space-s);
    width: auto;
    padding: 0;
    margin-bottom: var(--admin-space-m);
  }

  .anrt-entity-full-tabs .vertical-tabs__menu-item {
    flex: 1 1 10rem;
    margin: 0;
  }

  .anrt-entity-full-tabs .vertical-tabs .vertical-tabs__panes {
    inset-block-start: 0;
    margin-inline-start: 0;
  }

  .anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper {
    padding: var(--admin-space-m);
  }

  .anrt-entity-full-tabs .vertical-tabs__pane > .gin-details__wrapper > div:has(> div + div) {
    grid-template-columns: 1fr;
    gap: var(--admin-space-xs);
  }

  .anrt-entity-full-tabs .vertical-tabs__pane .field-group-details > .gin-details__wrapper > div:has(> div + div) {
    grid-template-columns: 1fr;
  }

  .anrt-entity-full-tabs .paragraph--type--payment-milestone > div,
  .anrt-entity-full-tabs .paragraph--type--service-contact > div,
  .anrt-entity-full-tabs .paragraph--type--support-packages > div {
    grid-template-columns: 1fr;
    gap: var(--admin-space-xs);
  }
}
