:root {
    --bs-body-bg: #f4f6f9; /* Fundo suave e moderno */
    --bs-border-radius-lg: 0.75rem; /* Cantos arredondados suaves */
    --sidebar-width: 260px; /* Largura padrão da sidebar */
}
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
}

/* Container principal estilizado */
.form-container {
    background-color: #ffffff;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Estilização dos Fieldsets como cartões organizados */
fieldset {
    border: 1px solid #f1f5f9;
    background-color: #fafafa;
    border-radius: 0.5rem;
    padding: 0.6rem;
    margin-bottom: 1.5rem;
}

legend {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.05em;
    width: auto;
    padding: 0 0.5rem;
    float: none;
    margin-bottom: 0.5rem;
}

/* Ajuste visual nos inputs */
.form-control {
    border-radius: 0.5rem;
    border-color: #cbd5e1;
    padding: 0.6rem 0.75rem;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

/* Botão salvar personalizado */
.btn-custom {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    font-weight: 500;
    padding: 0.6rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-custom:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    color: #ffffff;
}

/* Estilização moderna para a tabela de resultados */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;               
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.table-custom tbody tr {
    transition: background-color 0.15s ease;
}

/* Efeito de hover normal nas linhas da tabela */
.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

.table-custom td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* Container e Estilização do Toast Flutuante */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estado Visível */
#toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Cores por Tipo de Mensagem */
#toast.success {
    background-color: #10b981;
    border-left: 5px solid #059669;
}

#toast.error {
    background-color: #ef4444;
    border-left: 5px solid #dc2626;
}

#toast.info {
    background-color: #3b82f6;
    border-left: 5px solid #2563eb;
}

/* Logo */
.login-logo {
    max-height: 80px;
    object-fit: contain;
}

.menu-logo {
    background-image: url('../img/logo.png');
    width: 2rem;
    height: 2rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-clip: border-box;
    display: inline-block;
}

/* Estilização da Sidebar Desktop */
.sidebar-wrapper {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #1e293b;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Ajustes para a Sidebar Mobile (Offcanvas) */
.sidebar-mobile-wrapper {
    background-color: #1e293b !important;
    max-width: var(--sidebar-width);
}

/* Aplicado a ambas as sidebars */
.sidebar-wrapper .accordion-item,
.sidebar-mobile-wrapper .accordion-item {
    background-color: transparent;
    border: none;
}

.sidebar-wrapper .accordion-button,
.sidebar-mobile-wrapper .accordion-button {
    background-color: transparent;
    color: #cbd5e1;
    font-weight: 500;
    box-shadow: none;
    padding: 0.75rem 1rem;
}

.sidebar-wrapper .accordion-button:not(.collapsed),
.sidebar-mobile-wrapper .accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-wrapper .accordion-button::after,
.sidebar-mobile-wrapper .accordion-button::after {
    filter: invert(1);
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.sidebar-menu-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Conteúdo Principal */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
    }
}

/* Animação suave para os cards de atalhos */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

 /* Container dos diretórios alinhado ao centro */
            #div-diretorios, #div-dir{
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                width: 100%;
            }

            /* Estilização do link de cada pasta */
            .pasta-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                color: inherit;
                text-align: center;
                transition: transform 0.2s ease;
            }

            .pasta-item:hover {
                transform: translateY(-3px);
            }

            /* Tamanho extra grande para o ícone */
            .pasta-item i {
                font-size: 3rem; /* Tamanho extra grande */
                margin-bottom: 0.5rem;
            }

            /* Cores específicas para cada ícone por atributo data-nome */
            .pasta-item[data-nome="assessoria"] i {
                color: #0d6efd; /* Azul Bootstrap */
            }

            .pasta-item[data-nome="arrecadacao"] i {
                color: #198754; /* Verde Bootstrap */
            }

            .pasta-item[data-nome="contabilidade"] i {
                color: #fd7e14; /* Laranja Bootstrap */
            }

            .pasta-item[data-nome="produtor"] i {
                color: #6f42c1; /* Roxo Bootstrap */
            }

              /* Cores específicas para cada ícone por atributo data-nome */
            .pasta-item[data-nome="movimento"] i {
                color: #0d6efd; /* Azul Bootstrap */
            }

            .pasta-item[data-nome="cadastro"] i {
                color: #198754; /* Verde Bootstrap */
            }

            .pasta-item[data-nome="manutencao"] i {
                color: #fd7e14; /* Laranja Bootstrap */
            }

            .pasta-item[data-nome="relatorio"] i {
                color: #6f42c1; /* Roxo Bootstrap */
            }

          /* Destaque para a linha selecionada (tem prioridade total) */
.table-custom tbody tr.row-selecionada,
.table-custom tbody tr.row-selecionada:hover {
    background-color: rgba(13, 110, 253, 0.15) !important;
    transition: background-color 0.2s ease;
}

 /* Estilos customizados adicionais */
.card-data-item p {
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

.print-only { 
    display: none; 
}

@media print {
    /* Oculta elementos com no-print e exibe elementos print-only */
    .no-print { 
        display: none !important; 
    }
    .print-only { 
        display: block !important; 
    }

    /* Ajustes gerais de página */
    body { 
        font-size: 9pt; 
        background: #fff !important; 
        color: #000 !important;
        margin: 0;
        padding: 0;
    }

    /* Quebra de página para tabelas longas */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    tr {
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    /* Remove sombras e bordas desnecessárias no papel */
    .table-bordered th, 
    .table-bordered td {
        border: 1px solid #dee2e6 !important;
        padding: 4px 8px !important;
    }
}

@media print {
    /* Faz o tfoot se comportar como um bloco normal ao final do conteúdo da tabela, 
       garantindo que apareça apenas na última página impressa */
    tfoot {
        display: table-row-group !important;
    }

    tfoot tr {
        page-break-inside: avoid;
    }
}

.table-striped tr td div{
    text-transform: capitalize;
}
         