:root {
  --nb-brand: #1b4d8c;
}

a.portal-table-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

a.portal-table-sort:hover {
  color: var(--nb-brand);
  text-decoration: underline;
}

.portal-table-sort-mark {
  font-size: 0.75em;
  opacity: 0.85;
}

.btn-primary {
  --bs-btn-bg: var(--nb-brand);
  --bs-btn-border-color: var(--nb-brand);
  --bs-btn-hover-bg: #163d6f;
  --bs-btn-hover-border-color: #163d6f;
}

.portal-header {
  background-color: var(--nb-brand);
  color: #fff;
}

.portal-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-right: auto;
}

.portal-brand:hover {
  color: #fff;
}

.portal-brand-title {
  font-size: 1.05rem;
}

.portal-icon-logo {
  color: #fff;
  flex-shrink: 0;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.portal-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.portal-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.portal-icon {
  flex-shrink: 0;
  display: block;
}

.portal-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .portal-user {
    width: auto;
    margin-left: auto;
  }
}

.portal-user-email {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.product-icon {
  width: 56px;
  height: 56px;
}

.tos-scroll {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  background: #fff;
}

.tos-scroll hr {
  margin: 1.25rem 0;
  opacity: 0.25;
}

.tos-scroll h1,
.tos-scroll h2,
.tos-scroll h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.tos-scroll h1 {
  font-size: 1.25rem;
}

.tos-scroll h2 {
  font-size: 1.1rem;
}

.tos-scroll p:last-child,
.tos-scroll ul:last-child,
.tos-scroll ol:last-child {
  margin-bottom: 0;
}

.auth-form-col {
  max-width: 40rem;
}

.auth-logo {
  color: var(--nb-brand);
}

body.portal-auth .portal-auth-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 576px) {
  body.portal-auth .portal-auth-main {
    padding-top: 7.5rem;
  }
}

.auth-panel {
  width: 100%;
  max-width: 32rem;
}

.auth-panel--signin .auth-logo-img {
  margin-bottom: 1.25rem;
}

.auth-panel--signin .auth-subtitle {
  margin-bottom: 1.25rem;
}

.auth-panel--signin .auth-switch {
  margin-top: 1rem;
}

.auth-panel--signin .auth-instructions--otp {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.auth-otp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.75rem;
}

.auth-otp-actions-resend {
  margin: 0;
}

.auth-otp-actions .btn-link {
  padding: 0;
  vertical-align: baseline;
}

.auth-otp-actions-sep {
  color: #adb5bd;
  user-select: none;
}

.auth-otp-actions-alt {
  text-decoration: none;
}

.auth-logo-img {
  display: block;
  width: min(12.5rem, 72%);
  height: auto;
  margin: 0 auto 1.5rem;
}

.auth-portal-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: #5c6770;
  margin-bottom: 0;
}

.auth-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-instructions {
  margin-bottom: 1.5rem;
}

.auth-switch {
  text-align: center;
  margin: 1.25rem 0 0;
}

.auth-products {
  margin-top: 1.75rem;
  text-align: center;
}

.auth-products-label {
  color: #5c6770;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.portal-main {
  padding-top: 1.5rem;
}

table.table th.actions-col {
  width: 1%;
  white-space: nowrap;
}

table.table td.actions-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.pdf-action-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  vertical-align: middle;
}

.pdf-action-group .btn {
  white-space: nowrap;
}
