:root {
    --anchor-navy: #072846;
    --anchor-navy-deep: #041b30;
    --anchor-blue: #1263a5;
    --anchor-cyan: #17a9b8;
    --anchor-green: #18a57b;
    --anchor-bg: #f4f7fb;
    --anchor-text: #1a2d41;
    --anchor-muted: #687b8e;
    --sidebar-width: 286px;
    --sidebar-mini: 84px;
}

* { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--anchor-bg); color: var(--anchor-text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--anchor-blue); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; background: linear-gradient(180deg, var(--anchor-navy) 0%, var(--anchor-navy-deep) 100%); color: #fff; overflow: hidden; z-index: 1030; transition: width .22s ease; }
.sidebar-head { min-height: 84px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-block { min-width: 0; padding: 18px 20px; display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark, .login-logo, .mobile-login-logo { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #1cc7c7, #1683c5); color: #fff; font-size: .92rem; font-weight: 850; letter-spacing: -.03em; box-shadow: 0 8px 24px rgba(10,190,193,.2); }
.brand-copy, .login-brand > span:last-child { display: block; white-space: nowrap; }
.brand-copy strong, .login-brand strong { display: block; font-size: 1.08rem; letter-spacing: .01em; }
.brand-copy small, .login-brand small { display: block; margin-top: 1px; color: #9fb9cf; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-close { margin-left: auto; margin-right: 16px; border: 0; background: transparent; color: #fff; font-size: 1.8rem; }
.sidebar-nav { flex: 1; min-height: 0; padding: 16px 14px 20px; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.sidebar-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.brand-image { padding: 4px; background: #fff; box-shadow: 0 7px 20px rgba(0,0,0,.18); overflow: hidden; }
.brand-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nav-section { padding: 20px 12px 7px; color: #7f9db7; font-size: .68rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 0; border-radius: 11px; background: transparent; color: #cbdbea; text-decoration: none; text-align: left; font-size: .84rem; font-weight: 550; transition: background .15s ease, color .15s ease; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(23,169,184,.3), rgba(18,99,165,.22)); box-shadow: inset 3px 0 #25c7c7; }
.nav-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); font-size: .95rem; }
.nav-text { min-width: 0; flex: 1; white-space: nowrap; }
.nav-chevron { font-size: 1rem; transition: transform .2s ease; }
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: none; margin: 5px 0 3px 51px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.nav-submenu.show { display: block; }
.nav-submenu a { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 8px; color: #a9c0d4; text-decoration: none; font-size: .78rem; }
.nav-submenu a:hover, .nav-submenu a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav-badge { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 1px 5px; font-size: .55rem; letter-spacing: .06em; }
.sidebar-account { margin: 12px 14px 18px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.05); overflow: hidden; }
.user-avatar { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #1683c5; color: #fff; font-weight: 800; }
.account-copy { min-width: 0; white-space: nowrap; }
.account-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.account-copy small { display: block; color: #91acc3; font-size: .68rem; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .22s ease; }
.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-mini); }
.app-shell.sidebar-collapsed .app-main { margin-left: var(--sidebar-mini); }
.app-shell.sidebar-collapsed .brand-copy, .app-shell.sidebar-collapsed .nav-text, .app-shell.sidebar-collapsed .nav-chevron, .app-shell.sidebar-collapsed .nav-section span, .app-shell.sidebar-collapsed .account-copy { display: none; }
.app-shell.sidebar-collapsed .brand-block { padding-inline: 19px; }
.app-shell.sidebar-collapsed .sidebar-nav { padding-inline: 14px; }
.app-shell.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 0; }
.app-shell.sidebar-collapsed .nav-submenu { display: none; }
.app-shell.sidebar-collapsed .sidebar-account { padding-inline: 9px; justify-content: center; }
.topbar { min-height: 72px; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid #dde6ef; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.icon-button { width: 40px; height: 40px; place-items: center; border: 1px solid #d6e0e9; border-radius: 10px; background: #fff; color: #27425d; font-size: 1rem; }
.icon-button:hover { background: #edf4f9; }
.page-location { display: flex; flex-direction: column; line-height: 1.15; }
.page-location small { color: #8393a3; font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.page-location strong { color: #18324b; font-size: .93rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.profile-dropdown { min-width: 215px; padding: 6px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; color: #233e56; text-align: left; }
.profile-dropdown:hover, .profile-dropdown[aria-expanded="true"] { background: #f5f9fc; border-color: #c7d8e5; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: .76rem; }
.profile-copy small { color: #7b8d9d; font-size: .66rem; }
.profile-chevron { color: #7a8c9c; font-size: .9rem; }
.profile-menu { width: 240px; padding: 8px; border-color: #dce5ed; border-radius: 12px; box-shadow: 0 15px 35px rgba(23,47,69,.14); }
.profile-menu .dropdown-header { padding: 8px 10px; white-space: normal; }
.profile-menu .dropdown-header strong, .profile-menu .dropdown-header span { display: block; overflow-wrap: anywhere; }
.profile-menu .dropdown-header strong { color: #233e56; font-size: .78rem; }
.profile-menu .dropdown-header span { margin-top: 2px; color: #8292a1; font-size: .7rem; }
.profile-menu .dropdown-item { padding: 9px 10px; border-radius: 8px; font-size: .82rem; }
.profile-menu .dropdown-item span { display: inline-block; width: 22px; }
.profile-menu form { margin: 0; }
.content { max-width: 1600px; padding: 28px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 2px 0 5px; color: #122d46; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 780; letter-spacing: -.025em; }
.page-head p, .section-heading p { margin: 0; color: var(--anchor-muted); }
.breadcrumb-note { color: var(--anchor-blue); font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.panel-card, .module-card, .stat-card { border: 1px solid #e0e8ef; border-radius: 16px; box-shadow: 0 7px 24px rgba(31,58,85,.055); }
.panel-card .card-header { min-height: 56px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border-bottom-color: #e8edf3; border-radius: 16px 16px 0 0; font-weight: 700; }
.panel-card .card-header small { color: #7c8c9b; font-weight: 500; }
.stat-card { min-height: 178px; position: relative; background: #fff; padding: 20px; display: flex; flex-direction: column; }
.stat-card > span:not(.stat-icon) { margin-top: 15px; color: #61768a; font-size: .82rem; font-weight: 600; }
.stat-card strong { color: var(--anchor-navy); font-size: 2rem; line-height: 1.15; }
.stat-card small { margin-top: 4px; color: #93a0ac; }
.stat-card-link { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.stat-card-link:hover { color: inherit; transform: translateY(-3px); border-color: #bfd3e2; box-shadow: 0 12px 30px rgba(20,48,77,.11); }
.stat-card-link small b { color: var(--anchor-blue); }
.stat-icon.amber { background: #fff3d8; color: #9a6700; }
.quality-warning { border-top: 3px solid #efb43b; }
.stat-icon, .module-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #e7f2fb; color: var(--anchor-blue); font-weight: 800; }
.stat-icon.teal { background: #e5f8f2; color: var(--anchor-green); }
.stat-icon.violet { background: #f0ecff; color: #7054c8; }
.welcome-banner { margin-bottom: 22px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 18px; background: linear-gradient(118deg, #0a3c69, #0b628b 62%, #0d8795); color: #fff; box-shadow: 0 12px 28px rgba(7,59,116,.15); }
.welcome-banner .eyebrow { color: #8ee7e7; }
.welcome-banner h1 { margin: 4px 0 6px; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 780; }
.welcome-banner p { max-width: 660px; margin: 0; color: #d3e7f2; }
.quick-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.quick-actions .btn { white-space: nowrap; font-weight: 650; }
.section-heading { margin: 8px 0 14px; }
.section-heading h2 { margin: 0 0 3px; font-size: 1.18rem; }
.module-card { transition: transform .15s ease, box-shadow .15s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,48,77,.1); }
.module-card h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.module-card p { min-height: 48px; color: #667b8f; font-size: .9rem; }
.module-card a { color: var(--anchor-blue); font-weight: 700; text-decoration: none; font-size: .88rem; }
.table thead th { padding: .88rem 1rem; background: #f7f9fc; color: #53677b; border-bottom-width: 1px; font-size: .7rem; letter-spacing: .045em; text-transform: uppercase; }
.table tbody td { padding: .88rem 1rem; }
.cell-truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-table { min-width: 1380px; font-size: .79rem; }
.provider-table thead th { font-size: .64rem; }
.provider-table tbody td { padding-top: .68rem; padding-bottom: .68rem; }
.provider-count { padding: 10px 16px; border-bottom: 1px solid #e6edf3; background: #fbfcfe; color: #708295; font-size: .76rem; text-align: right; }
.provider-pagination-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.provider-pagination-footer > span { grid-column: 1; grid-row: 1; }
.provider-pagination-footer > nav { grid-column: 2; grid-row: 1; }
.missing-data { display: inline-block; padding: 3px 7px; border: 1px solid #efca79; border-radius: 6px; background: #fff7e5; color: #8b620b; font-size: .68rem; font-weight: 700; }
.provider-toolbar .form-text { margin-left: 2px; font-size: .7rem; }
.database-source { display: block; margin-top: 7px; color: #73879a; font-size: .68rem; }
.search-field { position: relative; }
.search-field .form-control { padding-right: 40px; }
.search-spinner { display: none; position: absolute; right: 13px; top: 13px; color: var(--anchor-blue); }
.search-spinner.show { display: inline-block; }
#providerResults { transition: opacity .15s ease; }
#providerResults.is-loading, #lookupResults.is-loading { opacity: .52; pointer-events: none; }
#lookupResults { transition: opacity .15s ease; }
.lookup-toolbar .form-text { margin-left: 2px; font-size: .7rem; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #eaf3fa; color: var(--anchor-blue); font-size: 1.35rem; }
.empty-state { padding: 60px 24px; text-align: center; color: #64748b; }
.action-pill { padding: 4px 8px; border-radius: 6px; background: #eaf3fa; color: #285d89; font-size: .72rem; font-weight: 700; }
.btn { border-radius: 9px; font-weight: 600; }
.btn-primary { background: var(--anchor-blue); border-color: var(--anchor-blue); }
.btn-primary:hover { background: #0b528b; border-color: #0b528b; }
.btn-info { background: #23c3c5; border-color: #23c3c5; color: #062d47; }
.form-control, .form-select { border-radius: 9px; border-color: #cbd7e2; padding: .66rem .78rem; }
.form-control:focus, .form-select:focus { border-color: #4d9ed1; box-shadow: 0 0 0 .2rem rgba(18,99,165,.12); }
.table tbody td { font-size: .88rem; }
.form-control, .form-select, .btn { font-size: .88rem; }
.form-text, .provider-count, .provider-pagination-footer { font-size: .78rem; }
.lookup-select { position: relative; }
.lookup-select .form-select { padding-right: 52px; }
.lookup-spinner { display: none; position: absolute; right: 34px; top: 12px; color: var(--anchor-blue); }
.lookup-spinner.show { display: inline-block; }
.form-narrow { max-width: 620px; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { min-width: 85px; }
.permission-table .permission-check { width: 1.18rem; height: 1.18rem; border: 2px solid #71879b; background-color: #fff; box-shadow: 0 0 0 2px #e8eef3; cursor: pointer; }
.permission-table .permission-check:checked { border-color: var(--anchor-blue); background-color: var(--anchor-blue); box-shadow: 0 0 0 2px #d8eaf7; }
.permission-table .permission-check:focus { border-color: #0b6dae; box-shadow: 0 0 0 3px rgba(18,99,165,.22); }
.permission-table tbody td:not(:first-child) { background: #fbfcfe; }
.permission-disabled { opacity: .48; }
.lookup-tabs { padding: 6px; display: inline-flex; gap: 4px; border: 1px solid #dfe7ef; border-radius: 12px; background: #fff; }
.lookup-tabs .nav-link { padding: 8px 13px; border-radius: 8px; color: #566d82; font-size: .8rem; font-weight: 650; }
.lookup-tabs .nav-link.active { background: var(--anchor-blue); color: #fff; }
.lookup-table { font-size: .84rem; }
.csv-columns { white-space: normal; overflow-wrap: anywhere; color: #0f6680; line-height: 1.8; }
.csv-preview-summary { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.csv-preview-summary span { padding: 7px 10px; border-radius: 8px; background: #edf5fb; color: #385c79; font-size: .78rem; }
.csv-lookup-group { height: 100%; padding: 14px; border: 1px solid #dfe8ef; border-radius: 11px; background: #f9fbfd; }
.csv-lookup-group h3 { margin: 0 0 9px; display: flex; align-items: center; justify-content: space-between; color: #29475f; font-size: .83rem; }
.csv-lookup-group h3 span { min-width: 25px; padding: 3px 7px; border-radius: 12px; background: #dcecf8; color: var(--anchor-blue); text-align: center; font-size: .68rem; }
.csv-lookup-group p { margin: 0; color: #8796a4; font-size: .78rem; }
.csv-lookup-group ul, .csv-preview-warnings ul { max-height: 160px; margin: 0; padding-left: 19px; overflow: auto; font-size: .78rem; }
.csv-lookup-group li + li, .csv-preview-warnings li + li { margin-top: 4px; }
.csv-preview-warnings { padding: 11px 13px; border: 1px solid #efdca9; border-radius: 9px; background: #fffbef; font-size: .8rem; }
.csv-preview-warnings ul { margin-top: 9px; }
.upload-zone { min-height: 230px; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #b8ccdc; border-radius: 15px; background: #f8fbfd; color: #506a81; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-zone:hover, .upload-zone:focus-within { border-color: #2489bc; background: #f0f8fb; }
.upload-zone strong { margin: 12px 0 4px; color: #183b58; font-size: 1.05rem; }
.upload-zone > span:last-of-type { font-size: .84rem; }
.upload-zone input[type=file] { max-width: 100%; margin-top: 18px; font-size: .82rem; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #ddf3f4; color: #087b89; font-size: 1.5rem; }
.import-option { margin-top: 20px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e0e8ef; border-radius: 12px; }
.import-option strong, .import-option small { display: block; }
.import-option small { margin-top: 3px; color: #74879a; }
.import-result { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.import-result > span { padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.55); font-size: .82rem; }
.import-steps { margin: 0; padding: 0; list-style: none; }
.import-steps li { display: flex; align-items: flex-start; gap: 12px; }
.import-steps li + li { margin-top: 18px; }
.import-steps li > span { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e7f2fb; color: var(--anchor-blue); font-size: .75rem; font-weight: 800; }
.import-steps strong, .import-steps small { display: block; }
.import-steps small { margin-top: 3px; color: #74879a; }
.eyebrow { color: var(--anchor-cyan); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.login-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; position: relative; overflow: hidden; background: #041d33; }
.login-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7,57,96,.35), rgba(4,27,48,.9)), radial-gradient(circle at 80% 15%, rgba(20,168,184,.16), transparent 30%); }
.login-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; }
.login-glow-one { width: 420px; height: 420px; top: -190px; right: -110px; background: #1ad1cf; }
.login-glow-two { width: 320px; height: 320px; bottom: -160px; left: -100px; background: #1683c5; }
.login-shell { width: min(100%, 1040px); min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.login-intro { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background: linear-gradient(145deg, #0a446f, #073657 58%, #082b47); color: #fff; }
.login-intro::after { content: ""; width: 300px; height: 300px; position: absolute; right: -140px; bottom: -100px; border: 45px solid rgba(39,203,201,.12); border-radius: 50%; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-message { position: relative; z-index: 1; }
.login-message h2 { max-width: 430px; margin: 10px 0 16px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 790; letter-spacing: -.035em; line-height: 1.08; }
.login-message p { max-width: 430px; color: #c8deea; line-height: 1.7; }
.login-trust { color: #b8d4e3; font-size: .84rem; }
.login-trust span { margin-right: 7px; color: #62ddd9; }
.login-form-panel { padding: 72px 58px 48px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.login-form-head h1 { margin: 8px 0 8px; color: #122d46; font-size: 1.8rem; font-weight: 780; letter-spacing: -.025em; }
.login-form-head p { margin: 0 0 30px; color: #708294; font-size: .9rem; line-height: 1.55; }
.mobile-login-logo { display: none; margin-bottom: 20px; }
.login-form-panel .form-label { color: #314b63; font-size: .82rem; font-weight: 700; }
.login-form-panel .form-control { min-height: 50px; font-size: .94rem; }
.login-form-panel .form-check-label { color: #62768a; font-size: .82rem; }
.captcha-row { display: grid; grid-template-columns: 168px 42px minmax(110px, 1fr); align-items: center; gap: 8px; }
.captcha-row img { display: block; border: 1px solid #c6d5e0; border-radius: 9px; background: #edf4f8; }
.captcha-row .form-control { min-width: 0; text-align: center; letter-spacing: .22em; font-weight: 750; }
.captcha-refresh { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #cbd8e2; border-radius: 9px; background: #f7fafc; color: var(--anchor-blue); font-size: 1.25rem; font-weight: 800; }
.captcha-refresh:hover, .captcha-refresh:focus-visible { border-color: #78a8c8; background: #eaf4fa; outline: none; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 64px; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--anchor-blue); font-size: .76rem; font-weight: 750; }
.required-fields-note { margin: 0 0 1rem; color: var(--anchor-muted); font-size: .86rem; }
.required-fields-note span, .provider-form .form-label::after { color: #c62828; font-weight: 800; }
.provider-form .form-label::after { content: " *"; }
.login-submit { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-validation:empty { display: none; }
.login-validation { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #f0b8bb; border-radius: 9px; background: #fff2f2; color: #a21f2b; font-size: .82rem; }
.login-validation ul { margin: 0; padding-left: 18px; }
.login-help { margin: 28px 0 0; color: #8a9aa8; text-align: center; font-size: .78rem; }

@media (max-width: 991.98px) {
    /* Keep the mobile off-canvas menu above Bootstrap's backdrop (1040).
       The previous 1030 sidebar z-index allowed the faded backdrop to cover
       the menu and intercept taps/clicks. */
    .sidebar { position: fixed; width: var(--sidebar-width); z-index: 1045; }
    .offcanvas-backdrop { z-index: 1040; }
    .app-main, .app-shell.sidebar-collapsed .app-main { margin-left: 0; }
    .app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-width); }
    .app-shell.sidebar-collapsed .brand-copy, .app-shell.sidebar-collapsed .nav-text, .app-shell.sidebar-collapsed .nav-chevron, .app-shell.sidebar-collapsed .nav-section span, .app-shell.sidebar-collapsed .account-copy { display: block; }
    .app-shell.sidebar-collapsed .nav-item { justify-content: flex-start; padding: 9px 12px; }
    .app-shell.sidebar-collapsed .nav-submenu.show { display: block; }
    .content { padding: 22px 16px; }
    .topbar { padding: 10px 16px; }
    .login-shell { grid-template-columns: 1fr; width: min(100%, 540px); min-height: 0; }
    .login-intro { display: none; }
    .login-form-panel { padding: 50px 44px; }
    .mobile-login-logo { display: grid; }
    .sidebar-nav { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
    .page-head, .welcome-banner { align-items: stretch; flex-direction: column; }
    .page-location small, .profile-copy, .profile-chevron { display: none; }
    .profile-dropdown { min-width: 0; padding: 3px; border: 0; background: transparent; }
    .content { padding: 18px 12px; }
    .welcome-banner { padding: 22px; }
    .quick-actions .btn { flex: 1; }
    .login-page { padding: 14px; }
    .login-shell { border-radius: 18px; }
    .login-form-panel { padding: 36px 25px; }
    .login-form-head h1 { font-size: 1.55rem; }
    .captcha-row { grid-template-columns: 1fr 42px; }
    .captcha-row .form-control { grid-column: 1 / -1; }
    .provider-pagination-footer { grid-template-columns: 1fr; justify-items: center; }
    .provider-pagination-footer > span, .provider-pagination-footer > nav { grid-column: 1; }
    .provider-pagination-footer > span { grid-row: 1; }
    .provider-pagination-footer > nav { grid-row: 2; }
}
