body{
    background:#F4F7FB;
    color:#263238;
}

.app-shell{
    min-height:100vh;
    display:flex;
}

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

.sidebar{
    width:240px;
    flex:0 0 240px;
    background:#063A78;
    color:#fff;
    display:flex;
    flex-direction:column;

    height:100vh;
    min-height:100vh;

    padding:20px 14px;

    position:fixed;
    left:0;
    top:0;
    bottom:0;

    z-index:20;

    box-sizing:border-box;
}

/* ============================================================
   MARCA
   ============================================================ */

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:4px 8px 24px;

    flex-shrink:0;
}

.brand-mark{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#fff;
    color:#0756B8;
    display:grid;
    place-items:center;
    font-size:22px;
    font-weight:800;
    position:relative;
    overflow:hidden;
    flex:0 0 auto;
}

.brand-mark-fallback{
    position:relative;
    z-index:1;
}

.brand-mark-logo{
    position:absolute;
    inset:0;
    z-index:2;
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:center;
    box-sizing:border-box;
    padding:0;
    border-radius:inherit;
    background:#fff;
    opacity:0;
    transition:opacity .12s ease;
}

.brand strong,
.brand span{
    display:block;
}

.brand strong{
    font-size:18px;
}

.brand span{
    font-size:12px;
    opacity:.75;
}

/* ============================================================
   MENU LATERAL
   ============================================================ */

.menu{
    display:flex;
    flex-direction:column;
    gap:7px;

    flex:1 1 auto;
    min-height:0;

    overflow-y:auto;
    overflow-x:hidden;

    padding:2px 2px 10px;

    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.35) transparent;
}

.menu::-webkit-scrollbar{
    width:6px;
}

.menu::-webkit-scrollbar-track{
    background:transparent;
}

.menu::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.35);
    border-radius:10px;
}

.menu::-webkit-scrollbar-thumb:hover{
    background:rgba(255,255,255,.55);
}

/* ============================================================
   LINKS
   ============================================================ */

.menu a,
.menu-disabled{
    min-height:46px;
    flex:0 0 46px;

    border-radius:12px;
    padding:0 13px;

    display:flex;
    align-items:center;
    gap:11px;

    font-size:14px;

    box-sizing:border-box;
}

.menu a{
    color:#fff;
    text-decoration:none;
}

.menu a:hover,
.menu a.active{
    background:#1687E8;
}

.menu-disabled{
    opacity:.55;
    cursor:not-allowed;
}

.menu-disabled small{
    margin-left:auto;
    font-size:9px;
}

/* ============================================================
   �REA INFERIOR - SAIR
   ============================================================ */

.sidebar-bottom{
    flex:0 0 auto;

    margin-top:8px;
    padding:8px 8px 0;

    border-top:1px solid rgba(255,255,255,.12);
}

.logout-link{
    display:block;

    padding:12px;

    border-radius:10px;

    background:rgba(255,255,255,.08);

    text-align:center;

    color:#fff;
    text-decoration:none;

    font-weight:600;
}

.logout-link:hover{
    background:rgba(255,255,255,.18);
}

/* ============================================================
   CONTE�DO PRINCIPAL
   ============================================================ */

.main-content{
    width:calc(100% - 240px);
    margin-left:240px;
    min-height:100vh;
}

.topbar{
    height:82px;

    background:linear-gradient(120deg,#063A78,#1687E8);

    color:#fff;

    padding:0 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;
}

.topbar h1{
    font-size:20px;
}

.eyebrow{
    font-size:10px;
    letter-spacing:1.2px;
    opacity:.72;
    font-weight:700;
}

/* ============================================================
   USU�RIO
   ============================================================ */

.user-box{
    display:flex;
    align-items:center;
    gap:10px;
}

.avatar{
    width:38px;
    height:38px;

    border-radius:50%;

    background:#fff;
    color:#0756B8;

    display:grid;
    place-items:center;

    font-weight:800;
}

.user-info strong,
.user-info span{
    display:block;
}

.user-info strong{
    font-size:13px;
}

.user-info span{
    font-size:11px;
    opacity:.8;
}

.menu-toggle{
    display:none;

    border:0;
    background:transparent;
    color:#fff;

    font-size:24px;

    cursor:pointer;
}

/* ============================================================
   P�GINA
   ============================================================ */

.page{
    padding:30px;
    max-width:1500px;
    margin:auto;
}

.page-heading{
    margin-bottom:24px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    width:100%;
}

.page-heading > div:first-child{
    flex:1 1 auto;
    min-width:0;
}

.page-heading h2{
    font-size:28px;
    line-height:1.2;
    margin:5px 0 7px;
}

.page-heading p{
    color:#6B7280;
    font-size:14px;
    line-height:1.5;
    margin:0;
}

.page-heading > .btn,
.page-heading > .actions{
    flex:0 0 auto;
    margin-top:4px;
}

@media(max-width:760px){
    .page-heading{
        flex-direction:column;
        align-items:stretch;
        gap:14px;
    }

    .page-heading > .btn{
        align-self:flex-start;
        margin-top:0;
    }

    .page-heading > .actions{
        width:100%;
        margin-top:0;
    }
}

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

.section-card{
    background:#fff;
    border-radius:18px;
    padding:22px;

    box-shadow:0 7px 25px rgba(6,58,120,.06);

    margin-top:22px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:18px;
}

.section-title h3{
    font-size:18px;
}

.section-title p{
    font-size:12px;
    color:#6B7280;
    margin-top:4px;
}

/* ============================================================
   BOT�ES
   ============================================================ */

.btn{
    border:0;
    border-radius:11px;

    padding:12px 18px;

    font-weight:700;
    cursor:pointer;
}

.btn-primary{
    background:#0756B8;
    color:#fff;
}

.btn-primary:hover{
    background:#063A78;
}

.btn-full{
    width:100%;
}

/* ============================================================
   ALERTAS
   ============================================================ */

.alert{
    padding:13px 15px;
    border-radius:11px;

    margin-bottom:18px;

    font-size:14px;
}

.alert-error{
    background:#FDECEC;
    color:#B71C1C;
}

.alert-success{
    background:#EAF8EF;
    color:#18723B;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer{
    padding:20px 30px;

    color:#6B7280;

    font-size:11px;

    display:flex;
    justify-content:space-between;
}

.badge{
    display:inline-block;

    background:#EEF4FB;
    color:#0756B8;

    border-radius:999px;

    padding:5px 9px;

    font-size:10px;
    font-weight:700;
}

.status{
    font-size:12px;
    font-weight:700;
}

.status.ok{
    color:#18723B;
}

.status.off{
    color:#B71C1C;
}

/* ============================================================
   BOT�O ALTERAR SENHA
   ============================================================ */

.user-name-row{
    display:flex;
    align-items:center;
    gap:2px;
}

.change-password-btn{
    width:30px;
    height:30px;

    padding:5px;
    margin-left:4px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border:0;
    border-radius:8px;

    background:transparent;

    color:#777;

    cursor:pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.change-password-btn:hover{
    color:#0756B8;

    background:
        rgba(7,86,184,.08);
}

.change-password-btn:focus{
    outline:none;
}

.change-password-btn svg{
    display:block;

    width:18px;
    height:18px;
}

/* ============================================================
   MODAL ALTERAR SENHA
   ============================================================ */

.password-modal-overlay{
    position:fixed;

    inset:0;

    z-index:99999;

    display:none;

    align-items:center;
    justify-content:center;

    padding:20px;

    box-sizing:border-box;

    background:
        rgba(0,0,0,.45);

    backdrop-filter:blur(3px);

    -webkit-backdrop-filter:blur(3px);
}

.password-modal-overlay.active{
    display:flex;
}

/* ============================================================
   CAIXA DO MODAL
   ============================================================ */

.password-modal{
    position:relative;

    width:100%;
    max-width:420px;

    box-sizing:border-box;

    padding:28px;

    background:#fff;

    border-radius:20px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.18);

    animation:
        passwordModalOpen .2s ease-out;
}

@keyframes passwordModalOpen{

    from{
        opacity:0;

        transform:
            translateY(10px)
            scale(.98);
    }

    to{
        opacity:1;

        transform:
            translateY(0)
            scale(1);
    }
}

/* ============================================================
   BOT�O FECHAR
   ============================================================ */

.password-modal-close{
    position:absolute;

    top:12px;
    right:14px;

    width:32px;
    height:32px;

    padding:0;

    border:0;

    border-radius:8px;

    background:transparent;

    color:#777;

    font-size:26px;

    line-height:1;

    cursor:pointer;
}

.password-modal-close:hover{
    background:#f3f3f3;
    color:#333;
}

/* ============================================================
   �CONE DO MODAL
   ============================================================ */

.password-modal-icon{
    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:14px;

    border-radius:14px;

    /*
     * O cadeado permanece BRANCO.
     */
    color:#FFFFFF;

    /*
     * Fundo seguindo o azul do sistema.
     */
    background:
        rgba(7,86,184,.10);
}

.password-modal-icon svg{
    display:block;

    width:26px;
    height:26px;
}

/* ============================================================
   T�TULO
   ============================================================ */

.password-modal h2{
    margin:0 0 6px;

    font-size:22px;

    line-height:1.3;
}

.password-modal-description{
    margin:0 0 22px;

    color:#777;

    font-size:14px;
}

/* ============================================================
   CAMPOS
   ============================================================ */

.password-modal .form-group{
    margin-bottom:16px;
}

.password-modal .form-group label{
    display:block;

    margin-bottom:7px;

    font-size:14px;

    font-weight:600;
}

.password-modal .form-group input{
    width:100%;

    min-height:46px;

    box-sizing:border-box;

    padding:10px 13px;

    border:
        1px solid #ddd;

    border-radius:12px;

    background:#fff;

    font-size:15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

/*
 * FOCO DO CAMPO
 * Agora usa o azul principal do sistema.
 */

.password-modal .form-group input:focus{
    outline:none;

    border-color:#0756B8;

    box-shadow:
        0 0 0 3px
        rgba(7,86,184,.10);
}

.password-modal .form-group small{
    display:block;

    margin-top:5px;

    color:#888;

    font-size:12px;
}

/* ============================================================
   BOT�ES DO MODAL
   ============================================================ */

.password-modal-actions{
    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:24px;
}

.password-modal-actions button{
    min-height:42px;

    padding:0 18px;

    border-radius:11px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;
}

/* ============================================================
   BOT�O CANCELAR
   ============================================================ */

.password-modal-actions .btn-secondary{
    border:
        1px solid #ddd;

    background:#fff;

    color:#555;
}

.password-modal-actions .btn-secondary:hover{
    background:#f6f6f6;
}

/* ============================================================
   BOT�O ALTERAR SENHA
   * AZUL DO SISTEMA
   ============================================================ */

.password-modal-actions .btn-primary{
    border:0;

    background:#0756B8;

    color:#fff;

    box-shadow:
        0 4px 12px
        rgba(7,86,184,.20);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .1s ease;
}

.password-modal-actions .btn-primary:hover{
    background:#063A78;

    box-shadow:
        0 5px 14px
        rgba(6,58,120,.25);
}

.password-modal-actions .btn-primary:active{
    transform:translateY(1px);
}

/* ============================================================
   CELULAR
   ============================================================ */

@media(max-width:800px){

    .sidebar{
        width:240px;
        flex:0 0 240px;

        transform:translateX(-100%);

        transition:transform .2s ease;

        box-shadow:8px 0 25px rgba(0,0,0,.18);
    }

    .sidebar.open{
        transform:translateX(0);
    }

    .main-content{
        width:100%;
        margin-left:0;
    }

    .topbar{
        height:70px;
        padding:0 16px;
    }

    .menu-toggle{
        display:block;
    }

    .user-info{
        display:none;
    }

    .page{
        padding:20px 14px;
    }

    .footer{
        padding:18px 14px;
    }

    .two-columns{
        grid-template-columns:1fr!important;
    }
}

/* ============================================================
   CELULAR - MODAL
   ============================================================ */

@media(max-width:480px){

    .password-modal{
        padding:24px 20px;

        border-radius:18px;
    }

    .password-modal-actions{
        flex-direction:column-reverse;
    }

    .password-modal-actions button{
        width:100%;
    }
}
/* ============================================================
   VISUAL PROFISSIONAL 2026 - MENU E TOPBAR
   ============================================================ */
:root{--sidebar:#073a73;--sidebar-dark:#052e5d;--sidebar-section:#052f60;--sidebar-active:#1687e8;--text:#102a48;--muted:#607089;--line:#e7edf5}
body,button,input,select,textarea{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}.sidebar{width:252px;flex-basis:252px;background:linear-gradient(180deg,#073b75 0%,#06366a 100%);padding:18px 14px}.main-content{width:calc(100% - 252px);margin-left:252px}.brand{padding:2px 10px 26px;gap:12px}.brand-mark{width:46px;height:46px;border-radius:12px;font-size:22px}.brand strong{font-size:17px;line-height:1.15}.brand span{font-size:12px;opacity:.82;margin-top:3px}.menu{gap:5px;padding:0 0 10px}.menu-link,.menu-parent{min-height:44px;border-radius:11px;padding:0 12px;color:#fff!important;box-sizing:border-box;font-size:14px;font-weight:500;transition:background .18s ease,transform .18s ease}.menu-link{display:flex!important;align-items:center;gap:12px}.menu-link:hover,.menu-parent:hover{background:rgba(255,255,255,.08)}.menu-link.active,.menu-parent.active{background:linear-gradient(90deg,#1687e8,#0e79dd);box-shadow:0 7px 18px rgba(0,0,0,.12);font-weight:700}.nav-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.98}.menu-parent-content{gap:12px}.menu-section-title{margin:11px 0 5px;padding:10px 12px;border-radius:9px;background:rgba(2,30,64,.58);color:#d5e6fb;text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:800}.menu-arrow{font-size:16px;color:#dce9f8}.submenu{margin:3px 0 5px;padding:3px 0 3px 40px;border-left:1px solid rgba(255,255,255,.12)}.submenu a{min-height:34px;padding:7px 10px;border-radius:8px;color:#dbe8f7!important;font-size:12px}.submenu a:hover,.submenu a.active{background:rgba(255,255,255,.08);color:#fff!important}.sidebar-bottom{padding:10px 8px 0}.logout-link{padding:13px 12px;border-radius:11px;background:rgba(255,255,255,.09);font-weight:700}.topbar{height:72px;background:#fff;color:var(--text);padding:0 28px;border-bottom:1px solid var(--line);box-shadow:0 3px 14px rgba(15,42,76,.035)}.topbar-search-wrap{position:relative;width:min(430px,42vw)}.topbar-search{width:100%;height:44px;border:0;outline:0;background:#f1f5f9;border-radius:24px;padding:0 18px 0 45px;color:var(--text);font-size:13px}.topbar-search::placeholder{color:#7a8ba1}.topbar-search-icon{position:absolute;left:16px;top:12px;width:20px;height:20px;fill:none;stroke:#133a68;stroke-width:1.8}.notification-link{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;text-decoration:none;background:#f4f7fb;color:#123b6b;font-size:17px}.avatar{background:#264f84;color:#fff;width:40px;height:40px}.user-info strong{font-size:13px;color:#132d4d}.user-info span{font-size:11px;color:#607089;opacity:1}.change-password-btn{color:#0c63bd}.menu-toggle{color:#0b376c}.page{padding:26px 30px;max-width:none}.page-heading .eyebrow{color:#536983;opacity:1}.page-heading h2{color:#102a48;font-size:30px}.section-card{border:1px solid #edf1f6;box-shadow:0 8px 28px rgba(28,58,94,.055)}
@media(max-width:900px){.topbar-search-wrap{width:min(360px,55vw)}}
@media(max-width:700px){.sidebar{width:252px;transform:translateX(-100%);transition:transform .22s ease}.sidebar.open{transform:translateX(0)}.main-content{width:100%;margin-left:0}.menu-toggle{display:block}.topbar{padding:0 14px}.topbar-search-wrap{display:none}.page{padding:20px 16px}.user-info{display:none}}

/* Submenu Alertas */
.nav-alertas>summary{list-style:none;cursor:pointer}
.nav-alertas>summary::-webkit-details-marker{display:none}
.nav-alertas .nav-chevron{margin-left:auto;font-size:20px;transition:transform .2s}
.nav-alertas[open] .nav-chevron{transform:rotate(90deg)}
.nav-alertas .submenu{padding:4px 0 7px 42px}
.nav-alertas .submenu a{display:block;padding:8px 12px;margin:2px 8px 2px 0;border-radius:8px;color:rgba(255,255,255,.72);font-size:13px;text-decoration:none}
.nav-alertas .submenu a:hover,.nav-alertas .submenu a.active{background:rgba(255,255,255,.09);color:#fff}


/* Logo da empresa no menu lateral - limite rígido para evitar vazamento */
.brand .brand-mark{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    flex:0 0 46px !important;
    overflow:hidden !important;
    position:relative !important;
}
.brand .brand-mark > img.brand-mark-logo{
    position:absolute !important;
    inset:0 !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}
