/* One scene across navigation and workdesk. Remove this stylesheet to restore
   the previous split layout; background selection and business data stay intact. */
.app-container:has(> .main-layout > .company-header) {
    background-color: #142632;
    background-image:
        linear-gradient(180deg, #12233038, #12233085 55%, #122330cc),
        var(--company-workdesk-image, url('../assets/company-workdesk-header.webp'));
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* The parent owns the photograph, so there is no second crop at the seam. */
.app-container > .main-layout:has(> .company-header) {
    background: transparent !important;
}

body.saesol-theme .app-container:has(> .main-layout > .company-header) > .sidebar {
    background: linear-gradient(180deg, #10223366, #0c1d2d94);
    border-right-color: #c5d7de1f;
    box-shadow: inset 0 1px #e4eef314;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Let the gaps between the existing raised menu buttons reveal the scene. */
body.saesol-theme .app-container:has(> .main-layout > .company-header) > .sidebar::before {
    border-color: #c7dce51a;
    box-shadow: inset 0 1px #ffffff0d;
}

body.saesol-theme .app-container:has(> .main-layout > .company-header) > .sidebar::after {
    opacity: .3;
}

/* A mobile drawer overlays content: keep its text clear over the cards too. */
@media (max-width: 480px) {
    body.saesol-theme .app-container:has(> .main-layout > .company-header) > .sidebar {
        background: linear-gradient(180deg, #102233eb, #0c1d2df5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
