/*menu superitor*/

#topbar {
    position: relative;
    height: 66px;
    background: var(--color-white);
    border-bottom: 0.5px solid var(--border, rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1rem;
    z-index: 100;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.13);
}

#topbar * {
    font-size: 0.95rem;
    font-weight: 400;
}

.btn-menu-top-itens {
    position: relative;
    /*top: 20px;*/
    top: 14px;
}

.btn-menu-top-date {
    position: relative;
    top: 6px;
}

@media (max-width: 900px) {
    .btn-menu-top-itens {
        visibility: hidden;
    }

    #topbar .col-3 {
        width: 100% !important;
        /*text-align: center;*/
    }

    #topbar .col-9 {
        display: none;
        visibility: hidden;
        width: 0 !important;

    }
}

/*Menu esquerdo*/

#wrapper {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background 0.15s;
}

#hamburger span {
    font-size: 22px;
    color: var(--text-gray);
}

.sidebar-btn {
    position: relative;
    width: 1px;
    height: 1px;
    top: 3px;
    left: -21px;
}

#hamburger.open {
    position: relative;
    top: -8px;
    left: -8px;
}

#hamburger.open .sidebar-bar {
    position: relative;
    left: 5px;
}

#hamburger.closed {
    position: relative;
    left: 12px;

}

#hamburger.closed .sidebar-bar {
    position: relative;
    height: 100dvh;
    left: -8px;
    top: -37px;
    width: 6px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
}

#hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#hamburger.open span {
    transform: rotate(180deg);
}

#topbar-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary, #1a1a18);
}

#body-row {
    display: flex;
    flex: 1;
}

.sidebar-menu {
    overflow: auto;
}

#sidebar {
    position: relative;
    left: 0;
    overflow: hidden;
    background: var(--surface-2, #ffffff);
    border-right: 0.5px solid var(--border, rgba(0, 0, 0, 0.1));
    transition: left 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
    display: flex;
    font-size: 1.3rem;
    flex-direction: column;
    height: calc(100dvh - 66px);
}

#sidebar.closed {
    left: -250px;
    width: 0;
}

#sidebar.open {
    left: 0;
    width: 240px;
}

#sidebar-inner {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.5rem 0.25rem;
    margin-top: 0.5rem;
}

/* Itens do menu */

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-gray);
    padding: 10px 20px 5px;
    font-weight: 700;
}

.nav-title {
    font-size: 14px;
}

span.nav-title {
    font-size: 20px;
}

.nav-item-iso {
    margin: 14px 0 14px 2px;
}

.nav-item-iso div.nav-title {
    margin-left: -10px;
}

.nav-item, .nav-item-iso {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.15s, color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.nav-item:hover, .nav-item-iso:hover {
    background: var(--bg-active-link);
    color: var(--text-active-link);
}

.nav-item.active, .nav-item-iso.active {
    color: var(--text-active-link);
}

/* MENU ESQUERDO NAV */

.mud-expansion-panels {
    padding-top: 10px !important;
}

.mud-expand-panel.mud-panel-next-expanded {
    margin-bottom: 10px !important
}

.mud-expand-panel {
    margin: 8px 0 8px 0;
}

.mud-expand-panel .mud-expand-panel-header.mud-expand-panel-header-gutters {
    padding-left: 5px;
    padding-right: 26px;
}

.mud-expand-panel .mud-expand-panel-content.mud-expand-panel-gutters {
    padding: 2px 0 10px 24px;
}

.mud-expand-panel.mud-panel-expanded {
    margin: 0 !important;
}

.mud-expand-panel .mud-expand-panel-header {
    min-height: 30px;
    padding: 0;
}

.mud-panel-expanded {
    color: var(--text-active-link) !important;
}

.mud-panel-expanded .mud-expand-panel-header,
.mud-expand-panel-header:hover {
    background-color: var(--text-active-link);
    color: var(--color-white) !important;
    /*background-color: var(--bg-active-link);*/
    /*color: var(--text-active-link) !important;*/
}
