/*GLOBAL*/
/*html, body {*/
/*    user-select: auto !important;*/
/*}*/

.ev-nav-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.ev-nav-topbar {
    height: 56px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #fff;
    flex-shrink: 0;
    user-select: text;
}

.ev-nav-left-controls {
    display: flex;
    /*gap: 16px;*/
    gap: 4px;
}

.ev-nav-main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 56px); /* ajusta abaixo da navbar */
}

.ev-main-content {
    flex: 1;
    background: #f5f5f5;
    overflow-y: auto;
    padding: 24px;
}


/*CSS SIDEBAR*/
.ev-nav-sidebar {
    width: 260px;
    background-color: #1b1b1b;
    color: #fff;
    height: 100vh;
    overflow-y: auto;
    /*padding: 10px 0;*/
    padding: 56px 0 0 0;
    /*display: flex;*/
    display: grid;
    flex-direction: column;
    /*margin-top: 55px;*/
    z-index: 999;
    max-width: 260px;
    min-width: 260px;
    align-content: space-between;
    user-select: none;
}

.ev-mobile .ev-nav-sidebar.hidden-in-mobile {
    display: none;
}

.ev-menu-absolute {
    /*position: absolute;*/
    position: fixed;
}

.ev-nav-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 180px;
}

/*.ev-nav-menu {*/
/*    margin: 0;*/
/*}*/

.ev-nav-menu, .ev-nav-submenu {
    list-style: none;
    padding: 0;
    /*margin: 0 0 58px;*/
    max-height: 100%;
    overflow-y: auto;
}

.ev-nav-config-menu {
    /*position: fixed;*/
    /*bottom: 0;*/
    width: 260px;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #5e5e5e;
}

.ev-nav-item {
    position: relative;
}

.ev-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #c6c6c6;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
}

.ev-nav-link:hover {
    background: #2a2a2a;
    color: #f4f4f4;
}

.ev-nav-link span {
    height: 26px;
    align-content: center;
}

.ev-nav-back {
    border-bottom: 1px solid #5e5e5e8c;
    background-color: #272727;
}

.ev-nav-back a {
    padding: 12px 20px 11px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    color: #c6c6c6 !important;
}

.ev-mobile .ev-nav-back a {
    padding-left: 23px !important;
}

.ev-mobile .ev-nav-back > a > icon {
    margin-right: 22px !important;
}

.ev-mobile .ev-nav-sidebar-submenu .ev-nav-link {
    padding-left: 23px !important;
}

.ev-nav-back a:hover {
    color: #f4f4f4 !important;
}

.ev-nav-back > a > icon > img {
    margin: 5px 0 !important;
}

.ev-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.ev-nav-submenu {
    /*display: none;*/
    /*padding-left: 20px;*/
    /*background-color: #2a2a2a;*/
}

.ev-nav-item:hover > .ev-nav-submenu {
    /*display: block;*/
}

.ev-nav-profile {
    background-color: #111;
    padding: 15px;
    color: #fff;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.ev-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.ev-profile-name {
    font-weight: bold;
}

.ev-profile-email {
    font-size: 12px;
    color: #aaa;
}

.ev-profile-actions button {
    margin-top: 8px;
    background-color: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    display: block;
    width: 100%;
}

.ev-profile-actions button:hover {
    background-color: #444;
}

/*CSS complementar sugerido (adicione no CSS principal):*/

.ev-nav-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ev-nav-logo-topbar {
    /*height: 36px;*/
    height: 20px;
    align-self: center;
}

.ev-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-nav-btn-alert, .ev-nav-btn-search, .ev-nav-btn-profile {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.ev-profile-img-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.ev-nav-profile-dropdown {
    position: fixed;
    top: 56px;
    right: 16px;
    /*background: #1b1b1b;*/
    background: #ffffff;
    padding: 10px;
    color: #fff;
    display: none;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    border-radius: 0;
    z-index: 1001;
    min-width: 270px;
}

.ev-nav-profile-dropdown.visible {
    display: flex;
}

/*Esconder e mostrar sidebar*/
.ev-sidebar-hidden .ev-nav-sidebar {
    display: none;
}

.ev-sidebar-hidden .ev-main-content {
    width: 100%;
}

.ev-nav-sidebar {
    transition: all 0.3s ease;
}
.ev-main-content {
    transition: all 0.3s ease;
}


/* Dropdown de Perfil com avatar e ações */
.ev-nav-profile-header {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #dddddd;
}

.ev-nav-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
}

.ev-nav-profile-info {
    display: flex;
    flex-direction: column;
}

.ev-nav-profile-name {
    font-weight: bold;
    font-size: 14px;
    color: #161616;
}

.ev-nav-profile-email {
    font-size: 12px;
    color: #8d8d8d;
}

.ev-nav-profile-actions {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ev-nav-profile-action ev-btn-icon {
    width: 100%;
    justify-content: flex-start;
}

/* SUBMENU */
.ev-nav-sidebar-submenu {
    margin-top: 55px;
    background-color: #1e1e1e;
    z-index: 999;

    position: fixed;
    left: 260px;
    top: 0;
    bottom: -1px;
}

.ev-submenu-absolute {
    /*position: absolute;*/
    position: fixed;
    left: 260px;
    z-index: 999;
    /*height: -webkit-fill-available;*/
    bottom: -1px;
    top: 0;
}

.ev-mobile .ev-submenu-absolute.show-in-mobile {
    left: 0;
}

.ev-nav-submenu-container {
    display: flex;
    height: -webkit-fill-available;
}

.ev-nav-submenu {
    background: #1e1e1e;
    /*position: absolute;*/
    /*min-width: 200px;*/
    /*z-index: 1000;*/

    /*padding: 10px 0;*/
    padding: 1px 0;
    border-right: 1px solid #8d8d8d3d;
    min-width: 260px;
}

.ev-mobile .ev-nav-submenu.hidden-in-mobile {
    display: none;
}


/* NOTIFICATIONS */
.ev-notification-popup::-webkit-scrollbar {
    width: 6px;
}
.ev-notification-popup::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 0;
}

.ev-notification-popup {
    position: fixed;
    top: 56px;
    right: 16px;
    /*background: #1b1b1b;*/
    /*background: #f4f4f4;*/
    background-color: #ffffff;
    /*padding: 16px 16px 10px;*/
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    z-index: 1001;
    width: 370px;
    max-height: 70%;
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 14px;
}

.ev-notification-popup-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ev-notification-header {
    padding: 16px 16px 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;

}

.ev-notification-header span {
    font-weight: 500;
    font-size: 14px;
    color: #525252;
}

.ev-notification-dismiss {
    color: #78a9ff;
    font-size: 13px;
    text-decoration: none;
}

.ev-notification-dismiss:hover {
    text-decoration: underline;
}

#ev-notification-body {
    overflow-y: auto;
    max-height: 50vh;
}

.ev-notification-section {
    margin-bottom: 12px;
}

.ev-notification-section-title {
    font-size: 14px;
    margin: 0;
    padding: 8px 16px;
    color:  #525252;
    font-weight: 400;
    background-color: #e0e0e1;
}

.ev-notification-item {
    /*padding: 8px 0;*/
    padding: 16px;
    /*border-top: 1px solid #333;*/
    border-top: 1px solid #dddddd;
    border-bottom: 0;
}

.ev-notification-meta {
    font-size: 12px;
    color: #525252;
}

.ev-notification-title {
    font-weight: 650;
    font-size: 14px;
    margin-top: 8px;
    color: #161616;
}

.ev-notification-desc {
    margin-top: 8px;
    font-size: 12px;
    color: #525252;
}

.ev-notification-footer {
    padding: 8px 16px 8px;
    /*padding-top: 10px;*/
    /*border-top: 1px solid #333;*/
    border-top: 1px solid #dddddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 0;
}

.ev-notigication-action {
    /*margin-top: 8px;*/
    font-size: 14px;
    float: inline-end;
}


/* SEARCH */
.ev-search-input-container {
    background-color: #393939;
    height: 40px;
    display: flex;
}

.ev-search-icon-left {
    height: 40px;
    padding: 7px;
}

.ev-layout-menu-general-search-input {
    background-color: #0000;
    border: 0;
    color: #f4f4f4;
}

.ev-layout-menu-general-search-input:focus-visible {
    outline: none;
}

.ev-search-input-container:focus-within {
    border: 2px solid #ffffff;
}

.ev-notification-color {
    border-radius: 20px;
    height: 10px;
    width: 10px;
    display: inline-block;
    margin-right: 10px;
}

.ev-notification-success .ev-notification-color {
    background-color: #42be65;
}

.ev-notification-error .ev-notification-color {
    background-color: #fa4d56;
}

.ev-notification-warning .ev-notification-color {
    background-color: #f1c21b;
}

.ev-notification-info .ev-notification-color {
    background-color: #4589ff;
}

.ev-link-notification {
    color: #0f62fe;
    line-height: 18px;
    letter-spacing: 0.16px;
}
.ev-link-notification:hover {
    text-decoration: underline !important;
    color: #054ada !important;;
}
.ev-link-notification:active {
    color: #161616 !important;;
}
.ev-link-notification:disabled {
    color: #c6c6c6 !important;;
}