/* Shared visual foundations from VS_Project: VSolution navy, cyan and silver. */
:root {
    --vs-navy-950: #111c3f;
    --vs-navy-900: #172755;
    --vs-navy-800: #213b70;
    --vs-blue-700: #176a9f;
    --vs-blue-500: #1fa7df;
    --vs-blue-400: #35c0f4;
    --vs-silver-200: #e6ebef;
    --vs-silver-100: #f3f6f8;
    --vs-text: #182235;
    --vs-muted: #697789;
    --vs-border: #d8e0e7;
    --vs-radius: 8px;
    --vs-shadow: 0 16px 38px rgb(17 28 63 / 11%);
    --accent: var(--vs-blue-700);
    --ink: var(--vs-text);
    --muted: var(--vs-muted);
    --line: var(--vs-border);
}

html, body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: clip;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--vs-text);
    background: radial-gradient(circle at top right, rgb(31 167 223 / 15%), transparent 34rem),
        linear-gradient(180deg, #f8fbfd, #eef4f8);
}
* { box-sizing: border-box; }
a, .btn-link { color: var(--vs-blue-700); font-weight: 600; text-decoration: none; }
a:hover { color: var(--vs-navy-800); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--vs-navy-950); font-weight: 700; letter-spacing: 0; }
h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.2; }
h1:focus { outline: none; }
h1 > span { color: var(--vs-navy-950); }
h2 { font-size: 1.15rem; line-height: 1.4; }
h3 { font-size: 1rem; line-height: 1.4; }
p { line-height: 1.6; }
small { display: block; color: var(--vs-muted); font-size: .78rem; overflow-wrap: anywhere; }
.lead { color: var(--vs-muted); font-size: .95rem; margin: 0 0 26px; }
.eyebrow { color: var(--vs-blue-700); font-size: .7rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 8px; }
.portal-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: white; }
.skip-link:focus { top: 10px; }

/* Application shell */
.portal-shell { --sidebar-width: 264px; min-height: 100dvh; }
.sidebar-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.portal-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width);
    display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    color: #dff6ff;
    background: radial-gradient(circle at 78% 0, rgb(53 192 244 / 24%), transparent 16rem),
        linear-gradient(180deg, #111c3f 0%, #172755 58%, #213b70 100%);
    box-shadow: 12px 0 30px rgb(17 28 63 / 12%);
    transition: width .18s ease, transform .18s ease;
}
.brand { display: flex; align-items: center; flex-shrink: 0; gap: 12px; min-height: 76px; padding: 14px 22px; color: white; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.brand:hover { color: white; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand-label { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.brand small { color: #b8d4e9; font-size: .59rem; font-weight: 600; letter-spacing: .13em; margin-top: 3px; }
.nav-caption { padding: 24px 25px 9px; color: #9fb4d1; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.nav-caption.nav-section { padding-top: 25px; padding-left: 11px; }
.portal-nav { display: flex; flex-direction: column; gap: 5px; padding: 0 14px; }
.portal-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; color: #d6e5f4; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.portal-nav a:hover { color: white; background: rgb(255 255 255 / 8%); text-decoration: none; }
.portal-nav a.active { color: white; border-color: rgb(53 192 244 / 20%); background: linear-gradient(90deg, rgb(31 167 223 / 32%), rgb(31 167 223 / 12%)); box-shadow: inset 3px 0 var(--vs-blue-400); }
.portal-nav .portal-icon { color: #c6e4f7; }
.nav-group-title { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; color: #d6e5f4; font-size: .88rem; font-weight: 600; }
.nav-submenu { display: flex; flex-direction: column; gap: 4px; margin-left: 22px; padding-left: 10px; border-left: 1px solid rgb(198 228 247 / 20%); }
.portal-nav .nav-submenu a { min-height: 40px; font-size: .81rem; }
.portal-shell:has(.sidebar-toggle:checked) .nav-group-title { justify-content: center; padding-inline: 10px; }
.portal-shell:has(.sidebar-toggle:checked) .nav-submenu { margin-left: 0; padding-left: 0; border-left: 0; }
.sidebar-note { display: flex; align-items: center; gap: 10px; margin: auto 18px 0; padding: 22px 4px; border-top: 1px solid rgb(255 255 255 / 12%); }
.sidebar-note img { width: 26px; height: 26px; object-fit: contain; }
.sidebar-note strong, .sidebar-note span { display: block; white-space: nowrap; }
.sidebar-note strong { font-size: .8rem; font-weight: 700; }
.sidebar-note span { color: #9fb4d1; font-size: .69rem; margin-top: 2px; }
.portal-main { display: flex; flex-direction: column; min-height: 100dvh; margin-left: var(--sidebar-width); min-width: 0; transition: margin-left .18s ease; }
.portal-topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 12px 32px; border-bottom: 1px solid rgb(216 224 231 / 85%); background: rgb(255 255 255 / 88%); backdrop-filter: blur(14px); }
.topbar-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin: 0; flex: 0 0 auto; border: 1px solid #dce5ed; border-radius: 8px; color: #304761; background: white; cursor: pointer; }
.menu-toggle:hover { color: var(--vs-blue-700); background: #eef8fd; }
.portal-shell:has(.sidebar-toggle:focus-visible) .menu-toggle { outline: 3px solid rgb(31 167 223 / 35%); outline-offset: 2px; }
.top-title { display: flex; flex-direction: column; line-height: 1.3; }
.top-title-main { color: var(--vs-navy-900); font-size: .95rem; font-weight: 800; }
.top-title-sub { color: var(--vs-muted); font-size: .76rem; font-weight: 600; }
.account-menu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: white; background: linear-gradient(135deg, #1fa7df, #172755); font-size: .8rem; font-weight: 800; }
.account-details { display: flex; flex-direction: column; gap: 2px; }
.account-name { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #304761; font-size: .8rem; font-weight: 700; }
.account-profile { color: var(--vs-muted); font-size: .72rem; }
.account-menu form { margin: 0; }
.account-logout { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #dce5ed; border-radius: 8px; color: #52677c; background: white; }
.account-logout:hover { color: #b4232c; background: #fff5f5; }
.account-login { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.portal-content { width: 100%; max-width: 1600px; padding: 30px 32px 40px; margin: 0 auto; flex: 1; min-width: 0; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; padding: 17px 32px; border-top: 1px solid var(--vs-border); color: var(--vs-muted); font-size: .72rem; }
.sidebar-backdrop { display: none; }
.portal-shell:has(.sidebar-toggle:checked) { --sidebar-width: 76px; }
.portal-shell:has(.sidebar-toggle:checked) .brand { justify-content: center; padding-inline: 12px; }
.portal-shell:has(.sidebar-toggle:checked) .brand-label,
.portal-shell:has(.sidebar-toggle:checked) .nav-label { display: none; }
.portal-shell:has(.sidebar-toggle:checked) .nav-caption { height: 28px; padding: 0; visibility: hidden; }
.portal-shell:has(.sidebar-toggle:checked) .portal-nav { padding-inline: 12px; }
.portal-shell:has(.sidebar-toggle:checked) .portal-nav a { justify-content: center; padding-inline: 10px; }
.portal-shell:has(.sidebar-toggle:checked) .sidebar-note { justify-content: center; margin-inline: 12px; }

/* VS_Project forms, buttons and surfaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 15px; border-radius: var(--vs-radius); font-size: .83rem; font-weight: 700; letter-spacing: 0; }
.btn:hover { text-decoration: none; }
.btn-primary { color: white; background: linear-gradient(180deg, var(--vs-blue-500), var(--vs-blue-700)); border-color: var(--vs-blue-700); box-shadow: 0 7px 16px rgb(31 167 223 / 18%); }
.btn-primary:hover, .btn-primary:active, .btn-primary:disabled { color: white; background: linear-gradient(180deg, var(--vs-blue-400), var(--vs-blue-700)); border-color: var(--vs-blue-700); }
.btn-outline-primary { color: var(--vs-blue-700); border-color: rgb(23 106 159 / 35%); background: rgb(255 255 255 / 80%); }
.btn-outline-primary:hover { color: white; background: var(--vs-blue-700); border-color: var(--vs-blue-700); }
.btn-light { color: #304761; background: #f3f6f8; border-color: #dce4eb; }
.btn-light:hover { background: #e6edf3; border-color: #cbd8e4; }
.btn-sm { min-height: 31px; padding: 5px 10px; font-size: .76rem; }
.btn .portal-icon { width: 16px; height: 16px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.form-label { margin-top: 16px; margin-bottom: 7px; color: var(--vs-navy-800); font-size: .86rem; font-weight: 700; }
.form-control, .form-select { min-height: 41px; padding: 10px 12px; border-color: var(--vs-border); border-radius: var(--vs-radius); background-color: white; color: var(--vs-text); font-size: .87rem; }
.form-select { padding-right: 34px; }
.form-control::placeholder { color: #8b98a5; }
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus-visible, a:focus-visible { border-color: rgb(31 167 223 / 70%); outline: none; box-shadow: 0 0 0 .2rem rgb(31 167 223 / 18%); }
.form-check-input:checked { border-color: var(--vs-blue-700); background-color: var(--vs-blue-700); }
/* Floating labels must not inherit the spacing of labels above normal inputs. */
.form-floating > .form-control, .form-floating > .form-control-plaintext, .form-floating > .form-select {
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    line-height: 1.5;
}
.form-floating > .form-control, .form-floating > .form-control-plaintext { padding: 1rem .75rem; }
.form-floating > label {
    height: calc(3.5rem + 2px);
    max-width: 100%;
    margin: 0;
    padding: 1rem .75rem;
    overflow: hidden;
    color: var(--vs-muted);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-control-plaintext { padding-top: 1.625rem; padding-bottom: .625rem; }
.form-floating > .form-control::placeholder,
.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext::placeholder { color: transparent; text-align: start; }
.input-group > .form-floating { min-width: 0; }
.input-group > .input-group-text { display: flex; align-items: center; justify-content: center; min-width: 42px; }
.form-control-color { min-height: 42px; width: 65px; padding: 5px; }
.check-label { display: flex; align-items: center; gap: 9px; margin: 16px 0; color: #304761; font-size: .85rem; }
.check-label input { accent-color: var(--vs-blue-700); width: 16px; height: 16px; }
.subtle { color: var(--vs-muted); font-size: .8rem; }
.panel { min-width: 0; margin-bottom: 22px; padding: 24px; border: 1px solid rgb(216 224 231 / 90%); border-radius: var(--vs-radius); background: white; box-shadow: 0 10px 26px rgb(17 28 63 / 7%); }
.panel h2 { padding-bottom: 16px; margin: 0 0 8px; border-bottom: 1px solid #edf1f4; color: var(--vs-navy-900); font-size: 1.05rem; }
.panel h3 { margin-top: 14px; }
.panel > .subtle { margin-top: 14px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 24px; }
.admin-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f4; font-size: .86rem; overflow-wrap: anywhere; }
.list-row:last-child { border-bottom: 0; }
.list-row > div:first-child { min-width: 0; }
.list-row small { margin-top: 4px; font-size: .75rem; }
.list-row .button-row { flex-shrink: 0; }
.tabs { display: flex; gap: 5px; overflow-x: auto; margin: 22px 0; padding: 5px; border: 1px solid var(--vs-border); border-radius: 9px; background: rgb(255 255 255 / 74%); }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 39px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--vs-muted); font-size: .83rem; font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--vs-blue-700); background: #eef7fb; }
.tabs button.selected { border-color: rgb(31 167 223 / 22%); color: var(--vs-blue-700); background: #e7f4fc; font-weight: 800; }
.tabs span, .count { margin-left: 4px; padding: 2px 7px; border-radius: 5px; color: #496f8e; background: #e7eef5; font-size: .7rem; font-weight: 700; }
.table { margin-bottom: 0; font-size: .86rem; }
.table th { padding: 13px 11px; border-color: #e1e7ed; color: #52677c; background: #f5f8fa; font-size: .73rem; font-weight: 700; }
.table td { padding: 16px 11px; border-color: #edf1f4; color: var(--vs-text); vertical-align: middle; }
.table td small { margin-top: 4px; }
.table tr:last-child td { border-bottom-width: 0; }
.table-responsive { border-radius: 6px; }
.badge-soft { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #d6e8f6; border-radius: 6px; color: #176a9f; background: #eef7fd; font-size: .72rem; font-weight: 700; }
.alert { margin-block: 16px; padding: 13px 16px; border-radius: 8px; font-size: .85rem; line-height: 1.55; }
.alert-warning { color: #805719; background: #fff8e7; border-color: #f1dfb7; }
.alert-success { color: #176c50; background: #eaf7f1; border-color: #c9e9d9; }
.alert a { display: inline-block; margin-left: 5px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: .81rem; }
.back-link .portal-icon { width: 16px; height: 16px; }
.validation-message, .validation-errors { color: #b4232c; font-size: .8rem; }
.invalid { outline: 1px solid #b4232c; }
.valid.modified:not([type=checkbox]) { outline-color: #18805d; }
.nav-pills .nav-link { padding: 10px 14px; color: #52677c; border-radius: 7px; font-size: .86rem; }
.nav-pills .nav-link.active { color: var(--vs-blue-700); background: #e7f4fc; }
.account-settings { padding: 24px; border: 1px solid var(--vs-border); border-radius: 8px; background: white; box-shadow: 0 10px 26px rgb(17 28 63 / 7%); }
.account-settings h2 { margin-top: 0; }
.account-settings > .row { row-gap: 24px; }
.account-settings .row .row > [class*="col-"] { width: 100%; max-width: 680px; }

/* Companies and report catalog */
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; margin-top: 28px; border: 1px solid #d9e7f1; border-radius: 12px; background: linear-gradient(120deg, #eff7fc, white); box-shadow: 0 10px 26px rgb(17 28 63 / 6%); }
.welcome-panel h2 { max-width: 500px; margin-top: 22px; font-size: 1.65rem; }
.welcome-panel p { max-width: 500px; color: var(--vs-muted); }
.welcome-brand { width: 160px; height: 160px; object-fit: contain; flex: 0 0 auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 26px 0 18px; }
.section-heading > span { color: var(--vs-muted); font-size: .81rem; }
.section-heading h2 { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(275px, 100%), 1fr)); gap: 22px; }
.report-card { min-width: 0; overflow: hidden; border: 1px solid var(--vs-border); border-radius: 8px; color: var(--vs-text); background: white; box-shadow: 0 10px 26px rgb(17 28 63 / 7%); transition: border-color .15s, box-shadow .15s; }
.report-card:hover { border-color: #a8ccdf; box-shadow: 0 12px 30px rgb(17 28 63 / 11%); }
.catalog-report-card { position: relative; }
.card-report-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.card-report-link:focus-visible { box-shadow: none; }
.card-report-link:focus-visible::after { outline: 3px solid var(--vs-blue-500); outline-offset: -3px; }
.catalog-report-card .favorite { position: relative; z-index: 2; }
.company-card { position: relative; display: block; padding: 25px; }
.company-card:hover { color: var(--vs-text); text-decoration: none; }
.company-card h3 { margin: 17px 0 6px; font-size: 1.1rem; }
.company-card p { margin: 0; color: var(--vs-muted); font-size: .85rem; font-weight: 400; }
.company-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: white; font-size: 1.15rem; font-weight: 700; }
.card-arrow { position: absolute; top: 30px; right: 25px; color: var(--vs-blue-700); }
.company-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.company-heading .lead { margin-bottom: 0; }
.company-logo { max-width: 170px; max-height: 65px; object-fit: contain; margin-bottom: 16px; }
.company-brand { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 64px; max-width: 190px; flex: 0 0 auto; vertical-align: middle; }
.company-brand .company-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; margin: 0; object-fit: contain; object-position: left center; }
.company-brand-compact { min-height: 32px; max-width: 96px; }
.company-brand-compact .company-logo { max-height: 32px; }
.company-brand-compact .company-avatar { width: 32px; height: 32px; font-size: .85rem; border-radius: 7px; }
.company-heading .company-brand { margin-bottom: 16px; }
.company-page-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.company-page-heading .lead { margin-bottom: 0; }
.viewer-report-heading { display: flex; align-items: center; gap: 12px; }
.catalog-tools { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border: 1px solid var(--vs-border); border-radius: 8px; background: white; }
.catalog-tools .form-select { max-width: 230px; }
.search-box { max-width: 480px; }
.card-art { position: relative; display: flex; align-items: center; justify-content: space-between; height: 108px; padding: 22px; border-bottom: 1px solid #e3edf4; background: linear-gradient(120deg, #edf5fc, #f7fafc); }
.card-art > .portal-icon { width: 38px; height: 38px; color: #4083b4; stroke-width: 1.35; }
.card-art.paginated { background: linear-gradient(120deg, #eef8f5, #f9fcfb); }
.card-art.paginated > .portal-icon { color: #418d74; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 54px; }
.mini-bars i { display: block; width: 13px; height: 45%; border-radius: 3px 3px 0 0; background: #a3d4ea; }
.mini-bars i:nth-child(2) { height: 80%; background: #62b4d9; }
.mini-bars i:nth-child(3) { height: 60%; background: #8fc8e0; }
.mini-bars i:nth-child(4) { height: 100%; background: #378eb9; }
.paginated .mini-bars i { background: #8ec5b2; }
.card-details { padding: 18px 21px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--vs-muted); font-size: .74rem; }
.favorite { padding: 0 3px; border: 0; background: transparent; color: #73869a; font-size: 1.35rem; line-height: 1; }
.favorite:hover { color: #a66e0a; }
.card-details h3 a { color: var(--vs-navy-900); }
.catalog-report-card .card-details h3 { margin-bottom: 0; }
.card-details p { min-height: 42px; margin-top: 10px; color: var(--vs-muted); font-size: .84rem; }
.card-details p:empty { display: none; }
.catalog-report-card .card-details p { margin-bottom: 0; }
.empty-state { margin-top: 26px; padding: 52px 24px; border: 1px dashed #c8d8e5; border-radius: 10px; background: rgb(255 255 255 / 80%); text-align: center; }
.empty-state p { max-width: 560px; margin: 12px auto 22px; color: var(--vs-muted); font-size: .9rem; }

/* Viewer: use the available screen for the actual report. */
.portal-content:has(.report-viewer-page) { max-width: none; padding: 18px 22px 20px; }
.portal-main:has(.report-viewer-page) .portal-footer { display: none; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.viewer-toolbar h1 { font-size: 1.35rem; margin: 0; }
.viewer-toolbar .back-link { font-size: .73rem; margin-bottom: 7px; }
.viewer-toolbar .button-row { flex-wrap: nowrap; }
.viewer-toolbar .btn { white-space: nowrap; }
.viewer-status { padding: 10px 0; color: var(--vs-muted); font-size: .83rem; }
.viewer-status:empty { display: none; }
.parameter-panel { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--vs-border); border-radius: 8px; background: white; font-size: .85rem; }
.parameter-panel p { margin-top: 12px; }
.parameter-panel summary { color: #304761; font-weight: 600; cursor: pointer; }
.powerbi-viewer { width: 100%; height: calc(100dvh - 175px); min-height: 420px; overflow: hidden; border: 1px solid #d3dee8; border-radius: 8px; background: white; box-shadow: 0 8px 24px rgb(17 28 63 / 6%); }
.powerbi-viewer iframe { width: 100%; height: 100%; border: 0; }
.report-workspace { display: flex; gap: 12px; min-width: 0; }
.report-workspace .powerbi-viewer { flex: 1; min-width: 0; }
.report-pages { flex: 0 0 205px; align-self: stretch; max-height: calc(100dvh - 175px); overflow-y: auto; padding: 16px 10px; border: 1px solid var(--vs-border); border-radius: 8px; background: white; }
.report-pages[hidden] { display: none; }
.report-pages h2 { padding: 0 10px 10px; margin: 0; font-size: .8rem; color: var(--vs-muted); }
.report-pages button { display: block; width: 100%; padding: 11px 12px; margin: 3px 0; border: 0; border-radius: 6px; text-align: left; overflow-wrap: anywhere; color: var(--vs-navy-950); background: transparent; font: inherit; font-size: .83rem; cursor: pointer; }
.report-pages button:hover { background: #f0f7fc; }
.report-pages button[aria-current="page"] { background: #e3f3fc; color: #126c9d; font-weight: 600; box-shadow: inset 3px 0 #1fa7df; }
.report-pages button:focus-visible { outline: 2px solid #1fa7df; outline-offset: -2px; }
.report-workspace:fullscreen { padding: 12px; background: var(--vs-silver-100); }
.report-workspace:fullscreen .powerbi-viewer { height: calc(100dvh - 24px); }
.report-workspace:fullscreen .report-pages { max-height: calc(100dvh - 24px); }
.grant-page-picker { margin-top: 20px; padding: 16px; border: 1px solid var(--vs-border); border-radius: 8px; }
.grant-page-picker legend { float: none; width: auto; margin: 0; font-size: .9rem; font-weight: 600; }
.grant-page-picker .subtle { margin: 12px 0 0; }
.user-admin-list { max-height: 490px; overflow-y: auto; margin-top: 16px; }
.user-admin-list .list-row { padding: 14px 8px; }
.user-admin-list strong, .user-admin-list small { overflow-wrap: anywhere; }
.user-row-selected { background: #edf7fd; border-radius: 6px; }
.user-membership-form { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.user-membership-form > div { flex: 1 1 220px; }
.user-membership-form .check-label { margin-bottom: 8px; }
.admin-page-heading { margin: 0 0 18px; }
.admin-page-heading h1 { margin: 0; font-size: 1.65rem; }
.admin-page-heading .eyebrow { margin-bottom: 5px; }
.admin-workspace { display: flex; flex-direction: column; gap: 16px; }
.admin-list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--vs-border); border-radius: 8px; background: white; box-shadow: 0 10px 22px rgb(17 28 63 / 5%); }
.admin-list-search { width: min(34rem, 100%); }
.admin-list-search .form-label { margin: 0 0 5px; }
.admin-list-actions { display: flex; align-items: center; justify-content: end; gap: 12px; flex-wrap: wrap; }
.admin-list-actions .badge-soft { white-space: nowrap; }
.panel.admin-list-panel { padding: 0; overflow: hidden; margin: 0; }
.admin-table { margin: 0; width: 100%; font-size: .82rem; }
.admin-table > :not(caption) > * > * { padding: 12px 16px; vertical-align: middle; border-color: #e7edf2; }
.admin-table thead th { background: #f5f8fb; color: #526479; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.admin-table tbody tr:nth-child(even) td { background-color: #fbfcfe; }
.admin-table tbody tr:hover td { background-color: #f1f8fc; }
.admin-table td { overflow-wrap: anywhere; }
.admin-table small { display: block; color: var(--vs-muted); font-size: .75rem; margin-top: 3px; }
.admin-table-actions { display: flex; justify-content: end; gap: 6px; flex-wrap: wrap; }
.admin-table .admin-empty { padding: 30px 16px; text-align: center; color: var(--vs-muted); }
.admin-company-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.panel.admin-editor { margin: 0; padding: 0; overflow: hidden; }
.admin-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--vs-border); background: white; }
.admin-editor-heading h2 { margin: 0; padding: 0; border: 0; font-size: 1rem; }
.admin-editor-body { padding: 16px; }
.admin-form-section { padding: 13px 15px; margin-bottom: 12px; background: #f8fafc; border: 1px solid var(--vs-border); border-radius: 8px; }
.admin-form-section h3 { margin: 0 0 12px; font-size: .9rem; font-weight: 700; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: start; gap: 12px; }
.admin-form-grid > * { min-width: 0; }
.admin-form-grid .form-label { margin: 0 0 4px; font-size: .78rem; }
.admin-form-grid .form-control, .admin-form-grid .form-select, .admin-list-search .form-control { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.admin-form-grid small { display: block; color: var(--vs-muted); margin-top: 5px; font-size: .72rem; }
.admin-form-grid .check-label { margin: 0; min-height: 36px; font-size: .82rem; }
.admin-form-grid > .check-label, .admin-form-grid > button { margin-top: 23px; }
.admin-form-grid > div:has(> .check-label) { padding-top: 23px; }
.admin-form-grid .form-select { padding-right: 32px; }
.admin-form-grid .admin-field-wide { grid-column: span 2; }
.admin-form-grid .admin-field-short { max-width: 130px; }
.admin-form-section .subtle { margin: 10px 0 0; font-size: .76rem; }
.admin-form-actions { display: flex; justify-content: end; gap: 8px; margin: 14px 0 0; }
.admin-activation-notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0; padding: 12px 14px; background: #eef8fe; border: 1px solid #d5eaf7; border-radius: 8px; }
.admin-activation-notice p { margin: 0; }
.admin-list-subheading { margin: 0; padding: 14px 16px; border-top: 1px solid var(--vs-border); font-size: .85rem; font-weight: 700; background: #f8fafc; }
.admin-help { padding: 8px 12px; border: 1px solid #e9ddaf; border-radius: 6px; color: #80631b; background: #fff9e9; font-size: .75rem; }
.admin-help p { margin: 8px 0 0; }
.admin-tabs { margin-block: 12px 16px; }
.grant-recipient-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); align-items: end; gap: 6px 12px; }
.grant-recipient-fields .subtle { grid-column: 1 / -1; }
.admin-logo-preview { align-self: center; padding: 10px; }
.profile-security-summary { margin-top: 24px; padding: 18px; border: 1px solid var(--vs-border); border-radius: 8px; background: #f8fafc; }
.profile-security-summary h3 { margin: 0 0 12px; font-size: 1rem; }
.profile-security-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.account-nav-heading { margin: 14px 0 4px; padding: 0 14px; color: var(--vs-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.account-nav-heading:first-child { margin-top: 0; }
@media (min-width: 1200px) { .admin-company-form-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 90px 140px; } }
@media (max-width: 700px) {
    .admin-list-toolbar, .admin-activation-notice { align-items: stretch; flex-direction: column; }
    .admin-list-search { width: 100%; }
    .admin-list-actions { justify-content: space-between; }
    .admin-form-grid .admin-field-wide { grid-column: 1 / -1; }
    .admin-table > :not(caption) > * > * { padding: 10px 12px; }
    .admin-page-heading h1 { font-size: 1.4rem; }
    .admin-form-grid > .check-label, .admin-form-grid > button { margin-top: 0; }
    .admin-form-grid > div:has(> .check-label) { padding-top: 0; }
}
@media (max-width: 700px) {
    .report-workspace { flex-direction: column; }
    .report-pages { flex: none; max-height: 180px; width: 100%; }
    .report-pages button { display: inline-block; width: auto; margin-right: 6px; }
}
.powerbi-viewer:fullscreen { height: 100dvh; border: 0; border-radius: 0; }
.report-viewer-page:has(.parameter-panel) .powerbi-viewer { height: calc(100dvh - 228px); }
.report-viewer-page:has(.parameter-panel[open]) .powerbi-viewer { height: calc(100dvh - 410px); }

/* Authentication uses the same split panel as VS_Project. */
.auth-page { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px; min-height: 100dvh; padding: 32px; background: radial-gradient(circle at top right, rgb(31 167 223 / 12%), transparent 28rem), linear-gradient(180deg, #f8fbfd, #eef4f8); }
.auth-content { width: min(480px, 100%); padding: 32px; border: 1px solid #dce5ee; border-radius: 12px; background: white; box-shadow: var(--vs-shadow); }
.auth-content:has(.login-shell) { width: auto; max-width: 100%; padding: 0; border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
.auth-brand { display: block; margin-bottom: 28px; }
.auth-brand img { width: 190px; height: auto; }
.auth-content:has(.login-shell) > .auth-brand { display: none; }
.auth-content h1 { font-size: 1.65rem; }
.auth-content .row { margin-inline: 0; }
.auth-content .row > div { width: 100%; padding: 0; }
.auth-content .panel { padding: 0; border: 0; box-shadow: none; }
.auth-footer { color: #7c8793; font-size: .75rem; }
.login-shell { display: grid; grid-template-columns: minmax(330px, 38.5%) minmax(0, 1fr); align-items: stretch; width: min(1180px, calc(100vw - 64px)); min-height: min(650px, calc(100dvh - 110px)); overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 22px 55px rgb(17 28 63 / 14%); }
.login-brand-panel { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 44px 36px; color: white; background: #264372; }
.login-brand-content { width: 100%; max-width: 410px; text-align: right; }
.login-brand-logo { display: block; width: 100%; height: auto; margin: 0 0 26px auto; filter: drop-shadow(0 14px 22px rgb(0 0 0 / 22%)); }
.login-brand-panel h1 { color: white; font-size: 2rem; line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.login-brand-panel p { margin: 0 0 7px; color: rgb(255 255 255 / 96%); font-size: .88rem; line-height: 1.35; font-weight: 500; }
.login-form-panel { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 60px 42px; background: white; }
.login-card { width: min(425px, 100%); padding: 0; border: 0; background: transparent; }
.login-card h2 { margin: 0 0 8px; color: #111936; font-size: 1.45rem; line-height: 1.1; font-weight: 800; }
.login-support-text { margin-bottom: 27px; color: #737f90; font-size: .94rem; font-weight: 500; }
.login-field { position: relative; }
.login-field-label { position: absolute; top: 50%; left: 15px; z-index: 2; color: #737d8b; font-size: .78rem; font-weight: 800; line-height: 1; transform: translateY(-50%); pointer-events: none; transition: top .15s, font-size .15s; }
.login-input.form-control { min-height: 55px; padding: 17px 16px 16px 15px; border: 1px solid #e2e6ea; border-radius: 8px; background: white; color: #111936; box-shadow: 0 1px 2px rgb(17 28 63 / 4%); }
.login-input.form-control::placeholder { color: transparent; }
.login-field:has(.login-input:focus) .login-field-label, .login-field:has(.login-input:not(:placeholder-shown)) .login-field-label { top: 11px; color: #5d6978; font-size: .68rem; }
.login-field:has(.login-input:focus) .login-input, .login-field:has(.login-input:not(:placeholder-shown)) .login-input { padding-top: 25px; padding-bottom: 7px; }
.login-remember { margin: 15px 0 24px; color: #24304e; font-size: .82rem; font-weight: 700; }
.login-remember label { display: inline-flex; align-items: center; gap: 7px; }
.login-checkbox.form-check-input { width: 15px; height: 15px; margin: 0; border-radius: 4px; }
.login-submit.btn { min-height: 48px; border-radius: 6px; font-size: 1.03rem; font-weight: 800; background: linear-gradient(180deg, #57a6db, #2f78ad); border-color: #2f78ad; box-shadow: 0 11px 20px rgb(47 120 173 / 28%); }
.login-help-links { margin-top: 25px; text-align: center; font-size: .86rem; }
.login-invitation-note { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #edf1f4; color: #7c8793; font-size: .78rem; text-align: center; }
#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 1000; padding: 14px 22px; background: #fff5d6; color: #805719; border-top: 1px solid #e7d7aa; font-size: .85rem; }
#blazor-error-ui .dismiss { float: right; border: 0; background: none; color: inherit; }

@media (max-width: 1200px) {
    .admin-grid { grid-template-columns: 1fr; gap: 0; }
    .account-name { max-width: 180px; }
    .portal-content { padding-inline: 24px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
    .portal-sidebar .nav-group-title { justify-content: center; padding-inline: 10px; }
    .portal-sidebar .nav-submenu { margin-left: 0; padding-left: 0; border-left: 0; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-group-title { justify-content: flex-start; padding-inline: 12px; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-submenu { margin-left: 22px; padding-left: 10px; border-left: 1px solid rgb(198 228 247 / 20%); }
    .portal-shell { --sidebar-width: 76px; }
    .portal-sidebar .brand { justify-content: center; padding-inline: 12px; }
    .portal-sidebar .brand-label, .portal-sidebar .nav-label { display: none; }
    .portal-sidebar .nav-caption { height: 28px; padding: 0; visibility: hidden; }
    .portal-sidebar .portal-nav { padding-inline: 12px; }
    .portal-sidebar .portal-nav a { justify-content: center; padding-inline: 10px; }
    .portal-sidebar .sidebar-note { justify-content: center; margin-inline: 12px; }
    .portal-shell:has(.sidebar-toggle:checked) .portal-sidebar { width: 264px; }
    .portal-shell:has(.sidebar-toggle:checked) .brand { justify-content: flex-start; padding-inline: 22px; }
    .portal-shell:has(.sidebar-toggle:checked) .brand-label, .portal-shell:has(.sidebar-toggle:checked) .nav-label { display: block; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-caption { height: auto; visibility: visible; padding: 24px 25px 9px; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-caption.nav-section { padding-left: 11px; }
    .portal-shell:has(.sidebar-toggle:checked) .portal-nav a { justify-content: flex-start; }
    .portal-topbar { padding-inline: 20px; }
    .account-details { display: none; }
}
@media (max-width: 800px) {
    .login-shell { grid-template-columns: 1fr; width: min(620px, calc(100vw - 32px)); min-height: auto; }
    .login-brand-panel { min-height: 230px; padding: 30px; }
    .login-brand-content { max-width: 360px; text-align: center; }
    .login-brand-logo { width: 240px; margin: 0 auto 20px; }
    .login-brand-panel h1 { font-size: 1.65rem; }
    .login-form-panel { min-height: auto; padding: 36px 30px 40px; }
    .auth-page { padding: 20px 16px; }
}
@media (max-width: 640px) {
    .portal-shell:has(.sidebar-toggle:checked) .nav-group-title { justify-content: flex-start; padding-inline: 12px; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-submenu { margin-left: 22px; padding-left: 10px; border-left: 1px solid rgb(198 228 247 / 20%); }
    .portal-shell, .portal-shell:has(.sidebar-toggle:checked) { --sidebar-width: 0px; }
    .portal-sidebar { width: 264px; transform: translateX(-100%); }
    .portal-shell:has(.sidebar-toggle:checked) .portal-sidebar { transform: translateX(0); }
    .portal-shell:has(.sidebar-toggle:checked) .brand { justify-content: flex-start; padding-inline: 22px; }
    .portal-shell:has(.sidebar-toggle:checked) .brand-label, .portal-shell:has(.sidebar-toggle:checked) .nav-label { display: block; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-caption { height: auto; visibility: visible; padding: 24px 25px 9px; }
    .portal-shell:has(.sidebar-toggle:checked) .nav-caption.nav-section { padding-left: 11px; }
    .portal-shell:has(.sidebar-toggle:checked) .portal-nav a { justify-content: flex-start; }
    .portal-shell:has(.sidebar-toggle:checked) .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgb(17 28 63 / 30%); }
    .portal-topbar { min-height: 66px; padding: 12px 16px; }
    .topbar-heading { gap: 10px; }
    .top-title-main { font-size: .85rem; }
    .top-title-sub { font-size: .69rem; }
    .account-details { display: none; }
    .account-avatar { width: 32px; height: 32px; font-size: .72rem; }
    .account-menu { gap: 6px; }
    .portal-content { padding: 24px 16px; }
    .portal-footer { padding: 16px; font-size: .66rem; }
    .portal-footer span:last-child { display: none; }
    h1 { font-size: 1.65rem; }
    .panel { padding: 20px; }
    .company-heading { flex-direction: column; align-items: flex-start; }
    .company-page-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
    .catalog-tools { flex-direction: column; align-items: stretch; padding: 12px; }
    .catalog-tools .form-select, .search-box { max-width: none; }
    .tabs { margin-block: 18px; }
    .tabs button { padding-inline: 12px; }
    .welcome-panel { padding: 26px; }
    .welcome-brand { display: none; }
    .list-row { align-items: flex-start; }
    .portal-content:has(.report-viewer-page) { padding: 14px 12px; }
    .viewer-toolbar { align-items: flex-start; gap: 10px; }
    .viewer-toolbar h1 { font-size: 1.1rem; }
    .viewer-toolbar .button-row { gap: 6px; }
    .viewer-toolbar .btn { min-height: 34px; padding: 7px 9px; font-size: .72rem; }
    .viewer-toolbar .btn .portal-icon { display: none; }
    .powerbi-viewer { height: calc(100dvh - 158px); min-height: 400px; }
    .auth-content { padding: 26px; }
    .login-shell { width: calc(100vw - 32px); }
    .login-brand-panel { min-height: 210px; padding: 26px; }
    .login-brand-logo { width: 210px; }
    .login-form-panel { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.environment-notice { padding: .65rem 1rem; text-align: center; background: #fff4d6; color: #624708; border-bottom: 1px solid #e7d69e; font-size: .85rem; }
