/* =========================================================
   STRATAFLEET UI — SHELL / LAYOUT LAYER
   Owns:
   - page shell
   - sidebar
   - mode headers
   - main content frame
   - support banner
   - responsive shell behavior

   Does NOT own:
   - KPI card skins
   - chart internals
   - page-specific dashboard layouts
   ========================================================= */


/* =========================================================
   PAGE FOUNDATION
   ========================================================= */

html,
body {
    min-height: 100%;
}

body.sf-page-bg {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(49, 130, 246, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 22%),
        linear-gradient(180deg, #07111f 0%, #0a1526 42%, #09111d 100%);
    color: var(--sf-text, #e7eef8);
    font-family: var(--sf-font-sans, "Inter", "Segoe UI", sans-serif);
}


/* =========================================================
   ROOT SHELL
   ========================================================= */

.sf-page-shell {
    min-height: 100vh;
    position: relative;
}

.sf-page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.06), transparent 20%),
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.08), transparent 20%);
    z-index: 0;
}

.sf-app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
}

.sf-main {
    min-width: 0;
    position: relative;
}

.sf-main-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sf-content-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.sf-page-container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 22px 26px 34px;
}


/* =========================================================
   MODE-SCOPED SURFACE DIFFERENTIATION
   ========================================================= */

.sf-shell-platform .sf-page-container {
    max-width: 1840px;
}

.sf-shell-platform .sf-mode-header {
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow:
        0 18px 48px rgba(2, 6, 23, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.sf-shell-tenant .sf-mode-header {
    border-color: rgba(125, 211, 252, 0.16);
    box-shadow:
        0 16px 40px rgba(2, 6, 23, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.05);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sf-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(180deg, rgba(7, 16, 29, 0.96) 0%, rgba(7, 14, 26, 0.98) 100%);
    box-shadow:
        inset -1px 0 0 rgba(255,255,255,0.02),
        14px 0 40px rgba(2, 6, 23, 0.30);
    backdrop-filter: blur(18px);
}

.sf-shell-platform .sf-sidebar {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 24%),
        linear-gradient(180deg, rgba(5, 13, 24, 0.98) 0%, rgba(7, 14, 26, 0.985) 100%);
}

.sf-shell-tenant .sf-sidebar {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(7, 15, 27, 0.96) 0%, rgba(8, 16, 29, 0.985) 100%);
}

.sf-sidebar-top {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.sf-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 14px 26px;
}

.sf-sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.sf-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sf-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.sf-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sf-sidebar-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 10px 24px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.sf-shell-platform .sf-sidebar-brand-mark {
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.10),
        0 12px 26px rgba(2, 6, 23, 0.35),
        0 0 18px rgba(14, 165, 233, 0.12);
}

.sf-sidebar-brand-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.18));
}

.sf-sidebar-brand-copy {
    min-width: 0;
}

.sf-sidebar-brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #f8fbff;
}

.sf-sidebar-brand-subtitle {
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.90);
}

.sf-sidebar-usercard {
    margin-top: 16px;
    padding: 14px 14px 15px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.40));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 22px rgba(2, 6, 23, 0.22);
}

.sf-shell-platform .sf-sidebar-usercard {
    border-color: rgba(56, 189, 248, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 22px rgba(2, 6, 23, 0.22),
        0 0 18px rgba(14, 165, 233, 0.05);
}

.sf-sidebar-user-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.82);
}

.sf-sidebar-user-name {
    margin-top: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f7fbff;
    line-height: 1.3;
}

.sf-sidebar-user-role {
    margin-top: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(125, 211, 252, 0.98);
}

.sf-sidebar-user-email {
    margin-top: 6px;
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(191, 219, 254, 0.74);
    word-break: break-word;
}

.sf-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sf-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    color: rgba(226, 232, 240, 0.92);
}

.sf-role-pill-platform {
    color: #d8f0ff;
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(8, 47, 73, 0.42);
}

.sf-role-pill-org {
    color: #d7f7f1;
    border-color: rgba(45, 212, 191, 0.20);
    background: rgba(6, 78, 59, 0.30);
}

.sf-role-pill-designation {
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(120, 53, 15, 0.22);
}


/* =========================================================
   SIDEBAR GROUPS / NAV
   ========================================================= */

.sf-sidebar-section + .sf-sidebar-section {
    margin-top: 12px;
}

.sf-sidebar-group {
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.22));
    border: 1px solid rgba(148, 163, 184, 0.10);
    overflow: hidden;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.sf-sidebar-group.open {
    border-color: rgba(96, 165, 250, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 18px rgba(2, 6, 23, 0.18);
}

.sf-shell-platform .sf-sidebar-group.open {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 18px rgba(2, 6, 23, 0.18),
        0 0 14px rgba(14, 165, 233, 0.05);
}

.sf-sidebar-group-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 14px;
}

.sf-sidebar-linkhead {
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.sf-sidebar-toggle-left {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #eef6ff;
}

.sf-sidebar-toggle-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.92;
    flex: 0 0 auto;
}

.sf-sidebar-toggle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.52);
    color: rgba(226, 232, 240, 0.78);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.sf-sidebar-group.open .sf-sidebar-toggle {
    transform: rotate(180deg);
    color: #d7efff;
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(30, 41, 59, 0.75);
}

.sf-nav {
    display: none;
    padding: 0 10px 12px;
}

.sf-sidebar-group.open .sf-nav {
    display: grid;
    gap: 6px;
}

.sf-nav-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 13px;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    transition:
        transform 160ms ease,
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
    border: 1px solid transparent;
}

.sf-nav-item:hover,
.sf-sidebar-linkhead:hover {
    text-decoration: none;
}

.sf-nav-item:hover {
    color: #f8fbff;
    transform: translateX(2px);
    background: rgba(30, 41, 59, 0.66);
    border-color: rgba(148, 163, 184, 0.12);
}

.sf-nav-item.active {
    color: #f8fbff;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.90));
    border-color: rgba(96, 165, 250, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 18px rgba(2, 6, 23, 0.20);
}

.sf-shell-platform .sf-nav-item.active {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 18px rgba(2, 6, 23, 0.20),
        0 0 16px rgba(14, 165, 233, 0.07);
}

.sf-nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.92;
    flex: 0 0 auto;
}


/* =========================================================
   MODE HEADER — SHARED STRUCTURE
   ========================================================= */

.sf-mode-header {
    margin: 20px 20px 0;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.70));
    backdrop-filter: blur(18px);
}

.sf-mode-header-brandbox,
.sf-mode-header-controlsbox {
    min-width: 0;
}

.sf-mode-header-brandbox {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.3fr);
    gap: 18px;
    align-items: stretch;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.sf-mode-header-brandleft,
.sf-mode-header-brandright {
    min-width: 0;
}

.sf-mode-header-controlsbox {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 22px 18px;
}

.sf-mode-header-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.88);
}

.sf-mode-header-title {
    margin-top: 8px;
    font-size: clamp(1.55rem, 1.8vw, 2.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #f8fbff;
}

.sf-mode-header-subtitle {
    margin-top: 10px;
    max-width: 900px;
    font-size: 0.90rem;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.88);
}


/* =========================================================
   PLATFORM HEADER
   ========================================================= */

.sf-platform-header-shell {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.11), transparent 24%),
        linear-gradient(180deg, rgba(8, 16, 30, 0.90), rgba(10, 19, 34, 0.82));
}

.sf-platform-brand-lockup {
    min-height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(7, 24, 39, 0.82), rgba(9, 30, 48, 0.60));
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 14px 30px rgba(2, 6, 23, 0.24),
        0 0 18px rgba(14, 165, 233, 0.06);
}

.sf-platform-brand-icon {
    width: 66px;
    height: 66px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 18px rgba(56, 189, 248, 0.16));
}

.sf-platform-brand-copy {
    min-width: 0;
}

.sf-platform-brand-name {
    font-size: clamp(1.45rem, 1.5vw, 1.95rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fbfdff;
}

.sf-platform-brand-tag {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.92);
}


/* =========================================================
   TENANT HEADER
   ========================================================= */

.sf-tenant-header-shell {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(10, 19, 34, 0.84), rgba(10, 18, 32, 0.74));
}

.sf-tenant-header-logo {
    max-width: min(100%, 360px);
    width: auto;
    height: auto;
    max-height: 88px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(2, 6, 23, 0.24));
}


/* =========================================================
   HEADER IDENTITY / ACTIONS
   ========================================================= */

.sf-header-identity-row,
.sf-header-actions-row {
    min-width: 0;
}

.sf-header-identity-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.40));
    border: 1px solid rgba(148, 163, 184, 0.10);
    color: rgba(226, 232, 240, 0.88);
}

.sf-shell-platform .sf-header-identity-meta {
    border-color: rgba(56, 189, 248, 0.14);
}

.sf-header-identity-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.88);
}

.sf-header-identity-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fbff;
    word-break: break-word;
}

.sf-header-identity-sep {
    color: rgba(148, 163, 184, 0.55);
}

.sf-topbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sf-topbar-buttons .btn {
    min-height: 38px;
    border-radius: 12px;
    padding: 0.56rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
}

.sf-topbar-buttons .btn.btn-outline-secondary {
    color: #e5eefb;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.46);
}

.sf-topbar-buttons .btn.btn-outline-secondary:hover {
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.36);
    background: rgba(30, 41, 59, 0.78);
}

.sf-topbar-buttons .btn.btn-outline-primary {
    color: #dff5ff;
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(8, 47, 73, 0.36);
}

.sf-topbar-buttons .btn.btn-outline-primary:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(8, 47, 73, 0.58);
}

.sf-topbar-buttons .btn.btn-outline-dark {
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.34);
    background: rgba(15, 23, 42, 0.52);
}

.sf-topbar-buttons .btn.btn-outline-dark:hover {
    color: #ffffff;
    border-color: rgba(100, 116, 139, 0.44);
    background: rgba(30, 41, 59, 0.78);
}

.sf-topbar-buttons .btn-danger {
    box-shadow:
        0 10px 18px rgba(127, 29, 29, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
}


/* =========================================================
   CONTENT WRAP
   ========================================================= */

.sf-content-wrap {
    padding-top: 2px;
}


/* =========================================================
   SUPPORT BANNER
   ========================================================= */

.sf-support-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 22px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background:
        linear-gradient(180deg, rgba(120, 53, 15, 0.20), rgba(69, 26, 3, 0.18)),
        rgba(15, 23, 42, 0.78);
    box-shadow:
        0 16px 28px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(14px);
}

.sf-support-banner-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.sf-support-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fde68a;
    background: rgba(180, 83, 9, 0.20);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.sf-support-banner-copy {
    min-width: 0;
}

.sf-support-banner-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #fff6da;
}

.sf-support-banner-subtitle {
    margin-top: 5px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(254, 240, 138, 0.88);
}

.sf-support-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sf-support-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.20);
    border: 1px solid rgba(245, 158, 11, 0.20);
}

.sf-support-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}


/* =========================================================
   LEGACY WRAPPER SAFETY
   These preserve older templates still using older shell classes.
   ========================================================= */

.sf-shell-main,
.sf-shell-content {
    min-width: 0;
}

.sf-dashboard-stack {
    display: grid;
    gap: 18px;
}

.sf-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.sf-page-subtitle {
    margin-top: 6px;
    color: rgba(191, 219, 254, 0.76);
    font-size: 0.92rem;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1460px) {
    .sf-app-shell {
        grid-template-columns: 286px minmax(0, 1fr);
    }

    .sf-mode-header-brandbox {
        grid-template-columns: 1fr;
    }

    .sf-mode-header-title {
        font-size: clamp(1.4rem, 2vw, 2rem);
    }
}

@media (max-width: 1180px) {
    .sf-app-shell {
        grid-template-columns: 1fr;
    }

    .sf-sidebar {
        position: relative;
        top: auto;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        box-shadow:
            inset 0 -1px 0 rgba(255,255,255,0.02),
            0 12px 30px rgba(2, 6, 23, 0.16);
    }

    .sf-sidebar-scroll {
        overflow: visible;
    }

    .sf-main-shell {
        min-height: auto;
    }

    .sf-mode-header {
        margin: 18px 18px 0;
    }

    .sf-page-container {
        padding: 18px 18px 28px;
    }
}

@media (max-width: 860px) {
    .sf-sidebar-top {
        padding: 16px;
    }

    .sf-sidebar-scroll {
        padding: 12px 12px 22px;
    }

    .sf-sidebar-brand {
        align-items: flex-start;
    }

    .sf-mode-header-brandbox,
    .sf-mode-header-controlsbox {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sf-mode-header {
        margin-left: 14px;
        margin-right: 14px;
        border-radius: 22px;
    }

    .sf-page-container {
        padding: 14px 14px 24px;
    }

    .sf-support-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .sf-support-banner-actions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .sf-sidebar-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .sf-sidebar-brand-icon {
        width: 26px;
        height: 26px;
    }

    .sf-platform-brand-lockup {
        padding: 14px;
        gap: 14px;
    }

    .sf-platform-brand-icon {
        width: 54px;
        height: 54px;
    }

    .sf-mode-header-title {
        font-size: 1.3rem;
    }

    .sf-header-identity-meta {
        gap: 5px;
    }

    .sf-topbar-buttons {
        width: 100%;
    }

    .sf-topbar-buttons .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .sf-nav-item {
        min-height: 40px;
    }
}


/* =========================================================
   OPTIONAL FUTURE SIDEBAR COLLAPSE HOOKS
   Safe to leave unused for now.
   ========================================================= */

.sf-page-shell.is-sidebar-collapsed .sf-app-shell {
    grid-template-columns: 96px minmax(0, 1fr);
}

.sf-page-shell.is-sidebar-collapsed .sf-sidebar-brand-copy,
.sf-page-shell.is-sidebar-collapsed .sf-sidebar-usercard,
.sf-page-shell.is-sidebar-collapsed .sf-sidebar-toggle-left span,
.sf-page-shell.is-sidebar-collapsed .sf-nav-item span,
.sf-page-shell.is-sidebar-collapsed .sf-sidebar-toggle {
    display: none;
}

.sf-page-shell.is-sidebar-collapsed .sf-sidebar-top,
.sf-page-shell.is-sidebar-collapsed .sf-sidebar-scroll {
    padding-left: 10px;
    padding-right: 10px;
}

.sf-page-shell.is-sidebar-collapsed .sf-sidebar-brand {
    justify-content: center;
}

.sf-page-shell.is-sidebar-collapsed .sf-sidebar-group-head,
.sf-page-shell.is-sidebar-collapsed .sf-nav {
    padding-left: 0;
    padding-right: 0;
}

.sf-page-shell.is-sidebar-collapsed .sf-nav-item {
    justify-content: center;
}