/* VERSÃO FINAL E CORRETA - Herda cores do site.css */

body.admin-layout-active {
    padding-top: var(--topbar-height) !important;
    background-color: #f4f6f9; /* Cor de fundo do conteúdo */
    font-family: 'Asap', sans-serif;
    background-image: none !important;
}

:root {
    --sidebar-width: 260px;
    --topbar-height: 65px;
}

/* ================== TOPBAR (Barra Superior Verde de ponta a ponta) ================== */
.jedax-topbar {
    height: var(--topbar-height);
    width: 100%;
    background-color: #67B34D; /* Cor primária da marca (do site.css) */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.jedax-topbar-left {
    display: flex;
    align-items: center;
}

.jedax-topbar-brand img {
    height: 30px;
    margin-right: 20px;
}

.jedax-topbar .breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
}

.jedax-topbar .breadcrumb-item.active,
.jedax-topbar .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.jedax-topbar .dropdown-toggle {
    color: #ffffff !important;
    text-decoration: none;
}

/* ================== SIDEBAR (Branca, posicionada abaixo do Topbar) ================== */
.jedax-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100% - var(--topbar-height));
    z-index: 1000;
}

.jedax-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
    padding: 20px 15px;
}

.jedax-sidebar-header .jedax-logo {
    max-height: 55px;
    width: auto;
}

.jedax-menu {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
}

.jedax-menu .nav-link.menu-group-toggle {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    color: #54944E; /* Cor padrão do link vinda do site.css */
}

/* ESTILO PARA MENU ABERTO (Fundo verde, texto branco) */
.jedax-menu .nav-link.menu-group-toggle[aria-expanded="true"],
.jedax-menu .nav-link.menu-group-toggle:hover {
    background-color: #67B34D;
    color: #ffffff;
}

.jedax-menu .nav-link.menu-group-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.jedax-menu .nav-link.menu-group-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ================== SUBMENU (Herda cores) ================== */
.jedax-submenu .nav-link {
    display: block;
    padding: 8px 15px 8px 35px;
    border-radius: 5px;
    font-size: 0.95em;
    position: relative;
    color: #54944E; /* Cor padrão do link vinda do site.css */
}

/* Evita que o hover cinza se aplique a um item já ativo */
.jedax-submenu .nav-link:not(.active):hover {
    background-color: #f0f0f0;
}

/* ESTILO PARA SUBMENU ATIVO (Fundo verde, texto branco) */
.jedax-submenu .nav-link.active {
    font-weight: bold;
    background-color: #67B34D;
    color: #ffffff;
}

/* ================== CONTEÚDO PRINCIPAL DA PÁGINA ================== */
.jedax-main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    width: calc(100% - var(--sidebar-width));
}