@font-face {
    font-family: Roboto;
    src: url('../Fonts/Roboto/Roboto-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body.bqa-app {
    --bqa-navy: #315a84;
    --bqa-cyan: #4199ba;
    --bqa-red: #b71f38;
    --bqa-warning-text: #8e1730;
    --bqa-warning-surface: #fff2f5;
    --bqa-orange: #de732b;
    --bqa-text: #24445f;
    --bqa-muted: #526678;
    --bqa-line: #d4e3ea;
    --bqa-surface: #f5f9fc;
    margin: 0;
    min-height: 100vh;
    background: var(--bqa-surface);
    color: var(--bqa-text);
    font: 400 14px/1.55 Roboto, Arial, sans-serif;
}
.bqa-app *, .bqa-app *::before, .bqa-app *::after { box-sizing: border-box; }
/* Shared warning standard: mark severity at its source, including within popups. */
.bqa-app .bqa-warning:not(:empty),
.bqa-app [data-bqa-notice-kind="warning"]:not(:empty),
.bqa-app .alert-warning, .bqa-app .alert-danger {
    color: var(--bqa-warning-text) !important;
    background: var(--bqa-warning-surface) !important;
    border: 1px solid #e5b8c2;
    border-left: 4px solid var(--bqa-red) !important;
    border-radius: 0 7px 7px 0;
    padding: 12px 14px;
    font-weight: 600;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.bqa-app .bqa-warning a,
.bqa-app [data-bqa-notice-kind="warning"] a { color: inherit; text-decoration: underline; }
@media (forced-colors: active) {
    .bqa-app .bqa-warning:not(:empty), .bqa-app [data-bqa-notice-kind="warning"]:not(:empty),
    .bqa-app .alert-warning, .bqa-app .alert-danger { border: 2px solid CanvasText; border-left-width: 4px !important; }
}
body.bqa-app > form { display: flex; flex-direction: column; min-height: 100vh; }
.bqa-app h1, .bqa-app h2, .bqa-app h3, .bqa-app h4 { font-family: Roboto, Arial, sans-serif; font-weight: 700; color: var(--bqa-navy); }
.bqa-app a { color: var(--bqa-navy); }
.bqa-app a:focus-visible, .bqa-app button:focus-visible, .bqa-app input:focus-visible, .bqa-app select:focus-visible, .bqa-app textarea:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: 3px; }
.bqa-skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 18px; background: white; z-index: 10000; border: 2px solid var(--bqa-navy); border-radius: 6px; }
.bqa-skip-link:focus { top: 12px; }
.bqa-header { background: white; border-top: 6px solid var(--bqa-navy); box-shadow: 0 4px 22px rgba(49,90,132,.06); }
.bqa-header-inner { min-height: 106px; padding: 10px clamp(24px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bqa-brand { display: flex; align-items: center; gap: 18px; min-width: 0; text-decoration: none; }
.bqa-brand-logo { display: block; width: 154px; height: 88px; object-fit: contain; }
.bqa-brand-product { display: inline-grid; grid-template-columns: minmax(0,1fr); width: 310px; max-width: 100%; gap: 5px; min-width: 0; border-left: 1px solid var(--bqa-line); padding-left: 18px; }
.bqa-brand-product strong { color: var(--bqa-navy); font-size: 24px; font-weight: 700; line-height: 1.15; }
.bqa-header-workspace-seal { display: block; flex: 0 0 auto; width: 108px; height: 108px; object-fit: contain; margin-inline: auto; }
@media(max-width:900px) { .bqa-header-workspace-seal { width: 72px; height: 72px; } }
.bqa-brand-product strong span { color: var(--bqa-red); }
.bqa-brand-product > span { font-size: 15px; color: var(--bqa-navy); max-width: 250px; line-height: 1.45; }
.bqa-header-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 24px; margin-left: auto; max-width: 100%; }
.bqa-product-signature { display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: end; flex: 0 0 auto; gap: 4px 12px; margin-left: 0; }
.bqa-product-identity { display: flex; flex-direction: column; align-items: center; grid-column: 1; grid-row: 1; max-width: 240px; }
.bqa-product-emblem { width: 118px; height: 68px; object-fit: contain; }
.bqa-ownership-lockup { display: contents; }
.bqa-owner-link { grid-column: 2; grid-row: 1; justify-self: end; }
.bqa-owner-link img { display: block; width: 136px; height: 48px; object-fit: contain; }
.bqa-ownership-lockup small { grid-column: 1 / -1; grid-row: 2; justify-self: end; color: var(--bqa-navy); font-size: 10px; font-weight: 700; white-space: nowrap; text-align: right; }
.bqa-header-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: 0; }
.bqa-header-navigation:empty { display: none; }
.bqa-brand-rule { display: flex; height: 4px; }
.bqa-brand-rule span:nth-child(1) { width: 34%; background: var(--bqa-cyan); }
.bqa-brand-rule span:nth-child(2) { width: 21%; background: var(--bqa-red); }
.bqa-brand-rule span:nth-child(3) { width: 12%; background: var(--bqa-orange); }
.bqa-brand-rule span:nth-child(4) { width: 33%; background: var(--bqa-navy); }
.bqa-main { flex: 1; min-width: 0; }

/* Public entry and the existing account forms. */
.bqa-signin-layout { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(320px,1.1fr) minmax(380px,.8fr); align-items: center; gap: clamp(48px,8vw,120px); min-height: calc(100vh - 116px); padding: clamp(48px,8vw,110px) clamp(24px,8vw,120px); background-color: #f9fcfe; background-image: linear-gradient(90deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.48) 28%,#f8fcfe 57%),url('../../Images/BQA/clarity-network-vertical.png'); background-repeat: no-repeat; background-position: left center; background-size: auto 112%; }
.bqa-signin-layout::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg,transparent 0 57%,rgba(205,228,241,.36) 57% 57.2%,transparent 57.2%); pointer-events: none; }
.bqa-welcome { position: relative; z-index: 2; max-width: 700px; margin-left: clamp(90px,8vw,150px); padding: 34px 32px; background: rgba(255,255,255,.78); backdrop-filter: blur(5px); border-radius: 22px; box-shadow: 0 20px 60px rgba(49,90,132,.07); }
.bqa-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--bqa-navy); }
.bqa-welcome h1 { color: #164f72; font-size: clamp(42px,5vw,72px); line-height: 1.02; letter-spacing: -.045em; margin: 20px 0 26px; }
.bqa-welcome p { color: var(--bqa-muted); font-size: 20px; line-height: 1.6; max-width: 620px; margin: 0; }
.bqa-services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bqa-services span { background: white; padding: 8px 12px; border: 1px solid var(--bqa-line); border-top: 3px solid var(--bqa-cyan); border-radius: 999px; font-size: 12px; }
.bqa-services span:nth-child(2) { border-top-color: var(--bqa-red); }
.bqa-services span:nth-child(3) { border-top-color: var(--bqa-orange); }
.bqa-wildlife-horizon { position: absolute; z-index: 1; left: 18vw; bottom: 14px; width: min(76vw,1280px); height: auto; opacity: .13; pointer-events: none; user-select: none; }
.bqa-entry-forms { position: relative; z-index: 2; min-width: 0; width: 100%; max-width: 520px; justify-self: end; }
.bqa-entry-forms table { width: 100% !important; border-collapse: separate; border-spacing: 0; }
.bqa-entry-forms [id$="tblLogin"] td { width: auto !important; }
.bqa-entry-forms .loginTable { width: auto; height: auto; padding: 0; }
.bqa-entry-forms .tableLogin { font-family: inherit; font-weight: 400; background: white; border: 1px solid var(--bqa-line); border-top: 5px solid var(--bqa-red); border-radius: 22px; box-shadow: 0 24px 65px rgba(49,90,132,.16); padding: 34px; overflow: hidden; }
.bqa-entry-forms .LoginHeading { background: white; color: var(--bqa-navy); text-align: left; padding: 0 0 20px; font-family: inherit; }
.bqa-login-title { font-size: 28px; line-height: 1.25; letter-spacing: -.025em; margin: 6px 0 12px; }
.bqa-login-description { font-weight: 400; font-size: 14px; color: var(--bqa-muted); margin: 0; }
.bqa-signin-heading { display: flex; align-items: center; gap: 20px; }
.bqa-signin-heading .bqa-login-title { margin-bottom: 0; }
.bqa-signin-halo { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle,#fff 0 48%,transparent 49%),conic-gradient(from -35deg,var(--bqa-navy) 0 27%,transparent 27% 31%,var(--bqa-red) 31% 54%,transparent 54% 58%,var(--bqa-orange) 58% 64%,transparent 64% 68%,var(--bqa-cyan) 68% 95%,transparent 95%); box-shadow: 0 10px 26px rgba(49,90,132,.15); }
.bqa-signin-halo::after { content: ''; position: absolute; inset: -7px; border: 1px solid rgba(65,153,186,.16); border-radius: 50%; }
.bqa-signin-halo > span { display: grid; place-items: center; width: 34px; height: 34px; background: white; border-radius: 50%; color: var(--bqa-navy); font-size: 22px; }
.bqa-login-profile:has(.profileImage[src$="Default.jpg"]):not(:has([id$="lbUser"]:not(:empty))) { display: none; }
.bqa-entry-forms .loginCell { padding: 8px 0; text-align: left; font: inherit; color: var(--bqa-text); }
.bqa-field-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
.bqa-password-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bqa-entry-forms .input { width: 100%; min-height: 43px; background: white; border: 1px solid #b6ccd8; border-radius: 7px; padding: 11px 13px; font: 400 14px/1.4 Roboto,Arial,sans-serif; }
.bqa-entry-forms .buttonCell { padding: 9px 0; text-align: left; }
.bqa-entry-forms .bqa-signin-button, .bqa-entry-forms .bqa-register-button { display: block; width: 100%; padding: 12px 16px; border-radius: 7px; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.bqa-entry-forms .bqa-signin-button { color: white; background: var(--bqa-navy); border: 1px solid var(--bqa-navy); }
.bqa-entry-forms .bqa-signin-button:hover { background: #254b73; color: white; }
.bqa-entry-forms .bqa-register-button { color: var(--bqa-navy); background: white; border: 1px solid var(--bqa-navy); }
.bqa-entry-forms .bqa-register-button:hover { background: #edf7fa; }
.bqa-entry-forms .bqa-recovery-link { color: #28748e; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
/* Keep the original sign-in controls together, with the password taking half the desktop row. */
.bqa-entry-forms [id$="tblLogin"] .bqa-login-password-actions { display: grid; grid-template-columns: minmax(0,50%) minmax(0,1fr); align-items: end; gap: 14px; }
.bqa-entry-forms [id$="tblLogin"] .bqa-login-password-field, .bqa-entry-forms [id$="tblLogin"] .bqa-login-submit { min-width: 0; }
.bqa-entry-forms [id$="tblLogin"] .bqa-login-submit .bqa-signin-button, .bqa-entry-forms [id$="tblLogin"] .bqa-login-recovery-button { display: inline-flex; align-items: center; width: auto; max-width: 100%; margin: 0; text-align: left; }
.bqa-entry-forms [id$="tblLogin"] .bqa-login-recovery-button { white-space: normal; }
@media (max-width: 420px) {
    .bqa-entry-forms [id$="tblLogin"] .bqa-login-password-actions { grid-template-columns: minmax(0,1fr); gap: 10px; }
}
.bqa-account-divider { display: flex; align-items: center; gap: 10px; color: var(--bqa-muted); font-size: 12px; margin: 10px 0 2px; }
.bqa-account-divider::before, .bqa-account-divider::after { content: ''; flex: 1; height: 1px; background: var(--bqa-line); }
.bqa-entry-notice { padding-top: 4px; color: var(--bqa-muted); font-size: 11px; text-align: center; }
.bqa-entry-forms .bqa-back-link { display: inline-block; color: #28748e; background: transparent; border: 0; padding: 0; margin: 0 0 22px; font: 700 14px/1.5 Roboto,Arial,sans-serif; text-decoration: none; cursor: pointer; }
.bqa-entry-forms .bqa-back-link:hover { text-decoration: underline; }
.bqa-recovery-options { border-spacing: 0 10px !important; }
.bqa-recovery-options td { padding: 12px 16px; border: 1px solid var(--bqa-line); border-radius: 12px; background: white; }
.bqa-recovery-options td:has(input:checked) { border-color: var(--bqa-cyan); background: #f8fcfe; }
.bqa-recovery-options input { margin-right: 12px; accent-color: var(--bqa-navy); }
.bqa-recovery-options label { font-size: 13px; font-weight: 700; color: var(--bqa-navy); cursor: pointer; }
.bqa-recovery-options label::after { display: block; font-size: 11px; font-weight: 400; margin: 2px 0 0 28px; color: var(--bqa-muted); }
.bqa-recovery-options label[for$="_0"]::after { content: 'Recover the username linked to your account.'; }
.bqa-recovery-options label[for$="_1"]::after { content: 'Start the password-recovery process.'; }
.bqa-entry-forms .profileImage { width: 64px; height: 64px; object-fit: cover; }
.bqa-entry-forms .profileImage[src$="Default.jpg"] { display: none; }
.bqa-entry-forms .error { color: var(--bqa-red); font-family: inherit; font-size: 12px; font-weight: 400; }
.bqa-signin-layout:has([id$="tblRegistration"]) { grid-template-columns: minmax(0,1120px); justify-content: center; }
.bqa-signin-layout:has([id$="tblRegistration"]) .bqa-welcome { display: none; }
.bqa-signin-layout:has([id$="tblForgotLogin"]) .bqa-wildlife-horizon, .bqa-signin-layout:has([id$="tblRegistration"]) .bqa-wildlife-horizon { display: none; }
.bqa-signin-layout:has([id$="tblRegistration"]) .bqa-entry-forms { max-width: 1120px; justify-self: center; }
.bqa-app .bqa-entry-forms .bqa-registration-panel { padding: 30px 34px; border-radius: 22px; border-top: 5px solid var(--bqa-red); box-shadow: 0 24px 65px rgba(49,90,132,.16); }
.bqa-entry-forms .bqa-registration-panel .formHeading { background: white; color: var(--bqa-navy); border: 0; padding: 0 0 24px; }
.bqa-registration-heading { display: flex; gap: 22px; align-items: center; }
.bqa-registration-halo { position: relative; flex: 0 0 78px; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle,rgba(65,153,186,.06),rgba(65,153,186,.2)); border: 1px solid rgba(65,153,186,.2); box-shadow: 0 12px 26px rgba(49,90,132,.08); display: grid; place-items: center; }
.bqa-registration-halo::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: white; }
.bqa-registration-halo > span { position: relative; font-size: 31px; color: var(--bqa-navy); }
.bqa-entry-forms .bqa-registration-panel .bqa-registration-section { background: white; border: 0; border-top: 1px solid var(--bqa-line); padding: 24px 0 16px; text-decoration: none; }
.bqa-registration-section > span { display: inline-block; vertical-align: middle; }
.bqa-registration-section .bqa-section-number { width: 46px; height: 46px; line-height: 46px; margin-right: 20px; border-radius: 50%; background: var(--bqa-navy); text-align: center; color: white; font-size: 14px; font-weight: 700; }
.bqa-registration-section strong { display: block; font-size: 18px; }
.bqa-registration-section small { display: block; font-size: 12px; font-weight: 400; color: var(--bqa-muted); }
.bqa-registration-panel > tbody > tr:not(:has(td)) { display: none; }
/* Equal compact fields follow DOM order; old table colspans do not widen individual fields. */
.bqa-registration-panel > tbody > tr > td > table { display: block; max-width: 900px; margin: 0 auto; }
.bqa-registration-panel > tbody > tr > td > table > tbody, .bqa-registration-fields > tbody { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 24px; align-items: start; }
.bqa-registration-panel > tbody > tr > td > table > tbody > tr, .bqa-registration-fields > tbody > tr { display: contents; }
.bqa-registration-panel > tbody > tr > td > table > tbody > tr > td, .bqa-registration-fields > tbody > tr > td { display: block; width: auto !important; min-width: 0; }
.bqa-registration-panel > tbody > tr > td > table > tbody > tr > .formA, .bqa-registration-fields > tbody > tr > .formA { grid-column: auto; }
.bqa-registration-panel > tbody > tr > td > table > tbody > tr > .bqa-registration-section,
.bqa-registration-panel > tbody > tr > td > table > tbody > tr > .buttonCell,
.bqa-registration-fields > tbody > tr > .bqa-registration-section,
.bqa-registration-fields > tbody > tr > .buttonCell { grid-column: 1 / -1; }
.bqa-registration-details { width: 80%; max-width: 900px; min-width: 0; margin: 0 auto; padding: 0; border: 0; }
.bqa-registration-details .bqa-registration-fields { display: block; width: 100%; }
.bqa-registration-details[disabled] { opacity: .65; }
.bqa-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bqa-registration-panel .formA { padding: 10px 0; vertical-align: top; }
.bqa-registration-panel .textbox, .bqa-registration-panel .dropDown { width: calc(100% - 18px); min-width: 0; min-height: 46px; background: white; vertical-align: middle; }
.bqa-registration-panel input.textbox, .bqa-registration-panel select.dropDown { height: 46px; }
.bqa-registration-panel .compul { display: inline-block; width: 12px; text-align: center; vertical-align: middle; }
.bqa-registration-panel .error, .bqa-registration-panel .loading { display: inline-block; max-width: calc(100% - 18px); font: inherit; line-height: 1.45; overflow-wrap: anywhere; }
.bqa-registration-panel .bqa-registration-password-help { max-width: calc(100% - 18px); margin-top: 8px; color: var(--bqa-muted); font-family: inherit; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.bqa-registration-panel .bqa-registration-password-help ul { margin: 4px 0 0; padding-left: 16px; }
.bqa-registration-panel .bqa-registration-password-help li + li { margin-top: 4px; }
.bqa-registration-panel .bqa-registration-password-help p { margin: 4px 0 0; }
.bqa-registration-panel .bqa-registration-help { display: block; max-width: calc(100% - 18px); margin: 8px 0 0; color: var(--bqa-muted); font-size: 11px; line-height: 1.45; }
.bqa-registration-panel .bqa-verification-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 18px); margin-top: 8px; }
.bqa-registration-panel .bqa-verification-button { border: 1px solid var(--bqa-line); border-radius: 6px; background: white; color: var(--bqa-navy); padding: 7px 10px; font: 600 11px/1.45 Roboto,Arial,sans-serif; cursor: pointer; }
.bqa-registration-panel .bqa-verification-button:hover { border-color: var(--bqa-cyan); background: #f5f9fc; }
.bqa-registration-panel .buttonCell { padding: 18px 0 0; }

/* Existing portal controls keep their routes and server-side behaviour. */
.bqa-app .bqa-portal, .bqa-app .bqa-admin, .bqa-app .bqa-controller, .bqa-app .bqa-application { width: 100% !important; border-collapse: collapse; }
.bqa-app .bqa-portal-layout { width: 100% !important; border-collapse: collapse; }
.bqa-app .bqa-sidebar { width: 242px !important; min-width: 220px; max-width: 260px; padding: 24px 0 !important; vertical-align: top; background-color: var(--bqa-navy) !important; background-image: linear-gradient(rgba(49,90,132,.9),rgba(49,90,132,.9)),url('../../Images/BQA/clarity-network-vertical.png'); background-position: center; background-size: auto 110%; color: white; }
.bqa-sidebar-brand { background: transparent; padding: 8px 0 18px; text-align: center; margin-bottom: 20px; color: white; }
.bqa-workplace-clarity-halo { position: relative; display: grid; place-items: center; width: 166px; height: 166px; margin: 4px auto 25px; border-radius: 50%; background: radial-gradient(circle,#fff 0 57%,rgba(255,255,255,.96) 58%,rgba(65,153,186,.18) 59% 67%,transparent 73%); box-shadow: 0 0 0 1px rgba(255,255,255,.3),0 0 0 18px rgba(255,255,255,.06),0 14px 35px rgba(0,0,0,.16); }
.bqa-workplace-clarity-halo::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: url('../../Images/BQA/clarity-network-vertical.png') center/auto 170%; opacity: .1; pointer-events: none; }
.bqa-workplace-clarity-halo img { position: relative; display: block; width: 130px; height: 88px; object-fit: contain; }
.bqa-sidebar-brand strong { display: block; color: white; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.bqa-sidebar-context { display: block; font-size: 11px; letter-spacing: .08em; margin-top: 4px; color: rgba(255,255,255,.75); }
.bqa-sidebar-owner { margin-top: 28px; padding: 22px 6px 8px; border-top: 1px solid rgba(255,255,255,.2); text-align: center; }
.bqa-sidebar-owner strong { display: block; font-size: 15px; color: white; }
.bqa-sidebar-owner span { display: block; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.bqa-sidebar-owner img { display: block; width: 145px; height: 48px; object-fit: contain; margin: 14px auto 8px; filter: brightness(0) invert(1); }
.bqa-sidebar-owner small { display: block; color: rgba(255,255,255,.75); font-size: 11px; }
.bqa-app .bqa-sidebar a { color: white; font-family: inherit; }
.bqa-app .bqa-sidebar a:hover { color: white; background-color: rgba(255,255,255,.12); }
.bqa-app .bqa-sidebar .bqa-system-menu a { color: var(--bqa-navy); }
.bqa-app .bqa-sidebar .bqa-system-menu a:hover { color: var(--bqa-navy); background-color: var(--bqa-surface); }
.bqa-app .bqa-side-menu { width: 100% !important; background: transparent; }
.bqa-app .bqa-side-menu a { display: inline-block; padding: 8px 10px; border-radius: 5px; }
.bqa-app .bqa-nav-spacer { height: 8px !important; background: transparent !important; }
.bqa-app .bqa-profile { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.bqa-app .bqa-portal-content, .bqa-app .bqa-application-content { vertical-align: top; padding: 28px !important; min-width: 0; background: var(--bqa-surface); }
.bqa-app .Contents { text-align: left; padding-bottom: 24px; min-height: 0; }
.bqa-app .bqa-top-nav, .bqa-app .bqa-portal-nav { background: white; color: var(--bqa-navy); font-family: inherit; }
.bqa-app .bqa-top-nav a { font-family: inherit; font-size: 13px; }
.bqa-app .formMasterTable { background: white; border: 1px solid var(--bqa-line); border-radius: 10px; box-shadow: 0 6px 24px rgba(49,90,132,.05); }
/* Workspace navigation stays against the left edge; spacing belongs inside the content. */
.bqa-app table.bqa-portal-layout { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; border-spacing: 0; }
.bqa-app .formHeading, .bqa-app .LoginHeading, .bqa-app .popTopCell { font-family: inherit; }
.bqa-app .formHeading { background: var(--bqa-navy); color: white; padding: 16px 20px; font-size: 18px; }
.bqa-app .formTitle { background: #edf7fa; color: var(--bqa-navy); border-left: 4px solid var(--bqa-cyan); font-family: inherit; padding: 12px 16px; }
.bqa-app .formA, .bqa-app .formB, .bqa-app .formC { font-family: inherit; color: var(--bqa-text); }
.bqa-app .textbox, .bqa-app .dropDown, .bqa-app .loginTextbox, .bqa-app .loginDropDown { font-family: inherit; font-weight: 400; border: 1px solid #b6ccd8; border-radius: 5px; padding: 8px 10px; max-width: 100%; }
.bqa-app .button { font-family: inherit; border-radius: 6px; padding: 9px 14px; }
.bqa-app .btn-primary { background: var(--bqa-navy); border-color: var(--bqa-navy); }
.bqa-app .btn-primary:hover { background: #254b73; border-color: #254b73; }
.bqa-app .btn-info { background: #edf7fa; color: var(--bqa-navy); border-color: #b6ccd8; }
.bqa-app .Panel { border-radius: 10px; border: 1px solid var(--bqa-line); overflow: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); }
.bqa-app .popTopCell { background: var(--bqa-navy); color: white; padding: 16px; }
.bqa-app .GridView, .bqa-app .gridView { font-family: inherit; border-color: var(--bqa-line); }
.bqa-account-notification .formMessage { padding: 24px; text-align: left; color: var(--bqa-navy); font: 400 17px/1.6 Roboto,Arial,sans-serif; }
.bqa-account-notification .formMessage strong { font-weight: 700; }

.bqa-app .bqa-workspace { width: 100%; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.bqa-workspace-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.bqa-workspace-header { padding: 4px 0 24px; }
.bqa-workspace-header h1 { font-size: 30px; line-height: 1.25; margin: 8px 0; }
.bqa-workspace-header p { margin: 0; color: var(--bqa-muted); }
.bqa-app .bqa-service-group { background: transparent; text-align: left; color: var(--bqa-navy); padding: 12px 0; border: 0; box-shadow: none; }
.bqa-service-group h2 { font-size: 20px; margin: 7px 0 0; }
.bqa-app .bqa-service-grid { display: block; width: 100%; }
.bqa-service-grid > tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.bqa-service-grid > tbody > tr { display: contents; }
.bqa-service-grid > tbody > tr > td:not(.bqa-service-item) { display: none; }
.bqa-app .bqa-service-grid .bqa-service-item { display: block; width: auto !important; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
.bqa-service-card { display: flex; align-items: center; height: 100%; min-height: 124px; padding: 20px; background: white; border: 1px solid var(--bqa-line); border-top: 4px solid var(--bqa-navy); border-radius: 10px; color: var(--bqa-navy); box-shadow: 0 5px 20px rgba(49,90,132,.04); }
.bqa-service-card:hover { color: var(--bqa-navy); border-color: var(--bqa-cyan); box-shadow: 0 8px 25px rgba(49,90,132,.1); }
.bqa-service-card[href*="AssessorApplications"] { border-top-color: var(--bqa-red); }
.bqa-service-card.bqa-service-pending { border-top-color: var(--bqa-cyan); }
.bqa-app .bqa-service-inner { width: 100%; margin: 0; background: transparent; border: 0; box-shadow: none; }
.bqa-service-inner > tbody { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; align-items: center; }
.bqa-service-inner > tbody > tr { display: contents; }
.bqa-service-inner > tbody > tr > td:not(.bqa-service-copy):not(.bqa-service-icon) { display: none; }
.bqa-service-inner .bqa-service-copy { grid-column: 2; grid-row: 1; padding: 0; text-align: left; }
.bqa-service-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.bqa-service-description { display: block; font-size: 12px; color: var(--bqa-muted); line-height: 1.5; }
.bqa-service-inner .bqa-service-icon { grid-column: 1; grid-row: 1; padding: 8px; background: #edf7fa; border-radius: 50%; }
.bqa-service-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }

.bqa-app .w3-animate-top { position: relative; animation: bqa-enter-top .4s; }
.bqa-app .w3-animate-bottom { position: relative; animation: bqa-enter-bottom .4s; }
.bqa-app .w3-animate-right { position: relative; animation: bqa-enter-right .4s; }
.bqa-app .w3-animate-opacity { animation: bqa-fade-in .6s; }
.bqa-app .w3-animate-input { transition: width .4s ease-in-out; }
.bqa-app .w3-animate-input:focus { width: 100% !important; }
@keyframes bqa-enter-top { from { top: -24px; opacity: 0; } to { top: 0; opacity: 1; } }
@keyframes bqa-enter-bottom { from { bottom: -24px; opacity: 0; } to { bottom: 0; opacity: 1; } }
@keyframes bqa-enter-right { from { right: -24px; opacity: 0; } to { right: 0; opacity: 1; } }
@keyframes bqa-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .bqa-brand-product strong { font-size: 30px; }
    .bqa-welcome { margin-left: 30px; }
    .bqa-app .bqa-portal-content, .bqa-app .bqa-application-content { padding: 20px !important; }
}
@media (max-width: 1000px) {
    .bqa-signin-layout { grid-template-columns: minmax(0,1fr); gap: 40px; background-size: auto 82%; background-position: -150px center; }
    .bqa-welcome { margin-left: 0; max-width: none; }
    .bqa-entry-forms { justify-self: center; }
    .bqa-wildlife-horizon { left: 3vw; width: 94vw; opacity: .1; bottom: 5px; }
    .bqa-registration-panel > tbody > tr > td > table > tbody, .bqa-registration-fields > tbody { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 592px; margin: 0 auto; }
}
@media (max-width: 760px) {
    .bqa-header-inner { min-height: 90px; padding: 8px 18px; gap: 14px; flex-wrap: wrap; }
    .bqa-brand-logo { width: 116px; height: 74px; flex-shrink: 0; }
    .bqa-brand { gap: 14px; }
    .bqa-product-signature { gap: 4px 10px; }
    .bqa-product-identity { max-width: 170px; }
    .bqa-ownership-lockup small { white-space: normal; max-width: 100%; }
    .bqa-header-tools { gap: 14px; }
    .bqa-service-grid > tbody { grid-template-columns: minmax(0,1fr); }
    .bqa-workspace-header h1 { font-size: 26px; }
    .bqa-app .bqa-portal-layout > tbody > tr > .bqa-sidebar, .bqa-app .bqa-portal-layout > tbody > tr > .bqa-portal-content { display: block; width: 100% !important; max-width: none; }
    .bqa-app .bqa-sidebar { min-width: 0; min-height: 0; }
    .bqa-sidebar-brand { display: none; }
    .bqa-sidebar-owner { margin-top: 16px; padding-top: 16px; }
    .bqa-app .bqa-side-menu a { padding: 8px; }
}
@media (max-width: 600px) {
    .bqa-header-inner { justify-content: space-between; }
    .bqa-brand-logo { width: 80px; height: 64px; }
    .bqa-brand-product { padding-left: 14px; }
    .bqa-brand-product strong { font-size: 22px; }
    .bqa-brand-product > span { font-size: 12px; }
    .bqa-product-emblem { width: 90px; height: 50px; }
    .bqa-owner-link img { width: 110px; height: 38px; }
    .bqa-signin-layout { padding: 42px 18px; gap: 32px; background-image: linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.82)),url('../../Images/BQA/clarity-network-vertical.png'); }
    .bqa-welcome { padding: 26px 24px; }
    .bqa-welcome h1 { font-size: 42px; margin: 14px 0 20px; }
    .bqa-welcome p { font-size: 17px; }
    .bqa-services { display: none; }
    .bqa-entry-forms .tableLogin, .bqa-app .bqa-entry-forms .bqa-registration-panel { padding: 24px; border-radius: 16px; }
    .bqa-signin-heading { gap: 16px; }
    .bqa-login-title { font-size: 25px; }
    .bqa-signin-halo { width: 60px; height: 60px; flex-basis: 60px; }
    .bqa-signin-halo > span { font-size: 19px; }
    .bqa-registration-halo { width: 62px; height: 62px; flex-basis: 62px; }
    .bqa-registration-halo > span { font-size: 25px; }
    .bqa-registration-heading { gap: 16px; }
    .bqa-wildlife-horizon { width: 125vw; left: -12vw; opacity: .075; }
    .bqa-password-label { flex-wrap: wrap; gap: 0 10px; }
    .bqa-registration-panel > tbody > tr > td > table > tbody, .bqa-registration-fields > tbody { grid-template-columns: minmax(0,1fr); max-width: 284px; }
}
@media (prefers-reduced-motion: reduce) {
    .bqa-app *, .bqa-app *::before, .bqa-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Staff entry uses the same V2 network and Botswana horizon as sign-in. */
.bqa-app .bqa-staff-landing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 130px);
    padding: 3mm clamp(24px, 4vw, 72px) 64px;
    background-color: #f9fcfe;
    background-image: linear-gradient(90deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.48) 28%,#f8fcfe 57%),url('../../Images/BQA/clarity-network-vertical.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 112%;
}
.bqa-staff-landing::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg,transparent 0 57%,rgba(205,228,241,.36) 57% 57.2%,transparent 57.2%); pointer-events: none; }
.bqa-staff-landing .bqa-wildlife-horizon { z-index: 0; left: 0; bottom: 0; width: 100%; opacity: .09; }
.bqa-staff-content { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.bqa-staff-heading { margin-bottom: 24px; padding: 22px 26px; background: rgba(255,255,255,.9); border-radius: 16px; }
.bqa-staff-heading h1 { margin: 6px 0 8px; color: var(--bqa-navy); font: 700 clamp(28px, 3vw, 40px)/1.2 Roboto, Arial, sans-serif; }
.bqa-staff-heading p { margin: 0; color: var(--bqa-muted); }
.bqa-app .bqa-controller { table-layout: fixed; }
.bqa-app .bqa-controller:has(.bqa-staff-landing) { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.bqa-app .bqa-controller:has(.bqa-staff-landing) > tbody > tr:first-child > .bqa-portal-content { padding: 0 !important; }
.bqa-app .bqa-staff-module-table { width: 100%; table-layout: fixed; margin: 0; background: transparent; border: 0; box-shadow: none; border-collapse: collapse; }
.bqa-app .bqa-staff-module-table > tbody > tr > td { padding: 0; }
.bqa-app .bqa-module-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 0 8px 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--bqa-navy);
    font-family: Roboto, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
}
.bqa-module-link strong { font-size: 20px; line-height: 1.25; }
.bqa-module-description { max-width: 220px; font-size: 13px; line-height: 1.4; }
.bqa-module-ring {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    margin-bottom: 4px;
    border-radius: 50%;
    background-color: white;
    background-image: radial-gradient(circle closest-side, #fff 0 74%, transparent 75%),conic-gradient(from -35deg,var(--bqa-navy) 0 27%,transparent 27% 31%,var(--bqa-red) 31% 54%,transparent 54% 58%,var(--bqa-orange) 58% 64%,transparent 64% 68%,var(--bqa-cyan) 68% 95%,transparent 95%);
    box-shadow: 0 6px 18px rgba(49,90,132,.1);
    transition: box-shadow 160ms ease, transform 160ms ease;
}
.bqa-module-ring .bi { font-size: 48px; line-height: 1; color: var(--bqa-navy); }
.bqa-app a.bqa-module-link:hover { color: var(--bqa-navy); text-decoration: none; }
.bqa-app a.bqa-module-link:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: 4px; }
.bqa-app a.bqa-module-link:hover .bqa-module-ring,
.bqa-app a.bqa-module-link:focus-visible .bqa-module-ring { transform: translateY(-3px); box-shadow: 0 0 0 6px rgba(65,153,186,.12),0 0 34px rgba(65,153,186,.34),0 8px 22px rgba(49,90,132,.15); }
.bqa-app .bqa-module-inactive { cursor: default; }

/* Module access and proposed data exchanges share one connected map. */
.bqa-access-map { min-width: 0; max-width: 100%; margin: 0; border: 1px solid var(--bqa-line); border-radius: 22px; background: rgba(255,255,255,.84); }
.bqa-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 24px; border-bottom: 1px solid var(--bqa-line); color: var(--bqa-navy); font-size: 12px; }
.bqa-map-key > span { display: inline-flex; align-items: center; gap: 9px; }
.bqa-map-key-line { display: inline-block; width: 30px; border-top: 2px solid #1b6685; }
.bqa-map-key-dashed { border-top-style: dashed; }
.bqa-map-key-help { margin-left: auto; color: var(--bqa-muted); }
.bqa-map-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bqa-map-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.bqa-map-scroll:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: -3px; }
.bqa-map-canvas { position: relative; min-width: 1100px; height: 780px; margin: 18px 20px 24px; }
.bqa-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bqa-map-lines path { fill: none; stroke: #1b6685; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bqa-map-lines marker path { fill: #1b6685; stroke: none; }
.bqa-map-integration-lines { stroke-dasharray: 7 5; }
.bqa-map-group { display: contents; }
.bqa-map-group-heading { display: none; }
.bqa-app .bqa-map-node { --map-halo-size: 120px; position: absolute; z-index: 1; width: 224px; transform: translateX(-50%); }
.bqa-map-node .bqa-module-ring { width: var(--map-halo-size); height: var(--map-halo-size); }
.bqa-map-node .bqa-module-ring .bi { font-size: 44px; }
.bqa-map-node strong, .bqa-map-node .bqa-module-description { padding: 0 5px; background: rgba(255,255,255,.92); border-radius: 4px; }
.bqa-app .bqa-map-bqa { --map-halo-size: 224px; left: 53.3333%; top: calc(51.8293% - var(--map-halo-size) / 2); width: 300px; }
.bqa-map-bqa .bqa-module-ring .bi { font-size: 88px; }
.bqa-map-bqa strong { font-size: 32px; }
.bqa-map-bqa .bqa-module-description { font-size: 16px; }
.bqa-map-nlrd { left: 21.25%; top: calc(44.5122% - var(--map-halo-size) / 2 - 9mm); }
.bqa-map-etp { left: 72.0833%; top: calc(25% - var(--map-halo-size) / 2); }
.bqa-map-support { left: 90%; top: calc(47.561% - var(--map-halo-size) / 2); }
.bqa-map-system { left: 81.25%; top: calc(75% - var(--map-halo-size) / 2); }
.bqa-map-awarding { left: 21.6667%; top: calc(75% - var(--map-halo-size) / 2); }
.bqa-map-state { display: inline-block; padding: 3px 10px; border: 1px solid var(--bqa-navy); border-radius: 20px; background: var(--bqa-navy); color: white; font-size: 11px; font-weight: 700; line-height: 1.5; }
.bqa-map-state-planned { background: white; color: var(--bqa-muted); border-color: #b8cbd6; }
.bqa-map-integration { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 176px; padding: 12px; border: 1px solid var(--bqa-line); border-radius: 14px; background: #fff; color: var(--bqa-navy); text-align: center; transform: translateX(-50%); }
.bqa-map-integration > .bi { font-size: 28px; line-height: 1.2; }
.bqa-map-integration > strong { font-size: 15px; line-height: 1.35; }
.bqa-map-integration > span { font-size: 11px; line-height: 1.4; }
.bqa-map-integration > small { color: var(--bqa-muted); font-size: 11px; line-height: 1.4; }
.bqa-map-hrdc { left: 9.1667%; top: 5.5%; }
.bqa-map-hrdf { left: 27.0833%; top: 5.5%; }
.bqa-map-sector { left: 8.3333%; top: calc(63% - 20mm); }
.bqa-map-cipa { left: 62.5%; top: 1%; }
.bqa-map-omang { left: 86.6667%; top: 1%; }
.bqa-map-other-services { margin-top: 20px; padding: 14px 20px; border: 1px solid var(--bqa-line); border-radius: 12px; background: rgba(255,255,255,.92); color: var(--bqa-muted); }
.bqa-map-other-services summary { color: var(--bqa-navy); cursor: pointer; font-weight: 700; }
.bqa-map-other-services p { margin: 10px 0 0; }
.bqa-map-external-note { margin: 0; padding: 16px 24px; border-top: 1px solid var(--bqa-line); color: var(--bqa-muted); font-size: 12px; line-height: 1.6; }
.bqa-map-external-note .bi { margin-right: 6px; color: var(--bqa-navy); }

/* Layered halos keep the V2 colour segments; light distinguishes each workplace. */
.bqa-map-canvas { background: radial-gradient(ellipse at 53% 50%,rgba(65,153,186,.07),transparent 54%); }
.bqa-map-node { --halo-light: 65,153,186; }
.bqa-map-nlrd { --halo-light: 49,90,132; }
.bqa-map-system { --halo-light: 222,115,43; }
.bqa-map-awarding { --halo-light: 183,31,56; }
.bqa-map-node .bqa-module-ring { position: relative; isolation: isolate; box-shadow: 0 8px 24px rgba(49,90,132,.10),0 0 32px rgba(var(--halo-light),.10); }
.bqa-map-node .bqa-module-ring::before { content: ''; position: absolute; inset: -9px; border: 1px solid rgba(var(--halo-light),.25); border-radius: 50%; box-shadow: 0 0 0 5px rgba(var(--halo-light),.035); pointer-events: none; transition: border-color 180ms ease,box-shadow 180ms ease; }
.bqa-map-node .bqa-module-ring::after { content: ''; position: absolute; z-index: -1; inset: 17%; border: 1px solid rgba(var(--halo-light),.12); border-radius: 50%; background: radial-gradient(circle at 30% 24%,rgba(var(--halo-light),.10),white 72%); box-shadow: inset 0 -3px 12px rgba(49,90,132,.035); pointer-events: none; }
.bqa-map-node .bqa-module-ring .bi { position: relative; z-index: 1; }
.bqa-map-bqa .bqa-module-ring::before { inset: -13px; box-shadow: 0 0 0 7px rgba(var(--halo-light),.04),0 0 40px rgba(var(--halo-light),.10); }
.bqa-app a.bqa-map-node:hover .bqa-module-ring,
.bqa-app a.bqa-map-node:focus-visible .bqa-module-ring { box-shadow: 0 0 0 6px rgba(var(--halo-light),.10),0 0 38px rgba(var(--halo-light),.32),0 12px 28px rgba(49,90,132,.14); }
.bqa-app a.bqa-map-node:hover .bqa-module-ring::before,
.bqa-app a.bqa-map-node:focus-visible .bqa-module-ring::before { border-color: rgba(var(--halo-light),.65); box-shadow: 0 0 0 5px rgba(var(--halo-light),.06); }

/* An entry workplace contains no service permissions of its own. */
.bqa-awarding-workplace { max-width: 900px; margin: 40px auto; padding: 32px; border: 1px solid var(--bqa-line); border-radius: 22px; background: white; color: var(--bqa-navy); }
.bqa-awarding-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.bqa-awarding-heading h1 { margin: 6px 0 8px; font-size: clamp(26px,3vw,36px); }
.bqa-awarding-heading p { margin: 0; color: var(--bqa-muted); }
.bqa-awarding-heading .bqa-module-ring { width: 104px; height: 104px; }
.bqa-awarding-heading .bqa-module-ring .bi { font-size: 40px; }
.bqa-awarding-notice { margin: 0 0 24px; padding: 20px; border-left: 4px solid var(--bqa-cyan); border-radius: 10px; background: var(--bqa-surface); }
.bqa-awarding-notice h2 { margin: 0 0 10px; font-size: 20px; }
.bqa-awarding-notice p { margin: 0; color: var(--bqa-muted); }
.bqa-awarding-back { display: inline-block; padding: 10px 16px; border: 1px solid var(--bqa-navy); border-radius: 8px; font-weight: 700; }

/* BQA IT reviews staff requests after linking their employee profile and roles. */
.bqa-staff-approvals { margin-bottom: 24px; padding: 24px; border: 1px solid var(--bqa-line); border-left: 4px solid var(--bqa-cyan); border-radius: 14px; background: white; color: var(--bqa-navy); overflow-x: auto; }
.bqa-staff-approvals h2 { margin: 0 0 10px; font-size: 22px; }
.bqa-staff-approvals p { margin: 0 0 16px; max-width: 900px; color: var(--bqa-muted); line-height: 1.6; }
.bqa-staff-approval-message { display: block; margin-bottom: 12px; font-size: 13px; }
.bqa-staff-approval-message:empty { display: none; }
.bqa-app .bqa-staff-approval-grid { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; }
.bqa-app .bqa-staff-approval-grid th, .bqa-app .bqa-staff-approval-grid td { padding: 12px; border-bottom: 1px solid var(--bqa-line); text-align: left; vertical-align: middle; }
.bqa-app .bqa-staff-approval-grid th { background: var(--bqa-surface); font-weight: 700; }
.bqa-app .bqa-staff-approve-button { display: inline-block; padding: 8px 14px; border-radius: 18px; background: var(--bqa-navy); color: white; font-weight: 700; text-decoration: none; }
.bqa-app input.bqa-staff-approve-button { border: 0; font: 700 13px/1.5 Roboto,Arial,sans-serif; cursor: pointer; }
.bqa-app .bqa-staff-approve-button:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: 3px; }
.bqa-app .bqa-staff-approve-button.aspNetDisabled { opacity: .45; background: #71869b; cursor: default; }
.bqa-application-sections { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.bqa-app .bqa-application-sections a, .bqa-app .bqa-staff-employee-link { display: inline-block; padding: 9px 14px; border: 1px solid var(--bqa-line); border-radius: 8px; color: var(--bqa-navy); font-weight: 700; text-decoration: none; }
.bqa-application-sections a:focus-visible, .bqa-staff-employee-link:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: 3px; }
.bqa-staff-application-review { margin: 28px 0; padding: 24px; border: 1px solid var(--bqa-line); border-radius: 12px; background: var(--bqa-surface); }
.bqa-staff-application-details { display: grid; grid-template-columns: minmax(130px,180px) minmax(0,1fr); gap: 9px 18px; margin: 18px 0 24px; font-size: 13px; }
.bqa-staff-application-details dt { color: var(--bqa-muted); }
.bqa-staff-application-details dd { margin: 0; overflow-wrap: anywhere; }
.bqa-staff-verification { min-width: 0; margin: 0 0 20px; padding: 18px; border: 1px solid var(--bqa-line); border-radius: 10px; background: white; }
.bqa-staff-verification legend { padding: 0 8px; font-weight: 700; }
.bqa-staff-verification > span, .bqa-staff-verification > label { display: block; margin: 12px 0; }
.bqa-staff-verification input[type="checkbox"] { margin-right: 10px; accent-color: var(--bqa-navy); }
.bqa-app .bqa-staff-verification .textbox { display: block; width: 100%; max-width: 680px; min-height: 110px; margin-bottom: 10px; }
.bqa-app .bqa-staff-verification .bqa-registration-help { font-size: 12px; }
.bqa-staff-application-review > p { margin-top: 12px; }
#bqa-application-history { margin-top: 28px; }
@media (max-width: 600px) {
    .bqa-staff-application-review { padding: 16px; }
    .bqa-staff-application-details { grid-template-columns: minmax(0,1fr); gap: 4px; }
    .bqa-staff-application-details dd { margin-bottom: 10px; }
}

/* Division abbreviations sit inside navigation halos derived from the BQA seals. */
.bqa-app .bqa-controller:has(.bqa-gate), .bqa-app .bqa-controller:has(.bqa-division) { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.bqa-app .bqa-controller:has(.bqa-gate) > tbody > tr:first-child > .bqa-portal-content,
.bqa-app .bqa-controller:has(.bqa-division) > tbody > tr:first-child > .bqa-portal-content { padding: 0 !important; }
.bqa-app .bqa-gate { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 170px); padding: 3mm clamp(24px,4vw,72px) 64px; background: linear-gradient(90deg,rgba(255,255,255,.18),rgba(248,252,254,.9) 58%),url('../../Images/BQA/clarity-network-vertical.png') left center / auto 115% no-repeat; }
.bqa-gate .bqa-wildlife-horizon { left: 0; bottom: 0; width: 100%; opacity: .08; z-index: 0; }
.bqa-gate-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; text-align: center; }
.bqa-gate-heading { margin: 14px 0 30px; }
.bqa-gate-heading h1 { margin: 6px 0 12px; color: var(--bqa-navy); font-size: clamp(30px,4vw,46px); line-height: 1.2; }
.bqa-gate-heading p { margin: 0 auto; max-width: 650px; color: var(--bqa-muted); line-height: 1.6; }
.bqa-gate-bdd, .bqa-division-bdd { --bqa-division-accent: #b71f38; --bqa-division-glow: rgba(183,31,56,.12); }
.bqa-gate-ceo, .bqa-division-ceo { --bqa-division-accent: #4199ba; --bqa-division-glow: rgba(65,153,186,.14); }
.bqa-gate-dceo, .bqa-division-dceo { --bqa-division-accent: #de732b; --bqa-division-glow: rgba(222,115,43,.12); }
.bqa-gate-ncqfs, .bqa-division-ncqfs { --bqa-division-accent: #315a84; --bqa-division-glow: rgba(49,90,132,.12); }
.bqa-gate-qa { --bqa-division-accent: #231f20; --bqa-division-glow: rgba(35,31,32,.1); }
.bqa-gate-services { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(14px,2vw,26px); margin: 0 0 36px; }
.bqa-app .bqa-gate-service { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 28px 12px 24px; gap: 20px; border: 1px solid transparent; border-radius: 22px; color: var(--bqa-navy); text-align: center; text-decoration: none; transition: background-color .2s,border-color .2s; }
.bqa-gate-seal-halo { display: block; width: min(100%,198px); aspect-ratio: 1; padding: 10px; border: 1px solid var(--bqa-line); border-radius: 50%; background: white; box-shadow: 0 0 0 7px rgba(255,255,255,.6),0 12px 38px var(--bqa-division-glow); transition: transform .2s,box-shadow .2s; }
.bqa-gate-seal { display: block; width: 100%; height: 100%; object-fit: contain; }
.bqa-gate-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--bqa-line); border-radius: 24px; background: white; color: var(--bqa-navy); font-size: 12px; font-weight: 700; line-height: 1.5; }
.bqa-app .bqa-gate-service:hover, .bqa-app .bqa-gate-service:focus-visible { border-color: var(--bqa-line); background: rgba(255,255,255,.78); }
.bqa-gate-service:hover .bqa-gate-seal-halo, .bqa-gate-service:focus-visible .bqa-gate-seal-halo { transform: translateY(-4px); box-shadow: 0 0 0 7px rgba(255,255,255,.8),0 16px 44px var(--bqa-division-glow); }
.bqa-gate-service:hover .bqa-gate-action, .bqa-gate-service:focus-visible .bqa-gate-action { border-color: var(--bqa-division-accent); }
.bqa-gate-guidance { max-width: 800px; margin: 0 auto; padding: 18px 22px; border-left: 3px solid var(--bqa-cyan); border-radius: 10px; background: rgba(255,255,255,.86); color: var(--bqa-muted); line-height: 1.6; }
.bqa-gate-guidance h2 { margin: 0 0 8px; color: var(--bqa-navy); font-size: 18px; }
.bqa-gate-guidance p { margin: 0; }
.bqa-gate-back, .bqa-division-back { display: inline-block; margin-top: 24px; color: var(--bqa-navy); font-size: 13px; font-weight: 700; }
.bqa-app .bqa-division { min-height: calc(100vh - 170px); padding: 3mm clamp(24px,4vw,72px) 64px; background: linear-gradient(90deg,rgba(255,255,255,.55),rgba(248,252,254,.96) 58%),url('../../Images/BQA/clarity-network-vertical.png') left center / auto 115% no-repeat; }
.bqa-division-content { max-width: 1440px; margin: 0 auto; }
.bqa-app .bqa-division:has(.bqa-division-workspace) { padding-left: 0; }
.bqa-division:has(.bqa-division-workspace) > .bqa-division-content { width: 100%; max-width: none; margin: 0; }
.bqa-division-workspace { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: 32px; margin-top: 20px; }
.bqa-division-main { min-width: 0; }
.bqa-app .bqa-division-menu { min-width: 0; overflow: hidden; border-radius: 12px; background: linear-gradient(rgba(49,90,132,.94),rgba(49,90,132,.94)),url('../../Images/BQA/clarity-network-vertical.png') center / auto 130%; color: white; text-align: left; box-shadow: 0 10px 32px rgba(49,90,132,.12); }
.bqa-app .bqa-division-menu-title, .bqa-app .bqa-division-menu-group { margin: 0; padding: 13px 18px; background: #747474; color: white; font-size: 16px; font-weight: 700; line-height: 1.45; }
.bqa-app .bqa-division-menu-title { font-size: 19px; }
.bqa-division-menu-list { max-height: max(180px,calc(100vh - 360px)); margin: 0; padding: 0; list-style: none; overflow-y: auto; scrollbar-width: thin; }
.bqa-division-menu-list li { margin: 0; }
.bqa-app .bqa-division-menu a { display: block; width: 100%; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.35); color: white; font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.bqa-division-menu .bqa-process-code { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 500; }
.bqa-app .bqa-division-menu a[data-bqa-process-link]:hover, .bqa-app .bqa-division-menu a[aria-current="page"] { background: #446a90; box-shadow: inset 4px 0 var(--bqa-cyan); }
.bqa-app .bqa-division-menu a:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.bqa-app .bqa-division-menu .bqa-division-back { display: block; margin: 0; padding: 16px 18px; color: white; font-size: 13px; text-decoration: underline; }
.bqa-app .bqa-division-menu .bqa-division-menu-dashboard, .bqa-app .bqa-division-menu a[aria-current="page"] { padding: 15px 18px; font-size: 16px; text-decoration: none; }
.bqa-qa-division-menu { margin-bottom: 18px; }
.bqa-legacy-process-menu > summary { padding: 12px; background: #747474; color: white; font-weight: 700; cursor: pointer; }
.bqa-legacy-process-menu > summary:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.bqa-app .bqa-process-panel { min-width: 0; margin: 0 0 24px; padding: 28px; border: 1px solid var(--bqa-line); border-top: 3px solid var(--bqa-division-accent,var(--bqa-navy)); border-radius: 14px; background: rgba(255,255,255,.94); text-align: left; scroll-margin-top: 24px; }
.bqa-app .bqa-process-panel[hidden] { display: none; }
.bqa-process-panel h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.4; }
.bqa-process-panel h2 .bqa-process-code { display: block; margin-bottom: 5px; font-size: 13px; }
.bqa-process-panel p { margin: 0; color: var(--bqa-muted); line-height: 1.6; }
.bqa-responsibilities-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.bqa-responsibilities-list li { min-width: 0; }
.bqa-app .bqa-responsibilities-list a { display: flex; align-items: baseline; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--bqa-line); border-radius: 10px; color: var(--bqa-navy); background: var(--bqa-surface); text-decoration: none; overflow-wrap: anywhere; }
.bqa-responsibilities-list .bqa-process-code { flex: 0 0 86px; font-size: 12px; font-weight: 700; }
.bqa-responsibilities-list .bqa-process-name { font-weight: 600; }
.bqa-app .bqa-responsibilities-list a:hover { background: #edf7fa; border-color: var(--bqa-cyan); }
.bqa-qa-workplace { --bqa-division-accent: #231f20; min-width: 0; }
.bqa-app .bqa-qa-dashboard { padding: 20px; overflow-x: auto; }
.bqa-division-heading { display: flex; align-items: center; gap: 30px; margin: 30px 0 38px; }
.bqa-division-seal { display: block; width: 164px; height: 164px; flex: 0 0 auto; padding: 8px; border: 1px solid var(--bqa-line); border-radius: 50%; background: white; box-shadow: 0 12px 38px var(--bqa-division-glow); }
.bqa-division-heading h1 { margin: 6px 0 10px; font-size: clamp(32px,4vw,48px); line-height: 1.2; }
.bqa-division-heading p { margin: 0; color: var(--bqa-muted); }
/* Branding belongs in the shared header; keep work areas focused on their task. */
.bqa-app .bqa-main .bqa-division-main > .bqa-division-heading,
.bqa-app .bqa-main .bqa-division-heading .bqa-division-seal,
.bqa-app .bqa-main .bqa-division-heading .bqa-eyebrow,
.bqa-app .bqa-main .bqa-workspace-heading .bqa-division-seal,
.bqa-app .bqa-main .bqa-governance-main > .bqa-eyebrow,
.bqa-app .bqa-main .bqa-gate-heading > .bqa-eyebrow,
.bqa-app .bqa-main .bqa-sidebar-brand,
.bqa-app .bqa-main .bqa-sidebar-owner { display: none; }
.bqa-app .bqa-workspace-heading { display: block; margin: 0 0 20px; }
.bqa-app .bqa-workspace-heading h1 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.bqa-app .bqa-workspace-heading p { margin: 0; color: var(--bqa-muted); }
.bqa-division-guidance { min-height: 200px; padding: 30px; border: 1px solid var(--bqa-line); border-top: 3px solid var(--bqa-division-accent); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 12px 40px rgba(49,90,132,.04); }
.bqa-division-guidance h2 { margin: 0 0 12px; font-size: 22px; }
.bqa-division-guidance p { margin: 0; color: var(--bqa-muted); }
.bqa-qa-process-scope { --bqa-division-accent: #231f20; max-width: 1100px; margin-bottom: 28px; }
.bqa-division-processes { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.bqa-division-processes li { display: flex; align-items: baseline; gap: 20px; padding: 17px 0; border-top: 1px solid var(--bqa-line); }
.bqa-division-process-number { flex: 0 0 70px; color: var(--bqa-navy); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bqa-division-ncqfs .bqa-division-process-number { flex-basis: 112px; }
.bqa-division-processes strong { font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 1150px) {
    .bqa-gate-services { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .bqa-gate-service { grid-column: span 2; }
    .bqa-gate-service:nth-child(4) { grid-column: 2 / span 2; }
    .bqa-gate-service:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 720px) {
    .bqa-gate-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bqa-gate-service, .bqa-gate-service:nth-child(4) { grid-column: auto; }
    .bqa-gate-service:nth-child(5) { grid-column: 1 / -1; width: 50%; justify-self: center; }
    .bqa-gate-seal-halo { max-width: 176px; }
}
@media (max-width: 600px) {
    .bqa-app .bqa-gate, .bqa-app .bqa-division { padding-inline: 18px; }
    .bqa-app .bqa-division:has(.bqa-division-workspace) { padding-left: 0; }
    .bqa-division-heading { gap: 20px; }
    .bqa-division-seal { width: 116px; height: 116px; }
    .bqa-division-guidance { padding: 22px; }
    .bqa-division-processes li { gap: 12px; }
}
@media (max-width: 900px) {
    .bqa-division-workspace { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .bqa-division-main { padding-left: 18px; }
    .bqa-responsibilities-list { grid-template-columns: minmax(0,1fr); }
    .bqa-division-menu-list { max-height: 320px; }
    .bqa-division-heading { margin-top: 4px; }
}
@media (max-width: 400px) { .bqa-gate-services { grid-template-columns: 1fr; } .bqa-gate-service:nth-child(5) { grid-column: auto; width: 100%; } .bqa-division-heading { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) {
    .bqa-app .bqa-gate-service, .bqa-gate-seal-halo { transition: none; }
    .bqa-gate-service:hover .bqa-gate-seal-halo, .bqa-gate-service:focus-visible .bqa-gate-seal-halo { transform: none; }
}

/* Division workplaces surround the shared Reporting entrance. */
.bqa-gate-services.bqa-gate-orbit { position: relative; display: block; width: min(100%,820px); aspect-ratio: 1; margin: 0 auto 28px; }
.bqa-gate-orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bqa-gate-orbit-lines circle { fill: none; stroke: var(--bqa-line); stroke-width: .15; stroke-dasharray: .5 1; }
.bqa-gate-orbit-lines path { fill: none; stroke: rgba(49,90,132,.22); stroke-width: .18; }
.bqa-app .bqa-gate-orbit .bqa-gate-service { position: absolute; width: 158px; height: 158px; padding: 0; gap: 0; grid-column: auto; transform: translate(-50%,-50%); }
.bqa-gate-orbit .bqa-gate-seal-halo { width: 158px; padding: 7px; }
.bqa-gate-orbit .bqa-gate-action { position: absolute; top: calc(100% + 14px); white-space: nowrap; }
.bqa-gate-orbit .bqa-gate-bdd { left: 50%; top: 17%; }
.bqa-gate-orbit .bqa-gate-ceo { left: 81.4%; top: 39.8%; }
.bqa-gate-orbit .bqa-gate-dceo { left: 69.4%; top: 76.7%; }
.bqa-gate-orbit .bqa-gate-ncqfs { left: 30.6%; top: 76.7%; }
.bqa-gate-orbit .bqa-gate-qa { left: 18.6%; top: 39.8%; }
.bqa-app .bqa-gate-orbit .bqa-gate-reporting { left: 50%; top: 50%; width: 216px; height: 216px; }
.bqa-reporting-halo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; gap: 5px; width: 216px; height: 216px; border: 1px solid var(--bqa-line); border-radius: 50%; background: white; box-shadow: 0 0 0 8px rgba(255,255,255,.7),0 0 48px rgba(65,153,186,.16); color: var(--bqa-navy); }
.bqa-reporting-halo::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: conic-gradient(from -38deg,var(--bqa-navy) 0deg 100deg,white 100deg 108deg,var(--bqa-red) 108deg 208deg,white 208deg 216deg,var(--bqa-orange) 216deg 242deg,white 242deg 250deg,var(--bqa-cyan) 250deg 350deg,white 350deg 360deg); mask: radial-gradient(transparent 62%,black 63%); }
.bqa-reporting-halo .bi, .bqa-reporting-halo strong { position: relative; z-index: 1; }
.bqa-reporting-halo .bi { font-size: 44px; line-height: 1; }
.bqa-reporting-halo strong { font-size: 24px; font-weight: 700; line-height: 1.3; }
.bqa-division-reporting { --bqa-division-accent: #315a84; --bqa-division-glow: rgba(65,153,186,.14); }
.bqa-reporting-divisions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.bqa-reporting-divisions li { padding: 10px 16px; border: 1px solid var(--bqa-line); border-radius: 8px; color: var(--bqa-navy); font-weight: 700; }
@media (max-width: 1000px) { .bqa-gate-orbit .bqa-gate-action { display: none; } }
@media (max-width: 780px) {
    .bqa-app .bqa-gate-orbit .bqa-gate-service { width: 24%; height: auto; aspect-ratio: 1; padding: 0; }
    .bqa-gate-orbit .bqa-gate-seal-halo { width: 100%; padding: 5px; }
    .bqa-gate-orbit .bqa-gate-action { display: none; }
    .bqa-app .bqa-gate-orbit .bqa-gate-reporting { width: 28%; }
    .bqa-gate-orbit .bqa-reporting-halo { width: 100%; height: auto; aspect-ratio: 1; gap: 2px; }
    .bqa-gate-orbit .bqa-reporting-halo .bi { font-size: clamp(18px,4vw,29px); }
    .bqa-gate-orbit .bqa-reporting-halo strong { font-size: clamp(11px,3vw,20px); }
    .bqa-gate-orbit .bqa-reporting-halo::before { inset: 5%; }
}

@media (max-width: 1300px) {
    .bqa-map-key-help { width: 100%; margin-left: 0; }
    .bqa-map-canvas { min-width: 920px; height: 700px; }
    .bqa-app .bqa-map-node { --map-halo-size: 100px; width: 180px; gap: 8px; }
    .bqa-map-node strong { font-size: 18px; }
    .bqa-map-node .bqa-module-description { font-size: 12px; }
    .bqa-map-node .bqa-module-ring .bi { font-size: 36px; }
    .bqa-map-state { padding: 3px 8px; font-size: 10px; }
    .bqa-app .bqa-map-bqa { --map-halo-size: 180px; width: 240px; }
    .bqa-map-bqa strong { font-size: 28px; }
    .bqa-map-bqa .bqa-module-description { font-size: 14px; }
    .bqa-map-bqa .bqa-module-ring .bi { font-size: 70px; }
    .bqa-map-integration { width: 144px; padding: 10px; }
    .bqa-map-integration > .bi { font-size: 24px; }
    .bqa-map-integration > strong { font-size: 14px; }
    .bqa-map-integration > span, .bqa-map-integration > small { font-size: 10px; }
    .bqa-map-sector { left: 7%; }
}
@media (max-width: 600px) {
    .bqa-app .bqa-staff-landing { padding: 3mm 18px 50px; background-image: linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.82)),url('../../Images/BQA/clarity-network-vertical.png'); }
    .bqa-staff-heading { padding: 22px 20px; }
    .bqa-map-key { padding: 16px; gap: 12px 18px; }
    .bqa-awarding-workplace { margin: 24px 18px; padding: 22px; }
    .bqa-awarding-heading { flex-direction: column; text-align: center; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .bqa-module-ring { transition: none; }
    .bqa-app a.bqa-module-link:hover .bqa-module-ring, .bqa-app a.bqa-module-link:focus-visible .bqa-module-ring { transform: none; }
}

.bqa-app .bqa-subscription-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px solid #d7e4ed;
    border-left: 4px solid var(--bqa-cyan);
    border-radius: 12px;
    background: white;
    color: var(--bqa-navy);
    font: 400 14px/1.5 Roboto, Arial, sans-serif;
    text-align: left;
}

.bqa-app .bqa-workspace-header .bqa-subscription-status { margin-top: 20px; }
.bqa-app .bqa-subscription-heading { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bqa-app .bqa-subscription-state { color: var(--bqa-navy); font-size: 12px; }
.bqa-app .bqa-subscription-status dl { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 0; }
.bqa-app .bqa-subscription-status dl > div { min-width: 120px; }
.bqa-app .bqa-subscription-status dt { margin: 0; font-size: 12px; font-weight: 400; }
.bqa-app .bqa-subscription-status dd { margin: 2px 0 0; font-weight: 700; }

/* Keep the staff subscription compact in the header summary. */
.bqa-staff-subscription {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
}
.bqa-header .bqa-staff-header-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 0 28px 8px; }
.bqa-staff-header-summary > .bqa-staff-subscription { margin-left: auto; }
.bqa-staff-header-summary .bqa-user-access-panel { left: 0; right: auto; }
@media (max-width: 1100px) {
    .bqa-header .bqa-staff-header-summary { padding-inline: 20px; }
}
.bqa-app .bqa-staff-subscription .bqa-subscription-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 8px 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    zoom: 0.7;
}
.bqa-app .bqa-staff-subscription .bqa-subscription-heading { flex-wrap: wrap; gap: 6px; }
.bqa-app .bqa-staff-subscription .bqa-subscription-state { font-size: 10px; }
.bqa-app .bqa-staff-subscription .bqa-subscription-status dl { gap: 6px 16px; }
.bqa-app .bqa-staff-subscription .bqa-subscription-status dl > div { min-width: 82px; }
.bqa-app .bqa-staff-subscription .bqa-subscription-status dt { font-size: 10px; }
.bqa-app .bqa-staff-subscription .bqa-subscription-status dd { font-size: 12px; }

/* Signed-in identity and the user's assigned workplace profiles. */
.bqa-user-access { position: relative; z-index: 40; max-width: 100%; color: var(--bqa-navy); text-align: left; }
.bqa-user-access-toggle { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border: 1px solid var(--bqa-line); border-radius: 10px; background: white; cursor: pointer; list-style: none; }
.bqa-user-access-toggle::-webkit-details-marker { display: none; }
.bqa-user-access-toggle > .bi-person-circle { color: var(--bqa-cyan); font-size: 28px; line-height: 1; }
.bqa-user-access-name { display: flex; flex-direction: column; min-width: 0; }
.bqa-user-access-name strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bqa-user-access-name small { color: var(--bqa-muted); font-size: 10px; }
.bqa-user-access-toggle > .bi-chevron-down { margin-left: auto; font-size: 12px; }
.bqa-user-access[open] > .bqa-user-access-toggle > .bi-chevron-down { transform: rotate(180deg); }
.bqa-user-access-toggle:hover { border-color: var(--bqa-cyan); background: #f8fcfe; }
.bqa-user-access-toggle:focus-visible, .bqa-access-tree summary:focus-visible { outline: 3px solid var(--bqa-cyan); outline-offset: 3px; }
.bqa-user-access-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(460px, calc(100vw - 40px)); max-height: min(65vh, 640px); overflow: auto; padding: 20px; border: 1px solid var(--bqa-line); border-top: 3px solid var(--bqa-cyan); border-radius: 14px; background: white; box-shadow: 0 18px 44px rgba(49,90,132,.16); color: var(--bqa-text); font-size: 12px; }
.bqa-user-access-panel h2 { margin: 0 0 16px; font-size: 18px; }
.bqa-user-identity { margin: 0 0 16px; }
.bqa-user-identity > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 14px; margin-bottom: 4px; }
.bqa-user-identity dt { color: var(--bqa-muted); font-weight: 400; }
.bqa-user-identity dd { margin: 0; color: var(--bqa-navy); font-weight: 600; overflow-wrap: anywhere; }
.bqa-user-access-panel p { margin: 0 0 12px; color: var(--bqa-muted); }
.bqa-access-tree, .bqa-access-tree ul { margin: 0; padding: 0; list-style: none; }
.bqa-access-tree > li { padding: 4px 0; border-top: 1px solid var(--bqa-line); }
.bqa-access-tree summary { padding: 8px 0; color: var(--bqa-navy); font-weight: 700; cursor: pointer; }
.bqa-access-tree h3 { margin: 4px 0 8px; color: var(--bqa-muted); font-size: 12px; }
.bqa-access-tree details > ul { margin: 0 0 8px 7px; padding-left: 14px; border-left: 1px solid var(--bqa-line); }
.bqa-access-tree details > ul > li { margin: 6px 0; overflow-wrap: anywhere; }
.bqa-access-role { padding: 10px 12px; border-radius: 8px; background: var(--bqa-surface); }
.bqa-access-role strong { color: var(--bqa-navy); }
.bqa-access-role p { margin: 4px 0 0; }
.bqa-access-role small { display: block; margin-top: 3px; color: var(--bqa-muted); }
.bqa-user-access-note { padding-top: 12px; border-top: 1px solid var(--bqa-line); font-size: 11px; }
@media (max-width: 760px) {
    .bqa-user-access { width: 100%; }
}

/* V2 header navigation halos. */
.bqa-app .bqa-header-navigation .menuTable {
    border-collapse: separate;
    border-spacing: 8px 0;
}

.bqa-app .bqa-header-navigation .menuCell,
.bqa-app .bqa-header-navigation .menuCell:hover {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Current menus contain only spacing cells between the three real links. */
.bqa-app .bqa-header-navigation .menuTable > tbody > tr:first-child > td:not(.menuCell) {
    display: none;
}

/* Keep the decorative spacer in the stakeholder master out of the header. */
.bqa-app .bqa-header-navigation .bqa-nav-spacer {
    display: none;
}

.bqa-app .bqa-header-navigation .navbar {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.bqa-app .bqa-header-navigation .menuLink {
    position: relative;
    display: block;
    min-width: 74px;
    min-height: 84px;
    padding: 64px 5px 5px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--bqa-navy, #315a84);
    font: 700 12px/1.25 Roboto, Arial, sans-serif;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
}

.bqa-app .bqa-header-navigation .menuLink::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transform: translateX(-50%);
    background-color: white;
    background-image:
        radial-gradient(circle, #fff 0 48%, transparent 49%),
        conic-gradient(
            from -35deg,
            var(--bqa-navy, #315a84) 0 27%,
            transparent 27% 31%,
            var(--bqa-red, #b71f38) 31% 54%,
            transparent 54% 58%,
            var(--bqa-orange, #de732b) 58% 64%,
            transparent 64% 68%,
            var(--bqa-cyan, #4199ba) 68% 95%,
            transparent 95%
        );
    box-shadow:
        0 0 0 1px rgba(65, 153, 186, .16),
        0 6px 16px rgba(49, 90, 132, .12);
    transition: box-shadow 160ms ease;
    pointer-events: none;
}

.bqa-app .bqa-header-navigation .menuLink::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    transform: translateX(-50%);
    color: var(--bqa-navy, #315a84);
    font-family: bootstrap-icons !important;
    font-size: 22px;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    pointer-events: none;
}

/* Local bootstrap-icons.css: house-door \f423 and person \f4e1. */
.bqa-app .bqa-header-navigation .menuLink[href$="Default.aspx" i]::after,
.bqa-app .bqa-header-navigation .menuLink[href$="MISController.aspx" i]::after {
    content: "\f423";
}

.bqa-app .bqa-header-navigation .menuLink[href$="Profile.aspx" i]::after {
    content: "\f4e1";
}

/*
 * LoginStatus renders a real postback anchor in the fifth table cell in each
 * existing master. Select that cell rather than guessing its dynamic href or
 * replacing its server-generated text/behaviour. Local icon: box-arrow-right.
 */
.bqa-app .bqa-header-navigation .menuTable > tbody > tr:first-child > td.menuCell:nth-child(5) .menuLink::after {
    content: "\f1c3";
}

.bqa-app .bqa-header-navigation .menuLink:hover {
    color: var(--bqa-navy, #315a84);
    background: transparent;
    text-decoration: none;
}

.bqa-app .bqa-header-navigation .menuLink:hover::before,
.bqa-app .bqa-header-navigation .menuLink:focus-visible::before,
.bqa-app .bqa-header-navigation .menuLink:focus-within::before {
    box-shadow:
        0 0 0 5px rgba(65, 153, 186, .13),
        0 0 22px rgba(65, 153, 186, .34),
        0 8px 20px rgba(49, 90, 132, .18);
}

.bqa-app .bqa-header-navigation .menuLink:focus-visible {
    outline: 3px solid var(--bqa-cyan, #4199ba);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .bqa-app .bqa-header-navigation .menuTable {
        border-spacing: 5px 0;
    }

    .bqa-app .bqa-header-navigation .menuLink {
        min-width: 66px;
        min-height: 76px;
        padding-top: 58px;
        font-size: 11px;
    }

    .bqa-app .bqa-header-navigation .menuLink::before,
    .bqa-app .bqa-header-navigation .menuLink::after {
        width: 48px;
        height: 48px;
    }

    .bqa-app .bqa-header-navigation .menuLink::after {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bqa-app .bqa-header-navigation .menuLink,
    .bqa-app .bqa-header-navigation .menuLink::before,
    .bqa-app .bqa-header-navigation .menuLink::after {
        transition: none;
        animation: none;
    }
}

.bqa-app .bqa-header-navigation .menuLink > a {
    position: absolute;
    inset: 0;
    display: block;
    padding: 64px 5px 5px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.bqa-app .bqa-header-navigation .menuLink > a:focus-visible {
    outline: 3px solid var(--bqa-cyan, #4199ba);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .bqa-app .bqa-header-navigation .menuLink > a {
        padding-top: 58px;
    }
}

.bqa-app .bqa-workspace-grid-sentinel { height: 1px; width: 1px; pointer-events: none; }
.bqa-app .bqa-workspace-grid-scroll > [data-bqa-grid-followup] { margin-top: 16px; }

/* Activated only after the workspace script finds a usable desktop viewport. */
@media screen and (min-width: 901px) {
    body.bqa-app.bqa-workspace-frame {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }
    body.bqa-app.bqa-workspace-frame > form {
        height: 100%;
        min-height: 0;
    }
    .bqa-app.bqa-workspace-frame > form > .bqa-header { flex: 0 0 auto; }
    .bqa-app.bqa-workspace-frame .bqa-main {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-host {
        height: 100%;
        min-width: 0;
        min-height: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-shell {
        height: var(--bqa-workspace-height, 100%);
        max-height: var(--bqa-workspace-height, 100%);
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-table {
        display: block;
        width: 100% !important;
        margin: 0;
        padding: 0;
        border-spacing: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-table > tbody {
        display: block;
        height: 100%;
        min-height: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-has-sidebar > tbody > .bqa-workspace-columns {
        grid-template-columns: 242px minmax(0, 1fr);
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-sidebar {
        display: block;
        width: 100% !important;
        height: 100%;
        min-width: 0;
        min-height: 0;
        max-width: none;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
        scroll-padding: 12px;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-sidebar .bqa-division-menu-list {
        max-height: none;
        overflow: visible;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-main {
        display: block;
        height: 100%;
        min-width: 0;
        min-height: 0;
        max-height: 100%;
        overflow: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
        scroll-padding: 12px;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-main-with-record,
    .bqa-app.bqa-workspace-frame .bqa-workspace-main-with-grid {
        overflow: hidden;
        scrollbar-gutter: auto;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-record-scroll {
        box-sizing: border-box;
        height: var(--bqa-record-height);
        max-height: var(--bqa-record-height);
        min-height: 0;
        overflow: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
        scroll-padding: 12px;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-record-with-grid {
        overflow: hidden;
        scrollbar-gutter: auto;
    }
    /* Only the native grid/mail rows scroll; browsing controls remain native siblings. */
    .bqa-app.bqa-workspace-frame .bqa-workspace-grid-bounded {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: var(--bqa-grid-height);
        max-height: var(--bqa-grid-height);
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scroll-padding: 12px;
    }
    .bqa-app.bqa-workspace-frame .bqa-employee-grid-scroll:has(> .bqa-workspace-grid-bounded),
    .bqa-app.bqa-workspace-frame .bqa-table-scroll:has(> .bqa-workspace-grid-bounded) {
        overflow: visible;
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-grid-bounded > table > thead > tr > th,
    .bqa-app.bqa-workspace-frame .bqa-workspace-grid-bounded > table > tbody > tr > th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--bqa-surface, #edf7fa);
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-grid-bounded > table > tbody > tr[data-bqa-grid-pager] > td {
        position: sticky;
        bottom: 0;
        z-index: 3;
        background: var(--bqa-surface, #edf7fa);
    }
    .bqa-app.bqa-workspace-frame .bqa-workspace-sidebar:focus-visible,
    .bqa-app.bqa-workspace-frame .bqa-workspace-main:focus-visible,
    .bqa-app.bqa-workspace-frame .bqa-workspace-record-scroll:focus-visible,
    .bqa-app.bqa-workspace-frame .bqa-workspace-grid-scroll:focus-visible {
        outline: 3px solid var(--bqa-cyan);
        outline-offset: -4px;
    }
    /* Division and governance pages use the controller master and a native CSS grid. */
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-division-workspace.bqa-workspace-shell),
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-governance-shell.bqa-workspace-shell),
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-division-workspace.bqa-workspace-shell) > tbody,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-governance-shell.bqa-workspace-shell) > tbody,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-division-workspace.bqa-workspace-shell) > tbody > tr:first-child,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-governance-shell.bqa-workspace-shell) > tbody > tr:first-child,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-division-workspace.bqa-workspace-shell) > tbody > tr:first-child > .bqa-portal-content,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-governance-shell.bqa-workspace-shell) > tbody > tr:first-child > .bqa-portal-content {
        display: block;
        min-width: 0;
        min-height: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-division-workspace.bqa-workspace-shell) > tbody > tr:first-child > .bqa-portal-content,
    .bqa-app.bqa-workspace-frame .bqa-controller:has(.bqa-governance-shell.bqa-workspace-shell) > tbody > tr:first-child > .bqa-portal-content {
        height: auto;
        padding: 0 !important;
    }
    .bqa-app.bqa-workspace-frame .bqa-division:has(.bqa-workspace-shell) {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-division-workspace.bqa-workspace-shell {
        align-items: stretch;
        margin-top: 0;
    }
    .bqa-app.bqa-workspace-frame .bqa-governance-shell.bqa-workspace-shell {
        align-items: stretch;
        padding-top: 0;
        padding-bottom: 0;
    }
}
