/* Corporate visual language recovered from the legacy portal: a dark masthead,
   white working canvas, restrained gold, ivory table headers and quiet gray fields. */
.regional-policy-page {
  max-width: 76rem;
  margin-inline: auto;
}

.demo-environment-banner {
  padding: .42rem 1rem;
  color: var(--hff-charcoal);
  background: var(--hff-ivory);
  border-bottom: 1px solid var(--hff-gold);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: center;
}

.regional-policy-form {
  max-width: 38rem;
  padding: 1.5rem;
  border: 1px solid var(--hff-border);
  background: var(--hff-surface);
}

.regional-policy-form fieldset {
  display: block;
  margin: 0;
}

.regional-policy-options {
  display: grid;
  gap: .75rem;
}

.regional-policy-table th,
.regional-policy-table td {
  vertical-align: middle;
}

:root {
  --hff-dark: #202427;
  --hff-gold: #b38900;
  --hff-gold-dark: #765a00;
  --hff-ivory: #fff;
  --hff-ivory-warm: #f0e7cc;
  --hff-muted: #66717d;
  --hff-border: #e7dfcb;
  --hff-surface: #fff;
}

html,
body {
  background: #fff;
  overflow-x: clip;
}

body {
  color: #1e252c;
  font-size: .94rem;
  line-height: 1.45;
}

.app-navbar,
body > header > nav:not(.app-navbar) {
  min-height: 3.75rem;
  color: #fff;
  background: var(--hff-dark);
  border: 0;
}

.app-navbar .app-navbar__inner {
  width: 100%;
  max-width: none;
  min-height: 3.75rem;
  padding: 0 1.5rem;
}

.app-brand {
  margin-right: 1.3rem;
  padding: .3rem 0;
}

.tenant-branding {
  gap: .45rem;
}

.tenant-branding img {
  width: 2.25rem;
  height: 2.25rem;
  max-width: none;
}

.tenant-branding--wordmark img {
  width: 14.6rem;
  height: auto;
}

.tenant-branding__name {
  max-width: none;
  color: #f7f7f4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.tenant-branding--labelled .tenant-branding__name {
  font-family: "Roboto", Arial, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.app-navbar .nav-link {
  padding: .5rem .48rem !important;
  color: #bbc0c5;
  font-size: .84rem;
  font-weight: 400;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus-visible {
  color: #fff;
}

.app-navbar .nav-link:hover::after,
.app-navbar .nav-link:focus-visible::after {
  display: none;
}

.app-navbar__account {
  padding-left: .45rem;
  border-left: 0;
}

.app-navbar form[aria-label],
body > header > nav:not(.app-navbar) form[aria-label] {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.app-navbar form[aria-label] button,
body > header > nav:not(.app-navbar) form[aria-label] button {
  padding: .25rem .4rem;
  color: #d8dadd;
  background: transparent;
  border: 1px solid #555b61;
  border-radius: 2px;
  font-size: .78rem;
}

.app-navbar form[aria-label] button:hover,
.app-navbar form[aria-label] button:focus-visible,
body > header > nav:not(.app-navbar) form[aria-label] button:hover,
body > header > nav:not(.app-navbar) form[aria-label] button:focus-visible {
  color: #fff;
  border-color: var(--hff-ivory-warm);
}

.flex-wrapper {
  min-height: calc(100vh - 3.75rem);
}

.app-main {
  width: calc(100% - 3rem);
  max-width: none;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.app-footer,
body > footer {
  margin: 0;
  padding: 1rem 0;
  color: #858a8d;
  background: #fff;
  border-top: 1px solid #dedede;
  text-align: center;
  font-size: .8rem;
}

.app-footer .app-footer__inner {
  width: 100%;
  max-width: none;
  padding: 0 1.5rem;
}

.request-page {
  width: 100%;
  max-width: none;
}

.request-page h1 {
  max-width: none;
  font-size: clamp(1.55rem, 2.1vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.request-page h2,
.request-page h3 {
  font-weight: 500;
  letter-spacing: 0;
}

.request-hero {
  padding: .2rem 0 1rem;
}

.request-hero__intro {
  max-width: 72ch;
  margin: .5rem 0 0;
  font-size: .96rem;
}

.request-page-header {
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
}

.request-page-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.request-icon-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.shipment-overview__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.shipment-overview__summary {
  margin: .35rem 0 0;
  color: var(--hff-muted);
  font-size: .86rem;
}

.shipment-search {
  width: min(100%, 34rem);
  margin: 0 0 1rem auto;
}

.shipment-search .form-control,
.shipment-search .btn {
  min-height: 2.45rem;
}

.shipment-search .btn {
  width: 2.8rem;
  padding-inline: 0;
}

.shipment-overview__warning {
  margin-bottom: 1rem;
  color: #5f4900;
  background: #fff8df;
  border-color: #e7d28c;
  border-radius: 3px;
}

.shipment-overview__table {
  min-width: 84rem;
}

.shipment-overview {
  min-width: 0;
  overflow-x: hidden;
}

.shipment-overview__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  contain: inline-size;
}

.shipment-overview__tracking {
  max-width: 14rem;
  overflow-wrap: anywhere;
}

.shipment-detail-summary dd {
  overflow-wrap: anywhere;
}

.availability-policy {
  display: inline-block;
  margin-top: .35rem;
  padding: .2rem .45rem;
  color: #5f4900;
  background: #f6efd9;
  border: 1px solid #e2d3a5;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 600;
}

.availability-table__money {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.availability-movements__table {
  min-width: 76rem;
}

.request-backlink {
  margin-bottom: .5rem;
  font-size: .84rem;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.25rem 0 1.7rem;
}

.request-action {
  min-height: 0;
  padding: .55rem .9rem;
  color: var(--hff-gold-dark);
  background: #fff;
  border: 1px solid #d7c592;
  border-radius: 3px;
  font-size: .9rem;
}

.request-action--primary,
.request-action--primary:hover {
  color: #443400;
  background: var(--hff-ivory-warm);
  border-color: var(--hff-ivory-warm);
}

.request-action:hover {
  color: var(--hff-gold-dark);
  background: #f8f3e4;
}

.request-panel,
.request-summary,
.request-filter {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--hff-border);
  border-top: 1px solid var(--hff-border);
  background: #fff;
}

.request-landing .request-panel {
  padding: 0;
  border: 0;
}

.request-landing .request-panel h2 {
  margin-bottom: .65rem;
}

.request-choice-grid {
  gap: .65rem;
  margin-top: .5rem;
}

.request-choice {
  min-height: 3.6rem;
  padding: .65rem .8rem;
  background: #f5f5f3;
  border-color: #e4e4e1;
  border-radius: 3px;
}

.request-choice__actions {
  margin-top: .2rem;
}

.request-context {
  padding: .6rem .8rem;
  background: #f5f5f3;
  border-left: 3px solid var(--hff-gold);
}

.request-capacity-note {
  margin: .35rem 0 .8rem;
  padding: .55rem .7rem;
  color: #424c54;
  background: #f5f5f3;
  border-left: 2px solid var(--hff-gold);
  font-size: .88rem;
}

.request-compose .request-table {
  min-width: 72rem;
  table-layout: fixed;
}

.request-compose .request-table th:nth-child(1) { width: 24%; }
.request-compose .request-table th:nth-child(2) { width: 16%; }
.request-compose .request-table th:nth-child(3) { width: 11%; }
.request-compose .request-table th:nth-child(4) { width: 16%; }
.request-compose .request-table th:nth-child(5) { width: 11%; }
.request-compose .request-table th:nth-child(6) { width: 12%; }
.request-compose .request-table th:nth-child(7) { width: 10%; }

.request-item-code,
.request-item-description,
.request-item-format {
  display: block;
}

.request-item-code {
  color: #22282d;
  font-weight: 600;
}

.request-item-description,
.request-item-format,
.request-quantity-limit {
  color: var(--hff-muted);
  font-size: .78rem;
}

.request-po-reference {
  overflow-wrap: anywhere;
}

.request-filter {
  align-items: end;
  padding: 0;
  border: 0;
}

.request-steps {
  margin-bottom: 1.2rem;
}

.request-steps li {
  min-height: 2.5rem;
  padding: .35rem .55rem;
  font-size: .85rem;
}

.request-steps li::before {
  flex-basis: 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: .72rem;
}

.request-table {
  background: #fff;
  border-color: var(--hff-border);
}

.request-table thead th {
  padding: .45rem .5rem;
  color: #24292e;
  background: var(--hff-ivory-warm);
  border-color: var(--hff-border);
  font-size: .82rem;
}

.request-table tbody td {
  padding: .42rem .5rem;
  border-color: var(--hff-border);
  font-size: .88rem;
}

.request-table tbody tr:hover {
  background: #fbf9f2;
}

.requests-list-table {
  min-width: 66rem;
}

.requests-list-table .request-table__number,
.requests-list-table .request-table__date,
.requests-list-table .request-table__actions {
  white-space: nowrap;
}

.requests-list-table .request-table__destination {
  min-width: 12rem;
  white-space: normal;
}

.request-table__actions-heading,
.request-table__actions {
  width: 3rem;
  text-align: center;
}

.request-table__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--hff-gold-strong);
  border-radius: .15rem;
}

.request-table__icon-link:hover,
.request-table__icon-link:focus-visible {
  color: #6f5300;
  background: var(--hff-ivory-warm);
}

.availability-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) 9rem auto;
  gap: .75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--hff-border);
  background: #fff;
}

.availability-toolbar__actions {
  display: flex;
  gap: .5rem;
}

.availability-table {
  min-width: 78rem;
  margin-bottom: 0;
}

.availability-page,
.availability-page form,
.availability-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.availability-page {
  overflow-x: hidden;
}

html:has(.availability-page),
body:has(.availability-page) {
  overflow-x: hidden;
}

.availability-table-wrap {
  overflow-x: auto;
}

.availability-table th,
.availability-table td {
  padding: .34rem .4rem;
  font-size: .78rem;
}

.availability-table__filters th {
  padding: .35rem .4rem;
  background: #fbfaf6;
  border-top: 1px solid #d8cfb6;
}

.availability-table__filters .form-control {
  min-width: 7rem;
  border-color: #cfc5aa;
  background-color: #fff;
}

.availability-table__article,
.availability-table__po {
  font-weight: 600;
  white-space: nowrap;
}

.availability-table__description {
  min-width: 12rem;
}

.availability-empty {
  padding: 2rem !important;
  text-align: center;
  color: var(--hff-muted);
}

.availability-empty p {
  margin-bottom: .35rem;
}

.availability-results {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: .85rem;
  color: var(--hff-muted);
}

.availability-results--top {
  margin: 0 0 .65rem;
}

.availability-results nav {
  display: flex;
  gap: .4rem;
}

@media (max-width: 767.98px) {
  .availability-toolbar {
    grid-template-columns: 1fr;
  }

  .availability-toolbar__actions {
    flex-wrap: wrap;
  }

  .availability-results {
    align-items: flex-start;
    flex-direction: column;
  }
}

.request-detail .request-table td:nth-child(5),
.request-detail .request-table td:nth-child(6) {
  background: #e9edf1;
}

.status-badge,
.status-badge--muted {
  padding: .18rem .48rem;
  color: #38424b;
  background: #e9edf1;
  border: 1px solid #d9dfe4;
  border-radius: 3px;
  font-size: .8rem;
}

.request-reference {
  margin-top: .3rem;
  font-size: .92rem;
}

.request-summary {
  border: 0;
  padding: 0;
}

.request-summary dt,
.request-summary dd {
  padding: .5rem .65rem;
}

.request-summary dd {
  background: #e9edf1;
  border-radius: 3px;
}

.request-shipment {
  padding: .75rem 1rem;
  background: #f5f5f3;
  border: 1px solid #e4e4e1;
  overflow-wrap: anywhere;
}

.request-timeline tbody tr td:first-child {
  padding-left: .5rem;
}

.request-timeline tbody tr td:first-child::before {
  display: none;
}

.request-timeline__date,
.request-timeline__actor {
  width: 25%;
}

.request-timeline__transition {
  width: 50%;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .request-timeline__transition {
    white-space: normal;
  }
}

.form-control,
.form-select {
  min-height: 2.4rem;
  border: 1px solid #d8dfe4;
  border-radius: 3px;
}

.corporate-select {
  position: relative;
  width: 100%;
}

.corporate-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.corporate-select__button {
  position: relative;
  width: 100%;
  min-height: 2.4rem;
  padding: .45rem 2rem .45rem .65rem;
  color: var(--hff-dark);
  text-align: left;
  background: #fff;
  border: 1px solid #cfc5aa;
  border-radius: 3px;
}

.corporate-select__button::after {
  position: absolute;
  top: 50%;
  right: .7rem;
  width: .45rem;
  height: .45rem;
  content: "";
  border-right: 1px solid var(--hff-gold-strong);
  border-bottom: 1px solid var(--hff-gold-strong);
  transform: translateY(-70%) rotate(45deg);
}

.corporate-select__button:focus-visible,
.corporate-select__button[aria-expanded="true"] {
  outline: 2px solid rgba(191, 149, 0, .28);
  outline-offset: 1px;
  border-color: var(--hff-gold-strong);
}

.corporate-select__button:disabled {
  color: #7b7f82;
  background: #f1f1ee;
  cursor: not-allowed;
}

.corporate-select__menu {
  position: absolute;
  z-index: 1050;
  top: calc(100% + .2rem);
  right: 0;
  left: 0;
  max-height: 16rem;
  padding: .25rem;
  overflow-y: auto;
  background: var(--hff-ivory);
  border: 1px solid #cfc5aa;
  box-shadow: 0 3px 8px rgba(31, 35, 38, .12);
}

.corporate-select__option {
  display: block;
  width: 100%;
  padding: .45rem .55rem;
  color: var(--hff-dark);
  text-align: left;
  background: transparent;
  border: 0;
}

.corporate-select__option:hover,
.corporate-select__option:focus-visible,
.corporate-select__option[aria-selected="true"] {
  color: #443400;
  outline: 0;
  background: var(--hff-ivory-warm);
}

.corporate-select__option:disabled {
  color: #8b8e90;
  background: transparent;
}

.btn,
.wizard > .actions a {
  border-radius: 3px;
}

.btn-primary,
.sweet-alert button.confirm,
.wizard > .actions a {
  color: #443400;
  background: var(--hff-ivory-warm);
  border-color: var(--hff-ivory-warm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: var(--hff-gold-dark);
  border-color: var(--hff-gold-dark);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background: var(--hff-gold-dark);
  border-color: var(--hff-gold-dark);
  box-shadow: 0 0 0 .2rem rgba(179, 137, 0, .18);
}

.btn-outline-primary {
  color: var(--hff-gold-dark);
  border-color: #c6ab64;
}

.tabs:hover,
.tabs.active {
  border-bottom-color: var(--hff-gold);
}

/* Identity uses its own local-only layout and does not load Bootstrap. */
body > header > nav:not(.app-navbar) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 1.5rem;
}

body > header > nav:not(.app-navbar) > a {
  text-decoration: none;
}

body > main[role="main"] {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 7.75rem);
  margin: 0;
  padding: 2.75rem 1rem;
}

body > main[role="main"] > .container {
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 0;
}

body > main[role="main"] > .container > .row {
  display: block;
  margin: 0;
}

body > main[role="main"] > .container > .row > .col-md-4:first-child {
  display: none;
}

body > main[role="main"] > .container > .row > .col-md-2,
body > main[role="main"] > .container > .row > .col-md-4:last-child {
  width: 100%;
  padding: 0;
}

body > main[role="main"] h1 {
  margin: 0 0 .4rem;
  font-size: 1.9rem;
  font-weight: 400;
}

body > main[role="main"] #account h4 {
  margin: 0 0 .55rem;
  font-size: 1.2rem;
  font-weight: 400;
}

body > main[role="main"] #account hr {
  margin: .6rem 0 1rem;
  border: 0;
  border-top: 1px solid #d9d9d9;
}

body > main[role="main"] #account label {
  display: block;
  min-width: 0 !important;
  margin-bottom: .22rem;
}

body > main[role="main"] #account .form-control {
  box-sizing: border-box;
  width: 100%;
  padding: .45rem .65rem;
  background: #e9edf1;
  font: inherit;
}

body > main[role="main"] #account .checkbox label {
  display: inline;
}

body > main[role="main"] #account .btn {
  padding: .4rem .7rem;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.identity-card {
  box-sizing: border-box;
  width: min(100%, 29rem);
  margin: 0 auto;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--hff-border);
  border-top: 3px solid var(--hff-gold);
}

.identity-card h1 {
  margin-bottom: .35rem !important;
}

.identity-card__intro {
  margin: 0 0 1.15rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #d9d9d9;
  font-size: 1.05rem;
}

.identity-card .form-group,
.identity-manage-content .form-group {
  margin-bottom: 1rem;
}

.identity-card .checkbox label {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
}

.identity-card .checkbox input {
  accent-color: var(--hff-gold-dark);
}

.identity-card .btn-primary,
.identity-manage-content .btn-primary {
  padding: .48rem .85rem;
  color: #443400;
  background: var(--hff-ivory-warm);
  border: 1px solid #d9c98f;
  border-radius: 3px;
  font: inherit;
}

.identity-card .btn-primary:hover,
.identity-card .btn-primary:focus-visible,
.identity-manage-content .btn-primary:hover,
.identity-manage-content .btn-primary:focus-visible {
  color: #fff;
  background: var(--hff-gold-dark);
  border-color: var(--hff-gold-dark);
}

.identity-card .form-control:focus,
.identity-manage-content .form-control:focus,
.identity-manage-content .form-select:focus {
  border-color: var(--hff-gold);
  box-shadow: 0 0 0 .2rem rgba(179, 137, 0, .18);
  outline: 0;
}

.identity-actions {
  display: flex;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid #e3e3df;
}

body > main[role="main"] a,
.identity-actions a {
  color: var(--hff-gold-dark);
  text-underline-offset: .16em;
}

body > main[role="main"] a:hover,
body > main[role="main"] a:focus-visible {
  color: #4f3c00;
}

.identity-manage-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 2rem;
  width: min(100%, 72rem);
}

.identity-manage-nav__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-manage-nav .nav-link {
  display: block;
  padding: .55rem .7rem;
  color: var(--hff-gold-dark);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.identity-manage-nav .nav-link:hover,
.identity-manage-nav .nav-link:focus-visible {
  color: #443400;
  background: #f7f4eb;
  border-left-color: var(--hff-gold);
}

.identity-manage-nav .nav-link.active {
  color: #fff;
  background: var(--hff-gold-dark);
  border-left-color: var(--hff-gold-dark);
}

.identity-manage-content {
  min-width: 0;
}

.identity-profile-section {
  max-width: 42rem;
  margin-bottom: 1.2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--hff-border);
}

.identity-profile-section--summary h5 {
  margin: 0 0 .35rem;
}

.identity-profile-section--summary p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .app-navbar .app-navbar__inner {
    padding: 0 .7rem;
  }

  .app-main {
    width: calc(100% - 1.25rem);
    padding-top: 1.25rem;
  }

  .tenant-branding__name {
    display: inline;
    font-size: 1.12rem;
  }

  .tenant-branding img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .tenant-branding--wordmark img {
    width: 11.5rem;
    height: auto;
  }

  .request-page-header,
  .request-filter {
    align-items: stretch;
  }

  .request-page-header__actions {
    justify-content: flex-start;
  }

  .request-page-header__actions .btn.request-icon-button {
    flex: 0 0 2.25rem;
    width: 2.25rem;
  }

  .shipment-overview__header {
    flex-direction: column;
  }

  .shipment-search {
    width: 100%;
    margin-left: 0;
  }

  .request-actions {
    display: grid;
  }

  body > header > nav:not(.app-navbar) {
    padding: .35rem .7rem;
  }

  body > main[role="main"] {
    padding: 1.5rem .7rem;
  }

  .identity-card {
    padding: 1.15rem;
  }

  .identity-manage-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .identity-manage-nav__list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: .35rem;
  }

  .identity-manage-nav .nav-link {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .identity-manage-nav .nav-link:hover,
  .identity-manage-nav .nav-link:focus-visible {
    border-left-color: transparent;
    border-bottom-color: var(--hff-gold);
  }
}
