:root {
  --portal-primary: #de5945;
  --portal-primary-dark: #cc3a24;
  --portal-charcoal: #302826;
  --portal-earth: #413f3c;
  --portal-slate: #555352;
  --portal-cloud: #6e6e70;
  --portal-white: #ffffff;
}

body.theme-styr {
  --portal-primary: #f06f66;
  --portal-primary-dark: #0a1f3d;
  --portal-charcoal: #0a1f3d;
  --portal-earth: #0a1f3d;
  --portal-slate: #ccddec;
  --portal-cloud: rgba(204, 221, 236, 0.35);
  --portal-white: #ffffff;
}

body.theme-styr .portal-hero {
  background: #ccddec;
  background-image: none;
  box-shadow: none;
  color: var(--portal-charcoal);
}

body.theme-styr .portal-hero.portal-hero-quickscan {
  background: #ccddec;
  box-shadow: none;
  color: var(--portal-charcoal);
  position: relative;
  overflow: hidden;
}

body.theme-styr .portal-hero.portal-hero-quickscan::after {
  content: none;
}

body.theme-styr .portal-hero.mb-4.text-center {
  background-color: #ccddec;
  color: var(--portal-charcoal);
  box-shadow: none;
  background-image: none;
}

body.theme-styr .portal-hero-text {
  color: var(--portal-charcoal);
}

body.theme-styr .portal-hero.portal-hero-quickscan .portal-hero-text,
body.theme-styr .portal-hero.portal-hero-quickscan h1,
body.theme-styr .portal-hero.portal-hero-quickscan p {
  color: var(--portal-charcoal);
}

body.theme-styr .portal-status-label {
  color: rgba(48, 40, 38, 0.75);
}

body.theme-styr .portal-status-chip {
  color: var(--portal-charcoal);
}

body.theme-styr .portal-status-chip {
  background: rgba(204, 221, 236, 0.45);
}

body.theme-styr .portal-card {
  box-shadow: 0 18px 36px rgba(10, 31, 61, 0.18);
}

body.theme-styr .portal-card-header,
body.theme-styr .portal-card .pg-card-header {
  background: linear-gradient(135deg, var(--portal-charcoal), rgba(10, 31, 61, 0.85));
}

body.theme-styr .portal-card-header.portal-card-header-primary,
body.theme-styr .portal-card .pg-card-header.portal-card-header-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
}

body.theme-styr .portal-card-header.portal-card-header-stone,
body.theme-styr .portal-card .pg-card-header.portal-card-header-stone {
  background: var(--portal-charcoal);
}

body.theme-styr .portal-card-header.portal-card-header-sample,
body.theme-styr .portal-card .pg-card-header.portal-card-header-sample {
  background: var(--portal-slate);
}

body.theme-styr .portal-card-header.portal-card-header-primary.portal-card-header-quickscan,
body.theme-styr .portal-card .pg-card-header.portal-card-header-primary.portal-card-header-quickscan {
  background: linear-gradient(135deg, var(--portal-charcoal), var(--portal-primary-dark));
}

body.theme-styr .portal-card-footer {
  background-color: rgba(204, 221, 236, 0.2);
  border-top: 1px solid rgba(10, 31, 61, 0.25);
}

body.theme-styr .portal-btn {
  box-shadow: 0 16px 34px rgba(10, 31, 61, 0.2);
}

body.theme-styr .portal-btn,
body.theme-styr .portal-btn-primary,
body.theme-styr .portal-btn-dark,
body.theme-styr .portal-btn-secondary,
body.theme-styr .portal-btn-hero-cta,
body.theme-styr .portal-btn-ghost {
  background: #ccddec;
  color: #0a1f3d;
  border-color: #ccddec;
}

body.theme-styr .portal-btn:hover,
body.theme-styr .portal-btn:focus,
body.theme-styr .portal-btn-primary:hover,
body.theme-styr .portal-btn-primary:focus,
body.theme-styr .portal-btn-dark:hover,
body.theme-styr .portal-btn-dark:focus,
body.theme-styr .portal-btn-secondary:hover,
body.theme-styr .portal-btn-secondary:focus,
body.theme-styr .portal-btn-hero-cta:hover,
body.theme-styr .portal-btn-hero-cta:focus,
body.theme-styr .portal-btn-ghost:hover,
body.theme-styr .portal-btn-ghost:focus {
  background: #b4c9e1;
  color: #0a1f3d;
  border-color: #b4c9e1;
}

body.theme-styr .portal-btn-primary:hover,
body.theme-styr .portal-btn-primary:focus,
body.theme-styr .portal-btn-dark:hover,
body.theme-styr .portal-btn-dark:focus {
  box-shadow: 0 20px 36px rgba(10, 31, 61, 0.26);
}

.portal-dashboard {
  padding-bottom: 3rem;
}

.portal-hero {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(48, 40, 38, 0.22);
  padding: 3rem;
  color: var(--portal-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.portal-hero--compact {
  padding: 1.75rem 2.5rem;
}

.portal-hero-heading {
  flex: 1 1 340px;
}

.portal-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.8;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.portal-hero-title {
  font-weight: 800 !important;
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  margin-bottom: 1rem;
}

.portal-hero-title-dark {
  color: var(--portal-charcoal);
}

.portal-hero-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--portal-white);
  font-weight: 600;
  max-width: 36rem;
}

.portal-card-body .portal-hero-text,
.portal-hero-text--card {
  color: var(--portal-charcoal);
}

.transformations-hero {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.transformations-hero .transformations-date {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.transformations-hero .transformations-message {
  font-weight: 600;
}

.portal-hero-followup {
  margin-bottom: 1.75rem;
}

.portal-hero-status {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.portal-status-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-status-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.portal-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(48, 40, 38, 0.32);
  color: var(--portal-white);
  backdrop-filter: blur(6px);
}

.portal-status-chip-muted {
  background: rgba(85, 83, 82, 0.35);
}

.portal-hero-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.portal-card {
  background: var(--portal-white);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(48, 40, 38, 0.18);
  display: flex;
  flex-direction: column;
  border: none;
}

.portal-card-header,
.portal-card .pg-card-header {
  background: linear-gradient(135deg, var(--portal-earth), var(--portal-charcoal));
  color: var(--portal-white);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.75rem 2rem;
}

.portal-card-header.portal-card-header-primary,
.portal-card .pg-card-header.portal-card-header-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
}

.portal-card-header.portal-card-header-stone,
.portal-card .pg-card-header.portal-card-header-stone {
  background: var(--portal-primary);
}

.portal-card-header.portal-card-header-sample,
.portal-card .pg-card-header.portal-card-header-sample {
  background: var(--portal-charcoal);
}

.portal-card-header.portal-card-header-primary.portal-card-header-quickscan,
.portal-card .pg-card-header.portal-card-header-primary.portal-card-header-quickscan {
  background: var(--portal-charcoal);
  color: var(--portal-white);
}

.portal-card-header h1,
.portal-card-header h2,
.portal-card-header h3,
.portal-card-header h4,
.portal-card-header h5,
.portal-card-header h6,
.portal-card .pg-card-header h5 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.portal-card-header p,
.portal-card .pg-card-header p {
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.portal-card-body,
.portal-card .pg-card-body {
  color: var(--portal-earth);
  padding: 2rem;
  flex-grow: 1;
}

.portal-card-body > :last-child {
  margin-bottom: 0;
}

.portal-card-footer {
  background-color: rgba(222, 89, 69, 0.08);
  border-top: 1px solid rgba(110, 110, 112, 0.25);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: flex-end;
}

.portal-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--portal-white);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Transparent portal style (demo-klanten / Uitlener / Inlener): light containers, dark border, shadow, dark text */
.portal-page-transparent .portal-hero {
  background: transparent;
  border: 2px solid rgba(222, 89, 69, 0.2);
  box-shadow: 5px 5px 12px rgba(222, 89, 69, 0.25);
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-hero::after {
  display: none;
}
.portal-page-transparent .portal-hero-eyebrow,
.portal-page-transparent .portal-hero-title,
.portal-page-transparent .portal-hero-text {
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-status-label {
  color: rgba(48, 40, 38, 0.85);
}
.portal-page-transparent .portal-status-chip,
.portal-page-transparent .portal-status-chip-muted {
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-status-group {
  background: rgba(255, 255, 255, 0.5);
}
/* Buttons: shadow only below and on the right, at least half the size */
.portal-page-transparent .portal-btn:not(.portal-btn-ghost),
.portal-page-transparent .portal-btn-light,
.portal-page-transparent .portal-btn-primary,
.portal-page-transparent .portal-btn-secondary,
.portal-page-transparent .portal-btn-dark {
  box-shadow: 4px 6px 12px rgba(48, 40, 38, 0.2);
}
.portal-page-transparent .portal-btn:not(.portal-btn-ghost):hover,
.portal-page-transparent .portal-btn:not(.portal-btn-ghost):focus,
.portal-page-transparent .portal-btn-light:hover,
.portal-page-transparent .portal-btn-light:focus,
.portal-page-transparent .portal-btn-primary:hover,
.portal-page-transparent .portal-btn-primary:focus,
.portal-page-transparent .portal-btn-secondary:hover,
.portal-page-transparent .portal-btn-secondary:focus,
.portal-page-transparent .portal-btn-dark:hover,
.portal-page-transparent .portal-btn-dark:focus {
  box-shadow: 5px 7px 14px rgba(48, 40, 38, 0.22);
}
.portal-page-transparent .portal-btn-light {
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-btn-light:hover,
.portal-page-transparent .portal-btn-light:focus {
  color: var(--portal-charcoal);
}
.portal-page-transparent .btn-uitlener,
.portal-page-transparent .btn-uitlener-home,
.portal-page-transparent .assignment-upload-trigger {
  box-shadow: 4px 6px 12px rgba(48, 40, 38, 0.2);
}
.portal-page-transparent .btn-uitlener:hover,
.portal-page-transparent .btn-uitlener:focus,
.portal-page-transparent .btn-uitlener-home:hover,
.portal-page-transparent .btn-uitlener-home:focus,
.portal-page-transparent .assignment-upload-trigger:hover,
.portal-page-transparent .assignment-upload-trigger:focus {
  box-shadow: 5px 7px 14px rgba(48, 40, 38, 0.22);
}
.portal-page-transparent .btn-uitlener-solid {
  box-shadow: 4px 6px 12px rgba(48, 40, 38, 0.18);
}
.portal-page-transparent .btn-uitlener-solid:hover,
.portal-page-transparent .btn-uitlener-solid:focus {
  box-shadow: 5px 7px 14px rgba(48, 40, 38, 0.2);
}
.portal-page-transparent .card.pg-card,
.portal-page-transparent .portal-card {
  background: transparent;
  border: 2px solid rgba(222, 89, 69, 0.2);
  box-shadow: 5px 5px 12px rgba(222, 89, 69, 0.25);
}
.portal-page-transparent .card.pg-card .pg-card-header,
.portal-page-transparent .portal-card .pg-card-header,
.portal-page-transparent .portal-card-header {
  background: transparent;
  border-bottom: 1px solid rgba(222, 89, 69, 0.2);
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-card-header h1,
.portal-page-transparent .portal-card-header h2,
.portal-page-transparent .portal-card-header h3,
.portal-page-transparent .portal-card-header h4,
.portal-page-transparent .portal-card-header h5,
.portal-page-transparent .portal-card-header h6,
.portal-page-transparent .card.pg-card .pg-card-header h5,
.portal-page-transparent .card.pg-card .pg-card-header .text-white {
  color: var(--portal-charcoal) !important;
}
.portal-page-transparent .portal-card-body,
.portal-page-transparent .card.pg-card .card-body {
  color: var(--portal-charcoal);
}
.portal-page-transparent .portal-card-footer {
  background: transparent;
  border-top: 1px solid rgba(222, 89, 69, 0.2);
  color: var(--portal-charcoal);
}
.portal-page-transparent .table-header {
  color: var(--portal-charcoal);
}

.portal-page-transparent .uitlener-form-card,
.portal-page-transparent .uitlener-invite-card {
  background: transparent;
  border: 2px solid rgba(222, 89, 69, 0.2);
  box-shadow: 5px 5px 12px rgba(222, 89, 69, 0.25);
}

.portal-page-transparent .assignment-card {
  background: transparent;
  border: 2px solid rgba(222, 89, 69, 0.2);
  box-shadow: 5px 5px 12px rgba(222, 89, 69, 0.25);
}
.portal-page-transparent .assignment-card-header {
  background: transparent;
  border-bottom: 1px solid rgba(222, 89, 69, 0.2);
  color: var(--portal-charcoal);
}
.portal-page-transparent .assignment-card-header h2 {
  color: var(--portal-charcoal);
}
.portal-page-transparent .assignment-card-body {
  color: var(--portal-charcoal);
}

.portal-page-transparent .summary-card {
  background: transparent;
  border: 2px solid rgba(222, 89, 69, 0.2);
  box-shadow: 5px 5px 12px rgba(222, 89, 69, 0.25);
  color: var(--portal-charcoal);
}

.exact-online-card-body {
  padding: 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}

.exact-online-card-body__intro {
  padding: 1.75rem 1.75rem 1.25rem;
}

.exact-online-card-body__intro .portal-hero-text--card {
  font-size: 0.9rem;
}

.exact-online-table-wrapper {
  border-top: 1px solid rgba(110, 110, 112, 0.18);
  padding: 0;
  margin: 0;
}

.exact-online-table-wrapper .table-responsive {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.exact-online-table-wrapper .table {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  border-collapse: collapse;
}

.exact-online-table-wrapper .table td,
.exact-online-table-wrapper .table th {
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  color: var(--portal-charcoal);
}

.exact-online-table-wrapper .table thead th {
  font-weight: 700;
  font-size: 0.95rem;
}

.exact-online-table-wrapper .table td:last-child,
.exact-online-table-wrapper .table th:last-child {
  display: none;
}

.portal-card-title {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portal-kpi-card {
  padding: 1.5rem;
  border: 2px solid transparent;
  border-radius: 18px;
  background-color: var(--portal-white);
  box-shadow: 0 10px 24px rgba(48, 40, 38, 0.08);
}

.portal-kpi-card--highlight {
  border-color: var(--portal-primary);
  box-shadow: 0 12px 28px rgba(204, 58, 36, 0.18);
}

.portal-kpi-value {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  font-weight: 800;
  color: var(--portal-charcoal);
}

.portal-kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--portal-slate);
}

.portal-steps {
  counter-reset: portal-step;
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.portal-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--portal-charcoal);
}

.portal-steps li:last-child {
  margin-bottom: 0;
}

.portal-steps li::before {
  counter-increment: portal-step;
  content: counter(portal-step);
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 12px 22px rgba(48, 40, 38, 0.22);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(48, 40, 38, 0.2);
}

.portal-btn-block {
  width: 100%;
}

.portal-btn-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
}

.portal-btn-primary:hover,
.portal-btn-primary:focus {
  color: var(--portal-white);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(48, 40, 38, 0.26);
}

.portal-btn-dark {
  background: linear-gradient(135deg, var(--portal-earth), var(--portal-charcoal));
  color: var(--portal-white);
}

.portal-btn-dark:hover,
.portal-btn-dark:focus {
  color: var(--portal-white);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(48, 40, 38, 0.26);
}

.portal-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--portal-white);
  font-weight: 700;
  border-radius: 14px;
  padding: 0.75rem 1.6rem;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
}

.portal-card .portal-btn-secondary {
  background: var(--portal-white);
  border-color: rgba(110, 110, 112, 0.35);
  color: var(--portal-charcoal);
}

.portal-btn-secondary:hover,
.portal-btn-secondary:focus {
  background: rgba(255, 255, 255, 0.2);
  color: var(--portal-white);
}

.portal-card .portal-btn-secondary:hover,
.portal-card .portal-btn-secondary:focus {
  background: rgba(110, 110, 112, 0.08);
  color: var(--portal-charcoal);
}

.portal-btn-secondary.portal-btn-download {
  background: var(--portal-white);
  color: var(--portal-charcoal);
  border-color: #6e6e70;
  font-weight: 700;
}

.portal-btn-secondary.portal-btn-download:hover,
.portal-btn-secondary.portal-btn-download:focus {
  background: var(--portal-white);
  color: var(--portal-charcoal);
  border-color: #555352;
  box-shadow: 0 8px 18px rgba(48, 40, 38, 0.12);
}

body.theme-styr .portal-card .portal-btn-secondary {
  background: #ccddec;
  border-color: #ccddec;
  color: #0a1f3d;
}

body.theme-styr .portal-card .portal-btn-secondary:hover,
body.theme-styr .portal-card .portal-btn-secondary:focus {
  background: #b4c9e1;
  border-color: #b4c9e1;
  color: #0a1f3d;
}

.portal-btn-hero-cta {
  background-color: var(--portal-white);
  color: var(--portal-charcoal);
  border: 0;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(48, 40, 38, 0.25);
  transition: all 0.2s ease-in-out;
}

.portal-btn-hero-cta:hover,
.portal-btn-hero-cta:focus {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--portal-primary-dark);
  box-shadow: 0 14px 30px rgba(48, 40, 38, 0.3);
}

.portal-btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--portal-white);
  border: 1.5px solid var(--portal-white);
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

.portal-btn-hero-outline:hover,
.portal-btn-hero-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--portal-white);
  border-color: var(--portal-white);
}

.portal-btn-ghost {
  background: transparent;
  border: 1px solid rgba(110, 110, 112, 0.35);
  color: var(--portal-charcoal);
  box-shadow: none;
}

.portal-btn-ghost:hover,
.portal-btn-ghost:focus {
  background: rgba(110, 110, 112, 0.08);
  color: var(--portal-charcoal);
}

.portal-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-instruction-modal .modal-content {
  border-radius: 24px;
  border: 2px solid var(--portal-primary);
  box-shadow: 0 24px 48px rgba(48, 40, 38, 0.28);
  background-color: var(--portal-white);
}

.portal-instruction-modal .modal-header {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  border-bottom: none;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 1.5rem 1.75rem;
  align-items: flex-start;
}

.portal-instruction-modal .modal-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-instruction-modal .modal-body {
  padding: 2rem 2.25rem;
  color: var(--portal-charcoal);
}

.portal-instruction-modal .modal-footer {
  border-top: none;
  padding: 1.25rem 2.25rem 1.75rem;
  background-color: rgba(222, 89, 69, 0.08);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.portal-instruction-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.portal-instruction-section {
  margin-bottom: 2.25rem;
}

.portal-instruction-section:last-of-type {
  margin-bottom: 0;
}

.portal-instruction-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--portal-cloud);
  margin-bottom: 1rem;
}

.portal-instruction-steps {
  counter-reset: portal-step-counter;
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.portal-instruction-steps > li {
  position: relative;
  padding-left: 3rem;
}

.portal-instruction-steps > li::before {
  counter-increment: portal-step-counter;
  content: counter(portal-step-counter);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(48, 40, 38, 0.2);
}

.portal-instruction-step-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--portal-charcoal);
}

.portal-instruction-step-text {
  margin-bottom: 0;
  color: var(--portal-earth);
  line-height: 1.6;
}

.portal-instruction-highlight {
  font-weight: 700;
  color: var(--portal-primary);
}

.portal-instruction-columns {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.portal-instruction-columns__empty {
  font-style: italic;
  color: var(--portal-cloud);
}

.portal-instruction-sublist {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--portal-earth);
}

.portal-instruction-tips {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--portal-earth);
}

.portal-instruction-modal .portal-btn-primary {
  box-shadow: none;
}

.portal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(48, 40, 38, 0.08);
  color: var(--portal-charcoal);
  transition: all 0.2s ease-in-out;
}

.portal-icon-btn:hover,
.portal-icon-btn:focus {
  background: rgba(48, 40, 38, 0.16);
  color: var(--portal-charcoal);
}

.portal-icon-btn.portal-icon-btn-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  border: none;
  box-shadow: 0 12px 24px rgba(48, 40, 38, 0.18);
}

.portal-icon-btn.portal-icon-btn-primary:hover,
.portal-icon-btn.portal-icon-btn-primary:focus {
  transform: translateY(-1px);
}

.portal-icon-btn.portal-icon-btn-danger {
  background: rgba(204, 58, 36, 0.12);
  color: var(--portal-primary-dark);
  border-color: rgba(204, 58, 36, 0.35);
}

.portal-icon-btn.portal-icon-btn-muted {
  background: rgba(110, 110, 112, 0.12);
  color: var(--portal-slate);
  border-color: rgba(110, 110, 112, 0.2);
}

.portal-icon-success {
  color: var(--portal-primary);
  font-size: 20px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(48, 40, 38, 0.1);
  color: var(--portal-charcoal);
}

.portal-chip.portal-chip-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
}

.portal-chip.portal-chip-success {
  background: rgba(48, 40, 38, 0.85);
  color: var(--portal-white);
}

.portal-chip.portal-chip-warning {
  background: rgba(222, 89, 69, 0.18);
  color: var(--portal-primary-dark);
}

.portal-chip.portal-chip-muted {
  background: rgba(110, 110, 112, 0.12);
  color: var(--portal-slate);
}

.portal-chip.portal-chip-outline {
  border: 1px solid rgba(110, 110, 112, 0.4);
  background: transparent;
  color: var(--portal-slate);
}

.portal-chip .material-icons {
  font-size: 1rem;
}

.portal-record-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(110, 110, 112, 0.2);
  padding: 1rem 0;
  background-color: transparent;
  color: var(--portal-charcoal);
  font-weight: 600;
}

.portal-record-list .list-group-item:last-child {
  border-bottom: none;
}

.portal-record-list .portal-chip {
  box-shadow: 0 12px 24px rgba(48, 40, 38, 0.18);
}

.portal-upload-note {
  font-size: 0.9rem;
  color: var(--portal-slate);
}

.portal-upload-label {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--portal-earth);
}

.portal-upload-trigger {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white);
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.portal-upload-trigger:hover,
.portal-upload-trigger:focus {
  color: var(--portal-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(48, 40, 38, 0.2);
}

.portal-file-name {
  font-size: 0.95rem;
  color: var(--portal-slate);
  font-weight: 600;
}

.portal-file-meta {
  color: var(--portal-cloud);
}

.portal-icon {
  font-size: 20px;
}

.portal-upload-container {
  width: 100%;
  padding: 0 0 2.5rem;
}

.portal-upload-compact-body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.portal-download-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-guidance-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-guidance-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--portal-earth);
  font-weight: 500;
}

.portal-upload-row .portal-stretch-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portal-upload-row .portal-stretch-card .portal-card-body,
.portal-upload-row .portal-stretch-card .pg-card-body {
  flex-grow: 1;
}

.portal-info-card .portal-card-body,
.portal-info-card .pg-card-body {
  color: var(--portal-earth);
  font-weight: 500;
  line-height: 1.6;
  font-size: 0.95rem;
  padding-left: 1.25rem;
  margin-left: 0.25rem;
}

.portal-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

.portal-alert.portal-alert-dark {
  background: rgba(48, 40, 38, 0.9);
  color: var(--portal-white);
}

.portal-alert.portal-alert-transparent {
  background: transparent;
  color: var(--portal-earth);
  border-color: transparent;
}

.portal-alert.portal-alert-primary {
  background: rgba(222, 89, 69, 0.12);
  color: var(--portal-earth);
  border-color: rgba(222, 89, 69, 0.35);
}

.portal-alert.portal-alert-muted {
  background: rgba(110, 110, 112, 0.12);
  color: var(--portal-earth);
  border-color: rgba(110, 110, 112, 0.2);
}

.portal-text-muted {
  color: rgba(110, 110, 112, 0.8);
}

.portal-response-panel {
  background: var(--portal-white);
  border: 1px solid rgba(110, 110, 112, 0.4);
  border-radius: 18px;
  padding: 1.25rem;
  color: var(--portal-earth);
  min-height: 120px;
}

.portal-response-panel--formatted h2,
.portal-response-panel--formatted h3,
.portal-response-panel--formatted h4,
.portal-response-panel--formatted h5 {
  margin: 0 0 0.75rem 0;
  color: var(--portal-charcoal);
}

.portal-response-panel--formatted h2 {
  font-size: 1.2rem;
}

.portal-response-panel--formatted h3 {
  font-size: 1.05rem;
}

.portal-response-panel--formatted h4,
.portal-response-panel--formatted h5 {
  font-size: 1rem;
}

.portal-response-panel--formatted p {
  margin: 0 0 0.75rem 0;
}

.portal-response-panel--formatted ul {
  padding-left: 1.25rem;
  margin: 0 0 0.85rem 0;
}

.portal-response-panel--formatted li + li {
  margin-top: 0.5rem;
}

.portal-response-panel--formatted strong {
  font-weight: 600;
}

.portal-tablist-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.portal-tablist-viewport {
  overflow: hidden;
  flex: 1;
}

.portal-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0 0 2.5rem 0;
  border-bottom: 1px solid rgba(110, 110, 112, 0.2);
  white-space: nowrap;
}

.portal-tablist-controls .portal-tablist {
  margin-bottom: 0;
}

.portal-tablist .portal-tabitem {
  margin-bottom: -1px;
  flex: 0 0 auto;
}

.portal-tablist-btn {
  border-radius: 12px;
  border: 1px solid rgba(110, 110, 112, 0.3);
  background: rgba(110, 110, 112, 0.08);
  color: var(--portal-charcoal);
  padding: 0.6rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.portal-tablist-btn:hover,
.portal-tablist-btn:focus {
  background: rgba(222, 89, 69, 0.12);
  border-color: rgba(222, 89, 69, 0.35);
}

.portal-tablist-btn[hidden] {
  display: none !important;
}

.portal-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 14px 14px 0 0;
  font-weight: 600;
  color: var(--portal-slate);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.portal-tab-link.active,
.portal-tab-link:hover,
.portal-tab-link:focus {
  color: var(--portal-charcoal);
  background: rgba(222, 89, 69, 0.12);
  border-color: rgba(222, 89, 69, 0.4);
}

.nav .portal-tab-link {
  color: var(--portal-slate);
}

.nav .portal-tab-link.active {
  color: var(--portal-charcoal);
}

.nav-pills .portal-subtab-link {
  background: transparent;
  color: var(--portal-slate);
}

.nav-pills .portal-subtab-link.active {
  color: var(--portal-charcoal);
  background: rgba(222, 89, 69, 0.12);
  border-color: rgba(222, 89, 69, 0.35);
}

.portal-tabcontent {
  background: transparent;
}

.portal-subtablist {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding-left: 0;
}

.portal-subtab-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--portal-slate);
  text-decoration: none;
  border: 1px solid transparent;
}

.portal-subtab-link.active,
.portal-subtab-link:hover,
.portal-subtab-link:focus {
  color: var(--portal-charcoal);
  border-color: rgba(222, 89, 69, 0.35);
  background: rgba(222, 89, 69, 0.08);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--portal-white);
  box-shadow: 0 12px 24px rgba(48, 40, 38, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.portal-table thead {
  background: rgba(222, 89, 69, 0.1);
}

.portal-table-dark-header thead {
  background: var(--portal-charcoal);
}

.portal-table-dark-header thead th {
  color: var(--portal-white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.portal-table thead th {
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--portal-slate);
  font-weight: 700;
  border-bottom: 1px solid rgba(110, 110, 112, 0.25);
}

.portal-table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(110, 110, 112, 0.18);
  color: var(--portal-earth);
  font-weight: 500;
}

.portal-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-table .form-check-input {
  border: 1px solid var(--portal-cloud);
  background-color: var(--portal-white);
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  box-shadow: none;
}

.portal-table-compact thead th,
.portal-table-compact tbody td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.portal-table caption {
  caption-side: top;
  padding: 1rem 0.5rem;
  font-weight: 700;
  color: var(--portal-earth);
}

.portal-table-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.portal-table-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--portal-slate);
}

.portal-section-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--portal-charcoal);
}

.portal-divider {
  border: none;
  height: 1px;
  background: rgba(110, 110, 112, 0.2);
  margin: 1.5rem 0;
}

.portal-status-grid {
  display: grid;
  gap: 1rem;
}

.portal-status-grid .portal-chip {
  justify-content: flex-start;
}

.portal-stat-card {
  background: var(--portal-white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(48, 40, 38, 0.1);
  text-align: center;
  height: 100%;
}

.portal-stat-card h5 {
  font-weight: 700;
  color: var(--portal-charcoal);
  margin-bottom: 1.25rem;
}

.portal-stat-card canvas {
  max-height: 160px;
}

.portal-badge-note {
  font-size: 0.85rem;
  color: var(--portal-cloud);
}

.portal-highlight {
  color: var(--portal-primary-dark);
  font-weight: 700;
}

.payproof-step-one-chart {
  position: relative;
  background-color: #ffffff;
  border: 1px solid rgba(48, 40, 38, 0.12);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1.5rem 0 1rem;
}

.payproof-step-one-chart canvas {
  width: 100% !important;
}

.payproof-step-one-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  color: #413f3c;
  font-size: 0.875rem;
}

.payproof-step-one-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.payproof-step-one-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 999px;
}

.payproof-step-one-legend-swatch-density {
  background: linear-gradient(90deg, rgba(222, 89, 69, 0.6), rgba(204, 58, 36, 0.85));
}

.payproof-step-one-legend-swatch-median {
  width: 4px;
  height: 18px;
  border-radius: 0;
  background-color: transparent;
  border-left: 4px solid #302826;
}

.payproof-step-one-legend-swatch-subject {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cc3a24;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(48, 40, 38, 0.2);
}

.payproof-step-three-card {
  background-color: #ffffff;
  border: 1px solid rgba(48, 40, 38, 0.12);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.payproof-step-three-chart {
  position: relative;
  border-radius: 0.75rem;
  padding: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
}

.payproof-step-three-chart canvas {
  width: 100% !important;
  max-width: 540px;
  height: 240px !important;
  min-width: 0;
  display: block;
}

.payproof-step-three-table-wrapper {
  background-color: rgba(65, 63, 60, 0.04);
  border: 1px solid rgba(85, 83, 82, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
}

.payproof-step-three-table-heading {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #555352;
  border-bottom: 2px solid rgba(65, 63, 60, 0.18) !important;
}

.payproof-step-three-table thead tr {
  background-color: rgba(48, 40, 38, 0.06);
}

.payproof-step-three-table tbody th {
  color: #413f3c;
  font-weight: 600;
  border-top: 1px solid rgba(48, 40, 38, 0.08);
}

.payproof-step-three-table tbody td {
  color: #302826;
  font-weight: 600;
  border-top: 1px solid rgba(48, 40, 38, 0.08);
}

.payproof-step-three-table tbody tr:first-child th,
.payproof-step-three-table tbody tr:first-child td {
  border-top: none;
}

.payproof-step-three-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: #413f3c;
  font-size: 0.875rem;
}

.payproof-step-three-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.payproof-step-three-swatch {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 999px;
}

.payproof-step-three-swatch-range {
  background-color: rgba(222, 89, 69, 0.4);
  border: 1px solid #cc3a24;
}

.payproof-step-three-swatch-median {
  width: 4px;
  height: 18px;
  border-radius: 0;
  background-color: transparent;
  border-left: 4px solid #555352;
}

.payproof-step-three-swatch-subject {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #302826;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(48, 40, 38, 0.18);
}

.payproof-step-three-metric {
  background-color: rgba(65, 63, 60, 0.04);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
}

.payproof-step-three-metric .label {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6e6e70;
}

.payproof-step-three-metric .value {
  font-size: 1rem;
  font-weight: 600;
  color: #302826;
}

.payproof-step-one-range {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #413f3c;
}

.payproof-step-one-range small {
  display: block;
  color: #6e6e70;
  margin-bottom: 0.25rem;
}

.payproof-step-one-range strong {
  display: block;
  color: #302826;
  font-weight: 600;
}

.pg-datatable thead th {
  color: #000;
  font-weight: 700;
}

.pg-datatable .data-type-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(220, 53, 69, 0.75);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .portal-hero-status {
    grid-auto-flow: column;
    gap: 1.25rem;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .portal-hero {
    padding: 2.5rem 2.25rem;
  }

  .portal-hero-action {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-upload-container {
    padding: 0 0 2rem;
  }

  .portal-upload-row .portal-stretch-card {
    height: auto;
  }

  .portal-info-card .portal-card-body,
  .portal-info-card .pg-card-body {
    margin-left: 0;
    padding-left: 1rem;
  }
}

@media (max-width: 575.98px) {
  .portal-hero {
    padding: 2.25rem 1.75rem;
    gap: 1rem;
  }

  .portal-hero-title {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
  }

  .portal-upload-container {
    padding: 0 0 1.75rem;
  }
}

/* Brondata: single-line full-width text for intro paragraphs (QuickScan and non-QuickScan theme) */
.portal-dashboard[data-quickscan-theme="true"] .portal-hero .portal-hero-text,
.portal-dashboard[data-quickscan-theme="true"] .portal-card-body .portal-hero-text--card,
.portal-dashboard[data-quickscan-theme="true"] #generic-csv-table .exact-online-card-body__intro .portal-hero-text--card,
.portal-dashboard[data-quickscan-theme="false"] .portal-hero .portal-hero-text {
  max-width: none;
  white-space: nowrap;
}

/* Brondata: card body and source-table intro text same full width as hero (no 36rem limit) */
.portal-dashboard[data-brondata-selection-saved] .portal-card-body .portal-hero-text--card,
.portal-dashboard[data-brondata-selection-saved] #generic-csv-table .exact-online-card-body__intro .portal-hero-text--card {
  max-width: none;
  white-space: normal;
}

@media (max-width: 767.98px) {
  .portal-dashboard[data-quickscan-theme="true"] .portal-hero .portal-hero-text,
  .portal-dashboard[data-quickscan-theme="true"] .portal-card-body .portal-hero-text--card,
  .portal-dashboard[data-quickscan-theme="true"] #generic-csv-table .exact-online-card-body__intro .portal-hero-text--card,
  .portal-dashboard[data-quickscan-theme="false"] .portal-hero .portal-hero-text {
    white-space: normal;
  }
}

/* SUGB overzicht: stale upload status (same 3-month rule as reminder modal) */
.sugb-stale-pill {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #212529;
  background-color: #fff;
  border: 1px solid #dc3545;
  border-radius: 999px;
  white-space: nowrap;
}
