/* LEEP Platform RC1
 * Shared mobile workspace navigation fix
 * Version: 1.1.0
 */

.leep-pc-mobile-backdrop{
    position:fixed;
    inset:0;
    z-index:9996;
    display:none;
    background:rgba(15,23,42,.52);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
}

.leep-pc-sidebar-close{
    display:none;
}

body.leep-pc-nav-open{
    overflow:hidden!important;
    touch-action:none;
}

@media(max-width:860px){
    .leep-pc-shell{
        display:flex!important;
        flex-direction:column!important;
        min-height:100vh;
        width:100%;
        overflow-x:hidden;
    }

    .leep-pc-main{
        order:1;
        width:100%!important;
        min-width:0;
        grid-column:auto;
        grid-row:auto;
    }

    .leep-pc-calendar{
        order:2;
        position:relative!important;
        top:auto!important;
        width:100%!important;
        max-width:none!important;
        height:auto!important;
        min-height:0;
        grid-column:auto;
        grid-row:auto;
        padding:18px 14px 28px;
        border-top:1px solid var(--leep-line);
        border-left:0!important;
        overflow:visible;
        z-index:1;
    }

    .leep-pc-sidebar{
        position:fixed!important;
        inset:0 auto 0 0;
        z-index:9998!important;
        order:3;
        width:min(88vw,330px)!important;
        height:100dvh!important;
        min-height:100vh;
        display:flex!important;
        flex-direction:column;
        background:#fff!important;
        border-right:1px solid var(--leep-line);
        border-bottom:0;
        box-shadow:20px 0 50px rgba(15,23,42,.28);
        transform:translate3d(-105%,0,0);
        transition:transform .22s ease,visibility .22s ease;
        visibility:hidden;
        pointer-events:none;
        overflow:hidden;
    }

    body.leep-pc-nav-open .leep-pc-sidebar{
        transform:translate3d(0,0,0);
        visibility:visible;
        pointer-events:auto;
    }

    body.leep-pc-nav-open .leep-pc-mobile-backdrop{
        display:block!important;
        pointer-events:auto;
    }

    .leep-pc-mobile-backdrop[hidden]{
        display:none!important;
    }

    .leep-pc-sidebar-close{
        position:absolute;
        top:11px;
        right:11px;
        z-index:4;
        width:38px;
        height:38px;
        display:flex!important;
        align-items:center;
        justify-content:center;
        padding:0!important;
        border:1px solid #d7deea!important;
        border-radius:10px!important;
        background:#fff!important;
        color:#18212f!important;
        font-size:25px;
        line-height:1;
        cursor:pointer;
        touch-action:manipulation;
    }

    .leep-pc-brand{
        padding-right:58px!important;
    }

    .leep-pc-nav{
        display:block!important;
        flex:1 1 auto;
        min-height:0;
        padding:10px 10px 22px;
        overflow-y:auto!important;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain;
        touch-action:pan-y;
    }

    .leep-pc-nav-label{
        display:block!important;
        grid-column:auto!important;
        margin:16px 12px 7px;
    }

    .leep-pc-nav a{
        position:relative;
        z-index:2;
        width:100%;
        min-height:46px;
        display:flex!important;
        align-items:center;
        margin:4px 0;
        padding:11px 12px!important;
        pointer-events:auto!important;
        touch-action:manipulation;
        -webkit-tap-highlight-color:rgba(15,108,189,.12);
    }

    .leep-pc-nav a:active{
        background:#e9f3ff!important;
        border-color:#c7def8!important;
    }

    .leep-pc-header{
        position:sticky!important;
        top:0;
        z-index:100;
        min-height:64px;
        height:auto;
        padding:9px 12px;
        flex-wrap:nowrap;
        background:rgba(255,255,255,.98);
    }

    .leep-pc-header-title{
        flex:1;
        min-width:0;
    }

    .leep-pc-menu-button{
        width:auto!important;
        min-width:78px;
        height:42px;
        display:inline-flex!important;
        align-items:center;
        justify-content:center;
        gap:7px;
        flex:0 0 auto;
        padding:0 12px!important;
        border:1px solid #0f6cbd!important;
        border-radius:11px!important;
        background:#0f6cbd!important;
        color:#fff!important;
        box-shadow:0 4px 12px rgba(15,108,189,.20)!important;
        font-size:13px;
        font-weight:750;
        cursor:pointer;
        touch-action:manipulation;
    }

    .leep-pc-menu-button:hover,
    .leep-pc-menu-button:active{
        background:#115ea3!important;
        color:#fff!important;
    }

    .leep-pc-menu-icon{
        font-size:18px;
        line-height:1;
    }

    .leep-pc-menu-label{
        display:inline!important;
        color:inherit!important;
        font-size:12px!important;
        font-weight:800!important;
    }

    .leep-pc-menu-button:focus-visible,
    .leep-pc-sidebar-close:focus-visible{
        outline:3px solid rgba(15,108,189,.25);
        outline-offset:2px;
    }

    .leep-pc-header-actions{
        flex:0 0 auto;
        margin-left:6px;
    }

    .leep-pc-search,
    .leep-pc-health-pill{
        display:none!important;
    }

    .leep-pc-user{
        padding-left:0;
        margin-left:0;
        border-left:0;
    }

    .leep-pc-user>div:not(.leep-pc-avatar){
        display:none;
    }

    .leep-pc-content{
        width:100%;
        padding:18px 14px 28px;
        overflow-x:hidden;
    }

    .leep-pc-page-intro,
    .leep-dashboard-hero{
        display:block;
    }

    .leep-dashboard-hero{
        padding:22px 18px;
    }

    .leep-dashboard-summary{
        min-width:0;
        margin-top:18px;
    }

    .leep-dashboard-layout,
    .leep-dashboard-actions{
        grid-template-columns:1fr;
    }

    .leep-maash-float{
        right:14px;
        bottom:14px;
    }
}

@media(max-width:560px){
    .leep-pc-sidebar{
        width:min(92vw,320px)!important;
    }

    .leep-pc-content{
        padding:14px 10px 24px;
    }

    .leep-pc-calendar{
        padding:16px 10px 24px;
    }

    .leep-pc-header{
        padding:8px 9px;
    }

    .leep-pc-header h1,
    .leep-pc-header p{
        max-width:38vw;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .leep-pc-header h1{
        font-size:15px;
    }

    .leep-dashboard-kpis{
        grid-template-columns:1fr;
    }
}

@media(min-width:861px){
    .leep-pc-menu-button,
    .leep-pc-sidebar-close,
    .leep-pc-mobile-backdrop{
        display:none!important;
    }
}


/* ==========================================================
   LEEP first-time PWA installation guidance
   ========================================================== */

.leep-pwa-install-overlay{
    position:fixed;
    inset:0;
    z-index:10050;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(15,23,42,.58);
    -webkit-backdrop-filter:blur(4px);
    backdrop-filter:blur(4px);
}

.leep-pwa-install-overlay[hidden]{
    display:none!important;
}

.leep-pwa-install-dialog{
    width:min(460px,100%);
    padding:26px;
    border:1px solid #dbe5ef;
    border-radius:22px;
    background:#fff;
    box-shadow:0 28px 80px rgba(15,23,42,.28);
    font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    color:#18212f;
}

.leep-pwa-install-icon{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:16px;
    border:1px solid #cfe0f5;
    border-radius:16px;
    background:linear-gradient(135deg,#dbeafe,#eef6ff);
    color:#0f6cbd;
    font-size:28px;
}

.leep-pwa-install-dialog h2{
    margin:0 0 9px;
    color:#101828;
    font-size:24px;
    line-height:1.2;
}

.leep-pwa-install-dialog p{
    margin:0;
    color:#667085;
    font-size:13px;
    line-height:1.6;
}

.leep-pwa-install-benefits{
    display:grid;
    gap:8px;
    margin:18px 0 20px;
}

.leep-pwa-install-benefit{
    display:flex;
    align-items:flex-start;
    gap:9px;
    color:#344054;
    font-size:12px;
    line-height:1.45;
}

.leep-pwa-install-benefit span:first-child{
    color:#107c10;
    font-weight:900;
}

.leep-pwa-install-actions{
    display:grid;
    gap:9px;
}

.leep-pwa-install-actions button{
    width:100%;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:800!important;
    cursor:pointer;
    touch-action:manipulation;
}

.leep-pwa-install-now{
    border:1px solid #0f6cbd!important;
    background:#0f6cbd!important;
    color:#fff!important;
    box-shadow:0 8px 18px rgba(15,108,189,.22)!important;
}

.leep-pwa-install-now:hover,
.leep-pwa-install-now:active{
    background:#115ea3!important;
}

.leep-pwa-install-later{
    border:1px solid #cbd5e1!important;
    background:#fff!important;
    color:#344054!important;
}

.leep-pwa-install-never{
    min-height:34px!important;
    border:0!important;
    background:transparent!important;
    color:#667085!important;
    font-size:11px!important;
    box-shadow:none!important;
}

.leep-pwa-install-note{
    margin-top:14px!important;
    color:#98a2b3!important;
    font-size:10px!important;
    text-align:center;
}

@media(max-width:560px){
    .leep-pwa-install-overlay{
        align-items:flex-end;
        padding:12px;
    }

    .leep-pwa-install-dialog{
        padding:22px 18px 18px;
        border-radius:20px;
    }

    .leep-pwa-install-dialog h2{
        font-size:21px;
    }
}
