﻿.ui-datepicker{
    z-index: 3 !important;
}

@media (max-width: 991px) {
    .dx-grid-wrapper {
        overflow-x: auto;
        max-width: 86vw;
    }
}

.btn {
    line-height: 0.7 !important;
    font-size: 0.9rem !important;
    padding: 0.3rem 0.5rem !important;
}

.hide {
    display: none !important;
}

.pointer {
    cursor: pointer;
}

.btn-sm-plus {
    padding: 5px 10px !important;
    font-size: 14px !important;
    border-radius: 100px !important;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.panel-collapse-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    margin-left: 3px;
    background: var(--surface-card);
    transition: all var(--transition-fast);
    cursor: pointer;
}

    .panel-collapse-circle:hover {
        color: var(--brand-primary);
        background-color: var(--brand-primary-light);
        border-color: var(--brand-primary);
    }

/*[ Social item ]*/
.login100-social-item {
    font-size: 25px;
    color: #fff;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 5px;
}

    .login100-social-item:hover {
        color: #fff;
        background-color: #333333;
    }

.bg1 {
    background-color: #3b5998
}

.bg2 {
    background-color: #1da1f2
}

.bg3 {
    background-color: #ea4335
}

/*Imagem Circle*/
.circle {
    background-color: #aaa;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    overflow: hidden;
    position: relative;
}

    .circle img {
        position: absolute;
        bottom: 0;
        width: 100%;
    }


/*Upload Arquivo*/

.uploadimage-dragndrop {
    border: 2px dashed #DDD;
    margin: 20px 0;
    padding: 50px 20px;
    text-align: center;
    color: #DDD;
}

.uploadimage-text {
    font-size: 32px;
    margin-bottom: 20px;
}

.uploadimage-input {
    margin: 20px 0;
}

.uploadimage-upload {
    background: #EEE;
    margin: 4px 0;
}

.uploadimage-uploadcompleted {
    background: #d1f4ac;
}

.uploadimage-fileinfo {
    padding: 5px;
    font-size: 11px;
    position: relative;
}

.uploadimage-progresspct {
    position: absolute;
    top: 5px;
    right: 5px;
}

.uploadimage-progress {
    background: #999;
}

.uploadimage-progressbar {
    background: maroon;
    height: 2px;
}

.uploadimage-totalprogress {
    background: #999;
}

.uploadimage-totalprogressbar {
    background: #107EC2;
    height: 6px;
}

.description {
    margin: 40px 0;
}

.pageScroll {
    overflow: auto;
}

    .pageScroll::-webkit-scrollbar-track {
        background-color: #F4F4F4;
    }

    .pageScroll::-webkit-scrollbar {
        width: 5px;
        background: #F4F4F4;
    }

    .pageScroll::-webkit-scrollbar-thumb {
        background: #0e0c28;
    }

/* ── Fiscal Particles - ícones fiscais flutuando suavemente ── */

.fiscal-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fiscal-particles > i {
    position: absolute;
    display: block;
    bottom: -40px;
    color: var(--brand-primary);
    opacity: 0.012;
    pointer-events: none;
    animation: fiscalFloat linear infinite;
}

/* Animação: sobe suavemente girando, opacidade muito baixa */
@keyframes fiscalFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    5% {
        opacity: 0.18;
    }
    90% {
        opacity: 0.18;
    }
    100% {
        opacity: 0;
        transform: translateY(-110vh) translateX(20px) rotate(360deg);
    }
}

/* Cada partícula: posição, tamanho, duração, delay únicos */

.fiscal-particles > i:nth-child(1)  { left: 8%;  font-size: 18px; animation-duration: 28s; animation-delay: 0s; }
.fiscal-particles > i:nth-child(2)  { left: 22%; font-size: 14px; animation-duration: 22s; animation-delay: 3s;  color: var(--brand-secondary); }
.fiscal-particles > i:nth-child(3)  { left: 38%; font-size: 11px; animation-duration: 32s; animation-delay: 6s;  color: var(--brand-accent); }
.fiscal-particles > i:nth-child(4)  { left: 52%; font-size: 16px; animation-duration: 26s; animation-delay: 1s; }
.fiscal-particles > i:nth-child(5)  { left: 68%; font-size: 13px; animation-duration: 30s; animation-delay: 8s;  color: var(--brand-secondary); }
.fiscal-particles > i:nth-child(6)  { left: 82%; font-size: 15px; animation-duration: 24s; animation-delay: 4s; }
.fiscal-particles > i:nth-child(7)  { left: 15%; font-size: 12px; animation-duration: 35s; animation-delay: 10s; color: var(--brand-accent); }
.fiscal-particles > i:nth-child(8)  { left: 45%; font-size: 17px; animation-duration: 20s; animation-delay: 5s;  color: var(--brand-secondary); }
.fiscal-particles > i:nth-child(9)  { left: 60%; font-size: 10px; animation-duration: 38s; animation-delay: 12s; }
.fiscal-particles > i:nth-child(10) { left: 90%; font-size: 14px; animation-duration: 27s; animation-delay: 2s;  color: var(--brand-accent); }
.fiscal-particles > i:nth-child(11) { left: 5%;  font-size: 13px; animation-duration: 33s; animation-delay: 15s; color: var(--brand-secondary); }
.fiscal-particles > i:nth-child(12) { left: 75%; font-size: 11px; animation-duration: 29s; animation-delay: 7s; }

/* Dark theme: partículas ainda mais sutis */
[data-theme="dark"] .fiscal-particles > i {
    opacity: 0.008;
}

/* Mobile: menos partículas visíveis, mais sutis */
@media (max-width: 767px) {
    .fiscal-particles > i {
        font-size: 10px !important;
    }
    .fiscal-particles > i:nth-child(n+7) {
        display: none;
    }
}

/* Reduz motion para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .fiscal-particles > i {
        animation: none !important;
        display: none;
    }
}

/* --- 1. O Botão (Sino) --- */
.for-notification .btn-secondary {
    background-color: transparent;
    border: none;
    color: #b7b9cc; /* Cinza ícone inativo */
    box-shadow: none !important;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s;
}

/* Hover e estado ativo */
.for-notification .btn-secondary:hover,
.for-notification.show .btn-secondary {
    color: #4e73df; /* Azul destaque */
    background-color: transparent;
}

/* Remove a setinha padrão do Bootstrap dropdown */
.for-notification .dropdown-toggle::after {
    display: none;
}

/* Ícone do sino */
.for-notification .fa-bell {
    font-size: 1rem;
}

/* --- 2. O Contador (Badge) --- */
.for-notification .count {
    font-weight: 700;
    top: -3px !important;
}

/* Animação de Pulso (Radar) */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.animate-pulse {
    animation: pulse-red 2s infinite;
}

/* --- 3. O Menu Dropdown (O Container) --- */

.for-notification .dropdown-menu {
    width: 350px;
    max-width: calc(100vw - 16px);
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    max-height: 400px;
    overflow-y: auto;
    padding-top: 60px;
    border-radius: 10px !important;
    right: 0 !important;
    left: auto !important;
}

    /* Headerzinho escrito "Notificações" */
    .for-notification .dropdown-menu::before {
        content: 'NOTIFICAÇÕES';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: #ffc859;
        color: #fff;
        font-size: 0.7rem;
        font-weight: 800;
        padding: 8px 15px;
        letter-spacing: 1px;
    }

/* --- 4. Os Itens da Lista --- */
.for-notification .dropdown-item {
    padding: 15px;
    border-bottom: 1px solid #e3e6f0;
    white-space: normal; /* Permite que o texto quebre linha */
    display: flex;
    align-items: flex-start; /* Alinha ícone e texto no topo */
    transition: background 0.2s;
    color: #5a5c69;
    font-size: 0.9rem;
    line-height: 1.4;
}

    .for-notification .dropdown-item:hover {
        background-color: #f8f9fc;
        text-decoration: none;
    }

    .for-notification .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Estilo do Ícone (Check) dentro do item */
    .for-notification .dropdown-item i {
        background-color: #1cc88a; /* Verde sucesso */
        color: white;
        width: 25px !important;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0; /* Impede o ícone de amassar */
        font-size: 0.8rem;
    }

    /* Texto da notificação */
    .for-notification .dropdown-item p {
        margin: 0;
        color: #444;
    }

/* --- 5. Estado Vazio (Sem notificações) --- */
.for-notification .red {
    text-align: center;
    padding: 30px 10px;
    color: #858796;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Se a classe red forçar cor vermelha, sobrescrevemos para cinza clean */
p.red {
    color: #858796 !important;
}

@media (max-width: 767px) {
    /* Header vira contexto de posicionamento para os dropdowns */
    .right-panel header.header {
        position: relative !important;
    }

    /* Dropdown de notificações: desancora do botão, posiciona no header */
    .for-notification {
        position: static !important;
    }

    .for-notification .dropdown-menu {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        top: 62px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }
}

/*Toltips*/

.ui-tooltip {
    background: #2c3e50 !important; /* Cor de fundo escura */
    color: #fff !important; /* Texto branco */
    border: none !important; /* Remove bordas cinzas antigas */
    border-radius: 6px !important; /* Arredondado moderno */
    padding: 10px 15px !important; /* Espaçamento interno */
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    /* Sombra suave moderna */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    /* Remove imagens de fundo ou gradientes antigos */
    background-image: none !important;
}

/* Opcional: Ajuste para o conteúdo interno do jQuery UI */
.ui-tooltip-content {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0 !important;
    font-size: 13px !important;
}

/* --- ALVO 2: Bootstrap (Caso seja ele) --- */
.tooltip.show, .tooltip.in {
    opacity: 1 !important; /* Garante que fique visível */
}

.tooltip-inner {
    background-color: #2c3e50 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    font-family: 'Segoe UI', sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    max-width: 300px !important;
}

/* Remove setinhas antigas para ficar mais clean */
.tooltip-arrow,
.tooltip .arrow,
.ui-tooltip .arrow {
    display: none !important;
}

