/* ==========================================================================
   Business register   .rb-page
   --------------------------------------------------------------------------
   This page's own stylesheet, compiled on its own:

       sass assets/scss/register-business.scss assets/css/register-business.css

   It is NOT part of styles.scss and must never be folded into it - styles.css
   carries hand-written rules that a recompile of the main sheet would wipe.

   The page is a single centred column, not the two-pane auth board the other
   register screens use, so nothing here inherits from that shell. Every class
   is prefixed rb-.

   What it deliberately does not restate: the design tokens, and the shared
   .btn, checkbox and upload components, all of which come from styles.css. A
   button on this page is the same button as everywhere else, by rule.

   Two class names are JS contracts rather than styling choices: .is-on /
   .is-open are the state classes main.js and business.js toggle, and
   .bd-pick-body is the node business.js copies onto the picker's face.
   ========================================================================== */
/* Bootstrap is not loaded on this page, and its reset is where the rest of the
   project gets border-box from - styles.css is written expecting it, so a
   .btn-block came out wider than its column by its own padding and border.
   The reset is restated here, scoped to the page. */
.rb-page,
.rb-page *,
.rb-page *::before,
.rb-page *::after {
  box-sizing: border-box;
}

/* The field design this sheet introduces, kept as its own tokens so it can be
   used wherever these blocks are - the register walk owns them, and the
   dashboard's Company Profile reuses the summary block, so they are declared
   on the document rather than on the register pages' own body class. Nothing
   outside the rb- rules reads them. A field is a flat box with a quiet edge;
   it answers in the primary colour when it is focused, and only then. */
:root {
  --rb-field-h: 52px;
  --rb-field-r: 12px;
  --rb-field-bw: 2px;
  --rb-field-bd: #e6e8ec;
  --rb-field-bd-hover: #cfd4dc;
  /* the focused edge is the primary at part opacity - at full strength a 2px
     edge shouts. The colour is unchanged, only its weight. */
  --rb-field-bd-on: rgba(249, 113, 65, 0.7);
  --rb-field-bg: var(--dbk-surface);
}

.rb-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dbk-surface);
  color: var(--dbk-text);
}

/* The dark cut of the field tokens. The resting edge is a light literal
   above, which on the dark ground read as a white outline around every
   control; here it is a step off the surface instead, the way the panels
   around it are. The focused edge stays the primary and is left alone. */
.dark-theme {
  --rb-field-bd: #2a303a;
  --rb-field-bd-hover: #3a4250;
  /* restated: on :root the var() resolves to the light surface, and the
     resolved white is what the dark body would otherwise inherit */
  --rb-field-bg: var(--dbk-surface);
  /* bootstrap's .text-muted (the "(optional)" marks) reads this, and it
     is the light theme's dark grey unless restated for the dark body */
  --bs-secondary-color: var(--dbk-muted);
}

/*----------------------------------------
   The bar
   The mark on one side; on the other the way back to a sign-in, the two
   utilities, and the way out of the flow entirely.
-----------------------------------------*/
.rb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* the wide gutter is deliberate: the mark and the way out sit at the far
     edges of the reading width rather than hard against the screen. It steps
     down twice on the way to a phone, where 200px would leave nothing
     between them. */
  padding: 14px 200px;
  border-bottom: 1px solid var(--dbk-border);
}
.rb-bar-logo {
  display: inline-flex;
  /* both cuts ship and the theme picks one: an <img src> cannot be
     swapped from CSS, and doing it in script flashes the wrong mark */
}
.rb-bar-logo img {
  height: 40px;
  width: auto;
}
.rb-bar-logo .rb-logo-dark {
  display: none;
}
.rb-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-theme .rb-bar-logo .rb-logo-light {
  display: none;
}
.dark-theme .rb-bar-logo .rb-logo-dark {
  display: inline-block;
}

/* The only control in the bar. A cross is the one thing that means "leave"
   without a word for it, and it leads back out to the site rather than on to
   the next step - the flow has its own Continue for that. It takes the same
   corner as the fields below, not a capsule. */
.rb-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--dbk-text-2);
  transition: color 0.2s ease;
}
.rb-close:hover {
  color: var(--dbk-negative);
}

/*----------------------------------------
   The column
   One measure, centred, the same width at every screen so the walk does not
   shift under the user between steps.
-----------------------------------------*/
.rb-main {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  padding: 56px 24px 48px;
}

.rb-col {
  width: 100%;
  max-width: 480px;
}

/*----------------------------------------
   Steps
   One panel on screen at a time; main.js owns which. The entrance runs with
   fill-mode backwards on purpose: `both` would leave its transform applied
   after it ends, and a transformed element is the containing block for
   anything position:fixed inside it - which is what the picker's panel is.
-----------------------------------------*/
.rb-step {
  display: none;
}
.rb-step.is-on {
  display: block;
  animation: rb-step-in 0.3s ease backwards;
}

@keyframes rb-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.rb-head {
  margin-bottom: 26px;
  text-align: center;
}

/* every step is headed the same way: one size, one weight, centred over the
   line that explains it */
.rb-title {
  margin-bottom: 10px;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--dbk-text);
}

.rb-sub {
  margin: 0;
  color: var(--dbk-muted);
  font-size: 15px;
  font-weight: 600;
}

.rb-count {
  margin: -14px 0 20px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--dbk-muted);
}
.rb-count b {
  color: var(--dbk-text);
}

/*----------------------------------------
   Fields
   One box shape for an input, a select and the picker, so a column of them
   cannot drift apart by a pixel.
-----------------------------------------*/
.rb-field {
  margin-bottom: 18px;
}

.rb-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--dbk-text);
}

.rb-req {
  margin-left: 2px;
  color: #e5383b;
}

.rb-box {
  position: relative;
  display: flex;
  align-items: center;
}
.rb-box .rb-icon {
  position: absolute;
  left: 15px;
  display: inline-flex;
  font-size: 16px;
  color: var(--dbk-muted);
  pointer-events: none;
}
.rb-box .rb-icon + .rb-input {
  padding-left: 42px;
}

/* the library copies the control's classes onto its own markup, so one rule
   dresses the native select and its replacement alike */
.rb-input {
  width: 100%;
  height: var(--rb-field-h);
  padding: 0 16px;
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  line-height: calc(var(--rb-field-h) - var(--rb-field-bw) * 2);
  background: var(--rb-field-bg);
  box-shadow: none;
  font-size: 14.5px;
  color: var(--dbk-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  /* focused, the field answers in the primary colour and nothing else -
     the edge is already 2px, so it does not need a ring to be seen */
  /* styles.css sets the library control's box with !important for the fields
     the rest of the site wears, so the new one can only take it back the
     same way. Native <select> and library control end up identical. */
}
.rb-input::placeholder {
  color: var(--dbk-muted);
}
.rb-input:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-input:focus {
  outline: 0;
  border-color: var(--rb-field-bd-on);
}
.rb-input.nice-select {
  height: var(--rb-field-h) !important;
  line-height: calc(var(--rb-field-h) - var(--rb-field-bw) * 2) !important;
  border: var(--rb-field-bw) solid var(--rb-field-bd) !important;
  border-radius: var(--rb-field-r) !important;
  background: var(--rb-field-bg) !important;
  box-shadow: none !important;
  /* The chevron is the shared one: styles.css draws it as a masked SVG
     for every select that is not one of the small variants, and this
     control is one of those - so nothing is restated here. Overriding it
     with a border mark, as this rule did, drew a second smaller chevron
     on top of the mask. */
  /* business.js builds this row into the top of the panel for a select
     carrying [data-search]; it is an <li> because the panel is a <ul> */
  /* main.js carries a per-option flag across to the library's markup */
}
.rb-input.nice-select:hover {
  border-color: var(--rb-field-bd-hover) !important;
}
.rb-input.nice-select.open {
  border-color: var(--rb-field-bd-on) !important;
}
.rb-input.nice-select .list {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 6px;
  padding: 6px !important;
  border: 1px solid var(--dbk-border) !important;
  border-radius: var(--rb-field-r) !important;
  background: var(--dbk-surface) !important;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12) !important;
}
.rb-input.nice-select .option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  line-height: 48px;
  color: var(--dbk-text);
}
.rb-input.nice-select .option:hover, .rb-input.nice-select .option.focus {
  background: var(--dbk-surface-2);
}
.rb-input.nice-select .option.selected, .rb-input.nice-select .option.selected.focus {
  background: var(--dbk-pop-soft);
  color: var(--dbk-text);
  font-weight: 600;
}
.rb-input.nice-select .bd-sel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 0 10px !important;
  border-bottom: 1px solid var(--dbk-border);
  cursor: default;
}
.rb-input.nice-select .bd-sel-search i {
  font-size: 14px;
  color: var(--dbk-muted);
}
.rb-input.nice-select .bd-sel-search input {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--dbk-text);
}
.rb-input.nice-select .bd-sel-search input:focus {
  outline: 0;
}
.rb-input.nice-select .option.is-hidden {
  display: none;
}
.rb-input.nice-select .bd-sel-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dbk-muted);
}
.rb-input.nice-select .bd-sel-empty.is-hidden {
  display: none;
}
.rb-input.nice-select .opt-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

/* The dial code is a segment of the phone box, not a second control. The
   wrapper draws the field and the two sit in it as flex items, so the code
   cannot run under what is being typed and nothing has to be measured in
   script - the step is display:none when the page loads, and a hidden element
   measures zero. */
.rb-phone {
  display: flex;
  align-items: center;
  height: var(--rb-field-h);
  padding: 0 16px;
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.rb-phone:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-phone:focus-within {
  border-color: var(--rb-field-bd-on);
}
.rb-phone .rb-dial {
  flex: 0 0 auto;
  padding-right: 10px;
  font-size: 14.5px;
  color: var(--dbk-text);
}
.rb-phone .rb-input {
  flex: 1 1 auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rb-phone .rb-input:hover, .rb-phone .rb-input:focus {
  border: 0;
  box-shadow: none;
}

/* A field with room to write in. The box is the page's own field grown to
   hold several lines: same edge, same corner, same answer on focus - only the
   height and the padding differ, because a line of text cannot be centred in
   a box four lines tall. */
.rb-area .rb-input {
  height: auto;
  min-height: 108px;
  padding: 13px 16px;
  line-height: 1.6;
  resize: vertical;
}

/* a line under a field, for what a label cannot say in two words */
.rb-hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dbk-muted);
}

/* The date fields are the site's own picker on a readonly text input, so the
   field is filled by the panel rather than typed into. Readonly is only there
   to keep the format honest; it should not read as a field that is off. */
.rb-input[data-datepicker] {
  cursor: pointer;
  color: var(--dbk-text);
}

/* The password fields wear the shared .passo reveal from styles.css rather
   than a second eye of their own; all this page owes it is the room its
   button needs at the end of the field. */
.rb-box.passo .rb-input {
  padding-right: 46px;
}

.rb-reveal {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dbk-muted);
  font-size: 16px;
  cursor: pointer;
}
.rb-reveal:hover {
  color: var(--dbk-text);
}

/* two short fields to a line; they stack before they can crowd */
.rb-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

/* The chevron itself is the shared masked SVG in styles.css and is left as it
   is drawn - only its size is the page's business. That rule carries four
   classes, so the selector here has to outweigh it; it is written against
   .rb-page so nothing outside this walk is touched. */
.rb-page .rb-input.nice-select:not(.lang)::after {
  width: 19px;
  height: 19px;
  right: 14px;
  margin-top: -7px;
}

/*----------------------------------------
   The picker
   Taken after the one business-onboarding.html asks its first question with:
   a native <select> holds a line of text per option, and these options are an
   icon, a name and a line saying what the name means. business.js drives it
   and places the open panel against the viewport.
-----------------------------------------*/
.rb-pick {
  position: relative;
  /* business.js writes position/top/left on the panel when it opens; this
     rule owns only how it looks and how it comes and goes */
  /* the trigger's face and an option's body are the same two-line block;
     .bd-pick-body is the name business.js copies from, so it is styled
     alongside rather than renamed */
}
.rb-pick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 12px 16px;
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.rb-pick-btn:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-pick-btn:focus-visible {
  outline: 0;
  border-color: var(--rb-field-bd-on);
}
.rb-pick.is-open .rb-pick-btn {
  border-color: var(--rb-field-bd-on);
}
.rb-pick-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--dbk-surface-2);
  color: var(--dbk-text);
  font-size: 19px;
  overflow: hidden;
}
.rb-pick-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rb-pick-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rb-pick-txt b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dbk-text);
}
.rb-pick-txt span {
  font-size: 13px;
  line-height: 1.35;
  color: var(--dbk-muted);
}
.rb-pick-caret {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--dbk-muted);
  transition: transform 0.2s ease;
}
.rb-pick.is-open .rb-pick-caret {
  transform: rotate(180deg);
}
.rb-pick-panel {
  position: absolute;
  /* business.js sizes it in pixels from the trigger's own box, so the
     padding and border have to fall inside that width */
  box-sizing: border-box;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--dbk-border);
  border-radius: 14px;
  background: var(--dbk-surface);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.rb-pick.is-open .rb-pick-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.rb-pick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rb-pick-list li.is-hidden {
  display: none;
}
.rb-pick-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rb-pick-opt:hover, .rb-pick-opt:focus-visible {
  outline: 0;
  background: var(--dbk-surface-2);
}
.rb-pick-opt .rb-pick-txt b {
  color: var(--dbk-text-2);
}
.rb-pick-opt.is-on {
  background: var(--dbk-pop-soft);
}
.rb-pick-opt.is-on .rb-pick-txt b {
  color: var(--dbk-text);
}
.rb-pick-face,
.rb-pick .bd-pick-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.rb-pick-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dbk-muted);
}
.rb-pick-empty.is-hidden {
  display: none;
}

/*----------------------------------------
   The rest of a step
-----------------------------------------*/
.rb-picks {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}
.rb-picks .rb-field {
  margin: 0;
}

.rb-docs {
  margin-bottom: 18px;
}
.rb-docs-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dbk-text);
}

.rb-terms {
  margin: 4px 0 20px;
}

/* The sign-in page puts "keep me signed in" and "forgot password?" on one
   line - the only place in this design where two controls share a row, so the
   rule is written here rather than into .rb-check itself. It breaks into two
   lines before either half has to shrink. */
/* The six code boxes are the shared .input-otp component; all this page
   changes is the shape, so a box reads as the same field as every other one
   on these screens - the walk's radius, border and fill, and its height
   rather than the taller box the component ships with. They shrink together
   on a narrow screen instead of pushing the row off the side. */
.rb-otp {
  column-gap: 10px;
}
.rb-otp input {
  /* Square at every width. The six boxes share the field's full width between
     them, and the height follows the width rather than being set, so the row
     lines up with the button under it and the boxes stay square from a 320px
     screen up. */
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  font-size: 20px;
}
.rb-otp input:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-otp input:focus {
  border-color: var(--rb-field-bd-on);
  box-shadow: none;
}

.rb-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: -2px 0 18px;
}
.rb-line .rb-check {
  margin: 0;
}

.rb-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dbk-accent);
}
.rb-link:hover {
  text-decoration: underline;
}

.rb-submit {
  margin-bottom: 10px;
  /* The shared button exposes its size as tokens, so the page can ask for a
     field-tall one with type to match without writing a button rule of its
     own. Both values are set here and nowhere else, so only the tall button
     on this page grows - every other .btn keeps the size it has. */
}
.rb-submit .btn {
  --btn-h: var(--rb-field-h);
  --btn-fs: 15.5px;
}

.rb-back {
  text-align: center;
}

/*----------------------------------------
   After submitting   .rb-status
   One page, three outcomes. All three are written into the markup and the
   wrapper's [data-status] decides which one is on screen, so the page can be
   seen in every state while it is being designed and needs no second template
   when it is wired up - the server sets that one attribute.

   Each state owns its colour, its mark and its action: waiting has none,
   approved goes to the dashboard, refused starts again.
-----------------------------------------*/
.rb-status {
  text-align: center;
  /* the three panels are stacked in the source; only the one the wrapper
     names is laid out */
  /* the outcome is headed the way every step in the walk is headed, so
     arriving here does not read as arriving somewhere else */
}
.rb-status [data-state] {
  display: none;
}
.rb-status[data-status=pending] [data-state=pending], .rb-status[data-status=approved] [data-state=approved], .rb-status[data-status=rejected] [data-state=rejected] {
  display: block;
}
.rb-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  font-size: 28px;
}
.rb-status-title {
  margin-bottom: 10px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dbk-text);
}
.rb-status-sub {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dbk-muted);
}

/* waiting is its own colour, the one the rest of the app uses for a thing in
   progress - it sits between the green and the red that follow it */
[data-state=pending] .rb-status-mark {
  background: var(--dbk-warning-soft);
  color: var(--dbk-warning);
}

[data-state=approved] .rb-status-mark {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

[data-state=rejected] .rb-status-mark {
  background: rgba(229, 56, 59, 0.12);
  color: #e5383b;
}

/* What a refusal actually needs: not "rejected" but which section failed and
   the way back to it. One row a failing step - a mark, what is wrong in the
   words of that step, and a link that opens it. The steps that passed are
   summed up in one line underneath rather than listed, so nothing competes
   with the two that need work. */
.rb-fix {
  margin-bottom: 20px;
  text-align: left;
  /* the good news is a row of its own, in the green it is about, rather
     than a grey sentence trailing off the foot of the list */
}
.rb-fix-lead {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dbk-text);
}
.rb-fix-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--dbk-border);
  border-radius: 12px;
  background: var(--dbk-surface);
  /* the link is the point of the row, so it holds its size while the
     text beside it takes whatever is left */
}
.rb-fix-row + .rb-fix-row {
  margin-top: 8px;
}
.rb-fix-row .btn {
  flex: 0 0 auto;
  margin-top: 2px;
}
.rb-fix-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(229, 56, 59, 0.1);
  font-size: 16px;
  color: #e5383b;
}
.rb-fix-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.rb-fix-txt b {
  font-size: 14px;
  font-weight: 600;
  color: var(--dbk-text);
}
.rb-fix-txt span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dbk-text-2);
}
.rb-fix-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.08);
  font-size: 13px;
  line-height: 1.55;
  color: var(--dbk-text-2);
}
.rb-fix-ok i {
  flex: 0 0 auto;
  font-size: 17px;
  color: #16a34a;
}
.rb-fix-ok b {
  color: var(--dbk-text);
}

/* what was submitted, and where it is - the same block the review step used,
   so the two pages read as one flow */
.rb-status .rb-recap {
  text-align: left;
}

/* Refresh. It is the only control while a decision is pending, so it is a
   button rather than a link, and it says it is working by turning its own
   mark rather than by replacing the page. */
.rb-refresh {
  margin-bottom: 12px;
}
.rb-refresh .btn {
  --btn-h: var(--rb-field-h);
}
.rb-refresh.is-busy .ph-arrows-clockwise {
  animation: rb-spin 0.7s linear infinite;
}

@keyframes rb-spin {
  to {
    transform: rotate(360deg);
  }
}
/* the reason a decision went the way it did */
.rb-reason {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--rb-field-r);
  background: rgba(229, 56, 59, 0.08);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dbk-text-2);
}
.rb-reason b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--dbk-text);
}

/*----------------------------------------
   Check it over   .rb-recap
   NOT .rb-sum: styles.css already owns that name for the recurring-billing
   summary, and its `.rb-sum > div { display: flex }` laid these rows out
   side by side. The prefix is shared with that section, so a new name here
   has to be one it does not use.
   The last screen before submitting: one block a step, each headed by what it
   covers and the way back to it, and a run of label/value rows under that.
   Nothing is boxed - the page reads as one document in sections rather than as
   a stack of panels.
-----------------------------------------*/
/* A section is a card, headed the way a person's card on the owners step is
   headed: a wash of the brand tint that fades out to the right, rather than
   the flat grey bar that read as a panel title. The card is what separates one
   section from the next - without it the six ran together into one long list
   and there was no telling where one ended. */
.rb-recap {
  margin-bottom: 14px;
  border: 1px solid var(--dbk-border);
  border-radius: 14px;
  background: var(--dbk-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  /* the band rounds its own two corners rather than the card clipping it,
     so nothing that leaves the card is cut off at its edge */
}
.rb-recap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--dbk-border);
  border-radius: 13px 13px 0 0;
  background: linear-gradient(90deg, var(--dbk-pop-soft), transparent 70%);
  /* the way back to a step is not the thing being read, so it is a word
     in the brand colour rather than an outlined button sitting at the
     top of every section */
}
.rb-recap-head b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dbk-text);
}
.rb-recap-head .btn {
  --btn-h: auto;
  padding: 0;
  border: 0;
  background: none;
  /* the shared button carries a lift; a word does not */
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--dbk-pop);
}
.rb-recap-head .btn:hover, .rb-recap-head .btn:focus-visible {
  background: none;
  box-shadow: none;
  color: var(--dbk-pop);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rb-recap-head .btn i {
  font-size: 13px;
}
.rb-recap-body {
  padding: 4px 18px 10px;
}

/* A row is a label and its answer, and both are paragraphs - neither is a
   heading and neither is emphasis inside a sentence, so <b> and <span> were
   the wrong tags for what these are. The two are told apart by how they are
   set, not by the tag: the label small and muted, the answer a size up, in
   full ink and weighted.

   They sit on one line with the answer on the right; when the answer is long -
   an address - it wraps under its own label rather than pushing the label out
   of the row. */
.rb-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  /* a value that is not there yet says so, quietly */
}
.rb-kv + .rb-kv {
  border-top: 1px solid var(--dbk-border);
}
.rb-kv-lab {
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dbk-muted);
}
.rb-kv-val {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--dbk-text);
}
.rb-kv-val.is-empty {
  font-weight: 500;
  color: var(--dbk-muted);
}

/* the owners are a list inside their block, each with their share beside them */
.rb-recap-people .rb-kv-lab {
  font-size: 14px;
  font-weight: 500;
  color: var(--dbk-text);
}
.rb-recap-people .rb-kv-lab i {
  margin-right: 6px;
  color: var(--dbk-muted);
}

/* a document row in the summary says whether it arrived */
.rb-recap-doc .rb-kv-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rb-recap-doc .rb-ok {
  color: #16a34a;
}
.rb-recap-doc .rb-miss {
  color: var(--dbk-muted);
}

/*----------------------------------------
   Documents   .rb-doc
   A row a document: what it is, whether it is needed, and one control. The
   row is the page's field box, so an upload reads as one of the inputs above
   it rather than as a widget from another page. Once a file is chosen the row
   says which file, and the way to take it back appears beside it.
-----------------------------------------*/
.rb-docs {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.rb-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  transition: border-color 0.18s ease;
  /* what the row is waiting for, and once it has it, what it got */
  /* the real control is the file input, laid over the button at full size:
     a styled <label> would work too, but this keeps the button markup the
     same .btn as everywhere else */
  /* a row holding a file: the tile turns green, the name of the file is the
     meta line, and the way to take it back is there */
}
.rb-doc:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-doc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dbk-surface-2);
  color: var(--dbk-text);
  font-size: 18px;
}
.rb-doc-txt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.rb-doc-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dbk-text);
}
.rb-doc-meta {
  font-size: 12.5px;
  color: var(--dbk-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-doc-act {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.rb-doc-pick {
  position: relative;
  display: inline-flex;
}
.rb-doc-pick input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.rb-doc-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dbk-muted);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.rb-doc-clear:hover, .rb-doc-clear:focus-visible {
  outline: 0;
  background: rgba(229, 56, 59, 0.12);
  color: #e5383b;
}
.rb-doc.is-filled .rb-doc-ico {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.rb-doc.is-filled .rb-doc-meta {
  color: var(--dbk-text-2);
}
.rb-doc.is-filled .rb-doc-clear {
  display: inline-flex;
}

/*----------------------------------------
   Owners and directors   .rb-owner
   One card a person, repeated. The card is the page's field box grown to hold
   a small form: a head that names who it is and offers the way to drop them,
   and four fields under it. The first card is written into the page so it
   reads with no script; the rest are clones of it.
-----------------------------------------*/
.rb-owners {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.rb-owner {
  border: var(--rb-field-bw) solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  /* The head is a band again, but not the grey one: a wash of the brand
     tint, so it reads as this card's own heading rather than as a title bar
     borrowed from a panel.

     The band rounds its own two corners rather than the card clipping it:
     overflow:hidden here cut the Role panel off where it left the card. The
     radius is the card's less its border, so the two curves sit concentric. */
  /* the position in the list, so a card is identifiable while it is still
     empty and has no name to show */
  /* the position in the list, so a card is identifiable while it is still
     empty and has no name to show */
  /* Dropping a person is the one destructive thing on the page, so it is the
     mark alone - quiet until it is pointed at, and then unmistakably red, so
     the colour arrives as the answer to "what will this do" rather than as a
     warning sitting in the head of every card. */
  /* the only card left cannot be removed - there has to be someone */
}
.rb-owner-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dbk-border);
  border-radius: calc(var(--rb-field-r) - var(--rb-field-bw)) calc(var(--rb-field-r) - var(--rb-field-bw)) 0 0;
  background: linear-gradient(90deg, var(--dbk-pop-soft), transparent 70%);
}
.rb-owner-body {
  padding: 16px;
}
.rb-owner-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dbk-pop);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.rb-owner-id {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.rb-owner-id b {
  font-size: 15px;
  font-weight: 600;
  color: var(--dbk-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-owner-id span {
  font-size: 12.5px;
  color: var(--dbk-muted);
}
.rb-owner-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  color: var(--dbk-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.rb-owner-del:hover, .rb-owner-del:focus-visible {
  outline: 0;
  background: rgba(229, 56, 59, 0.12);
  color: #e5383b;
}
.rb-owner:only-child .rb-owner-del {
  display: none;
}
.rb-owner .rb-owner-body .rb-field:last-child {
  margin-bottom: 0;
}

/* the percent field says what its number means without a label repeating it */
.rb-pct .rb-input {
  padding-right: 38px;
}
.rb-pct::after {
  content: "%";
  position: absolute;
  right: 16px;
  font-size: 14.5px;
  color: var(--dbk-muted);
  pointer-events: none;
}

/* what has been accounted for so far: the one piece of feedback that says a
   shareholder is still missing */
.rb-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--rb-field-r);
  background: var(--dbk-surface-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dbk-text-2);
  /* over 100% is not a warning to argue with, just a figure that cannot be
     right - it is said in the danger colour and left at that */
}
.rb-total b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--dbk-pop-soft);
  font-size: 13px;
  color: var(--dbk-text);
}
.rb-total.is-over b {
  background: rgba(229, 56, 59, 0.14);
  color: #e5383b;
}

.rb-add {
  margin-bottom: 18px;
}
.rb-add .btn {
  --btn-h: var(--rb-field-h);
}

.rb-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dbk-muted);
}
.rb-note i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 15px;
}

/*----------------------------------------
   What the account does   .rb-caps
   One card to a line, read top to bottom. Each card is a tile, a name, a line
   of plain language, and where there is a figure worth quoting, a chip that
   carries it - the tile on one side of the row and the words beside it, so a
   card is no taller than it needs to be. The card is the page's own field box
   at rest, so the run reads as part of this design rather than as a list
   borrowed from a marketing page.
-----------------------------------------*/
/* the country is a chip, not a badge floating over the heading */
.rb-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-bottom: 16px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--rb-field-bd);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dbk-text);
}
.rb-place img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.rb-caps {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.rb-cap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--rb-field-bd);
  border-radius: var(--rb-field-r);
  background: var(--rb-field-bg);
  transition: border-color 0.18s ease;
  /* the tile is the picker's icon at the same size, so the two screens of
     this walk share one mark */
  /* the words take the rest of the row */
  /* the figure is the point of the card, so it sits on its own at the foot
     and is the one thing wearing the primary */
}
.rb-cap:hover {
  border-color: var(--rb-field-bd-hover);
}
.rb-cap-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dbk-surface-2);
  color: var(--dbk-text);
  font-size: 18px;
}
.rb-cap-txt {
  min-width: 0;
}
.rb-cap-title {
  margin-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--dbk-text);
}
.rb-cap-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dbk-muted);
}
.rb-cap-fig {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dbk-pop-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dbk-text);
}

/* A lone checkbox standing between fields, not inside one - the shared
   component draws it, so all this owns is the room around it. */
.rb-check {
  margin: -2px 0 18px;
}

/* A document row inside a person's card: the card already has its own padding
   and its own border, so the rows sit closer than they do on a page of their
   own. */
.rb-owner-body .rb-docs {
  margin-top: 4px;
}

/*----------------------------------------
   Narrow
-----------------------------------------*/
@media (max-width: 1199px) {
  .rb-bar {
    padding: 14px 80px;
  }
}
@media (max-width: 991px) {
  .rb-bar {
    padding: 14px 40px;
  }
}
@media (max-width: 767px) {
  .rb-bar {
    padding: 14px 24px;
  }
  /* 42px is set for a desktop measure; on a tablet it starts taking three
     lines for a heading that is one line of thought, so it steps down with
     the gutter rather than after it */
  .rb-title,
  .rb-status-title {
    font-size: 34px;
  }
}
@media (max-width: 575px) {
  .rb-bar {
    padding: 12px 16px;
  }
  .rb-main {
    padding: 36px 16px 32px;
  }
  .rb-title,
  .rb-status-title {
    font-size: 30px;
  }
  .rb-duo {
    grid-template-columns: 1fr;
  }
}

/*----------------------------------------
   Review and submit   .rb-recaps
   Seven sections of read-only rows ran to several screens, with the submit
   button stranded past the end of them. Each section is a <details> instead:
   the head is the summary, so the open and shut is the browser's own and
   works with the keyboard and without script. main.js shuts the others when
   one is opened, but the markup does not depend on that - every section can
   still be opened and shut by hand, and nothing is hidden from a reader with
   no script beyond a click.
-----------------------------------------*/
.rb-recap {
  overflow: hidden;
}
.rb-recap > .rb-recap-head {
  cursor: pointer;
  list-style: none;
  user-select: none;
  /* the head is the control now, so it carries the caret and the hover */
  transition: background-color 0.18s ease;
}
.rb-recap > .rb-recap-head::-webkit-details-marker {
  display: none;
}
.rb-recap:not([open]) > .rb-recap-head {
  border-bottom-color: transparent;
}
.rb-recap > .rb-recap-head:hover {
  background: linear-gradient(90deg, var(--dbk-pop-soft), transparent 55%);
}
.rb-recap > .rb-recap-head:focus-visible {
  outline: 2px solid var(--dbk-pop);
  outline-offset: -2px;
}
/* the Edit link sits inside the control, so its own click must not be read
   as a click on the head - main.js stops it, and it is set apart here */
.rb-recap-head .btn {
  margin-inline-start: auto;
}
.rb-recap-caret {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--dbk-muted);
  transition: transform 0.2s ease;
}
.rb-recap[open] > .rb-recap-head .rb-recap-caret {
  transform: rotate(180deg);
}
.rb-recap[open] > .rb-recap-body {
  animation: rb-recap-in 0.22s ease;
}

@keyframes rb-recap-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
