/* =========================================================
   PXCORE V2 - PREMIUM AZUL
========================================================= */

:root{
    --primary:#448aff;
    --primary-dark:#2367d8;
    --primary-deep:#1f5fc9;
    --header-blue:#3f68a3;
    --body-bg:#eff5f7;
    --card-bg:#ffffff;
    --border:#dbe4ea;
    --text:#455a64;
    --title:#2f4354;
    --muted:#78909c;
    --success:#11c15b;
    --danger:#ff5252;
    --warning:#ffe100;
    --info:#00bcd4;
    --shadow:0 1px 20px rgba(69,90,100,.08);
    --shadow-hover:0 12px 32px rgba(69,90,100,.13);
}

*{box-sizing:border-box}

html,body{
    margin:0;
    min-height:100%;
}

body{
    font-family:"Open Sans", Arial, Helvetica, sans-serif;
    font-size:14px;
    color:var(--text);
    background:var(--body-bg);
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

button,input,select,textarea{
    font-family:inherit;
}

*:focus{outline:none}

/* =========================================================
   LOGIN
========================================================= */

.gl-login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:
        radial-gradient(circle at top left, rgba(68,138,255,.22), transparent 32%),
        linear-gradient(135deg, #eff5f7 0%, #ffffff 100%);
}

.gl-login-card{
    width:100%;
    max-width:420px;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 24px 70px rgba(69,90,100,.22);
}

.gl-login-header{
    padding:34px 32px 28px;
    background:linear-gradient(135deg, var(--primary), var(--header-blue));
    color:#fff;
}

.gl-login-header h1{
    margin:0;
    font-size:30px;
    line-height:1.1;
    font-weight:700;
}

.gl-login-header p{
    margin:10px 0 0;
    font-size:14px;
    opacity:.9;
}

.gl-login-body{padding:30px}

.gl-form-group{margin-bottom:18px}

.gl-form-group label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
    color:var(--title);
}

.gl-form-group input,
.gl-form-group select,
.gl-form-group textarea{
    width:100%;
    min-height:46px;
    border-radius:4px;
    border:1px solid #ccd6dd;
    padding:0 14px;
    font-size:14px;
    color:var(--text);
    background:#fff;
    transition:.2s ease;
}

.gl-form-group input:focus,
.gl-form-group select:focus,
.gl-form-group textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(68,138,255,.12);
}

.gl-btn-login{
    width:100%;
    min-height:48px;
    border:none;
    border-radius:4px;
    background:var(--primary);
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s ease;
}

.gl-btn-login:hover{
    background:#77aaff;
    transform:translateY(-1px);
}

.gl-alert{
    margin-bottom:18px;
    padding:13px 15px;
    border-radius:4px;
    background:rgba(255,82,82,.1);
    border:1px solid rgba(255,82,82,.28);
    color:#d32f2f;
    font-size:14px;
}

.gl-login-footer{
    margin-top:18px;
    text-align:center;
    font-size:12px;
    color:var(--muted);
}

/* =========================================================
   SHELL
========================================================= */

body.gl-app{
    min-height:100vh;
    background:var(--body-bg);
    color:var(--text);
}

.gl-shell{
    min-height:100vh;
    display:flex;
}

.gl-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:80;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
}

.gl-overlay.show{
    opacity:1;
    visibility:visible;
}

/* =========================================================
   SIDEBAR PREMIUM AZUL
========================================================= */

.gl-sidebar{
    width:245px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    z-index:100;
    background:linear-gradient(180deg, #2f80ed 0%, #2367d8 55%, #1f5fc9 100%);
    color:#fff;
    box-shadow:12px 0 35px rgba(35,103,216,.22);
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.gl-sidebar-head{
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px 18px;
    border-bottom:1px solid rgba(255,255,255,.12);
    position:relative;
}

.gl-brand{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
}

.gl-brand-logo{
    width:112px;
    height:54px;
    border-radius:0;
    background:transparent;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.gl-brand-logo img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.gl-brand-text{display:none}

.gl-sidebar-close{
    position:absolute;
    right:12px;
    top:18px;
    width:34px;
    height:34px;
    display:none;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    color:#fff;
    background:rgba(255,255,255,.13);
    cursor:pointer;
}

.gl-menu{
    flex:1;
    padding:10px 10px 28px;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.gl-menu::-webkit-scrollbar{
    width:0;
    height:0;
}

.gl-menu-label{
    margin:16px 8px 8px;
    font-size:11px;
    font-weight:800;
    color:rgba(255,255,255,.66);
    text-transform:none;
    letter-spacing:.2px;
}

/* =========================================================
   MENU PRINCIPAL
========================================================= */

.gl-menu-link{
    width:100%;
    min-height:44px;
    border:0;
    border-radius:14px;
    padding:0 12px;
    margin:5px 0;
    display:flex;
    align-items:center;
    gap:11px;
    background:transparent;
    color:rgba(255,255,255,.92);
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    transition:.18s ease;
    position:relative;
}

.gl-menu-link:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
}

.gl-menu-link.active{
    background:rgba(255,255,255,.15);
    color:#fff;
    box-shadow:
        inset 4px 0 0 rgba(255,255,255,.88),
        0 10px 24px rgba(0,0,0,.08);
}

.gl-menu-link.active:before,
.gl-menu-link:hover:before{
    display:none;
}

.gl-menu-icon{
    width:30px;
    height:30px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:rgba(255,255,255,.15);
    flex:0 0 auto;
    font-size:14px;
    transition:.18s ease;
}

.gl-menu-icon svg,
.gl-menu-icon i{
    width:16px;
    height:16px;
    stroke-width:2.4;
}

.gl-menu-link:hover .gl-menu-icon,
.gl-menu-link.active .gl-menu-icon{
    background:rgba(255,255,255,.24);
}

.gl-menu-text{
    flex:1;
    text-align:left;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.gl-menu-arrow{
    font-size:11px;
    opacity:.75;
    transition:.18s ease;
}

.gl-menu-arrow svg,
.gl-menu-arrow i{
    width:14px;
    height:14px;
    stroke-width:2.4;
}

.gl-menu-group.open > .gl-menu-toggle{
    background:rgba(255,255,255,.12);
    color:#fff;
}

.gl-menu-group.open > .gl-menu-toggle .gl-menu-icon{
    background:rgba(255,255,255,.22);
}

.gl-menu-group.open > .gl-menu-toggle .gl-menu-arrow{
    transform:rotate(180deg);
}

/* =========================================================
   SUBMENU PREMIUM COM ÍCONES REAIS
========================================================= */

.gl-submenu{
    display:none;
    margin:6px 0 12px 42px;
    padding:6px 0 6px 12px;
    border-left:1px solid rgba(255,255,255,.18);
}

.gl-menu-group.open .gl-submenu{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.gl-submenu-link{
    min-height:36px;
    padding:6px 10px;
    display:flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,.82);
    font-size:12px;
    font-weight:700;
    border-radius:12px;
    transition:.18s ease;
    position:relative;
}

.gl-submenu-link:before,
.gl-submenu-link:after{
    display:none !important;
    content:none !important;
}

.gl-submenu-link i,
.gl-submenu-link svg{
    width:24px;
    height:24px;
    min-width:24px;
    border-radius:8px;
    background:rgba(255,255,255,.14);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px;
    stroke-width:2.5;
    transition:.18s ease;
}

.gl-submenu-link:hover,
.gl-submenu-link.active{
    color:#fff;
    background:rgba(255,255,255,.10);
}

.gl-submenu-link:hover i,
.gl-submenu-link.active i,
.gl-submenu-link:hover svg,
.gl-submenu-link.active svg{
    background:rgba(255,255,255,.24);
    transform:scale(1.04);
}

/* =========================================================
   MAIN / TOPBAR AZUL
========================================================= */

.gl-main{
    margin-left:245px;
    width:calc(100% - 245px);
    min-height:100vh;
}

.gl-topbar{
    min-height:60px;
    background:var(--primary);
    color:#fff;
    box-shadow:0 1px 2.94px .06px rgba(4,26,55,.16);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:8px 24px;
    position:sticky;
    top:0;
    z-index:60;
}

.gl-topbar-left,
.gl-topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.gl-icon-btn{
    width:40px;
    height:38px;
    border:0;
    background:transparent;
    color:#fff;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.2s ease;
    font-size:18px;
}

.gl-icon-btn:hover{
    background:rgba(255,255,255,.14);
}

.gl-page-title{
    margin:0;
    font-size:22px;
    line-height:1.1;
    font-weight:700;
    color:#fff;
}

.gl-page-subtitle{
    margin-top:4px;
    font-size:13px;
    color:rgba(255,255,255,.85);
}

.gl-tenant-pill{
    height:36px;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.12);
    border-radius:100px;
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
    font-size:13px;
    font-weight:600;
}

.gl-tenant-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--success);
    box-shadow:0 0 0 4px rgba(17,193,91,.18);
}

.gl-user-menu{position:relative}

.gl-user-trigger{
    min-height:44px;
    border:0;
    background:transparent;
    color:#fff;
    border-radius:4px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 6px;
    cursor:pointer;
    transition:.2s ease;
}

.gl-user-trigger:hover{
    background:rgba(255,255,255,.12);
}

.gl-user-avatar,
.gl-user-img{
    width:40px;
    height:40px;
    border-radius:50%;
    flex:0 0 auto;
}

.gl-user-avatar{
    background:#fff;
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.gl-user-img{
    object-fit:cover;
    border:2px solid rgba(255,255,255,.75);
}

.gl-user-info{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.1;
}

.gl-user-info strong{
    font-size:14px;
    color:#fff;
    max-width:160px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.gl-user-info small{
    margin-top:4px;
    font-size:11px;
    color:rgba(255,255,255,.78);
    text-transform:capitalize;
}

.gl-user-chevron{
    font-size:11px;
    color:#fff;
}

.gl-user-dropdown{
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    width:220px;
    background:#fff;
    border-radius:5px;
    box-shadow:0 0 35px rgba(0,0,0,.25);
    padding:8px 0;
    display:none;
    z-index:200;
}

.gl-user-dropdown.show{display:block}

.gl-user-dropdown:before{
    content:"";
    position:absolute;
    top:-8px;
    right:22px;
    width:16px;
    height:16px;
    background:#fff;
    transform:rotate(45deg);
}

.gl-user-dropdown-item{
    min-height:42px;
    padding:0 18px;
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    font-size:14px;
    font-weight:500;
    position:relative;
    z-index:1;
}

.gl-user-dropdown-item:hover{
    background:#f1f1f1;
    color:var(--primary);
}

.gl-user-dropdown-item.danger{
    color:var(--danger);
}

/* =========================================================
   PAGE HEADER / CONTENT / CARDS
========================================================= */

.gl-page-hero{
    background:var(--header-blue);
    color:#fff;
    margin:-24px -24px 24px;
    padding:36px 42px;
    box-shadow:inset 0 -1px 0 rgba(0,0,0,.08);
}

.gl-page-hero h1{
    margin:0;
    font-size:28px;
    font-weight:700;
    color:#fff;
}

.gl-page-hero p{
    margin:10px 0 0;
    font-size:14px;
    color:rgba(255,255,255,.9);
    font-weight:600;
}

.gl-content{padding:24px}

.gl-card{
    background:#fff;
    border:none;
    border-radius:5px;
    box-shadow:var(--shadow);
    margin-bottom:24px;
    overflow:hidden;
    transition:.2s ease;
}

.gl-card:hover{box-shadow:var(--shadow-hover)}

.gl-card-header{
    padding:20px;
    background:#fff;
    border-bottom:none;
    box-shadow:0 1px 20px rgba(69,90,100,.08);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.gl-card-title{
    margin:0;
    color:var(--title);
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    position:relative;
    padding-left:14px;
}

.gl-card-title:before{
    content:"";
    position:absolute;
    left:0;
    top:1px;
    width:4px;
    height:20px;
    background:var(--primary);
}

.gl-card-subtitle{
    margin-top:5px;
    font-size:13px;
    color:var(--muted);
}

.gl-card-body{padding:20px}

.gl-kpi-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.gl-kpi-card{
    background:#fff;
    border:none;
    border-radius:5px;
    box-shadow:var(--shadow);
    padding:18px;
    border-left:4px solid var(--primary);
}

.gl-kpi-label{
    font-size:12px;
    color:var(--muted);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.4px;
}

.gl-kpi-value{
    margin-top:10px;
    font-size:22px;
    font-weight:700;
    color:var(--title);
    word-break:break-word;
}

/* =========================================================
   FORM / BUTTONS / COLORS
========================================================= */

.gl-btn{
    min-height:38px;
    border:1px solid transparent;
    border-radius:2px;
    padding:8px 14px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.2s ease;
}

.gl-btn-primary{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.gl-btn-primary:hover{
    background:#77aaff;
    border-color:#77aaff;
    color:#fff;
}

.gl-btn-danger{
    background:var(--danger);
    border-color:var(--danger);
    color:#fff;
}

.gl-btn-success{
    background:var(--success);
    border-color:var(--success);
    color:#fff;
}

.gl-input,
.gl-select,
.gl-textarea{
    width:100%;
    min-height:40px;
    border:1px solid #cccccc;
    border-radius:2px;
    background:#fff;
    color:var(--text);
    padding:8px 12px;
    font-size:14px;
    transition:.2s ease;
}

.gl-input:focus,
.gl-select:focus,
.gl-textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(68,138,255,.12);
}

.text-c-blue{ color:#448aff !important; }
.text-c-red{ color:#ff5252 !important; }
.text-c-green{ color:#11c15b !important; }
.text-c-yellow{ color:#ffe100 !important; }
.text-c-purple{ color:#536dfe !important; }

.bg-c-blue{ background:#448aff !important; color:#fff; }
.bg-c-red{ background:#ff5252 !important; color:#fff; }
.bg-c-green{ background:#11c15b !important; color:#fff; }
.bg-c-yellow{ background:#ffe100 !important; color:#fff; }
.bg-c-purple{ background:#536dfe !important; color:#fff; }

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width:980px){
    .gl-sidebar{
        transform:translateX(-105%);
        transition:.25s ease;
    }

    body.sidebar-open .gl-sidebar{
        transform:translateX(0);
    }

    body.sidebar-open .gl-overlay{
        opacity:1;
        visibility:visible;
    }

    .gl-sidebar-close{
        display:flex;
    }

    .gl-main{
        margin-left:0;
        width:100%;
    }
}

@media (max-width:760px){
    .gl-topbar{
        align-items:flex-start;
        flex-direction:column;
        padding:12px 16px;
    }

    .gl-topbar-left,
    .gl-topbar-right{
        width:100%;
        justify-content:space-between;
    }

    .gl-tenant-pill{
        display:none;
    }

    .gl-content{
        padding:16px;
    }

    .gl-page-hero{
        margin:-16px -16px 18px;
        padding:28px 22px;
    }

    .gl-kpi-grid{
        grid-template-columns:1fr;
    }

    .gl-user-info{
        display:none;
    }
}

/* Ajuste para exibir Programação de Puxada completo */
.gl-sidebar{
    width:270px;
}

.gl-main{
    margin-left:270px;
    width:calc(100% - 270px);
}

.gl-menu-link{
    padding:0 12px;
    gap:10px;
    font-size:13px;
}

.gl-menu-text{
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
}

@media (max-width:980px){
    .gl-main{
        margin-left:0;
        width:100%;
    }
}

/* =========================================================
   TOPBAR + SIDEBAR COLLAPSED PREMIUM
   Cole no final do assets/css/app.css
========================================================= */

.gl-topbar{
    min-height:60px;
    background:var(--primary);
    color:#fff;
    box-shadow:0 1px 2.94px .06px rgba(4,26,55,.16);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:8px 24px;
    position:sticky;
    top:0;
    z-index:60;
}

.gl-topbar-left,
.gl-topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.gl-sidebar-toggle{
    width:46px;
    height:46px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:16px;
    background:rgba(255,255,255,.12);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.18s ease;
    flex:0 0 auto;
}

.gl-sidebar-toggle:hover{
    background:rgba(255,255,255,.20);
    transform:translateY(-1px);
}

.gl-sidebar-toggle i,
.gl-sidebar-toggle svg{
    width:22px;
    height:22px;
    stroke-width:2.7;
}

.gl-topbar-title-box{
    min-width:0;
}

.gl-page-title{
    margin:0;
    font-size:22px;
    line-height:1.1;
    font-weight:800;
    color:#fff;
}

.gl-page-subtitle{
    margin-top:4px;
    font-size:13px;
    color:rgba(255,255,255,.85);
}

/* Sidebar recolhida no desktop */

body.gl-sidebar-collapsed .gl-sidebar{
    width:76px;
}

body.gl-sidebar-collapsed .gl-sidebar-head{
    padding:14px 10px;
}

body.gl-sidebar-collapsed .gl-brand-logo{
    width:48px;
    height:48px;
}

body.gl-sidebar-collapsed .gl-brand-logo img{
    max-width:42px;
    max-height:42px;
}

body.gl-sidebar-collapsed .gl-menu{
    padding:10px 8px 28px;
}

body.gl-sidebar-collapsed .gl-menu-label,
body.gl-sidebar-collapsed .gl-menu-text,
body.gl-sidebar-collapsed .gl-menu-arrow,
body.gl-sidebar-collapsed .gl-submenu{
    display:none !important;
}

body.gl-sidebar-collapsed .gl-menu-link{
    min-height:48px;
    justify-content:center;
    padding:0;
    margin:7px 0;
    border-radius:16px;
    gap:0;
}

body.gl-sidebar-collapsed .gl-menu-icon{
    width:38px;
    height:38px;
    border-radius:13px;
}

body.gl-sidebar-collapsed .gl-menu-icon i,
body.gl-sidebar-collapsed .gl-menu-icon svg{
    width:19px;
    height:19px;
}

body.gl-sidebar-collapsed .gl-main{
    margin-left:76px;
    width:calc(100% - 76px);
}

/* Tooltip premium quando recolhido */

body.gl-sidebar-collapsed .gl-menu-link[title]:hover:after{
    content:attr(title);
    position:absolute;
    left:62px;
    top:50%;
    transform:translateY(-50%);
    min-width:max-content;
    max-width:220px;
    padding:9px 11px;
    border-radius:10px;
    background:#102244;
    color:#fff;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
    box-shadow:0 14px 34px rgba(0,0,0,.18);
    z-index:300;
}

body.gl-sidebar-collapsed .gl-menu-link[title]:hover:before{
    content:"";
    position:absolute;
    left:56px;
    top:50%;
    transform:translateY(-50%) rotate(45deg);
    width:10px;
    height:10px;
    background:#102244;
    display:block;
    z-index:299;
}

/* Usuário */

.gl-user-trigger{
    min-height:44px;
    border:0;
    background:transparent;
    color:#fff;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 8px;
    cursor:pointer;
    transition:.18s ease;
}

.gl-user-trigger:hover{
    background:rgba(255,255,255,.12);
}

.gl-user-avatar,
.gl-user-img{
    width:40px;
    height:40px;
    border-radius:50%;
    flex:0 0 auto;
}

.gl-user-avatar{
    background:#fff;
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}

.gl-user-img{
    object-fit:cover;
    border:2px solid rgba(255,255,255,.75);
}

.gl-user-info{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.1;
}

.gl-user-info strong{
    font-size:14px;
    color:#fff;
    max-width:160px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.gl-user-info small{
    margin-top:4px;
    font-size:11px;
    color:rgba(255,255,255,.78);
    text-transform:capitalize;
}

.gl-user-chevron{
    width:15px;
    height:15px;
    color:#fff;
}

.gl-user-dropdown-item i,
.gl-user-dropdown-item svg{
    width:17px;
    height:17px;
    stroke-width:2.4;
}

/* Mobile: botão abre offcanvas em vez de recolher */

@media (max-width:980px){
    body.gl-sidebar-collapsed .gl-sidebar{
        width:245px;
    }

    body.gl-sidebar-collapsed .gl-main,
    .gl-main{
        margin-left:0;
        width:100%;
    }

    body.gl-sidebar-collapsed .gl-menu-label,
    body.gl-sidebar-collapsed .gl-menu-text,
    body.gl-sidebar-collapsed .gl-menu-arrow{
        display:initial !important;
    }

    body.gl-sidebar-collapsed .gl-menu-link{
        min-height:44px;
        justify-content:flex-start;
        padding:0 12px;
        margin:5px 0;
        gap:11px;
    }

    body.gl-sidebar-collapsed .gl-menu-icon{
        width:30px;
        height:30px;
    }

    body.gl-sidebar-collapsed .gl-submenu{
        display:none !important;
    }

    body.gl-sidebar-collapsed .gl-menu-group.open .gl-submenu{
        display:flex !important;
    }
}

@media (max-width:760px){
    .gl-topbar{
        padding:10px 14px;
        flex-direction:row;
        align-items:center;
    }

    .gl-topbar-left{
        min-width:0;
    }

    .gl-topbar-right{
        gap:8px;
    }

    .gl-page-title{
        font-size:18px;
    }

    .gl-page-subtitle{
        display:none;
    }

    .gl-user-info,
    .gl-tenant-pill{
        display:none;
    }
}

@media (min-width:981px){

    body.sidebar-collapsed .gl-sidebar{
        width:74px;
    }

    body.sidebar-collapsed .gl-main{
        margin-left:74px;
        width:calc(100% - 74px);
    }

    body.sidebar-collapsed .gl-brand-logo{
        width:50px;
        height:50px;
    }

    body.sidebar-collapsed .gl-menu{
        padding:10px 9px 28px;
    }

    body.sidebar-collapsed .gl-menu-label{
        display:block !important;
        width:34px;
        height:1px;
        padding:0;
        margin:18px auto 10px;
        font-size:0;
        background:rgba(255,255,255,.20);
        border-radius:999px;
    }

    body.sidebar-collapsed .gl-menu-text,
    body.sidebar-collapsed .gl-menu-arrow{
        display:none !important;
    }

    body.sidebar-collapsed .gl-menu-link{
        width:56px;
        height:48px;
        min-height:48px;
        padding:0;
        justify-content:center;
        border-radius:16px;
        margin:7px 0;
    }

    body.sidebar-collapsed .gl-menu-icon{
        width:36px;
        height:36px;
        border-radius:12px;
    }

    body.sidebar-collapsed .gl-menu-link.active,
    body.sidebar-collapsed .gl-menu-group.open > .gl-menu-toggle{
        background:rgba(255,255,255,.18);
        box-shadow:none;
    }

    body.sidebar-collapsed .gl-submenu{
        display:none;
        margin:4px 0 10px 0;
        padding:0;
        border-left:0;
        align-items:center;
    }

    body.sidebar-collapsed .gl-menu-group.open .gl-submenu{
        display:flex !important;
        flex-direction:column;
        gap:6px;
    }

    body.sidebar-collapsed .gl-submenu-link{
        width:56px;
        height:38px;
        min-height:38px;
        padding:0;
        margin:0;
        justify-content:center;
        border-radius:14px;
    }

    body.sidebar-collapsed .gl-submenu-link span{
        display:none !important;
    }

    body.sidebar-collapsed .gl-submenu-link i,
    body.sidebar-collapsed .gl-submenu-link svg{
        width:30px;
        height:30px;
        min-width:30px;
        padding:7px;
        border-radius:11px;
        background:rgba(255,255,255,.13);
    }

    body.sidebar-collapsed .gl-submenu-link:hover,
    body.sidebar-collapsed .gl-submenu-link.active{
        background:rgba(255,255,255,.10);
    }
}

/* =========================================================
   EMPRESAS / TABELAS
========================================================= */

.gl-form-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.gl-form-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:flex-end;
}

.gl-table-wrap{
    width:100%;
    overflow:auto;
}

.gl-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}

.gl-table th{
    text-align:left;
    color:var(--title);
    font-weight:800;
    background:#f7fafc;
    border-bottom:1px solid var(--border);
    padding:12px;
    white-space:nowrap;
}

.gl-table td{
    padding:12px;
    border-bottom:1px solid var(--border);
    color:var(--text);
    white-space:nowrap;
}

.gl-table tbody tr:hover{
    background:#f9fbfd;
}

.gl-alert-success{
    background:rgba(17,193,91,.10);
    border-color:rgba(17,193,91,.28);
    color:#0d9245;
}

.gl-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:3px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.gl-badge-success{
    background:rgba(17,193,91,.12);
    color:#0d9245;
}

.gl-badge-muted{
    background:#eef3f6;
    color:var(--muted);
}

@media (max-width:980px){
    .gl-form-grid{
        grid-template-columns:1fr;
    }

    .gl-form-actions{
        justify-content:stretch;
    }

    .gl-form-actions .gl-btn{
        width:100%;
    }
}

/* =========================================================
   EMPRESAS PREMIUM / ENTERPRISE SAAS
========================================================= */

.gl-enterprise-hero{
    margin-bottom:22px;
    padding:28px;
    border-radius:26px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.28), transparent 34%),
        linear-gradient(135deg, #448aff 0%, #2367d8 58%, #1f5fc9 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    box-shadow:0 22px 55px rgba(35,103,216,.24);
}

.gl-enterprise-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:30px;
    padding:0 11px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    font-size:12px;
    font-weight:850;
    margin-bottom:12px;
}

.gl-enterprise-eyebrow svg{width:15px;height:15px}

.gl-enterprise-hero h1{
    margin:0;
    font-size:32px;
    font-weight:950;
    letter-spacing:-.6px;
}

.gl-enterprise-hero p{
    margin:8px 0 0;
    max-width:620px;
    color:rgba(255,255,255,.88);
    font-size:14px;
    font-weight:650;
}

.gl-enterprise-chip{
    min-height:40px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:850;
    white-space:nowrap;
}

.gl-enterprise-chip span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#11c15b;
    box-shadow:0 0 0 4px rgba(17,193,91,.18);
}

.gl-enterprise-stats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
    margin-bottom:22px;
}

.gl-enterprise-stat-card{
    background:#fff;
    border-radius:22px;
    padding:20px;
    display:flex;
    align-items:center;
    gap:16px;
    box-shadow:0 12px 35px rgba(69,90,100,.09);
    border:1px solid rgba(219,228,234,.78);
}

.gl-enterprise-stat-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    flex:0 0 auto;
}

.gl-enterprise-stat-icon svg{width:24px;height:24px;stroke-width:2.4}

.gl-enterprise-stat-icon.blue{background:linear-gradient(135deg,#448aff,#2367d8)}
.gl-enterprise-stat-icon.green{background:linear-gradient(135deg,#11c15b,#0d9f49)}
.gl-enterprise-stat-icon.purple{background:linear-gradient(135deg,#7c4dff,#5e35b1)}

.gl-enterprise-stat-value{
    font-size:27px;
    line-height:1;
    font-weight:950;
    color:#102244;
}

.gl-enterprise-stat-label{
    margin-top:6px;
    font-size:12px;
    font-weight:750;
    color:#78909c;
}

.gl-enterprise-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.6fr) minmax(320px, .8fr);
    gap:22px;
    align-items:start;
}

.gl-enterprise-form-card,
.gl-enterprise-preview-card,
.gl-enterprise-table-card{
    border-radius:22px;
    border:1px solid rgba(219,228,234,.82);
    box-shadow:0 12px 35px rgba(69,90,100,.09);
}

.gl-enterprise-card-header{
    min-height:72px;
    box-shadow:none;
    border-bottom:1px solid #eef3f6;
}

.gl-card-header-icon{
    width:44px;
    height:44px;
    border-radius:15px;
    background:rgba(68,138,255,.12);
    color:#448aff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gl-card-header-icon svg{width:22px;height:22px}

.gl-premium-form{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.gl-form-section{
    padding:0 0 22px;
    margin-bottom:22px;
    border-bottom:1px solid #edf2f7;
}

.gl-form-section-title{
    margin-bottom:16px;
    display:flex;
    align-items:center;
    gap:9px;
    color:#102244;
    font-size:13px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.45px;
}

.gl-form-section-title svg{
    width:17px;
    height:17px;
    color:#448aff;
}

.gl-form-grid{
    display:grid;
    gap:16px;
}

.gl-form-grid-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.gl-form-grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}

.gl-field-hint{
    display:block;
    margin-top:6px;
    color:#78909c;
    font-size:11px;
    font-weight:650;
}

.gl-form-actions-premium{
    margin-top:6px;
    display:flex;
    justify-content:flex-end;
}

.gl-btn-xl{
    min-height:46px;
    padding:10px 18px;
    border-radius:14px;
    font-weight:900;
    box-shadow:0 12px 24px rgba(68,138,255,.22);
}

.gl-btn-xl svg{width:17px;height:17px}

.gl-provision-flow{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.gl-provision-step{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px;
    border-radius:18px;
    background:#f8fbfd;
    border:1px solid #e9f0f4;
}

.gl-provision-icon{
    width:38px;
    height:38px;
    border-radius:14px;
    background:rgba(68,138,255,.12);
    color:#448aff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}

.gl-provision-icon svg{width:19px;height:19px}

.gl-provision-step strong{
    display:block;
    color:#102244;
    font-size:13px;
    font-weight:900;
}

.gl-provision-step span{
    display:block;
    margin-top:4px;
    color:#78909c;
    font-size:12px;
    font-weight:650;
    line-height:1.45;
}

.gl-preview-box{
    margin-top:16px;
    padding:16px;
    border-radius:18px;
    background:linear-gradient(180deg,#ffffff,#f8fbfd);
    border:1px dashed #c9d8e4;
}

.gl-preview-title{
    margin-bottom:9px;
    font-size:12px;
    color:#78909c;
    font-weight:850;
}

.gl-preview-box code,
.gl-code{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:6px 10px;
    border-radius:10px;
    background:#f2f6fa;
    color:#2367d8;
    font-size:12px;
    font-weight:850;
    white-space:nowrap;
}

.gl-code-db{color:#2f4354}

.gl-table-count{
    min-height:30px;
    padding:0 11px;
    border-radius:999px;
    background:#f2f6fa;
    color:#455a64;
    font-size:12px;
    font-weight:850;
    display:flex;
    align-items:center;
}

.gl-enterprise-table{
    border-collapse:separate;
    border-spacing:0 8px;
}

.gl-enterprise-table thead th{
    border-bottom:0;
    background:transparent;
    color:#78909c;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.45px;
    padding:0 12px 6px;
}

.gl-enterprise-table tbody tr{
    background:#fff;
    box-shadow:0 8px 24px rgba(69,90,100,.06);
    transition:.18s ease;
}

.gl-enterprise-table tbody tr:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 30px rgba(69,90,100,.10);
}

.gl-enterprise-table tbody td{
    border-bottom:1px solid #edf2f7;
    border-top:1px solid #edf2f7;
    padding:14px 12px;
}

.gl-enterprise-table tbody td:first-child{
    border-left:1px solid #edf2f7;
    border-radius:14px 0 0 14px;
}

.gl-enterprise-table tbody td:last-child{
    border-right:1px solid #edf2f7;
    border-radius:0 14px 14px 0;
}

.gl-id-pill{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 9px;
    border-radius:999px;
    background:#eef5ff;
    color:#2367d8;
    font-size:12px;
    font-weight:900;
}

.gl-company-cell{
    display:flex;
    align-items:center;
    gap:11px;
}

.gl-company-avatar{
    width:38px;
    height:38px;
    border-radius:14px;
    background:linear-gradient(135deg,#448aff,#2367d8);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:950;
    flex:0 0 auto;
}

.gl-company-cell strong{
    display:block;
    color:#102244;
    font-size:13px;
    font-weight:950;
}

.gl-company-cell span{
    display:block;
    margin-top:3px;
    color:#78909c;
    font-size:11px;
    font-weight:700;
}

.gl-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:26px;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:capitalize;
}

.gl-badge-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
}

.gl-badge-success{
    background:rgba(17,193,91,.12);
    color:#0d9245;
}

.gl-badge-muted{
    background:#eef3f6;
    color:#78909c;
}

.gl-user-count{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#455a64;
    font-weight:850;
}

.gl-user-count svg{
    width:16px;
    height:16px;
    color:#448aff;
}

.gl-empty-state{
    padding:34px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    color:#78909c;
}

.gl-empty-state svg{
    width:34px;
    height:34px;
    color:#448aff;
}

.gl-empty-state strong{
    color:#102244;
    font-size:15px;
}

@media (max-width:1180px){
    .gl-enterprise-grid{
        grid-template-columns:1fr;
    }

    .gl-form-grid-3{
        grid-template-columns:1fr;
    }
}

@media (max-width:860px){
    .gl-enterprise-hero{
        flex-direction:column;
        align-items:flex-start;
        padding:24px;
    }

    .gl-enterprise-stats{
        grid-template-columns:1fr;
    }

    .gl-form-grid-2,
    .gl-form-grid-3{
        grid-template-columns:1fr;
    }

    .gl-form-actions-premium .gl-btn{
        width:100%;
    }
}
/* =========================================================
   EMPRESAS PREMIUM / DELETE EMPRESA
========================================================= */

.gl-delete-company-form{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.gl-delete-confirm-input{
    width:110px;
    min-height:34px;
    font-size:12px;
    border-radius:10px;
}

.gl-drop-db-check{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:11px;
    font-weight:800;
    color:#78909c;
    white-space:nowrap;
}

.gl-drop-db-check input{
    width:14px;
    height:14px;
}

.gl-btn-sm{
    min-height:34px;
    padding:7px 10px;
    border-radius:10px;
    font-size:12px;
}

.gl-btn-sm svg{
    width:14px;
    height:14px;
}

/* ==========================================================
   Programação de Puxada - Layout antigo dentro do V2
   Cole no final do assets/css/app.css
   ========================================================== */

.programacao-legacy-v2 {
  width: 100%;
  padding: 18px 4px 28px;
  color: #1f2a37;
}

.programacao-legacy-v2 *,
.programacao-legacy-v2 *::before,
.programacao-legacy-v2 *::after {
  box-sizing: border-box;
}

.programacao-legacy-v2 .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px 14px;
}

.programacao-legacy-v2 .col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  padding: 0 8px;
}

.programacao-legacy-v2 .align-items-center {
  align-items: center;
}

.programacao-legacy-v2 .d-flex {
  display: flex !important;
}

.programacao-legacy-v2 .justify-content-between {
  justify-content: space-between !important;
}

.programacao-legacy-v2 .align-items-center {
  align-items: center !important;
}

.programacao-legacy-v2 .flex-wrap {
  flex-wrap: wrap !important;
}

.programacao-legacy-v2 .mb-0 { margin-bottom: 0 !important; }
.programacao-legacy-v2 .mb-2 { margin-bottom: .5rem !important; }
.programacao-legacy-v2 .mb-3 { margin-bottom: 1rem !important; }
.programacao-legacy-v2 .mt-2 { margin-top: .5rem !important; }
.programacao-legacy-v2 .ml-2 { margin-left: .5rem !important; }
.programacao-legacy-v2 .ml-4 { margin-left: 1.5rem !important; }
.programacao-legacy-v2 .mr-2 { margin-right: .5rem !important; }
.programacao-legacy-v2 .mr-3 { margin-right: 1rem !important; }
.programacao-legacy-v2 .mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }

.programacao-legacy-v2 .form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.programacao-legacy-v2 .form-control,
.programacao-legacy-v2 .form-control-sm {
  display: inline-flex;
  width: auto;
  min-width: 130px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d7e0ec;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.programacao-legacy-v2 select.form-control,
.programacao-legacy-v2 select.form-control-sm {
  min-width: 190px;
}

.programacao-legacy-v2 .form-control:focus,
.programacao-legacy-v2 .form-control-sm:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.programacao-legacy-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.programacao-legacy-v2 .btn:hover {
  transform: translateY(-1px);
}

.programacao-legacy-v2 .btn-sm {
  height: 33px;
  padding: 0 11px;
  font-size: 11px;
}

.programacao-legacy-v2 .btn-primary {
  color: #fff;
  background: #2f74ff;
  border-color: #2f74ff;
  box-shadow: 0 6px 14px rgba(47,116,255,.16);
}

.programacao-legacy-v2 .btn-success {
  color: #fff;
  background: #16b86a;
  border-color: #16b86a;
  box-shadow: 0 6px 14px rgba(22,184,106,.14);
}

.programacao-legacy-v2 .btn-danger {
  color: #fff;
  background: #f04444;
  border-color: #f04444;
  box-shadow: 0 6px 14px rgba(240,68,68,.14);
}

.programacao-legacy-v2 .btn-info {
  color: #fff;
  background: #08aeca;
  border-color: #08aeca;
  box-shadow: 0 6px 14px rgba(8,174,202,.13);
}

.programacao-legacy-v2 .btn-outline-secondary,
.programacao-legacy-v2 .btn-outline-primary,
.programacao-legacy-v2 .btn-outline-danger,
.programacao-legacy-v2 .btn-outline-warning {
  background: #fff;
  color: #344054;
  border-color: #d7e0ec;
}

.programacao-legacy-v2 .btn-outline-primary {
  color: #2563eb;
  border-color: rgba(37,99,235,.35);
}

.programacao-legacy-v2 .btn-outline-danger {
  color: #ef4444;
  border-color: rgba(239,68,68,.35);
}

.programacao-legacy-v2 .btn-outline-warning {
  color: #b45309;
  border-color: rgba(245,158,11,.4);
}

.programacao-legacy-v2 .btn-link {
  background: transparent;
  border-color: transparent;
  color: #2f74ff;
  box-shadow: none;
  padding: 0 8px;
}

.programacao-legacy-v2 .alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 13px;
}

.programacao-legacy-v2 .alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #047857;
}

.programacao-legacy-v2 .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.programacao-legacy-v2 .card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  margin-bottom: 10px;
  overflow: hidden;
}

.programacao-legacy-v2 .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.programacao-legacy-v2 .card-header h6 {
  font-size: 14px;
  font-weight: 900 !important;
  color: #111827 !important;
  letter-spacing: -.01em;
}

.programacao-legacy-v2 .chip-count {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1px;
  line-height: 1;
  color: #0758b8;
  background: #eef6ff;
  border: 1px solid rgba(25,118,210,.22);
  box-shadow: none;
}

.programacao-legacy-v2 .collapse {
  display: none;
}

.programacao-legacy-v2 .collapse.show {
  display: block;
}

.programacao-legacy-v2 .card-body {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 22px 22px 18px 20px;
  border-left: 4px solid #1976d2 !important;
  border-bottom: 1px solid #eef2f7;
  transition: border-color .2s, background .2s;
}

.programacao-legacy-v2 .card-body:last-child {
  border-bottom: 0;
}

.programacao-legacy-v2 .card-body.alocado {
  border-left-color: #23b26d !important;
}

.programacao-legacy-v2 .card-body.furo {
  border-left-color: #e14c52 !important;
}

.programacao-legacy-v2 .card-body > .d-flex:first-child strong {
  font-size: 14px;
  color: #0f172a;
}

.programacao-legacy-v2 .table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 10px;
}

.programacao-legacy-v2 .table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 860px;
}

.programacao-legacy-v2 .table-titulo th,
.programacao-legacy-v2 .table thead th {
  background: #f6f9fc;
  color: #344054;
  font-weight: 900;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  border-bottom: 1px solid #dce5ef;
  padding: 10px 11px;
  text-align: left;
  white-space: nowrap;
}

.programacao-legacy-v2 .table tbody tr {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.programacao-legacy-v2 .table tbody tr:last-child {
  border-bottom: 0;
}

.programacao-legacy-v2 .table td {
  color: #283646;
  font-weight: 600;
  font-size: .8rem;
  padding: 10px 11px;
  vertical-align: middle;
}

.programacao-legacy-v2 .caixa-totais {
  background: #f8fbff;
  border-radius: 12px;
  box-shadow: none;
  padding: 13px 16px;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #d7f5e5;
  text-align: left;
}

.programacao-legacy-v2 .caixa-totais span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.programacao-legacy-v2 .caixa-totais strong {
  color: #0f172a;
}

.programacao-legacy-v2 .d-none {
  display: none !important;
}

.programacao-legacy-v2 .text-danger { color: #dc2626 !important; }
.programacao-legacy-v2 .text-success { color: #16a34a !important; }
.programacao-legacy-v2 .text-muted { color: #64748b !important; }

.programacao-legacy-v2 .list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  margin: 0;
}

.programacao-legacy-v2 .list-group-item {
  list-style: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 12px;
  color: #334155;
  font-size: 13px;
}

.programacao-legacy-v2 .modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(15,23,42,.52);
  padding: 24px 12px;
}

.programacao-legacy-v2 .modal.show {
  display: block;
}

.programacao-legacy-v2 .modal-dialog {
  width: min(620px, 100%);
  margin: 40px auto;
}

.programacao-legacy-v2 .modal-content {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 60px rgba(15,23,42,.24);
  overflow: hidden;
}

.programacao-legacy-v2 .modal-header,
.programacao-legacy-v2 .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

.programacao-legacy-v2 .modal-footer {
  border-bottom: 0;
  border-top: 1px solid #eef2f7;
  justify-content: flex-end;
}

.programacao-legacy-v2 .modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.programacao-legacy-v2 .modal-body {
  padding: 16px;
}

.programacao-legacy-v2 .close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
}

.programacao-legacy-v2 .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.programacao-legacy-v2 .form-group label {
  font-size: 12px;
  font-weight: 900;
  color: #475569;
}

.programacao-legacy-v2 .form-group .form-control {
  width: 100%;
}

@media (max-width: 900px) {
  .programacao-legacy-v2 .row,
  .programacao-legacy-v2 .form-inline,
  .programacao-legacy-v2 .card-body > .d-flex:first-child,
  .programacao-legacy-v2 .card-body > .d-flex:first-child > div {
    align-items: stretch !important;
    flex-direction: column;
  }

  .programacao-legacy-v2 .col-auto,
  .programacao-legacy-v2 .btn,
  .programacao-legacy-v2 .form-control,
  .programacao-legacy-v2 .form-control-sm,
  .programacao-legacy-v2 select.form-control,
  .programacao-legacy-v2 select.form-control-sm {
    width: 100%;
  }

  .programacao-legacy-v2 .ml-2,
  .programacao-legacy-v2 .ml-4,
  .programacao-legacy-v2 .mr-2,
  .programacao-legacy-v2 .mr-3,
  .programacao-legacy-v2 .mx-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.page-content {
    padding: 24px;
}

.gk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.gk-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.gk-header p {
    margin: 4px 0 0;
    color: #64748b;
}

.gk-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gk-kpis-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.gk-kpi-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.gk-kpi-card .label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.gk-kpi-card .value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.gk-kpi-card .icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 34px;
    opacity: .12;
}

.gk-kpi-card.primary {
    border-left: 4px solid #2563eb;
}

.gk-kpi-card.success {
    border-left: 4px solid #16a34a;
}

.gk-kpi-card.warning {
    border-left: 4px solid #f59e0b;
}

.gk-kpi-card.danger {
    border-left: 4px solid #dc2626;
}

.gk-kpi-card.dark {
    border-left: 4px solid #0f172a;
}

:root{
  --pxu-bg:#f4f7fb;
  --pxu-card:#ffffff;
  --pxu-text:#0f172a;
  --pxu-muted:#64748b;
  --pxu-border:#e2e8f0;
  --pxu-primary:#2563eb;
  --pxu-primary-dark:#1d4ed8;
  --pxu-danger:#dc2626;
  --pxu-success:#16a34a;
  --pxu-shadow:0 18px 45px rgba(15,23,42,.08);
  --pxu-radius:22px;
}

/* Essa página fica dentro dos partials do SaaS. Não mexe em body, sidebar ou topbar. */
.px-usuarios-wrapper.px-page{
  width:100%;
  max-width:none;
  margin:0!important;
  padding:26px!important;
  color:var(--pxu-text);
  font-family:inherit;
  min-height:calc(100vh - 72px);
}
body.tt-sidebar-collapsed .px-usuarios-wrapper.px-page{margin-left:0!important}
.px-usuarios-wrapper,
.px-usuarios-wrapper *{box-sizing:border-box}
.px-usuarios-wrapper button,
.px-usuarios-wrapper input,
.px-usuarios-wrapper select{font:inherit}
.px-usuarios-wrapper [data-lucide],
.px-usuarios-wrapper svg{
  width:18px;
  height:18px;
  stroke-width:2.4;
  display:block;
  flex:0 0 auto;
}

/* Topo interno da página */
.px-usuarios-wrapper .px-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid var(--pxu-border);
  border-radius:24px;
  padding:22px 24px;
  box-shadow:var(--pxu-shadow);
  margin-bottom:18px;
}
.px-usuarios-wrapper .px-toolbar::before{
  content:"";
  width:48px;
  height:48px;
  border-radius:17px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 14px 28px rgba(37,99,235,.22);
  flex:0 0 48px;
  order:-1;
  display:none;
}
.px-usuarios-wrapper .px-eyebrow{
  font-size:12px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--pxu-primary);
  margin-bottom:8px;
}
.px-usuarios-wrapper .px-toolbar h1{
  font-size:26px;
  line-height:1.08;
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--pxu-text);
}
.px-usuarios-wrapper .px-toolbar p{
  margin:0;
  color:var(--pxu-muted);
  max-width:780px;
  font-size:14px;
  font-weight:650;
}
.px-usuarios-wrapper .px-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Botões */
.px-usuarios-wrapper .px-btn{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  text-decoration:none;
  transition:.16s ease;
  white-space:nowrap;
  min-height:44px;
}
.px-usuarios-wrapper .px-btn-primary{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  box-shadow:0 14px 26px rgba(37,99,235,.20);
}
.px-usuarios-wrapper .px-btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(37,99,235,.26);
  color:#fff;
}
.px-usuarios-wrapper .px-btn-light{
  background:#fff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
}
.px-usuarios-wrapper .px-btn-light:hover{
  background:#eff6ff;
  color:#1d4ed8;
}

/* Alerts */
.px-usuarios-wrapper .px-alert{
  border-radius:16px;
  padding:13px 15px;
  margin:14px 0;
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  border:1px solid var(--pxu-border);
  background:#fff;
}
.px-usuarios-wrapper .px-alert-success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}
.px-usuarios-wrapper .px-alert-danger{color:#991b1b;background:#fef2f2;border-color:#fecaca}

/* KPIs */
.px-usuarios-wrapper .px-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.px-usuarios-wrapper .px-kpi{
  background:#fff;
  border:1px solid var(--pxu-border);
  border-radius:22px;
  padding:18px 18px 16px;
  box-shadow:var(--pxu-shadow);
  position:relative;
  overflow:hidden;
}
.px-usuarios-wrapper .px-kpi::after{
  content:"";
  position:absolute;
  right:-28px;
  top:-30px;
  width:86px;
  height:86px;
  border-radius:999px;
  background:rgba(37,99,235,.07);
}
.px-usuarios-wrapper .px-kpi span{
  display:block;
  color:#475569;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.px-usuarios-wrapper .px-kpi strong{
  display:block;
  font-size:32px;
  line-height:1.05;
  margin:9px 0 3px;
  letter-spacing:-.05em;
  color:#0f172a;
}
.px-usuarios-wrapper .px-kpi small{
  color:var(--pxu-muted);
  font-weight:700;
}

/* Painel */
.px-usuarios-wrapper .px-panel{
  background:#fff;
  border:1px solid var(--pxu-border);
  border-radius:26px;
  box-shadow:var(--pxu-shadow);
  overflow:hidden;
}
.px-usuarios-wrapper .px-panel-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:20px 22px;
  border-bottom:1px solid var(--pxu-border);
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
.px-usuarios-wrapper .px-panel-head h2{
  font-size:20px;
  margin:0 0 4px;
  font-weight:900;
  letter-spacing:-.03em;
}
.px-usuarios-wrapper .px-panel-head p{
  margin:0;
  color:var(--pxu-muted);
  font-weight:650;
}
.px-usuarios-wrapper .px-search{
  position:relative;
  min-width:330px;
}
.px-usuarios-wrapper .px-search svg{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--pxu-muted);
}
.px-usuarios-wrapper .px-search input{
  width:100%;
  height:46px;
  border:1px solid var(--pxu-border);
  background:#f8fafc;
  border-radius:16px;
  padding:0 15px 0 44px;
  outline:none;
  font-weight:750;
  color:var(--pxu-text);
}
.px-usuarios-wrapper .px-search input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

/* Tabela */
.px-usuarios-wrapper .px-table-wrap{width:100%;overflow:auto}
.px-usuarios-wrapper .px-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
}
.px-usuarios-wrapper .px-table th{
  background:#f8fafc;
  color:#334155;
  text-align:left;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:14px 16px;
  border-bottom:1px solid var(--pxu-border);
  white-space:nowrap;
  font-weight:900;
}
.px-usuarios-wrapper .px-table td{
  padding:14px 16px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
  color:#0f172a;
  font-weight:700;
}
.px-usuarios-wrapper .px-table tbody tr{
  transition:.12s ease;
}
.px-usuarios-wrapper .px-table tbody tr:hover{
  background:#f8fafc;
}
.px-usuarios-wrapper .px-user{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:265px;
}
.px-usuarios-wrapper .px-avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg,#dbeafe,#bfdbfe);
  border:1px solid #dbeafe;
  color:#1d4ed8;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 46px;
  overflow:hidden;
  font-weight:950;
  letter-spacing:.02em;
  box-shadow:0 0 0 1px rgba(15,23,42,.05);
}
.px-usuarios-wrapper .px-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.px-usuarios-wrapper .px-avatar span{
  font-size:13px;
}
.px-usuarios-wrapper .px-user strong{
  display:block;
  color:var(--pxu-text);
  font-weight:900;
  line-height:1.15;
}
.px-usuarios-wrapper .px-user span{
  display:block;
  font-size:12px;
  color:var(--pxu-muted);
  margin-top:3px;
  font-weight:750;
}
.px-usuarios-wrapper .px-badge-nivel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 11px;
  color:#fff;
  background:var(--level-color,#2563eb);
  font-size:12px;
  font-weight:900;
  min-width:86px;
  text-transform:capitalize;
}
.px-usuarios-wrapper .px-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:900;
  min-width:72px;
}
.px-usuarios-wrapper .px-status.is-active{background:#dcfce7;color:#166534}
.px-usuarios-wrapper .px-status.is-inactive{background:#fee2e2;color:#991b1b}
.px-usuarios-wrapper .px-col-actions{width:120px;text-align:center}
.px-usuarios-wrapper .px-row-actions{
  display:flex;
  justify-content:center;
  gap:8px;
  align-items:center;
}
.px-usuarios-wrapper .px-row-actions form{margin:0}
.px-usuarios-wrapper .px-icon-btn{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid var(--pxu-border);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#2563eb;
  transition:.16s ease;
}
.px-usuarios-wrapper .px-icon-btn:hover{
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  transform:translateY(-1px);
  background:#f8fafc;
}
.px-usuarios-wrapper .px-icon-btn.danger{color:#dc2626}
.px-usuarios-wrapper .px-empty{
  padding:54px 20px;
  text-align:center;
  color:var(--pxu-muted);
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.px-usuarios-wrapper .px-empty svg{width:42px;height:42px;color:#94a3b8}
.px-usuarios-wrapper .px-empty strong{color:var(--pxu-text);font-size:18px}

/* Modal premium Bootstrap 5 */
.px-usuarios-wrapper ~ .modal .px-modal,
.px-modal{
  border:0;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(15,23,42,.25);
}
.px-modal .modal-header{
  background:#f8fafc;
  border-bottom:1px solid var(--pxu-border);
  padding:18px 22px;
}
.px-modal .modal-title{
  font-weight:950;
  letter-spacing:-.03em;
  color:var(--pxu-text);
}
.px-modal-kicker{
  display:block;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--pxu-primary);
  margin-bottom:4px;
}
.px-modal .modal-body{padding:22px}
.px-modal .modal-footer{
  border-top:1px solid var(--pxu-border);
  padding:16px 22px;
}
.px-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.px-form-grid.compact{grid-template-columns:1fr 1fr}
.px-form-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  font-weight:850;
  color:#334155;
}
.px-form-grid input,
.px-form-grid select{
  width:100%;
  height:44px;
  border:1px solid var(--pxu-border);
  background:#fff;
  border-radius:14px;
  padding:0 12px;
  outline:none;
  color:var(--pxu-text);
  font-weight:750;
}
.px-form-grid input:focus,
.px-form-grid select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.px-full{grid-column:1/-1}
.px-field-error{
  display:block;
  color:var(--pxu-danger);
  min-height:16px;
  font-size:12px;
  font-weight:850;
}
.px-perms-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin:22px 0 12px;
  padding-top:18px;
  border-top:1px solid var(--pxu-border);
}
.px-perms-head strong{display:block;font-weight:950;color:#334155}
.px-perms-head span{display:block;color:var(--pxu-muted);font-size:13px;margin-top:2px}
.px-mini-btn{
  height:38px;
  border-radius:12px;
  border:1px solid var(--pxu-border);
  background:#fff;
  color:#334155;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 12px;
  cursor:pointer;
}
.px-mini-btn:hover{background:#f8fafc}
.px-perm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:10px;
}
.px-perm-item{
  border:1px solid var(--pxu-border);
  border-radius:16px;
  background:#fff;
  padding:12px;
  display:grid;
  grid-template-columns:18px 1fr;
  gap:3px 9px;
  cursor:pointer;
  transition:.14s ease;
}
.px-perm-item:hover{border-color:#93c5fd;background:#f8fbff}
.px-perm-item input{grid-row:1/3;margin-top:2px}
.px-perm-item span{font-weight:850;color:#334155;line-height:1.15}
.px-perm-item small{color:var(--pxu-muted);font-weight:650;line-height:1.1}
.px-color-row{display:flex;gap:8px;align-items:center;margin-top:7px}
.px-color-row input[type=color]{width:60px;height:44px;padding:4px}
.px-color-row input[type=text]{margin-top:0}
.px-color-row .px-mini-btn{height:44px}

@media(max-width:1100px){
  .px-usuarios-wrapper .px-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .px-usuarios-wrapper .px-panel-head{flex-direction:column;align-items:stretch}
  .px-usuarios-wrapper .px-search{min-width:0}
}
@media(max-width:760px){
  .px-usuarios-wrapper.px-page{padding:16px!important}
  .px-usuarios-wrapper .px-toolbar{flex-direction:column;align-items:stretch;padding:18px}
  .px-usuarios-wrapper .px-actions{width:100%}
  .px-usuarios-wrapper .px-actions .px-btn{flex:1}
  .px-usuarios-wrapper .px-form-grid,
  .px-usuarios-wrapper .px-form-grid.compact{grid-template-columns:1fr}
  .px-usuarios-wrapper .px-perms-head{flex-direction:column;align-items:flex-start}
  .px-usuarios-wrapper .px-perm-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .px-usuarios-wrapper .px-kpis{grid-template-columns:1fr}
  .px-usuarios-wrapper .px-toolbar h1{font-size:23px}
}