
        @import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

        :root {
            --sidebar-width-collapsed: 80px;
            --sidebar-width-expanded: 260px;
            --header-height: 60px;
        }

        /* Estilos globais */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Lato", sans-serif;
            background-color: #f0f8ff;
            color: #333;
            transition: all 0.3s ease;
            overflow-x: hidden; 
        }
        
        /* --- CABEÇALHO --- */
        nav#navbar_id {
            background-color: #333;
            padding: 0 0px;
            height: var(--header-height);
            color: white;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
             /* justify-content: end; */
            align-items: center;
        }

        .header-logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
                left: 5px;
    position: relative;
    width: 153px;
        }

        nav#navbar_id .navebar__rigth {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        nav#navbar_id .cabecario_img_login {
            border-radius: 50%;
            width: 40px;
            height: 40px;
            border: 2px solid #fff;
        }

        nav#navbar_id .grid_global_User_empresa {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        nav#navbar_id .LoginUser {
            font-weight: 700;
            margin: 0;
            color: white;
        }

        nav#navbar_id .empresa_razao_social_login {
            font-size: 12px;
            color: #ccc;
        }
        
        nav#navbar_id .header-online-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: #2ecc71;
        }
        nav#navbar_id .header-online-status .fa-circle {
            font-size: 10px;
        }
        
        #header-user-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 8px;
            transition: background-color 0.2s;
            background-color: rgba(255, 255, 255, 0.05);
        }
        #header-user-trigger:hover {
            background-color: rgba(255, 255, 255, 0.15);
        }
        
        .header-separator {
            width: 1px;
            height: 35px;
            background-color: rgba(255, 255, 255, 0.15);
        }

        .user-name-online-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #header-user-trigger .header-chevron {
            color: #ccc;
            font-size: 16px;
            margin-left: 5px;
            transition: transform 0.2s ease;
        }

        #header-user-trigger.is-active .header-chevron {
            transform: rotate(180deg);
        }

        .header-submenu {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            background-color: #3d3d3d;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            width: 240px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s ease;
            z-index: 1001;
            overflow: hidden;
        }

        .header-submenu.is-open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-submenu .submenu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: #eee;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.2s;
        }
        .header-submenu .submenu-item:hover {
            background-color: #4a4a4a;
        }
        .header-submenu .submenu-item i {
            width: 20px;
            text-align: center;
            font-size: 16px;
        }
        .header-submenu .submenu-item.logout:hover {
            background-color: #e65061;
            color: #fff;
        }
        
        .theme-toggle-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            cursor: default;
        }
        .theme-switch {
          position: relative;
          display: inline-block;
          width: 50px;
          height: 24px;
        }
        .theme-switch input { 
          opacity: 0;
          width: 0;
          height: 0;
        }
        .slider {
          position: absolute;
          cursor: pointer;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background-color: #555;
          transition: .4s;
        }
        .slider:before {
          position: absolute;
          content: "";
          height: 16px;
          width: 16px;
          left: 4px;
          bottom: 4px;
          background-color: white;
          transition: .4s;
        }
        input:checked + .slider {
          background-color: #4a90e2;
        }
        input:checked + .slider:before {
          transform: translateX(26px);
        }
        .slider.round {
          border-radius: 34px;
        }
        .slider.round:before {
          border-radius: 50%;
        }

        /* --- ÁREA DE CONTEÚDO PRINCIPAL --- */
        #app-main-content {
            transition: margin-left 0.3s ease, background-color 0.3s ease;
            margin-top: var(--header-height);
            margin-left: var(--sidebar-width-collapsed);
            position: relative; 
            z-index: 1; 
            display: flex;
            flex-direction: column;
            height: calc(100vh - var(--header-height));
        }
        
        #app-main-content h1 {
            margin-bottom: 0;
            padding: 15px 20px;
            background-color: #fff;
            border-bottom: 1px solid #e0e0e0;
            flex-shrink: 0;
            font-size: 22px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            z-index: 2;
        }

        .content-scroll-wrapper {
            flex-grow: 1;
            overflow-y: auto;
            /* padding: 20px; */
            padding-top: 0; /* Remove o espaço superior */
        }
        
        /* --- SIDEBAR PRIMÁRIA (Ícones) --- */
        #sidebar_id {
            background: #212b30;
            overflow-y: auto;
            overflow-x: visible;
            transition: all 0.3s ease;
            width: var(--sidebar-width-collapsed);
            height: calc(100% - var(--header-height));
            position: fixed;
            top: var(--header-height);
            left: 0;
            z-index: 1002;
        }

        #sidebar_id .sidebar__user-avatar {
            padding: 15px 0;
            text-align: center;
            border-bottom: 1px solid #444;
        }

        #sidebar_id .sidebar__user-avatar img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #fff;
        }
        
        #sidebar_id .sidebar__menu {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        #sidebar_id .sidebar__link {
            width: 55px;
            height: 55px;
            color: #8aa4af;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            text-decoration: none;
            position: relative;
            border-radius: 8px;
            transition: background-color 0.2s;
        }

        #sidebar_id .sidebar__link:hover {
            background-color: #2c3b41;
            color: #fff;
        }

        #sidebar_id .sidebar__link i {
            font-size: 22px;
            transition: all 0.2s;
        }
        
        #sidebar_id .sidebar__link .NavMenuUser {
           display: none;
        }
        
        /* --- PAINEL DO SUBMENU SECUNDÁRIO --- */
        #secondary-menu {
            position: fixed;
            top: var(--header-height);
            left: var(--sidebar-width-collapsed);
            width: var(--sidebar-width-expanded);
            height: calc(100% - var(--header-height));
            background-color: #2c3b41;
            border-right: 1px solid #444;
            transform: translateX(-100%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1001; 
            padding: 15px;
            overflow-y: auto;
        }

        #secondary-menu.is-open {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }
        
        #secondary-menu .secondary-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid cadetblue;
        }

        #secondary-menu .secondary-menu-header h3 {
            color: cadetblue;
            font-size: 16px;
            text-transform: uppercase;
        }

        #secondary-menu .close-secondary-menu {
            color: #8aa4af;
            font-size: 20px;
            cursor: pointer;
            transition: color 0.2s;
        }

        #secondary-menu .close-secondary-menu:hover {
            color: #fff;
        }

        #secondary-menu .List {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            color: #b8c7ce;
            text-decoration: none;
            font-size: 14px;
            border-radius: 5px;
            transition: all 0.2s;
        }

        #secondary-menu .List:hover {
            color: #fff;
            background-color: #34474e;
        }

        #secondary-menu .List i {
            margin-right: 12px;
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        
        .Listuser, .textdescricao, .name_empresa, .nameemp, .sidebar__title {
            display: none;
        }
        
        /* --- Dark Mode Styles --- */
        body.dark-mode {
            background-color: #121212;
            color: #e0e0e0;
        }
        body.dark-mode nav#navbar_id {
            background-color: #1e1e1e;
            border-bottom: 1px solid #333;
        }
        body.dark-mode #sidebar_id {
            background: #1e1e1e;
        }
        body.dark-mode #sidebar_id .sidebar__user-avatar {
            border-bottom-color: #333;
        }
        body.dark-mode #sidebar_id .sidebar__link {
            color: #a0a0a0;
        }
        body.dark-mode #sidebar_id .sidebar__link:hover {
            background-color: #333;
            color: #fff;
        }
        body.dark-mode #secondary-menu {
            background-color: #252525;
            border-right-color: #333;
        }
        body.dark-mode #secondary-menu .secondary-menu-header {
            border-bottom-color: #4a90e2;
        }
        body.dark-mode #secondary-menu .secondary-menu-header h3 {
            color: #4a90e2;
        }
        body.dark-mode #secondary-menu .List {
            color: #b0b0b0;
        }
        body.dark-mode #secondary-menu .List:hover {
            color: #fff;
            background-color: #333;
        }
        body.dark-mode .header-submenu {
            background-color: #252525;
        }
        body.dark-mode .header-submenu .submenu-item {
            color: #e0e0e0;
        }
        body.dark-mode .header-submenu .submenu-item:hover {
            background-color: #333;
        }
        body.dark-mode #header-user-trigger:hover, body.dark-mode #header-user-trigger {
            background-color: rgba(255, 255, 255, 0.08);
        }
        body.dark-mode .header-separator {
            background-color: rgba(255, 255, 255, 0.1);
        }
        body.dark-mode #app-main-content h1 {
            color: #fff;
            background-color: #1e1e1e;
            border-bottom-color: #333;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* --- MEDIA QUERY PARA DISPOSITIVOS MÓVEIS (Largura máxima de 768px) --- */
@media (max-width: 768px) {
    
    /* Oculta a Sidebar Primária (Ícones) */
    #sidebar_id {
        display: none;
    }

    /* Oculta o Painel do Submenu Secundário */
    #secondary-menu {
        display: none;
    }

    /* Ajusta o Conteúdo Principal para ocupar toda a largura */
    #app-main-content {
        /* Remove a margem da esquerda que era do sidebar */
        margin-left: 0; 
        /* Opcional: Garante que o conteúdo comece logo abaixo do cabeçalho */
        width: 100%; 
    }
    
    /* Ajusta o Cabeçalho */
    nav#navbar_id {
        /* Garante que o cabeçalho ocupe toda a largura */
        width: 100%; 
        /* Opcional: Reduz o padding para telas menores */
        padding: 0 2px; 
    }

    /* Opcional: Oculta detalhes do usuário que podem não caber no cabeçalho em telas pequenas */
    /* nav#navbar_id .grid_global_User_empresa {
        display: none;
    } */
    
    /* Ajusta o logo para telas menores (se necessário) */
 

}

@media (max-width: 640px) {
nav#navbar_id .header-online-status {
    display: none;
}
nav#navbar_id .cabecario_img_login {
 display: none;
}
#header-user-trigger {
      background-color:#e65061;
}

}