/* portal.css — the supplier portal (handbook §4.3 S1-S7; EUDR
 * supplier/RequestEditor.js, DocumentsView.js, PhoneRequests.js).
 *
 * The portal is a public page (templates/portal.html: .ct-app.ct-portal, no
 * shell): the window scrolls, so the "Still needed" card can stay beside the
 * steps on a computer and the Send bar can stay at the foot on a phone. On a
 * computer the steps take the left column and the Send card the right; under
 * 1080px the card follows the steps. On a phone (≤600px, body.ct-ph from
 * pages/portal.js) the cards run full width, the components and the files are
 * the kit's rows, and Send sits in the kit's save bar, held above the
 * keyboard (--ct-portal-kb, from visualViewport).
 *
 * Colours are tokens only (tokens.css). Public pages always render light.
 * Overrides of shared sheets (app.css .ct-app/.ct-main, ui.css
 * .ct-portal-landing) are here, scoped to the portal, for P3 to fold back. */

/* ═══════════════════════ The page: the window scrolls ═══════════════════════ */
/* mobile.css (≤768px) gives body overflow-x:hidden, which makes the body its
   own scroller under app.css's height:100%: the shell pages undo it
   (body.ct-shell-active), the portal does the same (F10, the document scrolls). */
body:has(> .ct-app.ct-portal) {
  height: auto;
  min-height: 100%;
  overflow: visible !important;
  overflow-x: clip !important;
}
.ct-app.ct-portal {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.ct-portal > .ct-main {
  overflow: visible;
  padding: var(--space-6) var(--space-5) var(--space-7);
}
.ct-portal .ct-portal-landing {
  display: block;
  max-width: none;
}
/* the views without the Send card (loading, sent, closed) read as one column */
.ct-portal .ct-portal-landing:not(.ct-portal-has-send),
.ct-portal .ct-portal-loading,
.ct-portal .ct-portal-invalid {
  max-width: 760px;
  margin-inline: auto;
}
.ct-portal .ct-portal-landing.ct-portal-has-send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-5);
  align-items: start;
}
.ct-portal-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.ct-portal-main > .ct-banner {
  margin-bottom: 0;
}
@media (max-width: 1080px) {
  .ct-portal .ct-portal-landing.ct-portal-has-send {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }
}

/* One surface for every block: the portal's glass card (phase1.css). */
.ct-portal-card {
  padding: var(--space-5);
  background: var(--glass-lit), var(--glass);
  border: 1px solid transparent;
  border-radius: var(--radius-glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge), inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
.ct-portal .ct-portal-step,
.ct-portal .ct-portal-hero {
  margin-bottom: 0;
}

/* ═══════════════════════ Loading: the hero and the steps, drawn ═══════════════════════ */
.ct-portal-loading .ct-portal-main {
  gap: var(--space-5);
}
.ct-portal-skel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-portal-skel .ct-skel-chip { width: 120px; height: 22px; border-radius: var(--radius-pill); }
.ct-portal-skel .ct-skel-title { width: 62%; height: 26px; }
.ct-portal-skel .ct-skel-head { width: 40%; height: 22px; }
.ct-portal-skel .ct-skel-line { width: 92%; }
.ct-portal-skel .ct-skel-short { width: 55%; }
.ct-portal-skel .ct-skel-box { width: 100%; height: 64px; border-radius: var(--radius); }
.ct-portal-skel .ct-skel-zone { width: 100%; height: 112px; border-radius: var(--radius); }
.ct-portal-skel .ct-skel-field { width: 100%; height: 40px; border-radius: var(--radius-sm); }

/* ═══════════════════════ The load error and the invalid link ═══════════════════════ */
.ct-portal-error .ct-error-panel {
  margin-top: var(--space-2);
}
.ct-portal-invalid h1 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--text);
}

/* ═══════════════════════ The hero ═══════════════════════ */
.ct-portal-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.ct-portal-hero-top .ct-portal-reqno {
  margin-bottom: 0;
}
.ct-portal .ct-portal-title {
  margin: 0;
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--text);
}
.ct-portal-saved {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.ct-portal-saved[data-state="error"] {
  color: var(--potential);
  font-weight: 600;
}
.ct-portal-hero-text {
  margin: var(--space-3) 0 0;
  color: var(--text);
  line-height: 1.55;
}
.ct-portal-facts {
  margin: var(--space-3) 0 0;
}
.ct-portal-due {
  color: var(--text-muted);
}
.ct-portal-due.is-overdue {
  color: var(--confirmed);
  font-weight: 700;
}
.ct-portal-need {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.ct-portal-need-title {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text);
}
.ct-portal-need ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-portal-need li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--text);
}
.ct-portal-need li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--clear);
  border-bottom: 2px solid var(--clear);
  transform: rotate(-45deg);
}
.ct-portal-hero-actions {
  margin-top: var(--space-4);
}

/* ═══════════════════════ Steps ═══════════════════════ */
.ct-portal .ct-portal-step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--space-3);
}
.ct-portal-progress {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--potential-tint);
  color: var(--potential);
  font-size: var(--text-xs);
  font-weight: 700;
}
.ct-portal-progress.is-done {
  background: var(--clear-tint);
  color: var(--clear);
}
.ct-portal-step-lead {
  margin: 0 0 var(--space-3);
}
.ct-portal-step.is-invalid {
  border-color: var(--confirmed-edge);
}
.ct-portal .ct-filedrop-target.is-dragging {
  outline: 2px dashed var(--focus);
  outline-offset: -6px;
}
/* the expert's note, beside the step it concerns */
.ct-portal-revision {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--potential-edge);
  border-radius: var(--radius);
  background: var(--potential-tint);
}
.ct-portal-revision p {
  margin: 0;
}
.ct-portal-revision-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--potential);
}
.ct-portal-revision-text {
  margin-top: 4px !important;
  color: var(--text);
  white-space: pre-line;
}
.ct-portal-revision-keep {
  margin-top: 6px !important;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── the promise ── */
.ct-portal-promise .ct-form-actions {
  margin-top: var(--space-3);
}
.ct-portal .ct-field-error {
  margin: 4px 0 0;
  color: var(--confirmed);
  font-size: var(--text-sm);
  font-weight: 600;
}
.ct-portal .ct-field-error[hidden] {
  display: none;
}

/* ═══════════════════════ Documents ═══════════════════════ */
.ct-portal-kind {
  margin-bottom: var(--space-3);
}
.ct-portal-kind-set {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ct-portal-kind-set > legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 700;
  color: var(--text);
}
.ct-portal-kind-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.ct-portal-kind-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.ct-portal-kind-choice:hover {
  border-color: var(--focus);
}
.ct-portal-kind-choice:has(input:checked) {
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action);
  background: var(--surface-2);
}
.ct-portal-kind-choice:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}
.ct-portal-kind-choice input {
  margin-top: 3px;
  accent-color: var(--action);
  flex: 0 0 auto;
}
.ct-portal-kind-choice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ct-portal-kind-choice strong {
  font-size: var(--text-sm);
  color: var(--text);
}
.ct-portal-kind-choice small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.ct-portal-kind-set.is-invalid .ct-portal-kind-choice {
  border-color: var(--confirmed-edge);
}
.ct-portal-kind-set.is-invalid > legend {
  color: var(--confirmed);
}
.ct-portal-replacing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.ct-portal-replacing[hidden] {
  display: none;
}
.ct-portal-replacing-badge {
  padding: 3px 10px;
  border: 1px solid var(--potential-edge);
  border-radius: var(--radius-pill);
  background: var(--potential-tint);
  color: var(--potential);
  font-size: var(--text-sm);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ct-portal-docs-mark {
  margin-top: var(--space-2);
}
.ct-portal-files-box {
  margin-top: var(--space-4);
}
.ct-portal-files-empty {
  margin: 0;
}
.ct-portal-files-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text);
}
.ct-portal-files {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-portal-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.ct-portal-file.is-flagged {
  border-color: var(--potential-edge);
  background: var(--potential-tint);
}
.ct-portal-ext {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}
.ct-portal-file-main p {
  margin: 0;
}
.ct-portal-file-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ct-portal-file-meta {
  margin-top: 2px !important;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.ct-portal-file-flag {
  margin-top: 4px !important;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--potential);
}
.ct-portal-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* ═══════════════════════ Questions ═══════════════════════ */
.ct-portal .ct-questionnaire-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ct-portal .ct-question {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ct-portal .ct-question-label {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.ct-portal .ct-question-label label {
  cursor: pointer;
}
.ct-portal .ct-req {
  color: var(--confirmed);
  font-weight: 800;
}
.ct-portal .ct-question select,
.ct-portal .ct-question input[type="text"],
.ct-portal .ct-question input[type="number"] {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-base);
}
.ct-portal .ct-components-field input[type="text"] {
  max-width: none;
}
.ct-portal .ct-question :is(select, input):focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: var(--focus-ring);
}
.ct-portal .ct-question.is-invalid > select,
.ct-portal .ct-question.is-invalid > input,
.ct-portal [aria-invalid="true"]:is(input, select) {
  border-color: var(--confirmed);
}
.ct-portal .ct-question-error {
  margin: 2px 0 0;
  color: var(--confirmed);
  font-size: var(--text-sm);
  font-weight: 600;
}
.ct-portal .ct-question-error[hidden] {
  display: none;
}
.ct-portal-derived {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.ct-portal-derived-value {
  margin: 0;
  color: var(--potential);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ct-portal-derived-value.is-yes {
  color: var(--clear);
}
.ct-portal .ct-btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ct-portal .ct-btn-link:hover {
  color: var(--link-hover);
}
/* the (i) slot (handbook §5 #3: shown once the expert signs the text off) */
.ct-portal-def-btn {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--link);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
}
.ct-portal-def {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-sm);
}
.ct-portal-def p {
  margin: 0;
}
/* the component table: each column says what goes in it */
.ct-portal-comp-table {
  width: 100%;
  table-layout: fixed;
}
.ct-portal-comp-table th {
  white-space: normal;
  vertical-align: bottom;
  padding-inline: 6px;
}
.ct-portal-comp-table td {
  padding-inline: 6px;
}
.ct-portal-comp-table th:nth-child(1) { width: 25%; }
.ct-portal-comp-table th:nth-child(2) { width: 17%; }
.ct-portal-comp-table th:nth-child(3) { width: 19%; }
.ct-portal-comp-table th:nth-child(4) { width: 18%; }
.ct-portal-comp-table th:nth-child(5) { width: 14%; }
.ct-portal-comp-table th .ct-glue-label {
  overflow-wrap: anywhere;
}
.ct-portal-comp-table th:nth-child(6) { width: 44px; }
.ct-portal-comp-x {
  text-align: center;
}
.ct-portal-comp-remove {
  min-width: 30px;
  font-size: var(--text-base);
  line-height: 1;
}
.ct-portal-comp-table td {
  vertical-align: middle;
}
.ct-portal-comp-table input[type="text"] {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}
.ct-portal-comp-conf {
  text-align: center;
}
.ct-portal-comp-empty {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.ct-portal-comp-add {
  align-self: flex-start;
}
.ct-portal-full {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.ct-portal-full > .ct-btn-ghost {
  align-self: flex-start;
  color: var(--link);
  font-weight: 700;
}

/* ═══════════════════════ The confirmation ═══════════════════════ */
.ct-portal .ct-attestation.is-invalid {
  border-color: var(--confirmed-edge);
}
.ct-portal-attest-check {
  font-size: var(--text-base);
}
.ct-portal-attest-check .ct-attestation-text {
  margin: 0;
}
.ct-portal-attest-fields {
  margin-top: var(--space-3);
}

/* ═══════════════════════ Send: what is still needed (desktop) ═══════════════════════ */
.ct-portal-send-card {
  position: sticky;
  top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (max-width: 1080px) {
  .ct-portal-send-card {
    position: static;
  }
}
.ct-portal .ct-portal-send-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
}
.ct-portal-left-title {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--potential);
}
.ct-portal-left-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-portal-left-list li {
  position: relative;
  padding-left: 16px;
}
.ct-portal-left-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--potential);
}
.ct-portal-left-list .ct-btn-link {
  color: var(--text);
  font-weight: 500;
  text-decoration-color: var(--border-strong);
  line-height: 1.4;
}
.ct-portal-left-list .ct-btn-link:hover {
  color: var(--link);
}
.ct-portal-left-ready {
  margin: 0;
  color: var(--clear);
  font-weight: 700;
}
.ct-portal-send-card .ct-portal-send {
  width: 100%;
  min-height: 44px;
}
.ct-portal-send-after {
  margin: 0;
  font-size: var(--text-xs);
}
/* The second click of a double click (or tap) on Send never answers the
   review: for a moment after it opens, its scrim and its buttons let the
   click through (on a phone the sheet's Send sits where the bar's was). */
body.ct-portal-arming :is(.ct-confirm-scrim, .ph-sheet-backdrop, .ct-confirm-ok, .ct-cancel, .ph-sheet-done) {
  pointer-events: none;
}
body.ct-portal-reviewing .ct-confirm {
  width: min(560px, 100%);
}
body.ct-portal-reviewing .ct-confirm-body {
  color: var(--text);
  line-height: 1.6;
  text-align: left;
}

/* ═══════════════════════ After sending ═══════════════════════ */
.ct-portal-thanks h2 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--text);
}
.ct-portal-thanks h2:focus {
  outline: none;
}
.ct-portal-thanks p {
  margin: 0;
}
.ct-portal-sent-counts {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text);
}
.ct-portal-thanks .ct-form-actions {
  margin-top: var(--space-2);
}

/* ═══════════════════════ Tablets ═══════════════════════ */
@media (max-width: 720px) {
  .ct-portal > .ct-main {
    padding: var(--space-4) var(--space-4) var(--space-6);
  }
  .ct-portal-kind-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-portal-file {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .ct-portal-file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ═══════════════════════ Phone (≤600px): one column, the kit's parts ═══════════════════════ */
@media (max-width: 600px) {
  .ct-portal > .ct-main {
    padding: 12px 12px 0;
  }
  .ct-portal .ct-portal-landing.ct-portal-has-send {
    display: block;
  }
  .ct-portal-main {
    gap: 12px;
  }
  .ct-portal-card,
  .ct-portal .ct-portal-step,
  .ct-portal .ct-portal-hero {
    padding: 16px;
  }
  .ct-portal .ct-portal-title {
    font-size: 22px;
    font-weight: 700;
  }
  .ct-portal-step-head {
    margin-bottom: 10px;
  }
  .ct-portal .ct-portal-step-title {
    font-size: 17px;
  }
  .ct-portal-need {
    margin-top: 12px;
    padding: 10px 12px;
  }
  /* the facts as rows: the label, then its value (EUDR phone fact rows) */
  .ct-portal .ct-portal-facts.ct-kv {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    margin-top: 12px;
  }
  .ct-portal .ct-portal-facts.ct-kv dd {
    margin: 0;
  }
  .ct-portal-hero-text {
    margin-top: 10px;
  }
  .ct-portal-need ul {
    flex-direction: column;
    gap: 2px;
  }
  .ct-portal-hero-actions .ct-btn-secondary {
    width: 100%;
  }
  .ct-portal .ct-question select,
  .ct-portal .ct-question input[type="text"],
  .ct-portal .ct-question input[type="number"],
  .ct-portal .ct-field :is(input, select, textarea) {
    max-width: none;
    min-height: 44px;
    font-size: 16px;
  }
  /* the kit's rows sit in the step's card, edge to edge */
  .ct-portal .ct-portal-step .ph-sec {
    margin: 0;
  }
  .ct-portal .ct-portal-step .ph-grp {
    margin-inline: 0;
  }
  .ct-portal-kind-grp.is-invalid {
    box-shadow: inset 3px 0 0 var(--confirmed);
  }
  .ct-portal .ct-filedrop {
    padding: 18px 12px;
  }
  .ct-portal-files-box {
    margin-top: 12px;
  }
  .ct-portal-attest-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-portal .ct-banner {
    padding: 12px;
  }
  /* Send at the foot, above the keyboard when it is up (no tab bar here) */
  body.ct-ph .ct-portal .ph-savebar.ct-portal-sendbox {
    bottom: calc(var(--ct-portal-kb, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    margin: 12px -12px 0;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, transparent, var(--ground) 14px);
  }
  body.ct-ph .ct-portal .ph-savebar.ct-portal-sendbox .ph-btns {
    padding-top: 6px;
  }
  .ct-portal-left {
    padding-top: 14px;
  }
  .ct-portal-left-count {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--potential-edge);
    border-radius: 10px;
    background: var(--potential-tint);
    color: var(--potential);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
  }
  .ct-portal-left-first {
    font-weight: 500;
    color: var(--text);
  }
  .ct-portal-left .ct-portal-left-ready {
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--clear-tint);
    font-size: 15px;
  }
  .ct-portal .ct-portal-send.ph-btn {
    width: 100%;
  }
  /* the cookie notice sits over the Send bar until it is answered */
  body.ct-portal-page #cookieConsentBanner {
    z-index: 30;
  }
}

/* the portal's own bar: the logo keeps its shape on a narrow phone */
.ct-portal .ct-brand-logo {
  flex: 0 0 auto;
}

/* The supplier's account page (/supplier; questionnaire Q59). */
.ct-sa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ct-sa-list { list-style: none; margin: 0; padding: 0; }
.ct-sa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ct-sa-row:first-child { border-top: 0; }
.ct-sa-row .ct-hint { margin: 2px 0 0; }
.ct-sa-row-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* The printable client report (/report; questionnaire Q66). */
.ct-report { max-width: 1100px; margin: 0 auto; padding: 24px 16px; background: #fff; color: #0F282F; }
.ct-report-head { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid #0F282F; padding-bottom: 12px; margin-bottom: 16px; }
.ct-report-logo { width: 44px; height: 44px; }
.ct-report h1 { font-size: 22px; margin: 0; }
.ct-report h2 { font-size: 16px; margin: 18px 0 8px; }
.ct-report-summary ul { margin: 0; padding-left: 18px; }
.ct-report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ct-report-table th { background: #0F282F; color: #fff; text-align: left; padding: 6px; }
.ct-report-table td { border: 1px solid #BFCBCD; padding: 6px; vertical-align: top; }
.ct-report-table tr { break-inside: avoid; }
.ct-report-basis { font-size: 11px; color: #555; margin-top: 16px; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff !important; }
  .ct-report { max-width: none; padding: 0; }
  .ct-cookie-banner, .ct-toast-host { display: none !important; }
}
