/* =============================================================================
   app.css — Prime Savant GO
   Light/white professional theme matching Section 6.1 branding spec.
   ============================================================================= */

/* --- CSS Variables (Section 6.1) --- */
:root {
    --ps-primary:          #2563EB;
    --ps-primary-hover:    #1D4ED8;
    --ps-primary-light:    #DBEAFE;
    --ps-sidebar-bg:       #1E293B;
    --ps-sidebar-text:     #CBD5E1;
    --ps-sidebar-active:   #2563EB;
    --ps-page-bg:          #F8FAFC;
    --ps-card-bg:          #FFFFFF;
    --ps-text-primary:     #1E293B;
    --ps-text-secondary:   #64748B;
    --ps-text-muted:       #94A3B8;
    --ps-border:           #E2E8F0;
    --ps-success:          #16A34A;
    --ps-warning:          #D97706;
    --ps-danger:           #DC2626;
    --ps-info:             #0EA5E9;

    /* Layout */
    --sidebar-width:       260px;
    --sidebar-icon-width:  64px;
    --topbar-height:       56px;
}

/* =============================================================================
   RESET / BASE
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--ps-page-bg);
    color: var(--ps-text-primary);
    font-size: 0.9rem;
    margin: 0;
    overflow-x: hidden;
}

/* =============================================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================================= */

/* Overlay (mobile sidebar backdrop) */
#psOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1039;
}

#psOverlay.active { display: block; }

/* Sidebar */
#psSidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--ps-sidebar-bg);
    color: #CBD5E1; /* explicit baseline: prevents dark body-color inheritance */
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width 0.25s ease, transform 0.25s ease;
    overflow-x: hidden; /* clip during width transition without hiding nav content */
}

/* Main wrapper: offset from sidebar */
#psMain {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

/* Collapsed (icon-only) state */
body.sidebar-collapsed #psSidebar {
    width: var(--sidebar-icon-width);
}
body.sidebar-collapsed #psMain {
    margin-left: var(--sidebar-icon-width);
}
body.sidebar-collapsed .ps-nav-label,
body.sidebar-collapsed .ps-nav-chevron,
body.sidebar-collapsed .ps-sidebar-wordmark,
body.sidebar-collapsed .ps-user-info {
    display: none;
}
body.sidebar-collapsed .ps-logo-wrap {
    justify-content: center;
    padding: 0;
}
body.sidebar-collapsed .ps-logo-wrap img {
    display: none;
}
body.sidebar-collapsed .ps-logo-icon {
    display: flex !important;
}
body.sidebar-collapsed .ps-nav-link {
    justify-content: center;
    padding: 0.65rem 0;
    margin: 0.1rem 0.5rem;
}
body.sidebar-collapsed .ps-nav-link i { margin: 0 !important; font-size: 1.15rem; }
body.sidebar-collapsed .ps-nav-submenu { display: none !important; }
body.sidebar-collapsed .ps-section-label { opacity: 0; }
body.sidebar-collapsed .ps-user-avatar { margin: 0 auto; }
body.sidebar-collapsed .ps-user-wrap { justify-content: center; padding: 0.75rem 0; }

/* Mobile: off-canvas */
@media (max-width: 767.98px) {
    #psSidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }
    #psSidebar.mobile-open {
        transform: translateX(0);
    }
    #psMain {
        margin-left: 0 !important;
    }
}

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

/* Logo area */
.ps-logo-wrap {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    gap: 0.5rem;
    text-decoration: none;
}
.ps-logo-wrap img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.ps-logo-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ps-primary);
    border-radius: 0.375rem;
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.ps-sidebar-wordmark {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.ps-sidebar-wordmark span { color: #93C5FD; }

/* Nav scroll area */
.ps-nav-scroll {
    flex: 1;
    min-height: 0; /* required: prevents flex child from refusing to shrink below content height */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
}
.ps-nav-scroll::-webkit-scrollbar { width: 3px; }
.ps-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Section labels */
.ps-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 0.75rem 1rem 0.25rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

/* Nav links */
.ps-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.75rem;
    margin: 0.1rem 0.5rem;
    border-radius: 0.375rem;
    color: var(--ps-sidebar-text, #CBD5E1); /* fallback in case CSS var fails */
    text-decoration: none !important; /* override Bootstrap a { text-decoration: underline } */
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    cursor: pointer;
}
/* Higher-specificity rule to beat Bootstrap's `a { color: ... }` */
#psSidebar a.ps-nav-link {
    color: var(--ps-sidebar-text, #CBD5E1);
}
.ps-nav-link i { font-size: 1rem; flex-shrink: 0; width: 1.125rem; text-align: center; }
.ps-nav-label { flex: 1; }
.ps-nav-chevron { font-size: 0.7rem; margin-left: auto; transition: transform 0.2s; }

.ps-nav-link:hover,
#psSidebar a.ps-nav-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.ps-nav-link.active,
#psSidebar a.ps-nav-link.active {
    background: var(--ps-primary, #2563EB);
    color: #fff;
}
.ps-nav-link[aria-expanded="true"] .ps-nav-chevron {
    transform: rotate(180deg);
}

/* Sub-menu */
.ps-nav-submenu {
    padding-left: 0.25rem;
}
.ps-nav-submenu .ps-nav-link,
#psSidebar .ps-nav-submenu a.ps-nav-link {
    font-size: 0.825rem;
    padding: 0.425rem 0.75rem 0.425rem 2rem;
    color: #94A3B8;
}
.ps-nav-submenu .ps-nav-link.active,
#psSidebar .ps-nav-submenu a.ps-nav-link.active { background: rgba(37,99,235,0.2); color: #93C5FD; }
.ps-nav-submenu .ps-nav-link:hover,
#psSidebar .ps-nav-submenu a.ps-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* User footer */
.ps-sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.75rem 0.5rem;
    flex-shrink: 0;
}
.ps-user-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.ps-user-wrap:hover { background: rgba(255,255,255,0.07); }
.ps-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--ps-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.ps-user-info { overflow: hidden; flex: 1; }
.ps-user-name { font-size: 0.8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-user-role { font-size: 0.7rem; color: #64748B; text-transform: capitalize; }

.ps-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0.25rem;
    color: #64748B;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.ps-logout-btn:hover { background: rgba(220,38,38,0.2); color: #FCA5A5; }

/* =============================================================================
   TOPBAR
   ============================================================================= */

.ps-topbar {
    height: var(--topbar-height);
    background: var(--ps-card-bg);
    border-bottom: 1px solid var(--ps-border);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.ps-topbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    color: var(--ps-text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.ps-topbar-toggle:hover { background: var(--ps-page-bg); color: var(--ps-text-primary); }
.ps-topbar-toggle i { font-size: 1.25rem; }

.ps-topbar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ps-text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* =============================================================================
   PAGE CONTENT AREA
   ============================================================================= */

.ps-content {
    flex: 1;
    padding: 1.5rem;
}

/* Page header */
.ps-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.ps-page-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.ps-breadcrumb { font-size: 0.78rem; color: var(--ps-text-muted); margin: 0; }
.ps-breadcrumb a { color: var(--ps-text-secondary); text-decoration: none; }
.ps-breadcrumb a:hover { color: var(--ps-primary); }
.ps-breadcrumb .sep { margin: 0 0.3rem; }

/* Footer */
.ps-footer {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--ps-border);
    font-size: 0.775rem;
    color: var(--ps-text-muted);
    background: var(--ps-card-bg);
    margin-top: auto;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.card {
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-header {
    background: var(--ps-card-bg);
    border-bottom: 1px solid var(--ps-border);
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ps-text-primary);
    border-radius: 0.5rem 0.5rem 0 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body { padding: 1.25rem; }
.card-footer {
    background: var(--ps-card-bg);
    border-top: 1px solid var(--ps-border);
    padding: 0.875rem 1.25rem;
    border-radius: 0 0 0.5rem 0.5rem !important;
}

/* =============================================================================
   STAT CARDS (Dashboard)
   ============================================================================= */

.ps-stat {
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.ps-stat:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ps-stat a.stretched-link::after { border-radius: 0.5rem; }

.ps-stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.07;
    color: var(--ps-text-primary);
}

.ps-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps-text-secondary);
}
.ps-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ps-text-primary);
    line-height: 1.2;
}
.ps-stat-sub {
    font-size: 0.78rem;
    color: var(--ps-text-muted);
}

/* Accent border on left */
.ps-stat.accent-blue   { border-left: 3px solid var(--ps-primary); }
.ps-stat.accent-green  { border-left: 3px solid var(--ps-success); }
.ps-stat.accent-amber  { border-left: 3px solid var(--ps-warning); }
.ps-stat.accent-red    { border-left: 3px solid var(--ps-danger); }
.ps-stat.accent-sky    { border-left: 3px solid var(--ps-info); }
.ps-stat.accent-slate  { border-left: 3px solid #64748B; }

/* =============================================================================
   TABLES
   ============================================================================= */

.table {
    color: var(--ps-text-primary);
    font-size: 0.875rem;
    --bs-table-bg: transparent;
}
.table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-text-secondary);
    border-bottom: 1px solid var(--ps-border);
    padding: 0.625rem 0.875rem;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--ps-border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background-color: rgba(37,99,235,0.03); }

/* DataTables overrides */
.dataTables_wrapper { font-size: 0.875rem; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ps-border);
    border-radius: 0.375rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: var(--ps-text-primary);
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 3px var(--ps-primary-light);
}
.dataTables_wrapper .dataTables_info { font-size: 0.8rem; color: var(--ps-text-muted); }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.25rem !important;
    font-size: 0.825rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ps-primary) !important;
    border-color: var(--ps-primary) !important;
    color: #fff !important;
}

/* =============================================================================
   FORMS
   ============================================================================= */

.form-label {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--ps-text-primary);
    margin-bottom: 0.3rem;
}
.form-control, .form-select {
    font-size: 0.875rem;
    border: 1px solid var(--ps-border);
    border-radius: 0.375rem;
    color: var(--ps-text-primary);
    padding: 0.45rem 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 3px var(--ps-primary-light);
}
.form-control::placeholder { color: var(--ps-text-muted); }
.form-text { font-size: 0.775rem; color: var(--ps-text-muted); }
.invalid-feedback { font-size: 0.775rem; }

/* Input groups */
.input-group-text {
    background: var(--ps-page-bg);
    border: 1px solid var(--ps-border);
    font-size: 0.875rem;
    color: var(--ps-text-secondary);
}

/* Select2 overrides */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid var(--ps-border) !important;
    font-size: 0.875rem !important;
}
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.45rem 0.75rem !important;
    height: auto !important;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--ps-primary) !important;
    box-shadow: 0 0 0 3px var(--ps-primary-light) !important;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.45rem 0.9rem;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--ps-primary-hover);
    border-color: var(--ps-primary-hover);
}
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.btn-outline-secondary { border-color: var(--ps-border); color: var(--ps-text-secondary); }
.btn-outline-secondary:hover { background: var(--ps-page-bg); color: var(--ps-text-primary); border-color: #CBD5E1; }

/* Action button group in tables */
.action-btns { display: flex; gap: 0.3rem; flex-wrap: nowrap; }
.action-btns .btn { padding: 0.25rem 0.5rem; font-size: 0.775rem; }

/* =============================================================================
   STATUS BADGES (Section 6.1)
   ============================================================================= */

.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 0.3rem;
}

/* Override Bootstrap defaults with PSG palette */
.badge.bg-success  { background-color: var(--ps-success)  !important; }
.badge.bg-warning  { background-color: var(--ps-warning)  !important; color: #fff !important; }
.badge.bg-danger   { background-color: var(--ps-danger)   !important; }
.badge.bg-info     { background-color: var(--ps-info)     !important; }
.badge.bg-primary  { background-color: var(--ps-primary)  !important; }

/* =============================================================================
   PROFIT / COSTING SUMMARY
   ============================================================================= */

.ps-summary-box {
    background: var(--ps-page-bg);
    border: 1px solid var(--ps-border);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}
.ps-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.875rem;
    color: var(--ps-text-secondary);
    border-bottom: 1px solid var(--ps-border);
}
.ps-summary-row:last-child { border-bottom: 0; }
.ps-summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ps-text-primary);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}
.ps-summary-row.profit { color: var(--ps-success); font-weight: 600; }
.ps-margin-pill {
    display: inline-flex;
    align-items: center;
    background: #DCFCE7;
    color: var(--ps-success);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}
.ps-margin-pill.low    { background: #FEF3C7; color: var(--ps-warning); }
.ps-margin-pill.negative { background: #FEE2E2; color: var(--ps-danger); }

/* =============================================================================
   LOGIN PAGE
   ============================================================================= */

.ps-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ps-page-bg);
    padding: 1.5rem;
}
.ps-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
}
.ps-login-logo {
    display: block;
    max-width: 160px;
    max-height: 56px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}
.ps-login-wordmark {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ps-text-primary);
    margin-bottom: 0.25rem;
}
.ps-login-wordmark span { color: var(--ps-primary); }
.ps-login-sub {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ps-text-muted);
    margin-bottom: 2rem;
}

/* =============================================================================
   ERROR PAGES
   ============================================================================= */

.ps-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}
.ps-error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--ps-border);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.ps-error-title { font-size: 1.25rem; font-weight: 600; color: var(--ps-text-primary); }
.ps-error-sub { font-size: 0.875rem; color: var(--ps-text-muted); margin-top: 0.5rem; }

/* =============================================================================
   MISC
   ============================================================================= */

/* Detail label/value pairs */
.ps-detail-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ps-text-muted); margin-bottom: 0.15rem; }
.ps-detail-value { font-size: 0.9rem; color: var(--ps-text-primary); }

/* Empty state */
.ps-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ps-text-muted);
}
.ps-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.3; }
.ps-empty p { margin: 0; font-size: 0.875rem; }

/* Markup % coloring */
.markup-good { color: var(--ps-success); }
.markup-low  { color: var(--ps-warning); }
.markup-neg  { color: var(--ps-danger);  }

/* Tabs */
.nav-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ps-text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.625rem 1rem;
}
.nav-tabs .nav-link:hover { color: var(--ps-text-primary); border-bottom-color: var(--ps-border); }
.nav-tabs .nav-link.active { color: var(--ps-primary); border-bottom-color: var(--ps-primary); background: transparent; }
.nav-tabs { border-bottom: 1px solid var(--ps-border); }

/* Modal */
.modal-header { border-bottom: 1px solid var(--ps-border); }
.modal-footer { border-top: 1px solid var(--ps-border); }
.modal-title { font-size: 1rem; font-weight: 600; }

/* Responsive: tablet icon-only sidebar */
@media (min-width: 768px) and (max-width: 1023.98px) {
    body:not(.sidebar-force-open) #psSidebar { width: var(--sidebar-icon-width); }
    body:not(.sidebar-force-open) #psMain    { margin-left: var(--sidebar-icon-width); }
    body:not(.sidebar-force-open) .ps-nav-label,
    body:not(.sidebar-force-open) .ps-nav-chevron,
    body:not(.sidebar-force-open) .ps-sidebar-wordmark,
    body:not(.sidebar-force-open) .ps-user-info,
    body:not(.sidebar-force-open) .ps-nav-submenu,
    body:not(.sidebar-force-open) .ps-section-label { display: none; }
    body:not(.sidebar-force-open) .ps-logo-wrap { justify-content: center; padding: 0; }
    body:not(.sidebar-force-open) .ps-logo-wrap img { display: none; }
    body:not(.sidebar-force-open) .ps-logo-icon { display: flex !important; }
    body:not(.sidebar-force-open) .ps-nav-link { justify-content: center; padding: 0.65rem 0; margin: 0.1rem 0.5rem; }
    body:not(.sidebar-force-open) .ps-nav-link i { margin: 0 !important; }
    body:not(.sidebar-force-open) .ps-user-wrap { justify-content: center; padding: 0.5rem 0; }
    body:not(.sidebar-force-open) .ps-user-avatar { margin: 0; }
    body:not(.sidebar-force-open) .ps-logout-btn { display: none; }
}
