@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700,900);
@import url('https://fonts.googleapis.com/css?family=Ek+Mukta:400,600,700');
.main-custom {
    background-color: white;
    display: block;
    min-height: 100vh;
    min-height: -webkit-calc(100vh - 100px);
    min-height: -moz-calc(100vh - 100px);
    min-height: calc(100vh - 100px);
    position: relative;
    width: 100%;
}

.navbar {
    background-color: #5E17EB !important;
    color: #00c6c6;
}

.nav-link {
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    font-weight: 700
}

.nav-link:hover {
    color: #1b1b1b;
}

.icones-footer {
    color: white;
}

.footer-icon {
    color: white;
}

.footer-icon:hover {
    color: #1b1b1b;
}

.footer {
    background-color: #5E17EB !important;
    height: 100%;
    color: white;
    display: block;
    min-height: 100px;
    width: 100%;
    position: fixed;
    bottom:0;
    left:0;
}

.titles {
    color: #5E17EB;
}

.tabela {
    font-size: 14px;
}

.btn-form {
    background-color: white !important;
    border-color: #5E17EB !important;
    color: #5E17EB !important;
}

.btn-form:hover {
    background-color: #5E17EB !important;
    border-color: white !important;
    color: white !important;
}

.card-borda {
    border-color: #5E17EB !important;
}

.acor-botao:focus {
    z-index: 3;
    border-color: #5E17EB !important;
    outline: 0;
    box-shadow: 0 0 0 0.1rem #5E17EB !important;
}

.acor-botao:not(.collapsed) {
    color: #1b1b1b !important;
    background-color: #5E17EB !important;
}

.dropdown-item {
    color: #5E17EB;
}

.dropdown-item:hover {
    color: white;
    background-color: #5E17EB !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: #5E17EB !important;
    border-color: #5E17EB;
}

.page-item.active .page-link:hover {
    z-index: 3;
    color: #5E17EB;
    background-color: white;
    border-color: #5E17EB;
}

a {
    text-decoration: none;
}

.filtro-cima {
    margin-top: 32px;
}


/* Barra de aviso de Cookie */

.box-cookies.hide {
    display: none !important;
}

.box-cookies {
    position: fixed;
    background: rgba(0, 0, 0, .9);
    width: 100%;
    z-index: 998;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-cookies .msg-cookies,
.box-cookies .btn-cookies {
    text-align: center;
    padding: 25px;
    color: #fff;
    font-size: 18px;
}

.box-cookies .btn-cookies {
    background-color: #5E17EB !important;
    cursor: pointer;
    align-self: normal;
}

.link-cookies-politica-privacidade {
    color: #5E17EB;
    text-decoration: none;
}

.link-cookies-politica-privacidade:hover {
    color: #fff;
}

@media screen and (max-width: 600px) {
    .box-cookies {
        flex-direction: column;
    }
}

.img-login {
    max-width: 35%;
    max-height: 35%;
    width: auto;
    height: auto;
}

.img-principal {
    width: 128px;
    height: auto;
}

.img-relatorio {
    width: 156px;
    height: 48px;
}

.footer-login-icon {
    color: #5E17EB;
}

.footer-login-icon:hover {
    color: #1b1b1b;
}

.footer-login {
    background-color: white !important;
    position: fixed;
    bottom: 0;
}

.btn.btn-BlueWhite {
    background-color: #5E17EB !important;
    color: white !important;
    background-image: none !important;
}

.btn.btn-BlueWhite:hover {
    background-color: white !important;
    border-color: #5E17EB !important;
    color: #5E17EB !important;
    background-image: none !important;
}

.btn.btn-WhiteBlue {
    background-color: white;
    border-color: #5E17EB;
    color: #5E17EB;
    background-image: none !important;
}

.btn.btn-WhiteBlue:hover {
    background-color: #5E17EB !important;
    color: white;
    background-image: none !important;
}

.btn-RedWhite {
    background-color: #e61919;
    border-color: white;
    color: white;
}

.btn-RedWhite:hover {
    background-color: white;
    color: #e61919;
    border-color: #e61919;
}

.icones-Gestao {
    min-width: 32px !important; 
    min-height: 24px !important;
    padding: 3px 3px;
    background-color: #5E17EB !important;
    border-radius: 2px;
    border: 1px solid #5E17EB;
}

.icones-Gestao:hover {
    background-color: white;
    color: rgb(63, 163, 219);
}


/* ============ desktop view ============ */

@media all and (min-width: 992px) {
    .dropdown-menu li {
        position: relative;
    }
    .dropdown-menu .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }
    .dropdown-menu .submenu-left {
        right: 100%;
        left: auto;
    }
    .dropdown-menu>li:hover {
        background-color: #f1f1f1
    }
    .dropdown-menu>li:hover>.submenu {
        display: block;
    }
}


/* ============ desktop view .end// ============ */
@media (max-width: 1366px) {
    .footer-politicas-loginMant{
        font-size: 10px;
    }
}


/* ============ small devices ============ */

@media (max-width: 991px) {
    .dropdown-menu .dropdown-menu {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: .5rem;
    }
}


/* ============ small devices .end// ============ */


.img-empresas{
    width: 100%; 
    height: 64px; 
    max-height: 128px;
    object-fit: scale-down;
}

.color-green {
    color: green !important;
}

.color-red {
    color: #e61919 !important;
}

/* 
* PDF
*/

.pdf-canvas {
    border: 1px solid black;
    width: 100%;
    height: 600px;
}

.list-group-item.active  {
    background-color: #5E17EB !important; 
    border-color: white !important;
}





/*
*   Dashboards
*/


        /* Estilos para cards colapsáveis */
        .collapsible-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
            border: 2px solid transparent;
            transition: all 0.3s ease;
            overflow: hidden;
            cursor: pointer;
        }
        
        .collapsible-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.2);
        }
        
        .collapsible-card.expanded {
            border-color: rgba(99, 102, 241, 0.3);
        }
        
        .card-header-collapsible {
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            position: relative;
            user-select: none;
        }

        .card-header-collapsible::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 1rem;
            right: 1rem;
            height: 2px;
            background: #F3F4F6;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .collapsible-card.expanded .card-header-collapsible::after {
            opacity: 1;
        }
        
        .financial-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
            position: relative;
        }
        
        .financial-icon::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 14px;
            background: inherit;
            opacity: 0.15;
            filter: blur(10px);
            z-index: -1;
        }
        
        .financial-summary {
            flex: 1;
            min-width: 0;
        }
        
        .financial-summary h6 {
            font-size: 12px;
            color: #6B7280;
            font-weight: 600;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0;
            white-space: nowrap;
        }
        
        .financial-summary .total-value {
            font-size: 22px;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 4px;
            white-space: nowrap;
        }
        
        .financial-summary .trend {
            font-size: 11px;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        
        .expand-indicator {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: rgba(99, 102, 241, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        
        .expand-indicator i {
            font-size: 18px;
            color: #6366F1;
            transition: transform 0.3s ease;
        }
        
        .collapsible-card.expanded .expand-indicator {
            background: rgba(99, 102, 241, 0.15);
        }
        
        .collapsible-card.expanded .expand-indicator i {
            transform: rotate(180deg);
        }
        
        .collapsible-card:hover .expand-indicator {
            background: rgba(99, 102, 241, 0.2);
        }
        
        .financial-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .collapsible-card.expanded .financial-details {
            max-height: 800px;
        }
        
        .detail-row {
            padding: 0.875rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #F3F4F6;
            transition: background-color 0.2s ease;
            animation: fadeInRow 0.3s ease forwards;
            opacity: 0;
        }
        
        .collapsible-card.expanded .detail-row {
            animation: fadeInRow 0.4s ease forwards;
        }
        
        @keyframes fadeInRow {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .detail-row:nth-child(1) { animation-delay: 0.05s; }
        .detail-row:nth-child(2) { animation-delay: 0.1s; }
        .detail-row:nth-child(3) { animation-delay: 0.15s; }
        .detail-row:nth-child(4) { animation-delay: 0.2s; }
        .detail-row:nth-child(5) { animation-delay: 0.25s; }
        .detail-row:nth-child(6) { animation-delay: 0.3s; }
        
        .detail-row:last-child {
            border-bottom: none;
        }
        
        .detail-row:hover {
            background-color: #F9FAFB;
        }
        
        .detail-label {
            font-size: 13px;
            color: #4B5563;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .detail-value {
            font-size: 14px;
            font-weight: 700;
            color: #1F2937;
        }
        
        .detail-value.zero {
            color: #9CA3AF;
        }
        
        .detail-value.highlight {
            color: #6366F1;
        }
        
        /* Status badge dentro do detail row */
        .status-badge {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .status-badge.warning {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            color: #D97706;
        }
        
        .status-badge.info {
            background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
            color: #2563EB;
        }
        
        .status-badge.primary {
            background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
            color: #4F46E5;
        }
        
        .status-badge.secondary {
            background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
            color: #475569;
        }
        
        .status-badge.danger {
            background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
            color: #DC2626;
        }
        
        .status-badge.success {
            background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
            color: #059669;
        }
        
        /* Cores específicas para cada tipo de card */
        .collapsible-card.pagar .financial-icon {
            background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
            color: white;
        }
        
        .collapsible-card.pagar .total-value {
            color: #4F46E5;
        }
        
        .collapsible-card.pagar .card-header-collapsible {
            background: linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
        }
        
        .collapsible-card.receber .financial-icon {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
        }
        
        .collapsible-card.receber .total-value {
            color: #059669;
        }
        
        .collapsible-card.receber .card-header-collapsible {
            background: linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
        }
        
        .collapsible-card.receber .expand-indicator {
            background: rgba(16, 185, 129, 0.1);
        }
        
        .collapsible-card.receber .expand-indicator i {
            color: #10B981;
        }
        
        .collapsible-card.receber.expanded .expand-indicator {
            background: rgba(16, 185, 129, 0.15);
        }
        
        .collapsible-card.receber:hover .expand-indicator {
            background: rgba(16, 185, 129, 0.2);
        }
        
        .collapsible-card.receber .detail-value.highlight {
            color: #10B981;
        }
        
        .collapsible-card.saldo .financial-icon {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
            color: white;
        }
        
        .collapsible-card.saldo .total-value {
            color: #2563EB;
        }
        
        .collapsible-card.saldo .card-header-collapsible {
            background: linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
        }
        
        .collapsible-card.saldo .expand-indicator {
            background: rgba(59, 130, 246, 0.1);
        }
        
        .collapsible-card.saldo .expand-indicator i {
            color: #3B82F6;
        }
        
        .collapsible-card.saldo.expanded .expand-indicator {
            background: rgba(59, 130, 246, 0.15);
        }
        
        .collapsible-card.saldo:hover .expand-indicator {
            background: rgba(59, 130, 246, 0.2);
        }
        
        .collapsible-card.saldo .detail-value.highlight {
            color: #3B82F6;
        }
        
        /* Estilos para o card de Tickets */
        .collapsible-card.tickets .financial-icon {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            color: white;
        }
        
        .collapsible-card.tickets .total-value {
            color: #D97706;
        }
        
        .collapsible-card.tickets .card-header-collapsible {
            background: linear-gradient(to bottom, rgba(245, 158, 11, 0.03) 0%, transparent 100%);
        }
        
        .collapsible-card.tickets .expand-indicator {
            background: rgba(245, 158, 11, 0.1);
        }
        
        .collapsible-card.tickets .expand-indicator i {
            color: #F59E0B;
        }
        
        .collapsible-card.tickets.expanded .expand-indicator {
            background: rgba(245, 158, 11, 0.15);
        }
        
        .collapsible-card.tickets:hover .expand-indicator {
            background: rgba(245, 158, 11, 0.2);
        }
        
        /* Ícone de conta */
        .account-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #2563EB;
            flex-shrink: 0;
        }

    table.table thead > tr > th {
    background-color: #5E17EB !important;
    color: white !important;
    box-shadow: none !important;
    }

    .alert-neul {
        background-color: #5e17eb2a;
        border: 1px solid #5E17EB;
        border-radius: 10px;
        color: #5E17EB;
    }
    .bg-neul {
        background-color: #5E17EB;
        color: white;
    }
    .text-neul {
        color: #5E17EB;
    };

/* =========================================================
   ROOT / LAYOUT
========================================================= */

html, body {
    height: 100%;
}

.layout-root {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
}

/* =========================================================
   SIDEBAR – LAYOUT GERAL
========================================================= */

.sidebar {
    width: 290px;
    min-height: 100vh;
    background-color: #5e17eb;
    color: #fff;

    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;

    padding: 16px;
}

/* Mobile */
@media (max-width: 991px) {
    .layout-root {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }
}

/* =========================================================
   HEADER / USUÁRIO
========================================================= */

.sidebar-header {
    padding: 16px 0;
    text-align: center;
    width: 100%;
}

.sidebar-header img {
    max-height: 48px;
}

.sidebar-user {
    text-align: center;
    padding: 12px 0 18px;
    width: 100%;
}

.sidebar-user strong {
    font-size: 14px;
    display: block;
}

.sidebar-user img {
    margin-top: 8px;
    max-height: 60px;
    opacity: .95;
}
.sidebar-menu {
    width: 90%;
}
/* =========================================================
   MENU PRINCIPAL
========================================================= */

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu-item {
    width: 100%;
    margin-bottom: 10px;
}

/* Links e toggles */
.menu-link,
.menu-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 10px;
    color: #fff;
    text-decoration: none;

    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;

    font-size: 16px;
}

/* Hover menu pai */
.menu-link:hover,
.menu-toggle:hover {
    background: rgba(255,255,255,0.14);
}

/* =========================================================
   SUBMENU – CONTAINER (FUNDO PRINCIPAL)
========================================================= */

.submenu {
    display: none;

    border-radius: 10px;
    padding: 10px 0px;
    margin: 8px 0 12px;

    width: 100%;
}

/* Abre submenu */
.menu-item.open > .submenu {
    display: block;
}

/* =========================================================
   ITENS INTERNOS DO SUBMENU (NÍVEL 2 E 3)
========================================================= */

.submenu li {
    list-style: none;
    margin-bottom: 6px;
}

.submenu li:last-child {
    margin-bottom: 0;
}

/* Links do submenu (nível 2) */
.submenu > li > a {
    display: block;

    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;

    border-radius: 6px;

    /* 🔑 FUNDO DOS ITENS */
    background: rgba(255,255,255,0.18);
}

/* Hover item submenu */
.submenu > li > a:hover {
    background: rgba(255,255,255,0.30);
}

/* Toggle do terceiro nível */
.submenu .menu-toggle {
    background: rgba(255,255,255,0.18);
}

.submenu .menu-toggle:hover {
    background: rgba(255,255,255,0.30);
}

/* Submenu aninhado (terceiro nível) */
.submenu .submenu {
    background: rgba(255,255,255,0.08);
    margin: 8px 0 12px;
    padding: 10px 12px;
}

/* Links do terceiro nível */
.submenu .submenu li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
}

.submenu .submenu li a:hover {
    background: rgba(255,255,255,0.30);
}

/* =========================================================
   ITEM ATIVO
========================================================= */

.menu a.active {
    background: rgba(255,255,255,0.32);
    font-weight: 600;
}

/* =========================================================
   SETA DE ABERTURA
========================================================= */

.arrow {
    font-size: 11px;
    transition: transform .2s ease;
}

.menu-item.open > .menu-toggle .arrow {
    transform: rotate(180deg);
}

/* =========================================================
   NEUTRALIZA BOOTSTRAP (SEM MATAR FUNDO DO SUBMENU)
========================================================= */

.submenu ul,
.submenu li {
    padding-left: 0;
}

.submenu a {
    box-shadow: none !important;
}

/* =========================================================
   SEGURANÇA CONTRA BOOTSTRAP
========================================================= */

/* Remove bullets e paddings herdados */
.sidebar ul,
.sidebar li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Remove qualquer fundo branco herdado */
.sidebar a,
.sidebar button {
    background-color: transparent !important;
    box-shadow: none !important;
}
/* =========================================================
   ÁREA PRINCIPAL
========================================================= */

.layout-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f9fafc;
}

/* =========================================================
   BREADCRUMB (LOCALIZAÇÃO DO USUÁRIO)
========================================================= */

.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.breadcrumb-bar span {
    color: #6b7280;
}

.breadcrumb-bar strong {
    color: #111827;
}

/* =========================================================
   FOOTER
========================================================= */

footer-padrao {
    color: #6c757d;
    padding: 12px;
    text-align: center;
    background-color: white !important;
    position: fixed;
    bottom: 0;
}


