/* Reversus — local interface system. No remote fonts or image dependencies. */
:root {
    --rv-petrol: #173d39;
    --rv-petrol-hover: #24544e;
    --rv-lime: #d4e89e;
    --rv-paper: #f4f5ef;
    --rv-white: #fff;
    --rv-ink: #172c2a;
    --rv-muted: #5a6c68;
    --rv-line: #dce3d8;
    --rv-danger: #a92e26;
    --rv-success: #256245;
    --rv-radius: 16px;
    --rv-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-primary: #173d39;
    --bs-primary-rgb: 23, 61, 57;
    --bs-body-font-family: var(--rv-font);
    --bs-body-color: var(--rv-ink);
    --bs-body-bg: var(--rv-paper);
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; padding: 0; font: 16px/1.5 var(--rv-font); color: var(--rv-ink); background: var(--rv-paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button[disabled] { cursor: wait; opacity: .7; }
a { color: var(--rv-petrol); text-underline-offset: 4px; }
a:hover { color: var(--rv-petrol-hover); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #6d852e; outline-offset: 4px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.rv-visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rv-skip-link { position: fixed; top: 10px; left: 12px; z-index: 1000; padding: 12px 18px; border-radius: 8px; background: var(--rv-lime); color: var(--rv-ink); font-weight: 700; transform: translateY(-180%); }
.rv-skip-link:focus { transform: translateY(0); }
.rv-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: var(--rv-muted); }
.rv-muted { color: var(--rv-muted); }
.rv-brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--rv-petrol); text-decoration: none; font-size: 25px; font-weight: 680; letter-spacing: -1.2px; line-height: 1; }
.rv-brand:hover { color: var(--rv-petrol); }
.rv-brand-mark { width: 35px; height: 35px; flex-shrink: 0; }
.rv-brand-domain { font-weight: 400; opacity: .6; }
.rv-brand--light, .rv-brand--light:hover { color: #f4f5ef; }
.rv-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--rv-ink); text-decoration: none; transition: background-color .16s, border-color .16s; }
.rv-button span[aria-hidden] { font-size: 20px; font-weight: 400; line-height: 1; }
.rv-button--primary { background: var(--rv-petrol); color: #fff; }
.rv-button--primary:hover { color: #fff; background: var(--rv-petrol-hover); }
.rv-button--secondary { border-color: var(--rv-line); color: var(--rv-petrol); background: var(--rv-white); }
.rv-button--secondary:hover { background: #edf1e5; border-color: #bacab7; }
.rv-button--danger { background: var(--rv-danger); color: #fff; }
.rv-button--danger:hover { background: #85231d; color: #fff; }
.rv-button--full { width: 100%; justify-content: space-between; }
.rv-text-link { font-size: 13px; font-weight: 650; text-decoration: underline; }
.rv-notice { display: flex; flex-direction: column; gap: 5px; margin: 0 0 24px; padding: 16px 19px; border: 1px solid var(--rv-line); border-left: 3px solid var(--rv-petrol); border-radius: 8px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.rv-notice--error { background: #fff2ef; border-color: #ebc6c0; border-left-color: var(--rv-danger); color: #84251e; }
.rv-notice--success { background: #eff6e9; border-color: #cedfc0; border-left-color: var(--rv-success); color: #244f38; }
.rv-notice:empty { display: none; }
.rv-field { min-width: 0; }
.rv-field label, .rv-field-label label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 650; line-height: 1.5; color: var(--rv-ink); }
.rv-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .rv-field select, .rv-field textarea, .rv-input, .rv-select { display: block; width: 100%; min-width: 0; min-height: 50px; border: 1px solid #cdd7cc; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--rv-ink); font: 15px/1.5 var(--rv-font); transition: border-color .16s, box-shadow .16s; }
.rv-field input::placeholder, .rv-field textarea::placeholder { color: #66766b; opacity: 1; }
.rv-field input:hover, .rv-field select:hover, .rv-field textarea:hover { border-color: #8da58f; }
.rv-field input:focus, .rv-field select:focus, .rv-field textarea:focus, .rv-input:focus, .rv-select:focus { border-color: var(--rv-petrol); box-shadow: 0 0 0 3px #173d3912; }
.rv-field input[readonly], .rv-field select[disabled], .rv-field input[disabled] { background: #ecefe7; color: #657367; }
.rv-field textarea { min-height: 112px; resize: vertical; }
.rv-field input[type=file] { font-size: 13px; padding: 10px; }
.rv-field input[type=file]::file-selector-button { margin: -3px 12px -3px -3px; padding: 7px 10px; border: 0; border-radius: 5px; background: #e9efdf; color: var(--rv-petrol); font: inherit; cursor: pointer; }
.rv-field small, .rv-field .form-text { display: block; margin-top: 8px; color: var(--rv-muted); font-size: 13px; line-height: 1.5; }
.rv-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rv-field-label a { font-size: 13px; font-weight: 550; }
.rv-field--full { grid-column: 1 / -1; }
.rv-form { margin: 0; }
.rv-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; padding: 28px; }
.rv-form-section { padding: 28px; border-bottom: 1px solid var(--rv-line); }
.rv-form-section:last-child { border-bottom: 0; }
.rv-form-section .rv-form-grid { padding: 0; }
.rv-form-section h2, .rv-form-section h3 { margin: 0 0 24px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.rv-form-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 24px 28px; border-top: 1px solid var(--rv-line); background: #fafbf6; border-radius: 0 0 var(--rv-radius) var(--rv-radius); }
.rv-form-status { margin: 12px 0 0; color: var(--rv-muted); font-size: 13px; min-height: 0; }
.rv-form-status:empty { display: none; }
.is-submitting .rv-button[type=submit] { opacity: .75; cursor: wait; }

/* Access — vector brand composition, with the form as the first interactive task. */
.rv-auth-body { background: var(--rv-paper); }
.rv-auth { display: grid; grid-template-columns: 1.08fr 1fr; gap: 0; padding: 16px; min-height: 100vh; min-height: 100svh; max-width: 1920px; margin: 0 auto; }
.rv-auth-story { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); padding: clamp(30px,4.7vw,88px); border-radius: 20px; overflow: hidden; color: var(--rv-paper); background: var(--rv-petrol); }
.rv-auth-message { position: relative; z-index: 1; margin: auto 0; padding: 70px 0 34px; }
.rv-auth-story .rv-eyebrow { color: #cedcc8; font-size: 13px; }
.rv-auth-display { margin: 24px 0; font-size: clamp(48px,5.15vw,94px); font-weight: 500; line-height: .99; letter-spacing: -.065em; }
.rv-auth-display span { color: var(--rv-lime); }
.rv-auth-description { max-width: 350px; margin: 26px 0 0; color: #d0ddd5; font-size: 15px; line-height: 1.8; }
.rv-auth-art { height: 160px; flex-shrink: 0; margin: -20px -80px 20px; color: #719184; opacity: .75; }
.rv-auth-art svg { width: 100%; height: 100%; overflow: visible; }
.rv-auth-story-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #6d8c7755; font-size: 13px; color: #c2d5c8; }
.rv-auth-story-footer span:last-child { font-size: 13px; letter-spacing: .13em; }
.rv-auth-entry { display: grid; grid-template-rows: 1fr auto; min-width: 0; padding: 52px clamp(24px,5vw,100px) 20px; }
.rv-auth-form-wrap { align-self: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 28px 0; }
.rv-auth-form-wrap h1, .rv-auth-card h1 { margin: 0; font-size: clamp(36px,3.6vw,62px); font-weight: 500; letter-spacing: -.06em; line-height: 1.06; }
.rv-auth-intro { margin: 20px 0 34px; font-size: 14px; color: var(--rv-muted); }
.rv-auth-form { display: grid; gap: 23px; }
.rv-auth-form .rv-field input { min-height: 55px; background: #fafbf7; }
.rv-auth-form > .rv-button { margin-top: 4px; min-height: 55px; padding-inline: 18px; }
.rv-password-wrap { position: relative; }
.rv-password-wrap input.rv-has-toggle { padding-right: 88px !important; }
.rv-password-toggle { position: absolute; top: 4px; right: 4px; bottom: 4px; min-width: 74px; padding: 4px 10px; border: 0; border-radius: 5px; color: var(--rv-petrol); background: transparent; font-size: 13px; font-weight: 650; }
.rv-password-toggle:hover { background: #e7eddf; }
.rv-auth-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rv-line); }
.rv-auth-note p { margin: 0; color: var(--rv-muted); font-size: 13px; line-height: 1.8; }
.rv-lock svg { display: block; width: 18px; height: 18px; margin-top: 3px; color: #62796b; }
.rv-auth-footer { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 0 auto; padding-top: 28px; color: var(--rv-muted); font-size: 13px; }
.rv-environment { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; margin: 0 0 28px; border: 1px solid #c5d4ae; border-radius: 5px; font-size: 13px; line-height: 1.5; color: #4e6639; background: #eaf0df; }
.rv-environment span { width: 5px; height: 5px; border-radius: 50%; background: #5b7828; }
.rv-auth-simple { display: grid; min-height: 100vh; min-height: 100svh; padding: 32px 20px; place-items: center; }
.rv-auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid var(--rv-line); border-radius: 18px; background: #fff; }
.rv-auth-card .rv-brand { margin-bottom: 40px; }
.rv-auth-card h1 { font-size: 36px; }
.rv-auth-card .rv-auth-form { margin-top: 28px; }

/* Shared navigation does not depend on Bootstrap JavaScript. */
.rv-site-header { border-bottom: 1px solid var(--rv-line); background: #fbfcf7; }
.rv-nav-shell { display: flex; align-items: center; gap: 23px; min-height: 88px; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.rv-site-header .rv-brand { font-size: 23px; }
.rv-site-header .rv-brand-mark { width: 32px; height: 32px; }
.rv-product-label { padding: 7px 0 7px 22px; border-left: 1px solid #ccd6c8; font-size: 13px; font-weight: 650; letter-spacing: .13em; color: var(--rv-muted); }
.rv-navigation { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 15px; min-width: 0; }
.rv-nav-links { display: flex; gap: 4px; align-items: center; margin: 0; padding: 0; list-style: none; }
.rv-nav-links a { display: block; padding: 11px 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: #4e6256; text-decoration: none; white-space: nowrap; }
.rv-nav-links a:hover { background: #edf1e6; color: var(--rv-petrol); }
.rv-nav-links a[aria-current=page] { background: #e4edda; color: var(--rv-petrol); font-weight: 700; }
.rv-nav-account { display: flex; align-items: center; gap: 17px; margin-left: auto; }
.rv-role-label { font-size: 13px; color: var(--rv-muted); white-space: nowrap; }
.rv-logout-form { margin: 0; }
.rv-logout { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 5px 0 5px 16px; border: 0; border-left: 1px solid var(--rv-line); background: transparent; color: var(--rv-petrol); font-size: 13px; font-weight: 650; }
.rv-logout:hover { text-decoration: underline; text-underline-offset: 4px; }
.rv-logout span { font-size: 17px; }
.rv-menu-toggle { display: none; align-items: center; gap: 10px; margin-left: auto; padding: 10px 12px; border: 1px solid var(--rv-line); border-radius: 7px; background: #fff; color: var(--rv-petrol); font-size: 13px; font-weight: 650; }
.rv-menu-toggle svg { width: 18px; height: 18px; }
.rv-test-badge { padding: 3px 6px; border-radius: 4px; background: #e6edd8; color: #49622c; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }

/* Working pages */
.rv-main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 48px 40px 0; }
.rv-page-heading, .rv-page-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 34px; }
.rv-page-heading h1, .rv-page-header h1 { margin: 0; font-size: clamp(36px,4vw,55px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.rv-page-heading .rv-eyebrow, .rv-page-header .rv-eyebrow { margin-bottom: 16px; font-size: 13px; }
.rv-title-dot { color: #6a852f; }
.rv-page-intro { margin: 13px 0 0; font-size: 13px; color: var(--rv-muted); }
.rv-page-heading > .rv-button { margin-bottom: 3px; }
.rv-overview { display: grid; grid-template-columns: 1.1fr 1fr 1fr; margin-bottom: 35px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); background: #eaf0df; overflow: hidden; }
.rv-overview > div { display: flex; flex-direction: column; justify-content: center; padding: 27px 30px; }
.rv-overview-total { background: var(--rv-petrol); color: #fff; }
.rv-overview-label { font-size: 13px; color: #566d58; }
.rv-overview-total .rv-overview-label { color: #cbdcc4; }
.rv-overview-total strong { margin: 2px 0; font-size: 52px; font-weight: 450; letter-spacing: -.06em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rv-overview-foot { font-size: 13px; color: #566d58; }
.rv-overview-total .rv-overview-foot { color: #cbdcc4; }
.rv-overview-meta { border-left: 1px solid #d4dfc5; }
.rv-overview-meta strong { margin: 10px 0 11px; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rv-overview-scope { background: #eff2e6; }
.rv-panel { margin-bottom: 24px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); background: #fff; min-width: 0; }
.rv-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 27px 28px 22px; }
.rv-panel-heading h2 { margin: 0; font-size: 22px; font-weight: 550; letter-spacing: -.65px; line-height: 1.3; }
.rv-panel-heading .rv-eyebrow { margin-bottom: 6px; font-size: 13px; }
.rv-status-pill { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid #dce5d1; border-radius: 999px; font-size: 13px; color: #4c6845; background: #f7f9f2; }
.rv-status-pill > span { width: 5px; height: 5px; border-radius: 50%; background: #6a853f; }
.rv-search-form { display: flex; align-items: flex-end; gap: 12px; margin: 0; padding: 0 28px 26px; }
.rv-search-form .rv-field { flex: 1; max-width: 500px; }
.rv-search-form label { font-size: 13px; margin-bottom: 7px; }
.rv-search-form .rv-field input { min-height: 48px; padding: 10px 13px; font-size: 13px; background: #fbfcf8; }
.rv-search-form .rv-button { min-height: 48px; padding: 10px 17px; font-size: 13px; }
.rv-search-form > .rv-text-link { margin: 0 0 12px 5px; font-size: 13px; }
.rv-filter-summary { margin: -10px 28px 20px; color: var(--rv-muted); font-size: 13px; overflow-wrap: anywhere; }
.rv-table-wrap { max-width: 100%; overflow-x: auto; }
.rv-data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; text-align: left; }
.rv-data-table thead { background: #f6f8f1; }
.rv-data-table th { padding: 13px 22px; border-block: 1px solid var(--rv-line); color: #5f7161; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.rv-data-table td { padding: 21px 22px; border-bottom: 1px solid #e9ede3; vertical-align: middle; color: #526359; overflow-wrap: anywhere; }
.rv-data-table td:first-child, .rv-data-table th:first-child { padding-left: 28px; }
.rv-data-table td:last-child, .rv-data-table th:last-child { padding-right: 28px; }
.rv-data-table tr:last-child td { border-bottom: 0; }
.rv-data-table tbody tr:hover { background: #fbfcf8; }
.rv-person-cell { min-width: 230px; }
.rv-person-cell a { color: var(--rv-ink); font-weight: 650; text-decoration: none; }
.rv-person-cell a:hover { text-decoration: underline; }
.rv-record-number { display: inline-block; min-width: 30px; margin-right: 12px; color: var(--rv-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rv-user-cell strong { color: var(--rv-ink); font-weight: 650; }
.rv-row-actions { text-align: right; }
.rv-row-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-size: 13px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.rv-row-link:hover { text-decoration: underline; }
.rv-row-link span { font-size: 18px; font-weight: 400; }
.rv-action-group { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; }
.rv-role-pill { display: inline-block; padding: 5px 9px; background: #f0f4e8; border: 1px solid #e0e8d5; border-radius: 5px; color: #4c6245; font-size: 13px; white-space: nowrap; }
.rv-self-label { display: inline-block; margin-left: 8px; padding: 2px 5px; border: 1px solid #d2ddc4; border-radius: 3px; color: #54713b; font-size: 13px; }
.rv-delete-disclosure { max-width: 290px; text-align: left; }
.rv-delete-disclosure > summary { display: list-item; min-height: 48px; padding: 11px 0; color: var(--rv-danger); font-size: 13px; font-weight: 600; }
.rv-delete-confirmation { margin-top: 8px; padding: 16px; background: #fff4f0; border: 1px solid #eed4ce; border-radius: 8px; }
.rv-delete-confirmation strong { display: block; color: #7b3029; font-size: 13px; }
.rv-delete-confirmation p { margin: 8px 0 12px; font-size: 13px; }
.rv-confirm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.rv-confirm-actions .rv-button { min-height: 48px; padding: 9px 11px; font-size: 13px; }
.rv-confirm-actions .rv-text-link { font-size: 13px; }
.rv-empty { padding: 50px 20px !important; text-align: center; }
.rv-empty h3 { margin: 14px 0 7px; color: var(--rv-ink); font-size: 18px; font-weight: 550; letter-spacing: -.5px; }
.rv-empty p { margin: 0 auto 17px; max-width: 340px; color: var(--rv-muted); font-size: 13px; }
.rv-empty-symbol { display: inline-grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #eef3e5; color: #56713e; font-size: 24px; }
.rv-table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 19px 28px; border-top: 1px solid var(--rv-line); }
.rv-table-footer p { margin: 0; color: var(--rv-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rv-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.rv-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; color: #5f7359; text-decoration: none; }
.rv-pagination a:hover { background: #eef3e5; }
.rv-pagination a[aria-current=page] { background: var(--rv-petrol); color: #fff; }
.rv-pagination a.rv-page-arrow { border-color: var(--rv-line); font-size: 15px; }
.rv-page-gap { color: var(--rv-muted); font-size: 13px; }
.rv-page-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0 27px; border-top: 1px solid #dce3d6; color: var(--rv-muted); font-size: 13px; }
.rv-profile-grid { display: grid; grid-template-columns: minmax(220px,300px) minmax(0,1fr); gap: 28px; align-items: start; }

/* Bridge for PHP forms still using the existing Bootstrap grid. Load after Bootstrap/home.css. */
body > .container { max-width: 1280px; padding-inline: 24px; }
.page-header { padding: 20px 0 28px; background: transparent; border-radius: 0; }
.page-header h1 { font-weight: 500; letter-spacing: -.05em; }
.card { border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: none !important; background: #fff; }
.card-header { border-color: var(--rv-line); padding: 24px; background: #fafbf6; }
.card-footer { border-color: var(--rv-line); background: #f8faf3 !important; }
.form-control, .form-select { border-color: #cdd7cc; border-radius: 8px; color: var(--rv-ink); font-family: var(--rv-font); min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--rv-petrol); box-shadow: 0 0 0 3px #173d3915; }
.form-label { font-size: 13px; font-weight: 650; }
.btn { min-height: 48px; border-radius: 8px; font-weight: 600; font-size: 13px; padding: 10px 16px; }
.btn-primary { --bs-btn-bg: var(--rv-petrol); --bs-btn-border-color: var(--rv-petrol); --bs-btn-hover-bg: var(--rv-petrol-hover); --bs-btn-hover-border-color: var(--rv-petrol-hover); --bs-btn-active-bg: var(--rv-petrol-hover); background: var(--rv-petrol); border-color: var(--rv-petrol); color: #fff; }
.btn-outline-primary, .btn-outline-info { color: var(--rv-petrol); border-color: #c2d0bd; }
.btn-outline-primary:hover, .btn-outline-info:hover { background: var(--rv-petrol); border-color: var(--rv-petrol); color: #fff; }
.btn-info-soft { background: #e7efdd; color: var(--rv-petrol); }
.btn-info-soft:hover { background: var(--rv-petrol); color: #fff; }
.btn-danger-soft { background: #fbece8; color: var(--rv-danger); }
.btn-danger-soft:hover { background: var(--rv-danger); color: #fff; }
.btn-success-soft { background: #edf4e4; color: #315e34; }
.text-primary { color: var(--rv-petrol) !important; }
.form-check-input:checked { background-color: var(--rv-petrol); border-color: var(--rv-petrol); }
.table { --bs-table-bg: #fff; color: var(--rv-ink); font-size: 13px; }
.table thead th { color: var(--rv-muted); font-size: 13px; font-weight: 650; }
.table-hover tbody tr:hover { transform: none; box-shadow: none; background: #f6f9ef; }
.profile-card { transform: none; box-shadow: none; border: 1px solid var(--rv-line); }
.profile-card-img { z-index: 0; }
.profile-card-content { z-index: 1; transform: none; }
.profile-card:hover .profile-card-img { transform: none; }
.animate-row, .animate-fade-in-down, .animate-fade-in-up { animation: none; }

@media (min-width: 1600px) {
    .rv-auth-story { padding: 70px 80px; }
    .rv-auth-art { height: 240px; margin-bottom: 12px; }
    .rv-auth-form-wrap { max-width: 420px; }
}
@media (max-width: 1200px) {
    .rv-product-label { display: none; }
    .rv-nav-shell { gap: 22px; padding-inline: 30px; }
    .rv-role-label { font-size: 13px; }
    .rv-nav-links a { padding-inline: 10px; }
}
@media (max-width: 1000px) {
    .rv-nav-shell { flex-wrap: wrap; gap: 0; padding: 20px 28px; min-height: 80px; }
    .rv-menu-toggle { display: inline-flex; }
    .rv-navigation { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 18px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--rv-line); }
    .rv-nav-ready .rv-navigation:not(.is-open) { display: none; }
    .rv-nav-links { flex-wrap: wrap; gap: 7px; }
    .rv-nav-account { margin-left: 0; justify-content: space-between; }
    .rv-role-label { font-size: 13px; margin-right: auto; }
    .rv-logout { font-size: 13px; }
    .rv-main { padding: 35px 28px 0; }
    .rv-auth-story { padding: 34px; }
    .rv-auth-display { font-size: 57px; }
    .rv-auth-story-footer { flex-direction: column; align-items: flex-start; gap: 7px; }
    .rv-auth-entry { padding-inline: 30px; }
    .rv-overview > div { padding: 24px; }
    .rv-overview-meta strong { font-size: 22px; }
    .rv-data-table th, .rv-data-table td { padding-inline: 15px; }
}
@media (max-width: 700px) {
    .rv-auth { grid-template-columns: minmax(0,1fr); padding: 12px; }
    .rv-auth-story { min-height: 0; padding: 25px; border-radius: 15px; }
    .rv-auth-message { margin: 0; padding: 35px 0 8px; }
    .rv-auth-display { margin: 16px 0; font-size: clamp(39px,10.5vw,62px); }
    .rv-auth-description { max-width: 300px; margin-top: 15px; font-size: 13px; line-height: 1.7; }
    .rv-auth-story .rv-eyebrow { font-size: 13px; }
    .rv-auth-art, .rv-auth-story-footer { display: none; }
    .rv-auth-entry { padding: 36px 15px 7px; }
    .rv-auth-form-wrap { max-width: 420px; padding: 0; }
    .rv-auth-form-wrap h1 { font-size: 41px; }
    .rv-auth-form-wrap h1 br { display: none; }
    .rv-auth-intro { margin: 14px 0 26px; font-size: 13px; }
    .rv-auth-form { gap: 20px; }
    .rv-auth-note { margin-top: 24px; }
    .rv-auth-footer { max-width: 420px; padding-top: 32px; }
    .rv-environment { margin-bottom: 22px; }
    .rv-main { padding: 30px 20px 0; }
    .rv-page-heading, .rv-page-header { align-items: flex-start; gap: 22px; margin-bottom: 25px; }
    .rv-page-heading h1, .rv-page-header h1 { font-size: 42px; }
    .rv-page-intro { max-width: 300px; line-height: 1.65; }
    .rv-page-heading > .rv-button { min-height: 48px; font-size: 13px; }
    .rv-overview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-bottom: 26px; }
    .rv-overview-total { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 0 18px; }
    .rv-overview-total strong { grid-column: 2; grid-row: 1 / 3; font-size: 48px; }
    .rv-overview-total .rv-overview-foot { grid-column: 1; }
    .rv-overview > div { padding: 21px; }
    .rv-overview-meta { border-left: 0; }
    .rv-overview-scope { border-left: 1px solid #d4dfc5; }
    .rv-overview-meta strong { font-size: 18px; margin: 9px 0; }
    .rv-overview-label, .rv-overview-foot { font-size: 13px; }
    .rv-panel-heading { padding: 23px 21px 20px; }
    .rv-panel-heading h2 { font-size: 20px; }
    .rv-panel-heading .rv-status-pill { font-size: 13px; }
    .rv-search-form { flex-wrap: wrap; padding: 0 21px 23px; gap: 10px; }
    .rv-search-form .rv-field { flex-basis: calc(100% - 90px); }
    .rv-search-form .rv-button { gap: 7px; padding-inline: 12px; }
    .rv-search-form > .rv-text-link { margin: 2px 0 0; }
    .rv-filter-summary { margin-inline: 21px; }
    .rv-table--stack { display: block; }
    .rv-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .rv-table--stack tbody { display: block; }
    .rv-table--stack tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 16px; padding: 21px; border-top: 1px solid var(--rv-line); }
    .rv-table--stack td { display: block; padding: 0 !important; min-width: 0; border: 0; font-size: 13px; }
    .rv-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--rv-muted); font-size: 13px; }
    .rv-table--stack td.rv-person-cell, .rv-table--stack td.rv-user-cell { grid-column: 1 / -1; padding-bottom: 3px !important; }
    .rv-table--stack td.rv-person-cell::before, .rv-table--stack td.rv-user-cell::before { display: none; }
    .rv-record-number { margin-right: 6px; min-width: 25px; }
    .rv-table--stack td.rv-row-actions { display: flex; align-items: flex-end; justify-content: flex-end; grid-column: 1 / -1; }
    .rv-table--stack td.rv-empty { grid-column: 1 / -1; padding: 23px 0 !important; }
    .rv-row-link { min-height: 48px; }
    .rv-table-footer { padding: 18px 21px; gap: 14px; }
    .rv-pagination { gap: 3px; }
    .rv-pagination a { min-width: 48px; min-height: 48px; padding-inline: 7px; }
    .rv-page-footer { align-items: flex-start; font-size: 13px; }
    .rv-page-footer span:last-child { max-width: 170px; text-align: right; }
    .rv-form-grid { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 22px; }
    .rv-form-section { padding: 22px; }
    .rv-form-actions { padding: 22px; justify-content: stretch; }
    .rv-form-actions > .rv-button { flex: 1; }
    .rv-profile-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .rv-auth-card { padding: 28px 24px; }
}
@media (max-width: 380px) {
    .rv-main { padding-inline: 16px; }
    .rv-nav-shell { padding-inline: 20px; }
    .rv-overview > div { padding: 18px; }
    .rv-panel-heading .rv-status-pill { display: none; }
    .rv-search-form { padding-inline: 18px; }
    .rv-panel-heading { padding-inline: 18px; }
    .rv-auth-story { padding: 22px; }
    .rv-auth-entry { padding-inline: 10px; }
    .rv-auth-form-wrap h1 { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* Readable controls and metadata at ordinary size, browser zoom and touch sizes. */
body { font-size: 1rem; line-height: 1.6; }
.rv-button, .rv-text-link, .rv-row-link, .rv-menu-toggle, .rv-logout,
.rv-nav-links a, .rv-field-label a, .rv-auth-intro, .rv-page-intro,
.rv-notice, .rv-form-status, .rv-filter-summary, .rv-empty p,
.rv-delete-confirmation strong, .rv-delete-confirmation p,
.rv-delete-disclosure > summary, .rv-confirm-actions .rv-button,
.rv-confirm-actions .rv-text-link, .rv-search-form .rv-button { font-size: 1rem; }
.rv-field label, .rv-field-label label, .form-label, .rv-search-form label { font-size: 1rem; line-height: 1.5; }
.rv-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
.rv-field select, .rv-field textarea, .rv-input, .rv-select,
.rv-search-form .rv-field input, .form-control, .form-select { min-height: 56px; font-size: 1rem; line-height: 1.5; }
.rv-field textarea { min-height: 128px; }
.rv-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
.rv-field select, .rv-field textarea, .rv-input, .rv-select,
.form-control, .form-select { border-color: #788a72; }
.rv-field input::placeholder, .rv-field textarea::placeholder { color: #5f7167; }
.rv-button--secondary { border-color: #788a72; }
.rv-field input[type=file] { white-space: normal; }
.rv-field input[type=file]::file-selector-button { min-height: 48px; font-size: 1rem; }
.rv-field small, .rv-field .form-text, .rv-overview-label, .rv-overview-foot,
.rv-role-label, .rv-role-pill, .rv-self-label, .rv-status-pill,
.rv-table-footer p, .rv-auth-note p, .rv-auth-footer, .rv-auth-description,
.rv-auth-story-footer, .rv-auth-story-footer span:last-child { font-size: .875rem; line-height: 1.6; }
.rv-auth-description { font-size: 1rem; }
.rv-page-footer, .rv-eyebrow, .rv-page-heading .rv-eyebrow, .rv-page-header .rv-eyebrow,
.rv-panel-heading .rv-eyebrow, .rv-auth-story .rv-eyebrow, .rv-test-badge,
.rv-environment, .rv-product-label, .rv-record-number { font-size: .8125rem; }
.rv-data-table, .rv-data-table td { font-size: 1rem; line-height: 1.6; }
.rv-data-table th { font-size: .875rem; letter-spacing: .025em; line-height: 1.5; }
.rv-role-pill, .rv-self-label { white-space: normal; }
.rv-button, .rv-menu-toggle, .rv-logout, .rv-row-link, .btn,
.rv-delete-disclosure > summary, .rv-confirm-actions .rv-button { min-height: 48px; }
.rv-button, .rv-row-link, .rv-nav-links a { white-space: normal; overflow-wrap: anywhere; }
.rv-search-form .rv-button { min-height: 56px; }
.rv-text-link, .rv-field-label a { display: inline-flex; align-items: center; min-height: 48px; padding-block: 8px; }
.rv-auth-card a:not(.rv-brand), .rv-auth-form-wrap a:not(.rv-brand) { display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; }
.rv-search-form > .rv-text-link { margin-block: 0; font-size: 1rem; }
.rv-row-link { padding: 8px 10px; border-radius: 7px; }
.rv-row-link:hover, .rv-row-link:focus-visible { background: #edf3e3; }
.rv-row-actions, .rv-action-group { max-width: 100%; }
.rv-nav-shell, .rv-nav-links, .rv-nav-account, .rv-navigation { min-width: 0; }
.rv-navigation, .rv-nav-account { flex-wrap: wrap; }
.rv-nav-links a, .rv-site-header .rv-brand { min-height: 48px; display: inline-flex; align-items: center; }
.rv-field-label { flex-wrap: wrap; gap: 0 12px; }
.rv-password-wrap input.rv-has-toggle { min-height: 56px; padding-right: 104px !important; }
.rv-password-toggle { top: 4px; bottom: auto; min-width: 88px; min-height: 48px; padding: 8px 10px; font-size: 1rem; }
.rv-password-reset { gap: 24px; }
.rv-password-reset-hint { margin: 10px 0 0; color: var(--rv-muted); font-size: 1rem; line-height: 1.65; }
.rv-password-reset-submit { min-height: 56px; text-align: left; }
.rv-pagination { gap: 6px; }
.rv-pagination a, .rv-pagination a.rv-page-arrow { min-width: 48px; min-height: 48px; padding: 8px 10px; font-size: 1rem; }
.rv-overview-meta strong { overflow-wrap: anywhere; }
.rv-page-heading h1, .rv-page-header h1, .rv-auth-card h1 { overflow-wrap: anywhere; }
.rv-notice, .rv-form-status, .rv-page-intro, .rv-auth-intro { overflow-wrap: anywhere; }

/* Cards greet the reader through their border; table text never moves or counts up. */
@keyframes rv-surface-arrive {
    from { border-color: #b4c894; box-shadow: 0 0 0 3px #d4e89e40; }
    to { border-color: var(--rv-line); box-shadow: 0 0 0 0 #d4e89e00; }
}
.rv-motion-enter { animation: rv-surface-arrive 320ms ease-out; }
@keyframes rv-data-arrive {
    from { transform: translateY(6px); opacity: .96; }
    to { transform: translateY(0); opacity: 1; }
}
.rv-data-enter { animation: rv-data-arrive 280ms cubic-bezier(.2,.65,.3,1); }

@media (max-width: 900px) {
    .rv-profile-grid { grid-template-columns: minmax(0,1fr); }
    .rv-table--stack { display: block; }
    .rv-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .rv-table--stack tbody { display: block; }
    .rv-table--stack tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 20px; padding: 24px; border-top: 1px solid var(--rv-line); }
    .rv-table--stack td { display: block; min-width: 0; padding: 0 !important; border: 0; font-size: 1rem; }
    .rv-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--rv-muted); font-size: .875rem; }
    .rv-table--stack td.rv-person-cell, .rv-table--stack td.rv-user-cell { grid-column: 1 / -1; }
    .rv-table--stack td.rv-person-cell::before, .rv-table--stack td.rv-user-cell::before { display: none; }
    .rv-table--stack td.rv-row-actions { display: flex; align-items: flex-start; justify-content: flex-start; grid-column: 1 / -1; }
    .rv-table--stack td.rv-empty { grid-column: 1 / -1; padding: 20px 0 !important; }
    .rv-action-group { justify-content: flex-start; gap: 10px 16px; }
    .rv-table-footer { gap: 16px; }
}
@media (max-width: 700px) {
    .rv-directory-page { padding-top: 28px; }
    .rv-search-form { gap: 12px; }
    .rv-search-form .rv-field { flex-basis: calc(100% - 122px); }
    .rv-page-heading > .rv-button { font-size: 1rem; min-height: 48px; }
    .rv-overview-label, .rv-overview-foot { font-size: .875rem; }
    .rv-overview-meta strong { font-size: 1.25rem; }
    .rv-panel-heading .rv-status-pill { font-size: .875rem; }
    .rv-nav-account { gap: 10px 16px; }
    .rv-role-label { font-size: .875rem; }
    .rv-auth-intro { font-size: 1rem; }
    .rv-auth-description { font-size: 1rem; }
    .rv-auth-story .rv-eyebrow { font-size: .8125rem; }
    .rv-auth-note p, .rv-auth-footer { font-size: .875rem; }
    .rv-page-footer { flex-wrap: wrap; font-size: .8125rem; }
    .rv-page-footer span:last-child { max-width: none; text-align: left; }
    .rv-record-number { font-size: .8125rem; }
}
@media (max-width: 480px) {
    .rv-main { padding-inline: 16px; }
    .rv-page-heading > .rv-button, .rv-page-header > .rv-button { width: 100%; }
    .rv-overview { grid-template-columns: minmax(0,1fr); }
    .rv-overview > div { padding: 20px 22px; }
    .rv-overview-total { display: flex !important; align-items: flex-start; gap: 5px; }
    .rv-overview-total strong { font-size: 48px; }
    .rv-overview-meta { border-left: 0; border-top: 1px solid #d4dfc5; }
    .rv-overview-meta strong { margin: 5px 0; }
    .rv-search-form { display: flex; flex-direction: column; align-items: stretch; padding-inline: 20px; }
    .rv-search-form .rv-field { flex-basis: auto; max-width: none; width: 100%; }
    .rv-search-form > .rv-button { width: 100%; }
    .rv-search-form > .rv-text-link { justify-content: flex-start; }
    .rv-table--stack tbody tr { grid-template-columns: minmax(0,1fr); padding: 22px 20px; gap: 16px; }
    .rv-table--stack td.rv-person-cell, .rv-table--stack td.rv-user-cell, .rv-table--stack td.rv-row-actions { grid-column: 1; }
    .rv-table-footer { padding-inline: 20px; }
    .rv-pagination { width: 100%; flex-wrap: wrap; }
    .rv-delete-disclosure { max-width: 100%; }
    .rv-field-label { align-items: flex-start; }
    .rv-auth-card { padding: 28px 22px; }
    .rv-auth-footer { flex-wrap: wrap; }
    .rv-form-actions { flex-direction: column; align-items: stretch; }
    .rv-form-actions > .rv-button { width: 100%; }
}
@media (max-width: 380px) {
    .rv-panel-heading .rv-status-pill { display: inline-flex; }
}
.rv-field small, .rv-field .form-text, .rv-overview-label,
.rv-data-table th, .rv-table--stack td[data-label]::before { font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
    .rv-motion-enter, .rv-data-enter { animation: none !important; transform: none !important; }
}
@media (forced-colors: active) {
    .rv-button, .rv-pagination a, .rv-status-pill, .rv-role-pill { border: 1px solid ButtonText; }
    .rv-field input, .rv-field select, .rv-field textarea { border: 1px solid FieldText; }
    .rv-notice { border-color: CanvasText; }
}
@media print {
    .rv-site-header, .rv-skip-link, .rv-search-form, .rv-row-actions, .rv-pagination, .rv-page-heading > .rv-button { display: none; }
    body { background: #fff; }
    .rv-main { padding: 0; max-width: none; }
    .rv-panel, .rv-overview { break-inside: avoid; }
}
