/* SaloMaster. Bootstrap does the layout; this file gives it the SaloMaster look: palette (light and dark through
   data-bs-theme), the application shell (fixed side navigation that folds to an icon rail, header with a go-to box,
   notifications and the user), cards, tables, forms and a few dashboard components.
   No inline styles anywhere in the pages, so a strict CSP stays possible. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../lib/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---- palette ------------------------------------------------------------- */

:root {
    --sidebar-w: 292px;
    --sidebar-w-folded: 76px;
    --header-h: 68px;
    --radius-card: 0.875rem;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: 0.9375rem;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.75rem;
    --transition: 0.18s ease;
}

[data-bs-theme="light"] {
    --app-page: #f4f7fb;
    --app-surface: #ffffff;
    --app-heading: #111827;
    --app-muted: #687789;
    --app-soft: #8190a2;
    --app-line: #dbe4ef;
    --app-hover: #edf3ff;
    --app-side: #ffffff;
    --app-head: #ffffff;
    --app-shadow: 0 10px 30px -24px rgba(22, 34, 51, 0.45);
    --app-shadow-sm: 0 1px 2px rgba(22, 34, 51, 0.06);
    --app-accent: #315cf6;
    --app-accent-2: #2aa3d6;

    --bs-body-bg: #f4f7fb;
    --bs-body-color: #273447;
    --bs-emphasis-color: #111827;
    --bs-secondary-color: #687789;
    --bs-tertiary-bg: #f1f5fa;
    --bs-secondary-bg: #e8eef6;
    --bs-border-color: #dbe4ef;
    --bs-border-color-translucent: #e2e9f2;
    --bs-primary: #315cf6;
    --bs-primary-rgb: 49, 92, 246;
    --bs-primary-text-emphasis: #1f3fb5;
    --bs-primary-bg-subtle: #e6edff;
    --bs-primary-border-subtle: #bccbfc;
    --bs-link-color: #315cf6;
    --bs-link-color-rgb: 49, 92, 246;
    --bs-link-hover-color: #2347cc;
    --bs-link-hover-color-rgb: 35, 71, 204;
    --bs-success: #0f9b7a;
    --bs-success-rgb: 15, 155, 122;
    --bs-success-text-emphasis: #0a6b54;
    --bs-success-bg-subtle: #dff6ee;
    --bs-success-border-subtle: #aee5d3;
    --bs-warning: #d98a1a;
    --bs-warning-rgb: 217, 138, 26;
    --bs-warning-text-emphasis: #8a5200;
    --bs-warning-bg-subtle: #fff1d9;
    --bs-warning-border-subtle: #f6d9a5;
    --bs-danger: #e05264;
    --bs-danger-rgb: 224, 82, 100;
    --bs-danger-text-emphasis: #a5283a;
    --bs-danger-bg-subtle: #fde6ea;
    --bs-danger-border-subtle: #f6bcc5;
    --bs-info: #0c9dc8;
    --bs-info-rgb: 12, 157, 200;
    --bs-info-text-emphasis: #07627f;
    --bs-info-bg-subtle: #dff4fb;
    --bs-info-border-subtle: #aadff0;
}

[data-bs-theme="dark"] {
    --app-page: #0e1524;
    --app-surface: #182235;
    --app-heading: #f3f6f9;
    --app-muted: #9aa8b9;
    --app-soft: #728196;
    --app-line: #2b3a50;
    --app-hover: #1c2940;
    --app-side: #0d1119;
    --app-head: #141d2d;
    --app-shadow: 0 18px 45px -30px rgba(0, 0, 0, 0.85);
    --app-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --app-accent: #6d88ff;
    --app-accent-2: #38c0e8;

    --bs-body-bg: #0e1524;
    --bs-body-color: #d8e0e7;
    --bs-emphasis-color: #f3f6f9;
    --bs-secondary-color: #9aa8b9;
    --bs-tertiary-bg: #131c2d;
    --bs-secondary-bg: #202b3d;
    --bs-border-color: #2b3a50;
    --bs-border-color-translucent: #2b3a50;
    --bs-primary: #6d88ff;
    --bs-primary-rgb: 109, 136, 255;
    --bs-primary-text-emphasis: #aebfff;
    --bs-primary-bg-subtle: #1b2849;
    --bs-primary-border-subtle: #36488f;
    --bs-link-color: #8ea3ff;
    --bs-link-color-rgb: 142, 163, 255;
    --bs-link-hover-color: #b3c1ff;
    --bs-link-hover-color-rgb: 179, 193, 255;
    --bs-success: #34d399;
    --bs-success-rgb: 52, 211, 153;
    --bs-success-text-emphasis: #7ce6bd;
    --bs-success-bg-subtle: #11332b;
    --bs-success-border-subtle: #1d6b56;
    --bs-warning: #f4b95b;
    --bs-warning-rgb: 244, 185, 91;
    --bs-warning-text-emphasis: #f8d08f;
    --bs-warning-bg-subtle: #382b14;
    --bs-warning-border-subtle: #7a5a22;
    --bs-danger: #fb7185;
    --bs-danger-rgb: 251, 113, 133;
    --bs-danger-text-emphasis: #fda4b1;
    --bs-danger-bg-subtle: #3a1a23;
    --bs-danger-border-subtle: #7d2f40;
    --bs-info: #22d3ee;
    --bs-info-rgb: 34, 211, 238;
    --bs-info-text-emphasis: #7ee4f5;
    --bs-info-bg-subtle: #0f3039;
    --bs-info-border-subtle: #1a6577;
}

body {
    background-color: var(--app-page);
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--app-heading);
    letter-spacing: -0.012em;
}

/* the primary colour of Bootstrap's own components */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary), black 12%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary), black 12%);
    --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary), black 18%);
    --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary), black 18%);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-color: var(--app-heading);
    --bs-btn-border-color: var(--app-line);
    --bs-btn-hover-color: var(--app-heading);
    --bs-btn-hover-bg: var(--app-hover);
    --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), 0.4);
    --bs-btn-active-color: var(--app-heading);
    --bs-btn-active-bg: var(--app-hover);
    --bs-btn-active-border-color: rgba(var(--bs-primary-rgb), 0.4);
    --bs-btn-disabled-color: var(--app-soft);
    --bs-btn-disabled-border-color: var(--app-line);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-y: 0.45rem;
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:not(:disabled):hover {
    box-shadow: 0 8px 18px -10px rgba(var(--bs-primary-rgb), 0.9);
}

.form-control, .form-select {
    background-color: var(--app-surface);
    border-color: var(--app-line);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--app-heading);
}

/* ---- brand --------------------------------------------------------------- */

.app-logo { height: 30px; width: auto; }
.app-logo-lg { height: 72px; width: auto; }

/* ---- shell: fixed sidebar and header, content pushed clear of them ------- */

body.app-shell {
    padding-top: var(--header-h);
    padding-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: padding-left var(--transition);
}

html.sidebar-folded body.app-shell { padding-left: var(--sidebar-w-folded); }

body.app-shell > #app {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
    --bs-gutter-x: 3rem;
}

@media (max-width: 991.98px) {
    body.app-shell, html.sidebar-folded body.app-shell { padding-left: 0; }
    body.app-shell > #app { --bs-gutter-x: 1.75rem; }
}

@media (max-width: 575.98px) {
    body.app-shell > #app { --bs-gutter-x: 1.5rem; }
}

/* ---- sidebar ------------------------------------------------------------- */

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    overflow: hidden;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--app-surface), var(--app-accent) 4%), var(--app-side) 34%),
        var(--app-side);
    border-right: 1px solid var(--app-line);
    transition: width var(--transition), transform var(--transition);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: var(--header-h);
    padding: 0 1.1rem;
    border-bottom: 1px solid var(--app-line);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--app-heading);
    text-decoration: none;
}

.sidebar-logo:hover { color: var(--app-heading); }

.sidebar-logo img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }

.sidebar-logo-text { display: flex; flex-direction: column; min-width: 0; }

.sidebar-logo-name { font-size: 1.05rem; font-weight: 750; line-height: 1.1; white-space: nowrap; }

.sidebar-logo-label {
    margin-top: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--app-soft);
}

.sidebar-head .sidebar-close { display: none; }

.sidebar-nav {
    flex: 1 1 auto;
    padding: 0.75rem 1.1rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 0.5rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--app-soft);
    white-space: nowrap;
}

.nav-heading::after { content: ""; flex: 1; height: 1px; background: var(--app-line); }

.side-list, .side-sub { list-style: none; margin: 0; padding: 0; }

.side-list > li { position: relative; margin-top: 0.15rem; }

.side-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 10px 6px 8px;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--app-heading);
    font-size: 0.875rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    width: 100%;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.side-link::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 3px;
    background: transparent;
}

.side-link:hover {
    background-color: var(--app-hover);
    border-color: rgba(var(--bs-primary-rgb), 0.16);
    color: var(--app-heading);
}

.side-link > .bi:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 0.7rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--app-hover), transparent 40%);
    color: var(--app-muted);
    font-size: 1rem;
    transition: background-color var(--transition), color var(--transition);
}

.side-link:hover > .bi:first-child {
    background: rgba(var(--bs-primary-rgb), 0.13);
    color: var(--bs-primary);
}

.side-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    color: var(--app-soft);
    transition: transform var(--transition), background-color var(--transition);
}

.side-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 2rem;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
}

/* the page you are on, and the menu that holds it */
.side-link.active,
.side-item.open > .side-link {
    border-color: color-mix(in srgb, var(--bs-primary), black 8%);
    background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), var(--app-accent-2) 28%));
    color: #fff;
    box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--bs-primary), black 35%);
}

.side-link.active::before,
.side-item.open > .side-link::before { background: var(--bs-primary); }

.side-link.active > .bi:first-child,
.side-item.open > .side-link > .bi:first-child { background: rgba(255, 255, 255, 0.2); color: #fff; }

.side-link.active .side-arrow,
.side-item.open > .side-link .side-arrow { color: #fff; }

.side-item.open > .side-link .side-arrow { transform: rotate(180deg); }

/* sub-menu: the pages of a group */
.side-sub-wrap { overflow: hidden; }

.side-sub { padding: 0.35rem 0 0.35rem 1.6rem; }

.side-sub .side-link {
    position: relative;
    min-height: 34px;
    padding: 6px 10px 6px 14px;
    border-radius: 0.5rem;
    color: var(--app-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.side-sub .side-link::before {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--app-line);
}

.side-sub .side-link:hover { background: transparent; border-color: transparent; color: var(--bs-primary); }
.side-sub .side-link:hover::before { background: var(--bs-primary); }

.side-sub .side-link.active {
    border-color: transparent;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    box-shadow: none;
}

.side-sub .side-link.active::before { background: var(--bs-primary); }

.side-link:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }

.sidebar-overlay { display: none; }

/* folded to an icon rail (wide screens) */
@media (min-width: 992px) {
    html.sidebar-folded .app-sidebar { width: var(--sidebar-w-folded); }
    html.sidebar-folded .sidebar-head { justify-content: center; padding: 0; }
    html.sidebar-folded .sidebar-logo-text,
    html.sidebar-folded .side-label,
    html.sidebar-folded .side-arrow,
    html.sidebar-folded .side-badge,
    html.sidebar-folded .nav-heading span,
    html.sidebar-folded .side-sub-wrap { display: none; }
    html.sidebar-folded .sidebar-nav { padding-inline: 0.7rem; }
    html.sidebar-folded .nav-heading { padding: 0.9rem 0 0.2rem; }
    html.sidebar-folded .side-link { justify-content: center; padding: 6px; }
    html.sidebar-folded .side-link > .bi:first-child { margin-right: 0; }
    html.sidebar-folded .side-link::before { left: -0.7rem; }
}

/* narrow screens: slides over the page */
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); box-shadow: none; max-width: 86vw; }
    html.sidebar-open .app-sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.45); }
    html.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(8, 12, 20, 0.5);
    }
    .sidebar-head .sidebar-close {
        display: inline-flex;
    }
}

/* ---- header -------------------------------------------------------------- */

.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-w);
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: var(--header-h);
    padding: 0 1.5rem;
    background-color: var(--app-head);
    border-bottom: 1px solid var(--app-line);
    box-shadow: 0 10px 35px -30px rgba(22, 34, 51, 0.6);
    transition: left var(--transition);
}

html.sidebar-folded .app-header { left: var(--sidebar-w-folded); }

@media (max-width: 991.98px) {
    .app-header, html.sidebar-folded .app-header { left: 0; padding: 0 1rem; gap: 0.6rem; }
}

.header-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--app-line);
    border-radius: 0.65rem;
    background: var(--app-surface);
    color: var(--app-muted);
    font-size: 1.1rem;
    line-height: 1;
    position: relative;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.header-btn:hover, .header-btn[aria-expanded="true"] {
    color: var(--bs-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.header-btn .count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--app-head);
    box-sizing: content-box;
}

.header-context { min-width: 0; line-height: 1.2; }

.eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--app-soft);
}

.header-context .eyebrow + span {
    display: block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
    color: var(--app-heading);
}

.header-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 34rem;
    margin-inline: auto;
}

.header-search .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-soft);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    height: 44px;
    padding: 0 3.2rem 0 2.7rem;
    border: 1px solid var(--app-line);
    border-radius: 2rem;
    background: var(--app-surface);
    color: var(--bs-body-color);
}

.header-search input:focus {
    outline: 0;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.header-search kbd {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.05rem 0.45rem;
    border: 1px solid var(--app-line);
    border-radius: 0.4rem;
    background: var(--bs-tertiary-bg);
    color: var(--app-soft);
    font-size: 0.7rem;
    font-family: inherit;
}

.go-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid var(--app-line);
    border-radius: var(--radius-card);
    background: var(--app-surface);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55);
}

.go-results a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.55rem;
    color: var(--app-heading);
    font-weight: 600;
    text-decoration: none;
}

.go-results a:hover, .go-results a.sel { background: var(--app-hover); color: var(--bs-primary); }

.go-results small { margin-left: auto; color: var(--app-soft); font-weight: 500; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.3rem;
    border: 1px solid var(--app-line);
    border-radius: 2rem;
    background: var(--bs-tertiary-bg);
}

.header-tools .header-btn { width: 36px; height: 36px; border-radius: 50%; border-color: transparent; background: transparent; }

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0.7rem 0.2rem 0.25rem;
    border: 1px solid var(--app-line);
    border-radius: 2rem;
    background: var(--app-surface);
    color: var(--app-heading);
    text-align: left;
}

.user-pill:hover { border-color: rgba(var(--bs-primary-rgb), 0.35); }

.user-pill .name { display: block; font-size: 0.8125rem; font-weight: 700; line-height: 1.15; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill .role { display: block; font-size: 0.6875rem; color: var(--app-soft); line-height: 1.15; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--app-accent-2));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.dropdown-menu {
    --bs-dropdown-bg: var(--app-surface);
    --bs-dropdown-border-color: var(--app-line);
    --bs-dropdown-border-radius: 0.75rem;
    --bs-dropdown-link-hover-bg: var(--app-hover);
    --bs-dropdown-link-active-bg: var(--bs-primary-bg-subtle);
    --bs-dropdown-link-active-color: var(--bs-primary-text-emphasis);
    --bs-dropdown-box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
    padding: 0.4rem;
}

.dropdown-item { border-radius: 0.5rem; font-weight: 500; }

.attention-menu { width: min(24rem, 92vw); padding: 0; }

.attention-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--app-heading);
    text-decoration: none;
    border-bottom: 1px solid var(--app-line);
}

.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: var(--app-hover); color: var(--app-heading); }

.theme-float { position: fixed; top: 0.75rem; right: 0.75rem; z-index: 1040; }

/* ---- pages --------------------------------------------------------------- */

#app > h1:first-child {
    margin-bottom: 0.6rem !important;
    font-size: 1.6rem;
    font-weight: 750;
}

.card {
    --bs-card-bg: var(--app-surface);
    --bs-card-border-color: var(--app-line);
    --bs-card-cap-bg: transparent;
    --bs-card-border-radius: var(--radius-card);
    --bs-card-inner-border-radius: calc(var(--radius-card) - 1px);
    box-shadow: var(--app-shadow);
}

.card .card { box-shadow: none; }

.card-eyebrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--app-line);
}

.card-eyebrow h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.card-eyebrow a { font-size: 0.8125rem; font-weight: 700; text-decoration: none; }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--app-line); }

.table > thead > tr > th {
    background: color-mix(in srgb, var(--bs-tertiary-bg), transparent 20%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table > :not(caption) > * > * { padding: 0.75rem 0.9rem; }
.table td.text-end { white-space: nowrap; }

/* the scroller is the containing block of the stretched row links, so nothing escapes it */
.table-responsive { position: relative; contain: paint; }

.card > .table-responsive > .table > tbody > tr:last-child > * { border-bottom-width: 0; }

.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: var(--app-hover); }

.table-responsive:not(.card .table-responsive) {
    border: 1px solid var(--app-line);
    border-radius: var(--radius-card);
    background-color: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.table-responsive:not(.card .table-responsive) > .table { margin-bottom: 0; }
.table-responsive:not(.card .table-responsive) > .table > thead > tr > th:first-child { border-top-left-radius: var(--radius-card); }
.table-responsive:not(.card .table-responsive) > .table > thead > tr > th:last-child { border-top-right-radius: var(--radius-card); }

.alert {
    border-width: 0 0 0 4px;
    border-radius: 0.75rem;
    box-shadow: var(--app-shadow-sm);
}

.badge { font-weight: 650; letter-spacing: 0.01em; }

.list-group { --bs-list-group-bg: var(--app-surface); --bs-list-group-border-color: var(--app-line); }

.card-narrow { max-width: 26rem; }

.list-group-item .company-name { min-width: 0; overflow-wrap: anywhere; }

/* ---- components ---------------------------------------------------------- */

.icon-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    font-size: 1.3rem;
}

.icon-chip-sm { width: 2rem; height: 2rem; border-radius: 0.5rem; font-size: 1rem; }

.hero {
    position: relative;
    padding: 1.75rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary), transparent 82%);
    border-radius: 1.1rem;
    background:
        radial-gradient(40rem 18rem at 100% 0%, rgba(var(--bs-primary-rgb), 0.12), transparent 70%),
        linear-gradient(135deg, var(--bs-primary-bg-subtle), var(--app-surface) 75%);
    box-shadow: var(--app-shadow);
}

.hero .eyebrow { color: var(--bs-primary); }

.hero-title {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero-text { max-width: 44rem; color: var(--app-muted); }

.kpi {
    display: flex;
    height: 100%;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid var(--app-line);
    border-radius: var(--radius-card);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition);
}

a.kpi:hover { transform: translateY(-2px); border-color: rgba(var(--bs-primary-rgb), 0.4); color: inherit; }

.kpi-label { font-size: 0.8125rem; font-weight: 650; color: var(--app-heading); }
.kpi-value { white-space: nowrap; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; color: var(--app-heading); }
.kpi-note { font-size: 0.78rem; font-weight: 650; }

.action-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 0.75rem;
    background: var(--app-surface);
    color: var(--app-heading);
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition), background-color var(--transition);
}

.action-tile:hover { border-color: rgba(var(--bs-primary-rgb), 0.45); background: var(--app-hover); color: var(--app-heading); }
.action-tile .bi-chevron-right { margin-left: auto; font-size: 0.75rem; color: var(--app-soft); }

.feed-item { display: flex; gap: 0.85rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--app-line); }
.feed-item:last-child { border-bottom: 0; }

/* a few bars for a trend, heights in 5% steps (no inline styles) */
.bars { display: flex; align-items: flex-end; justify-content: flex-start; gap: 1rem; height: 9rem; }
.bar { flex: 0 1 4.5rem; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.bar > i { display: block; width: 100%; border-radius: 0.4rem 0.4rem 0.2rem 0.2rem; background: linear-gradient(180deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), transparent 55%)); }
.bar > span { margin-top: 0.4rem; font-size: 0.7rem; color: var(--app-soft); white-space: nowrap; }

.bar > i.pct0 { height: 2%; }
.bar > i.pct5 { height: 5%; }
.bar > i.pct10 { height: 10%; }
.bar > i.pct15 { height: 15%; }
.bar > i.pct20 { height: 20%; }
.bar > i.pct25 { height: 25%; }
.bar > i.pct30 { height: 30%; }
.bar > i.pct35 { height: 35%; }
.bar > i.pct40 { height: 40%; }
.bar > i.pct45 { height: 45%; }
.bar > i.pct50 { height: 50%; }
.bar > i.pct55 { height: 55%; }
.bar > i.pct60 { height: 60%; }
.bar > i.pct65 { height: 65%; }
.bar > i.pct70 { height: 70%; }
.bar > i.pct75 { height: 75%; }
.bar > i.pct80 { height: 80%; }
.bar > i.pct85 { height: 85%; }
.bar > i.pct90 { height: 90%; }
.bar > i.pct95 { height: 95%; }
.bar > i.pct100 { height: 100%; }

/* ---- page header, avatars, filters, tabs -------------------------------- */

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-head h1 {
    margin: 0.15rem 0 0;
    font-size: 1.75rem;
    font-weight: 780;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-head .eyebrow { color: var(--bs-primary); }
.page-sub { margin: 0.35rem 0 0; color: var(--app-muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.avatar-lg, .avatar-md {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; border: 3px solid var(--app-surface); box-shadow: var(--app-shadow-sm); }

.tone-primary { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.tone-success { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.tone-info { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.tone-warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.tone-danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.tone-secondary { background: var(--bs-secondary-bg); color: var(--app-muted); }

.person { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.person .name { font-weight: 650; color: var(--app-heading); text-decoration: none; }
.person .name:hover { color: var(--bs-primary); }
.table .person .name { white-space: nowrap; }
.person .sub { font-size: 0.78rem; color: var(--app-soft); }

/* a table row that is one big link (the link in its first cell stretches over it) */
.table > tbody > tr.row-link { position: relative; }
.table > tbody > tr.row-link:hover > * { cursor: pointer; }

.pills { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.25rem; border: 1px solid var(--app-line); border-radius: 0.75rem; background: var(--bs-tertiary-bg); }

.pills .pill {
    padding: 0.35rem 0.85rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: var(--app-muted);
    font-size: 0.8125rem;
    font-weight: 650;
}

.pills .pill:hover { color: var(--app-heading); }
.pills .pill.active { background: var(--app-surface); color: var(--bs-primary); box-shadow: var(--app-shadow-sm); }

.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--app-line);
    color: var(--app-muted);
    font-size: 0.8125rem;
}

.tabbar {
    --bs-nav-underline-link-active-color: var(--bs-primary);
    --bs-nav-underline-gap: 1.75rem;
    --bs-nav-link-color: var(--app-muted);
    --bs-nav-link-hover-color: var(--app-heading);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--app-line);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.tabbar .nav-link { padding: 0.7rem 0.1rem; font-weight: 650; white-space: nowrap; }
.tabbar .nav-link.active { border-bottom-color: var(--bs-primary); }

/* ---- employee ------------------------------------------------------------ */

.profile {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1.1rem;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.profile-cover {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    height: 5.5rem;
    background:
        radial-gradient(24rem 10rem at 85% 0%, rgba(255, 255, 255, 0.25), transparent 70%),
        linear-gradient(120deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), var(--app-accent-2) 55%));
}

.profile-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 0 1.5rem 1.25rem; margin-top: -2.25rem; }
.profile-body h1 { margin: 0; font-size: 1.5rem; font-weight: 780; letter-spacing: -0.02em; }
.profile-main { flex: 1 1 18rem; min-width: 0; padding-top: 2.4rem; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

.fact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--app-line);
    border-radius: 2rem;
    background: var(--bs-tertiary-bg);
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.fact .bi { color: var(--bs-primary); }

.form-card { margin-bottom: 1.25rem; }
.form-card > .card-eyebrow h2 { font-size: 1rem; }

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid var(--app-line);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--app-surface), transparent 6%);
    box-shadow: 0 -12px 30px -22px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.facts-list { margin: 0; }
.facts-list > div { display: flex; gap: 1rem; padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--app-line); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { flex: 0 0 11rem; max-width: 40%; font-weight: 600; color: var(--app-muted); }
.facts-list dd { margin: 0; color: var(--app-heading); overflow-wrap: anywhere; }

/* ---- payroll run --------------------------------------------------------- */

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.4rem; color: var(--app-muted); font-size: 0.875rem; }

.review-item { display: flex; gap: 0.85rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--app-line); }
.review-item:last-child { border-bottom: 0; }

/* ---- payslip ------------------------------------------------------------- */

.payslip {
    max-width: 52rem;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1.1rem;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.payslip-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background:
        radial-gradient(28rem 12rem at 100% 0%, rgba(var(--bs-primary-rgb), 0.14), transparent 70%),
        var(--bs-primary-bg-subtle);
    border-bottom: 1px solid var(--app-line);
}

.payslip-band .company { font-size: 1.25rem; font-weight: 780; letter-spacing: -0.015em; color: var(--app-heading); }
.payslip-band .doc-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bs-primary); }
.payslip-band .period { font-size: 1.35rem; font-weight: 750; color: var(--app-heading); }

.payslip-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; padding: 1.25rem 2rem; border-bottom: 1px solid var(--app-line); }
.payslip-meta .label { display: block; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-soft); }
.payslip-meta .value { font-weight: 650; color: var(--app-heading); }

.payslip-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.payslip-col { padding: 1.25rem 2rem; }
.payslip-col + .payslip-col { border-left: 1px solid var(--app-line); }
.payslip-col h3 { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--app-soft); }

.ps-lines { width: 100%; border-collapse: collapse; }
.ps-lines th, .ps-lines td { padding: 0.45rem 0; font-size: 0.9rem; border-bottom: 1px dashed var(--app-line); }
.ps-lines th { font-weight: 500; color: var(--bs-body-color); text-align: left; }
.ps-lines td { text-align: right; font-variant-numeric: tabular-nums; color: var(--app-heading); }
.ps-lines tr.total th, .ps-lines tr.total td { padding-top: 0.7rem; border-bottom: 0; font-weight: 750; color: var(--app-heading); }

.payslip-net {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary), var(--app-accent-2) 35%));
    color: #fff;
}

.payslip-net .label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.payslip-net .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.payslip-foot { padding: 1rem 2rem; font-size: 0.8125rem; color: var(--app-muted); }

@media (max-width: 575.98px) {
    .payslip-band, .payslip-meta, .payslip-col, .payslip-net, .payslip-foot { padding-inline: 1.25rem; }
    .payslip-col + .payslip-col { border-left: 0; border-top: 1px solid var(--app-line); }
}

@media print {
    .payslip { border: 1px solid #bbb; box-shadow: none; border-radius: 0; max-width: none; }
    .payslip-band { background: #eef2fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .payslip-net { background: #315cf6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.meter { height: 6px; margin-top: 0.3rem; border-radius: 3px; background: var(--bs-secondary-bg); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 3px; background: var(--bs-primary); }
.meter > i.pct0 { width: 0%; }
.meter > i.pct5 { width: 5%; }
.meter > i.pct10 { width: 10%; }
.meter > i.pct15 { width: 15%; }
.meter > i.pct20 { width: 20%; }
.meter > i.pct25 { width: 25%; }
.meter > i.pct30 { width: 30%; }
.meter > i.pct35 { width: 35%; }
.meter > i.pct40 { width: 40%; }
.meter > i.pct45 { width: 45%; }
.meter > i.pct50 { width: 50%; }
.meter > i.pct55 { width: 55%; }
.meter > i.pct60 { width: 60%; }
.meter > i.pct65 { width: 65%; }
.meter > i.pct70 { width: 70%; }
.meter > i.pct75 { width: 75%; }
.meter > i.pct80 { width: 80%; }
.meter > i.pct85 { width: 85%; }
.meter > i.pct90 { width: 90%; }
.meter > i.pct95 { width: 95%; }
.meter > i.pct100 { width: 100%; }

.setting-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-line);
}

.setting-row:last-child { border-bottom: 0; }
.setting-text { flex: 1 1 22rem; min-width: 0; }
.setting-input { display: flex; flex: 0 1 22rem; gap: 0.5rem; }
.setting-input .form-control, .setting-input .form-select { min-width: 0; }

.pay-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.45);
    border-radius: 0.75rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.pay-value { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; color: var(--app-heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.cell-num { min-width: 5.5rem; text-align: right; }
.cell-note { min-width: 12rem; }

.p9 { max-width: none; }
.p9-scroll { border-radius: 0; }
.p9-table { font-variant-numeric: tabular-nums; font-size: 0.85rem; text-align: right; }
.p9-table th, .p9-table td { white-space: nowrap; }
.p9-table tfoot th, .p9-table tfoot td { border-top: 2px solid var(--app-line); font-weight: 750; background: color-mix(in srgb, var(--bs-tertiary-bg), transparent 30%); }

.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.75rem; }
.steps li::marker { font-weight: 800; color: var(--bs-primary); }
.company-pick { width: 100%; text-align: left; }
.company-pick.current { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.invoice-scroll { border-bottom: 1px solid var(--app-line); }

.code-input { height: 3.5rem; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.5em; text-align: center; padding-left: 0.9em; }

.legal-wrap { max-width: 50rem; }
.legal h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.legal-h { padding-top: 0.5rem; border-top: 1px solid var(--app-line); }
.legal p, .legal li { color: var(--bs-body-color); line-height: 1.7; }

/* ---- help ---------------------------------------------------------------- */

.help-search { position: relative; flex: 1 1 16rem; min-width: min(16rem, 100%); }
.page-actions:has(.help-search) { flex-wrap: nowrap; align-items: center; }
.help-search .bi-search { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--app-soft); pointer-events: none; }
.help-search input { padding-left: 2.4rem; border-radius: 2rem; }
.help-nav .list-group-item { border-color: var(--app-line); background: var(--app-surface); }
.help-nav .list-group-item.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border-color: rgba(var(--bs-primary-rgb), 0.35); }
.help-nav .list-group-item .bi { color: var(--bs-primary); }

.help-doc { padding: 1.75rem 2rem; border: 1px solid var(--app-line); border-radius: var(--radius-card); background: var(--app-surface); box-shadow: var(--app-shadow); line-height: 1.7; }
.help-doc h2 { margin: 2rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--app-line); font-size: 1.35rem; font-weight: 750; scroll-margin-top: 5rem; }
.help-doc h2:first-of-type { margin-top: 0.5rem; padding-top: 0; border-top: 0; }
.help-doc h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; font-weight: 700; scroll-margin-top: 5rem; }
.help-doc h4 { margin: 1rem 0 0.4rem; font-size: 1rem; font-weight: 700; }
.help-doc img.help-img { display: block; max-width: 100%; margin: 1rem auto; border: 1px solid var(--app-line); border-radius: 0.75rem; box-shadow: var(--app-shadow); }
.help-doc pre { padding: 0.9rem 1rem; border-radius: 0.6rem; background: var(--bs-tertiary-bg); overflow-x: auto; }
.help-doc code { color: var(--bs-primary-text-emphasis); }
.help-doc pre code { color: inherit; }
.help-toc { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border: 1px solid var(--app-line); border-radius: 0.75rem; background: var(--bs-tertiary-bg); }
.help-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; columns: 2 16rem; }
.help-toc a { text-decoration: none; }
.help-callout { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 4px solid var(--bs-primary); border-radius: 0.6rem; background: var(--bs-primary-bg-subtle); }
.help-callout-warning { border-color: var(--bs-warning); background: var(--bs-warning-bg-subtle); }
.help-callout-tip { border-color: var(--bs-success); background: var(--bs-success-bg-subtle); }
.help-callout-check { border-color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.help-table th { background: var(--bs-tertiary-bg); }

@media (max-width: 575.98px) { .help-doc { padding: 1.1rem 1rem; } }
@media print { .help-doc { border: 0; box-shadow: none; padding: 0; } .help-toc { display: none; } }

.min-w-0 { min-width: 0; }

/* ---- sign-in and other pages without the shell --------------------------- */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(60rem 30rem at 10% -10%, rgba(var(--bs-primary-rgb), 0.16), transparent 70%),
        var(--app-page);
    background-attachment: fixed;
}

.auth-page > main { min-height: 100vh; align-content: center; }
.auth-page > main:not([hidden]) { display: grid; }
.auth-page .card { border-radius: 1.1rem; }
.auth-page .card.card-body, .auth-page form.card { padding: 1.5rem; }

/* ---- print: paper, no chrome --------------------------------------------- */

@media print {
    .app-sidebar, .app-header, #site-footer, .theme-float, .sidebar-overlay, .btn, .no-print { display: none !important; }
    body.app-shell, html.sidebar-folded body.app-shell { padding: 0; display: block; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; }
}

@media (max-width: 767.98px) {
    .form-actions { position: static; }
}
