/* int_mvp_ui base styles. Colours come from /mvp-theme.css custom properties; never hard-code a brand colour here. */
.mvp-body { font-family: var(--mvp-font); color: var(--mvp-text); background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.mvp-main { flex: 1 0 auto; }
.mvp-nav { background: #fff; border-bottom: 1px solid #e3e6ea; }
.mvp-brand { font-weight: 700; color: var(--mvp-primary); text-decoration: none; }
.mvp-footer { background: var(--mvp-surface); color: var(--mvp-muted); }
.mvp-hero { background: var(--mvp-surface); }
.mvp-lead { color: var(--mvp-muted); max-width: 40rem; }
.btn-primary { --bs-btn-bg: var(--mvp-primary); --bs-btn-border-color: var(--mvp-primary); --bs-btn-color: var(--mvp-primary-contrast);
  --bs-btn-hover-bg: var(--mvp-primary); --bs-btn-hover-border-color: var(--mvp-primary); --bs-btn-hover-color: var(--mvp-primary-contrast);
  --bs-btn-active-bg: var(--mvp-primary); --bs-btn-active-border-color: var(--mvp-primary); --bs-btn-active-color: var(--mvp-primary-contrast);
  --bs-btn-disabled-bg: var(--mvp-primary); --bs-btn-disabled-border-color: var(--mvp-primary); }
.btn-primary:hover { filter: brightness(0.92); }
a { color: var(--mvp-primary); }
.btn-link { --bs-btn-color: var(--mvp-primary); --bs-btn-hover-color: var(--mvp-primary); --bs-btn-active-color: var(--mvp-primary); text-decoration: underline; }
.mvp-card { border-radius: var(--mvp-radius); border-color: #e3e6ea; }
.mvp-feature-icon, .mvp-empty-icon, .mvp-error-icon { font-size: 1.75rem; color: var(--mvp-primary); }
.mvp-auth { max-width: 28rem; padding-top: 4rem; padding-bottom: 4rem; }
.mvp-auth-card { background: #fff; border: 1px solid #e3e6ea; border-radius: var(--mvp-radius); padding: 1.5rem; }
.mvp-field .form-control, .mvp-field .form-select { border-radius: var(--mvp-radius); }
.mvp-help { vertical-align: baseline; color: var(--mvp-muted); }
.mvp-filter-pop { min-width: 16rem; }
/* status pills: muted fills, tone by meaning, never badge bg-* */
.status-pill { display: inline-block; white-space: nowrap; padding: .15rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.status-pill.tone-info { background: #e3eef9; color: #1b4a7a; }
.status-pill.tone-success { background: #e1f3e7; color: #17592f; }
.status-pill.tone-warning { background: #fdf1d6; color: #6b4a07; }
.status-pill.tone-danger { background: #fbe4e1; color: #8a2216; }
.status-pill.tone-neutral { background: #eceef1; color: #3b434d; }
/* stepper */
.mvp-stepper { margin: 0; padding: 0; }
.mvp-step { position: relative; padding: 0 0 1.25rem 2.5rem; }
.mvp-step::before { content: ""; position: absolute; left: .85rem; top: 1.7rem; bottom: 0; width: 2px; background: #d5d9df; }
.mvp-step:last-child::before { display: none; }
.mvp-step-dot { position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #eceef1; color: var(--mvp-muted); font-size: .8125rem; font-weight: 700; }
.mvp-step-done .mvp-step-dot { background: var(--mvp-primary); color: var(--mvp-primary-contrast); }
.mvp-step-current .mvp-step-dot { background: var(--mvp-accent); color: #fff; }
.mvp-step-current .mvp-step-label { font-weight: 700; }
.mvp-step-todo .mvp-step-label { color: var(--mvp-muted); }
.invalid-feedback[data-field-error] { color: #a02419; }
@media (max-width: 575.98px) { .mvp-auth { padding-top: 1.5rem; } .status-pill { white-space: normal; } }

.mvp-tap { min-width: 44px; min-height: 44px; }

/* Tap targets: every control is at least 44 px high (and wide where it is a button), at every width. Text links inside a
   sentence keep their line height; a link that stands alone (menu, back link, row action, chip) gets the full target. */
.btn, .btn-sm, .btn-lg, .form-control, .form-select, .nav-link, .navbar-brand, .navbar-toggler, .page-link, .accordion-button,
.ia-button, .ia-tab, .ia-field input, .int-otp-code { min-height: 44px; }
.btn, .btn-sm, .btn-lg, .navbar-toggler { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.nav-link, .navbar-brand { display: inline-flex; align-items: center; }
.ia-tab { display: flex; align-items: center; justify-content: center; }
.ia-link-button, .mvp-link-block { display: inline-flex; align-items: center; min-height: 44px; }
.mvp-page-header > div > a.small { display: inline-flex; align-items: center; min-height: 44px; }
.form-check, .ia-check { min-height: 44px; display: flex; align-items: center; gap: .6rem; padding-left: 0; }
.form-check .form-check-input, .form-check-input, .ia-check input[type="checkbox"], .ia-check input[type="radio"] { float: none; margin: 0; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.form-check-label, .ia-check label { display: block; padding: .75rem 0; margin: 0; line-height: 1.35; }
.ia-check { flex-wrap: wrap; }
.ia-check .ia-error { margin-top: 0; }
/* Element + class: the code box's own stylesheet loads later and would otherwise cut six digits to 12ch. */
input.int-otp-code { max-width: 12rem; }
/* The sign-in card sits inside the brand card: one card, not two. */
.mvp-auth-card .ia-card { box-shadow: none; padding: 0; background: transparent; max-width: none; }
.mvp-auth-card .ia-title { margin-top: 0; }
.mvp-auth .mvp-brand { display: flex; justify-content: center; align-items: center; min-height: 44px; }
.mvp-legal-back, .mvp-link-block { display: inline-flex; align-items: center; min-height: 44px; }
/* A link that stands alone in a table cell or is an e-mail address gets a taller hit area (padding on an inline box). */
dd > a:only-child, .mvp-footer li > a { display: inline-flex; align-items: center; min-height: 44px; }

td > a:only-child:not(.btn), th > a:only-child:not(.btn) { display: inline-block; padding-block: .75rem; }
.mvp-link-list > li > a, td > span > a { display: inline-flex; align-items: center; min-height: 44px; }
.mvp-footer .list-inline-item { margin-right: .25rem; }
.accordion-button:not(.collapsed) { background: var(--mvp-surface); color: var(--mvp-text); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .2); }
/* A scroll box holds its own visually-hidden text, so that text cannot widen the whole page. */
.table-responsive { position: relative; }
/* A label with a help button beside it keeps the button on the same line as the end of the label. */
.mvp-field:has(> .mvp-help) > .form-label { display: inline; }
.mvp-field > .mvp-help { margin-left: .25rem; }
.mvp-field:has(> .mvp-help) > .form-control, .mvp-field:has(> .mvp-help) > .form-select { margin-top: .4rem; }
/* A table that would scroll sideways on a phone shows each row as a block instead, with the column name before each value. */
@media (max-width: 575.98px) {
  .mvp-stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .mvp-stack-table, .mvp-stack-table tbody, .mvp-stack-table tr, .mvp-stack-table th, .mvp-stack-table td { display: block; width: 100%; }
  .mvp-stack-table tr { border-bottom: 1px solid #e3e6ea; padding: .75rem 0; }
  .mvp-stack-table th[scope="row"] { border: 0; padding-bottom: 0; }
  .mvp-stack-table td { border: 0; padding: .2rem .5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
  .mvp-stack-table td[data-label]::before { content: attr(data-label); color: var(--mvp-muted); font-size: .875rem; flex: 0 0 auto; }
}
/* Checked boxes and radios use the brand colour, not the framework blue. */
.form-check-input:checked { background-color: var(--mvp-primary); border-color: var(--mvp-primary); }
.form-check-input:focus { border-color: var(--mvp-primary); box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .2); }
.mvp-stack-table td > span { text-align: left; flex: 1 1 auto; }
@media (max-width: 575.98px) { .mvp-stack-table td[data-label]::before { flex: 0 0 7rem; } .mvp-stack-table td { justify-content: flex-start; } }
/* A link that is a whole line of an error list gets the full target. */
[data-form-error-summary] ul { list-style: none; padding-left: 0; }
[data-form-error-summary] li > a { display: block; padding-block: .65rem; }
/* The shared sign-in screens take the brand colour for their buttons and links. */
.mvp-auth { --ia-accent: var(--mvp-primary); --ia-accent-ink: var(--mvp-primary-contrast); }
.mvp-auth .ia-link-button { color: var(--mvp-primary); }
@media (max-width: 575.98px) { .mvp-stack-table td.text-end { text-align: left !important; } }
/* Outline buttons take the brand colour too. */
.btn-outline-primary { --bs-btn-color: var(--mvp-primary); --bs-btn-border-color: var(--mvp-primary);
  --bs-btn-hover-bg: var(--mvp-primary); --bs-btn-hover-border-color: var(--mvp-primary); --bs-btn-hover-color: var(--mvp-primary-contrast);
  --bs-btn-active-bg: var(--mvp-primary); --bs-btn-active-border-color: var(--mvp-primary); --bs-btn-active-color: var(--mvp-primary-contrast); }
/* The security check widget takes the brand colour. */
altcha-widget { --altcha-color-active: var(--mvp-primary); --altcha-color-base: #fff; accent-color: var(--mvp-primary); }
/* Test environment panel: shows a test account's code on dev and qa. Plain, bordered, brand-tinted. */
.mvp-test-panel { border: 2px dashed var(--mvp-primary); border-radius: var(--mvp-radius); background: var(--mvp-surface); padding: 1rem; margin: 1rem 0; }
.mvp-test-panel__tag { display: inline-block; margin: 0 0 .5rem; padding: .125rem .5rem; border-radius: 999px; background: var(--mvp-primary); color: var(--mvp-primary-contrast); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mvp-test-panel__lead, .mvp-test-panel__row, .mvp-test-panel__next { margin: 0 0 .5rem; }
.mvp-test-panel__value { display: inline-block; padding: .125rem .5rem; border-radius: .375rem; background: #fff; color: var(--mvp-text); font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; overflow-wrap: anywhere; }

/* Inline code inside an alert or note reads as body text: the default pink on a tinted background fails 4.5:1. */
.ia-alert code, .alert code, .mvp-note code { color: inherit; font-weight: 600; background: transparent; padding: 0; }
/* Help text and the quiet danger button must reach 4.5:1 on the cream page (Bootstrap's greys give 4.35 and 4.45). */
.form-text, .text-muted, .text-body-secondary { color: #565e64 !important; }
.btn-outline-danger { --bs-btn-color: #b02a37; --bs-btn-border-color: #b02a37; --bs-btn-hover-bg: #b02a37; --bs-btn-hover-border-color: #b02a37; --bs-btn-active-bg: #b02a37; }
/* A refused tick box keeps a readable label (Bootstrap's invalid red gives 4.2:1 on cream); the quiet grey button reaches 4.5:1. */
.form-check-input.is-invalid ~ .form-check-label, .was-validated .form-check-input:invalid ~ .form-check-label { color: #b02a37; }
.btn-outline-secondary { --bs-btn-color: #565e64; --bs-btn-border-color: #565e64; --bs-btn-hover-bg: #565e64; --bs-btn-hover-border-color: #565e64; --bs-btn-active-bg: #565e64; --bs-btn-active-border-color: #565e64; }
