h1 {
    color: #004687 !important;
}

.sidebar-light-orange {
    background-color: #004687 !important;
    border-color: #004687 !important;
}

.sidebar-light-orange .sidebar a {
    color: #fff !important;
}

.sidebar-light-orange .sidebar a:hover {
    color: #fbc680 !important;
}


.navbar-white .navbar-light .bg-white {
    background-color: #004687 !important;
}

.nave-header {
    color: #fff !important;
}

.nav-sidebar > .nav-header, .sidebar-form {
    color: #fff !important;
}

.wrapper .content-wrapper {
    background-color: #f0f4f8 !important;
}

.sidebar-dark-orange .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-orange .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #f29400 !important;
    color: #fff !important;
}

.sidebar-light-orange .nav-sidebar > .nav-item.menu-open > .nav-link, .sidebar-light-orange .nav-sidebar > .nav-item:hover > .nav-link {
    background: rgb(242, 148, 0) !important;
    background: linear-gradient(90deg, rgba(242, 148, 0, 1) 0%, rgba(255, 255, 255, 0.8987069006623893) 100%) !important;
    color: black !important;
}

a {
    color: #004687 ;
}

.btn-info {
    color: #fff;
    background-color: #f29400 !important;
    border-color: #f29400 !important;
}

.btn-info:hover {
    color: #fff;
    background-color: #004687 !important;
    border-color: #004687 !important;
}

.btn-primary {
    color: #fff;
    background-color: #004687 !important;
    border-color: #004687 !important;
    box-shadow: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: #f29400 !important;
    border-color: #f29400 !important;
}

@media (max-width: 576px) {
    .btn-ceps {
        display: none !important;
    }
}

@media (min-width: 577px) {

    .icon-ceps {
        display: none !important;
    }
}

/* ========================================
   Unity Dropdown Modern - Estilo Cards com Ícones
======================================== */
.unity-dropdown-modern {
    position: relative;
}

.unity-dropdown-trigger {
    background: linear-gradient(135deg, #004687 0%, #0056a3 100%);
    color: white !important;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 70, 135, 0.3);
    white-space: nowrap;
}

.unity-dropdown-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 135, 0.4);
}

.unity-dropdown-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 70, 135, 0.3);
}

.unity-dropdown-trigger i:first-child {
    font-size: 16px;
    opacity: 0.9;
}

.unity-dropdown-trigger .unity-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.unity-dropdown-modern.show .unity-dropdown-trigger .unity-arrow {
    transform: rotate(180deg);
}

.unity-current-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Menu */
.unity-dropdown-menu {
    min-width: 320px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
    animation: unitySlideDown 0.3s ease;
    margin-top: 10px !important;
}

@keyframes unitySlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unity-dropdown-header {
    background: linear-gradient(135deg, #004687 0%, #0056a3 100%);
    color: white;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unity-dropdown-header i {
    font-size: 16px;
    opacity: 0.9;
}

.unity-dropdown-list {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
}

.unity-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #333 !important;
    margin-bottom: 4px;
    background: transparent;
}

.unity-dropdown-item:last-child {
    margin-bottom: 0;
}

.unity-dropdown-item:hover {
    background: #e8f4fc !important;
    transform: translateX(5px);
    text-decoration: none !important;
    color: #333 !important;
}

.unity-dropdown-item.active {
    background: linear-gradient(135deg, #e8f4fc 0%, #d6eaf8 100%) !important;
    border-left: 3px solid #004687;
    cursor: default;
}

.unity-dropdown-item.active:hover {
    transform: none;
}

.unity-item-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #004687 0%, #0056a3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.unity-item-info {
    flex: 1;
    min-width: 0;
}

.unity-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unity-item-info span {
    font-size: 12px;
    color: #7f8c8d !important;
}

.unity-item-check {
    color: #28a745 !important;
    font-size: 16px;
    flex-shrink: 0;
}

/* Scrollbar personalizada */
.unity-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.unity-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.unity-dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.unity-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsividade */
@media (max-width: 576px) {
    .unity-dropdown-trigger {
        padding: 8px 12px;
        font-size: 13px;
    }

    .unity-current-name {
        max-width: 100px;
    }

    .unity-dropdown-menu {
        min-width: 280px !important;
        right: -50px !important;
    }
}

/* ========================================
   Fix Navbar Fixa - Ajuste z-index e sidebar
======================================== */

/* Garante que a sidebar fica acima da navbar */
.main-sidebar {
    z-index: 1040 !important;
}

/* Garante que o brand-link (logo) fica visível */
.brand-link {
    z-index: 1041 !important;
    position: relative;
}

/* Ajusta a navbar para não sobrepor a sidebar */
.main-header.navbar {
    z-index: 1030 !important;
}

/* Garante que o conteúdo da sidebar fica correto */
.sidebar {
    margin-top: 0 !important;
}

/* Fix para layout com navbar fixa */
body.layout-fixed .main-sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
}

body.layout-fixed .brand-link {
    position: sticky;
    top: 0;
    z-index: 1041 !important;
}

/* ========================================
   Fix Layout Fixo - Navbar e Sidebar
======================================== */

/* Força a sidebar a ter z-index maior que a navbar */
.main-sidebar {
    z-index: 1038 !important;
}

/* Brand link (logo) com fundo e z-index corretos */
.main-sidebar .brand-link {
    background: #004687 !important;
    z-index: 1039 !important;
    position: sticky !important;
    top: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Navbar com z-index menor que a sidebar */
.main-header.navbar {
    z-index: 1037 !important;
}

/* Quando layout fixo, ajusta posições */
body.layout-fixed .main-sidebar {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
}

body.layout-fixed .wrapper {
    overflow: visible !important;
}

body.layout-navbar-fixed .main-sidebar {
    padding-top: 0 !important;
}

body.layout-navbar-fixed .main-sidebar .brand-link {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 250px !important;
    z-index: 1039 !important;
    background: #004687 !important;
}

body.layout-navbar-fixed.sidebar-collapse .main-sidebar .brand-link {
    width: 4.6rem !important;
}

body.layout-navbar-fixed .main-sidebar .sidebar {
    margin-top: 57px !important;
}

/* Garante que o texto do logo seja branco */
.brand-link .brand-text,
.brand-link .brand-image {
    color: #fff !important;
}

/* ========================================
   Fix Mobile - Navbar e Sidebar z-index
======================================== */

/* No mobile, quando sidebar está colapsada, navbar fica na frente */
@media (max-width: 991.98px) {
    /* Navbar fica na frente quando sidebar está fechada */
    .main-header.navbar {
        z-index: 1040 !important;
        position: relative;
    }

    /* Sidebar fica atrás quando fechada (fora da tela) */
    .main-sidebar {
        z-index: 1035 !important;
    }

    /* Brand link também fica atrás */
    .main-sidebar .brand-link {
        z-index: 1035 !important;
    }

    /* Quando sidebar está aberta (sidebar-open), ela fica na frente de tudo */
    body.sidebar-open .main-sidebar {
        z-index: 1050 !important;
    }

    body.sidebar-open .main-sidebar .brand-link {
        z-index: 1051 !important;
    }

    /* Overlay da sidebar */
    #sidebar-overlay {
        z-index: 1049 !important;
    }
}
