:root{
    --green:#0f7a52;
    --green2:#15986d;
    --dark:#08251d;
    --soft:#f3fbf7;
    --line:#e3eee9;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f6f8f7;
    color:#10231e;
    font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.app-shell{
    display:flex;
    min-height:100vh;
}

/* MENU LATERAL DESKTOP */
.sidebar{
    width:270px;
    background:linear-gradient(180deg,#083b2b,#0f7a52);
    color:#fff;
    padding:22px;
    position:fixed;
    inset:0 auto 0 0;
    overflow:auto;
    z-index:100;
}

.brand{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:24px;
}

.logo{
    width:52px;
    height:52px;
    border-radius:18px;
    background:#fff;
    color:var(--green);
    display:grid;
    place-items:center;
    font-weight:900;
}

.brand small{
    display:block;
    color:#cfeee3;
}

.nav-menu{
    display:grid;
    gap:8px;
}

.nav-menu a{
    color:#ecfff8;
    text-decoration:none;
    padding:13px 14px;
    border-radius:16px;
    font-weight:700;
}

.nav-menu a:hover,
.nav-menu a.active{
    background:rgba(255,255,255,.15);
}

/* CONTEÚDO */
.content{
    margin-left:270px;
    padding:26px;
    width:calc(100% - 270px);
    padding-bottom:90px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    margin-bottom:22px;
}

.topbar h1{
    font-size:28px;
    margin:0;
    font-weight:900;
}

.topbar p{
    margin:4px 0 0;
    color:#6b7b75;
}

.user-pill{
    background:#fff;
    border:1px solid var(--line);
    padding:10px 14px;
    border-radius:18px;
    font-weight:800;
}

.user-pill span{
    display:block;
    font-size:12px;
    color:#6b7b75;
}

/* CARDS E COMPONENTES */
.card-app{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:0 14px 40px rgba(8,37,29,.06);
    padding:20px;
}

.stat{
    padding:18px;
    border-radius:22px;
    background:#fff;
    border:1px solid var(--line);
    min-height:120px;
}

.stat small{
    color:#6b7b75;
    font-weight:800;
}

.stat strong{
    display:block;
    font-size:26px;
    margin-top:8px;
}

.btn-green{
    background:var(--green);
    border-color:var(--green);
    color:#fff;
}

.btn-green:hover{
    background:#0b6040;
    color:#fff;
}

.btn-touch{
    min-height:48px;
    border-radius:16px;
    font-weight:800;
}

.form-control,
.form-select{
    border-radius:14px;
    min-height:46px;
}

.table{
    vertical-align:middle;
}

.badge-soft{
    background:#e8f7f0;
    color:#0f7a52;
    border-radius:999px;
    padding:7px 10px;
    font-weight:800;
}

.login-bg{
    min-height:100vh;
    background:linear-gradient(135deg,#073a2b,#18a574);
    display:grid;
    place-items:center;
    padding:20px;
}

.login-card{
    width:min(520px,100%);
    background:#fff;
    border-radius:30px;
    padding:34px;
    box-shadow:0 30px 80px rgba(0,0,0,.22);
}

.pdv-grid{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:18px;
}

.product-result{
    border:1px solid var(--line);
    border-radius:18px;
    padding:12px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:10px;
}

/* BLOQUEIA MENUS ANTIGOS */
.bottom-nav,
.mobile-menu-btn,
.mobile-full-menu{
    display:none!important;
}

/* MENU MOBILE NOVO */
.fab-menu,
.mobile-menu-float,
.mobile-drawer,
.mobile-drawer-overlay,
.mobile-overlay{
    display:none;
}

/* MOBILE */
@media(max-width:900px){
    .sidebar{
        display:none!important;
    }

    .content{
        margin-left:0!important;
        width:100%!important;
        padding:16px 14px 38px!important;
    }

    .topbar{
        align-items:flex-start;
    }

    .topbar h1{
        font-size:26px;
    }

    .topbar p{
        font-size:17px;
    }

    .user-pill{
        font-size:13px;
        padding:10px 14px;
    }

    .pdv-grid{
        grid-template-columns:1fr;
    }

    .bottom-nav,
    .mobile-menu-btn,
    .mobile-full-menu{
        display:none!important;
        visibility:hidden!important;
        height:0!important;
        overflow:hidden!important;
    }

    .fab-menu,
    .mobile-menu-float{
        display:flex!important;
        position:fixed;
        right:18px;
        bottom:25px;
        width:62px;
        height:62px;
        border-radius:50%;
        border:none;
        background:linear-gradient(135deg,#0f7a52,#15986d);
        color:#fff;
        font-size:30px;
        font-weight:900;
        align-items:center;
        justify-content:center;
        box-shadow:0 12px 35px rgba(0,0,0,.28);
        z-index:99999;
    }

    .mobile-drawer-overlay,
    .mobile-overlay{
        display:none!important;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        z-index:99998;
    }

    .mobile-drawer-overlay.show,
    .mobile-overlay.show{
        display:block!important;
    }

    .mobile-drawer{
        display:flex!important;
        position:fixed;
        top:0;
        right:-100%;
        width:84%;
        max-width:360px;
        height:100vh;
        background:#fff;
        z-index:100000;
        flex-direction:column;
        padding:20px;
        gap:9px;
        transition:.3s ease;
        overflow-y:auto;
        box-shadow:-12px 0 35px rgba(0,0,0,.25);
        border-radius:24px 0 0 24px;
    }

    .mobile-drawer.show{
        right:0;
    }

    .drawer-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        border-bottom:1px solid var(--line);
        padding-bottom:14px;
        margin-bottom:10px;
    }

    .drawer-header strong{
        display:block;
        font-size:24px;
        font-weight:900;
        color:#08251d;
    }

    .drawer-header small{
        display:block;
        color:#6b7b75;
        font-weight:700;
    }

    .drawer-header button{
        border:0;
        background:#eef7f2;
        color:#0f7a52;
        font-size:30px;
        border-radius:14px;
        width:46px;
        height:46px;
        line-height:1;
        font-weight:700;
    }

    .mobile-drawer a{
        display:block;
        text-decoration:none!important;
        color:#0f7a52!important;
        background:#f3fbf7;
        padding:14px 16px;
        border-radius:16px;
        font-weight:800;
        font-size:16px;
    }

    .mobile-drawer a:hover{
        background:#e1f3eb;
    }

    .mobile-drawer a.text-danger{
        color:#c62828!important;
        background:#fff1f1;
    }
}

/* RELATÓRIOS E IMPRESSÃO */
.report-header{
    display:none;
    text-align:center;
    margin-bottom:18px;
}

.table-report th{
    background:#e8f7f0!important;
}

.thermal{
    max-width:80mm;
    margin:auto;
    font-family:monospace;
    font-size:12px;
}

.thermal-58{
    max-width:58mm;
}

.thermal .center{
    text-align:center;
}

.dash{
    border-top:1px dashed #333;
    margin:7px 0;
}

.action-bar{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.excel-note{
    font-size:12px;
    color:#6b7b75;
}

@media print{
    .report-header{
        display:block;
    }

    .no-print,
    .sidebar,
    .topbar,
    .bottom-nav,
    .fab-menu,
    .mobile-menu-float,
    .mobile-drawer,
    .mobile-drawer-overlay,
    .mobile-overlay{
        display:none!important;
    }

    .content{
        margin:0!important;
        width:100%!important;
        padding:0!important;
    }

    .card-app{
        border:0!important;
        box-shadow:none!important;
    }

    .thermal{
        max-width:80mm;
    }

    .thermal-58{
        max-width:58mm;
    }

    body{
        background:#fff!important;
    }
}