* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    transition: padding-left 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: left 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 300;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-online { background-color: #4caf50; }
.status-offline { background-color: #f44336; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Container Principal */
.main-container {
    margin-top: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1e3c72;
}

.breadcrumb .separator {
    color: #999;
}

/* Filtros */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-title {
    font-size: 1.1rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-filters {
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.clear-filters:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2a5298;
    background: white;
}

/* Cards de Relatórios */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.report-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2a5298;
}

.report-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.report-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modal de Resultados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 10px auto;
    width: 95%;
    max-width: 95%;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 1.3rem;
    color: #333;
    font-weight: 400;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.close-button:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Tabela de Resultados */
.results-info {
    background: #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 1rem;
    color: #495057;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Tabela */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Tabela de dados */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: #2a5298;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-inativo {
    background: #f8d7da;
    color: #721c24;
}

.status-bloqueado {
    background: #fff3cd;
    color: #856404;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: #666;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2a5298;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagens */
#messageContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-message {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.info-message {
    background-color: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Estatísticas */
.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h4 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin: 0;
}
/* Seção de Filtros Aprimorada */
.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.filters-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: grid;
    grid-template-columns: 140px 1fr 32px;
    align-items: center;
    gap: 10px;
}

.filter-row label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-align: right;
}

.filter-row input[type="text"],
.filter-row select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.filter-row input[type="text"]:focus,
.filter-row select:focus {
    outline: none;
    border-color: #2a5298;
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.filter-row input[type="text"]::placeholder {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* Botão de limpar individual */
.clear-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #fff;
    border-color: #dc3545;
    color: #dc3545;
    transform: scale(1.05);
}

.clear-btn i {
    font-size: 0.75rem;
}

/* Opções de Estoque */
.estoque-options {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.estoque-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: color 0.3s;
}

.estoque-options label:hover {
    color: #2a5298;
}

.estoque-options input[type="checkbox"],
.estoque-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2a5298;
}

/* Layout Options */
.layout-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-radius: 8px;
    border: 1px solid #d0e5ff;
    margin-top: 15px;
}

.layout-options label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.layout-options select {
    flex: 1;
    max-width: 400px;
    padding: 10px 12px;
    border: 2px solid #b8daff;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #495057;
    transition: all 0.3s;
}

.layout-options select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.layout-options .btn {
    white-space: nowrap;
}

/* Hover effects para selects */
select option:hover {
    background: #e7f3ff;
}

/* Responsividade para filtros */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-row {
        grid-template-columns: 120px 1fr 32px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr 32px;
    }
    
    .filter-row label {
        display: none;
    }
    
    .filter-row input[type="text"],
    .filter-row select {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .estoque-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .layout-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .layout-options select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-container {
        padding: 15px;
    }
    
    .clear-btn {
        width: 28px;
        height: 28px;
    }
    
    .estoque-options {
        padding: 15px;
    }
    
    .layout-options {
        padding: 15px;
    }
}

/* Animação suave ao limpar filtros */
@keyframes clearPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.filter-row input[type="text"].clearing,
.filter-row select.clearing {
    animation: clearPulse 0.3s ease;
}

/* Indicador de filtro ativo */
.filter-row input[type="text"]:not(:placeholder-shown),
.filter-row select:not([value=""]) {
    border-color: #2a5298;
    background: #f0f7ff;
}

/* Tooltip para botões de limpar */
.clear-btn[title] {
    position: relative;
}

.clear-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
}

/* Estados desabilitados */
.filter-row input[type="text"]:disabled,
.filter-row select:disabled {
    background: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.clear-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.clear-btn:disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
}
/* Ajustes para comportamento com sidebar */
@media (min-width: 1025px) {
    body.sidebar-open {
        padding-left: 280px;
    }
    
    body.sidebar-open .header {
        left: 280px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    #messageContainer {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    body { 
        background: white; 
        padding-left: 0 !important;
    }
    .header, .filters-section, .reports-grid, .breadcrumb, .menu-toggle { 
        display: none !important; 
    }
    .modal { 
        position: static; 
        background: none; 
    }
    .modal-content { 
        box-shadow: none; 
        margin: 0; 
        width: 100%; 
    }
    .modal-header { 
        background: none; 
        border-bottom: 2px solid #333; 
    }
    .close-button, .action-buttons { 
        display: none !important; 
    }
    .table-container { 
        overflow: visible; 
        border: none;
    }
    table { 
        font-size: 10pt; 
    }
    th { 
        background-color: #333 !important; 
        color: white !important; 
        -webkit-print-color-adjust: exact; 
    }
}
/* Tabs de Navegação */
.tabs {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    overflow-x: auto;
}

.tab {
    flex: 1;
    min-width: 140px;
    padding: 18px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.tab:hover {
    background: #f8f9fa;
    color: #495057;
}

.tab.active {
    color: #2a5298;
    border-bottom-color: #2a5298;
    background: #f8f9fa;
}

.tab i {
    font-size: 1.1rem;
}

/* Responsividade das tabs */
@media (max-width: 768px) {
    .tabs {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .tab {
        min-width: 120px;
        padding: 15px 15px;
        font-size: 0.85rem;
    }
    
    .tab i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tab {
        min-width: 100px;
        padding: 12px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .tab i {
        font-size: 0.9rem;
    }
}

/* Cards de Estatísticas - complemento */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
    line-height: 1.4;
}
/* Estilos para Relatórios Fiscais */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-card-icon {
    font-size: 2rem;
    color: #2a5298;
    opacity: 0.8;
}

.info-card-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-card-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Total Row na tabela */
.total-row {
    background: #f8f9fa;
    font-weight: bold;
}

.total-row td {
    padding: 15px;
    border-top: 2px solid #dee2e6;
    color: #333;
}

/* Summary Section */
.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.summary-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 15px 0;
    line-height: 1;
}

.value-positive {
    color: #28a745;
}

.value-negative {
    color: #dc3545;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
}

/* Melhorias na tabela de dados */
.data-table tfoot {
    background: #f8f9fa;
}

.data-table tfoot tr td {
    font-weight: bold;
    border-top: 2px solid #dee2e6;
    padding: 15px;
}

/* Responsividade para cards */
@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-value {
        font-size: 1.8rem;
    }
}

/* Print específico para relatórios fiscais */
@media print {
    .info-cards {
        page-break-inside: avoid;
    }
    
    .summary-section {
        page-break-inside: avoid;
        page-break-before: auto;
    }
    
    .data-table {
        font-size: 9pt;
    }
    
    .summary-card {
        border: 1px solid #333;
    }
}
/* Seção de Explicação */
.explanation-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.explanation-section h3 {
    color: #2a5298;
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explanation-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2a5298;
}

.explanation-card h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.explanation-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.explanation-card ul {
    margin: 10px 0 0 20px;
    color: #666;
}

.explanation-card ul li {
    margin: 5px 0;
}

.explanation-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    display: flex;
    align-items: start;
    gap: 10px;
}

.explanation-note i {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 2px;
}

Certo, vou adicionar apenas os estilos CSS básicos que estão faltando para o Dashboard Estatístico funcionar corretamente:
css/* Adicionar ao global.css - Apenas o necessário */

/* Stat small text */
.stat-small {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Chart container e legend */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Status badges que faltavam */
.status-aberta { background: #cfe2ff; color: #004085; }
.status-em-andamento { background: #d1ecf1; color: #0c5460; }
.status-aguardando-peças { background: #fff3cd; color: #856404; }
.status-aguardando-aprovacao { background: #e2e3e5; color: #383d41; }
.status-concluida { background: #d4edda; color: #155724; }
.status-finalizada { background: #d1f2eb; color: #0c5460; }
.status-cancelada { background: #f8d7da; color: #721c24; }
.status-entregue { background: #d6d8db; color: #1b1e21; }
.status-lucro-alto { background: #d4edda; color: #155724; }
.status-lucro-medio { background: #fff3cd; color: #856404; }
.status-lucro-baixo { background: #f8d7da; color: #721c24; }

/* ========== ESTILOS PARA FECHAMENTO DE CAIXA ========== */

/* Resumo Card Principal */
.resumo-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.resumo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.resumo-card h2 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valor-total {
    font-size: 3rem;
    font-weight: 600;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#infoPeriodo {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 10px;
}

/* Container de Fechamento Grid */
.fechamento-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Cards de Fechamento */
.card-fechamento {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
}

.card-fechamento h3 {
    color: #2a5298;
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-fechamento h3 i {
    font-size: 1.3rem;
    opacity: 0.8;
}

/* Tabs de Movimento */
.tabs-movimento {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.tab-movimento {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-movimento:hover {
    background: rgba(42, 82, 152, 0.1);
    color: #2a5298;
}

.tab-movimento.active {
    background: white;
    color: #2a5298;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tipo de Documento Cards */
.tipo-documento {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.tipo-documento-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tipo-documento-header:hover {
    background: rgba(0,0,0,0.02);
}

.tipo-documento-header.nfe {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.tipo-documento-header.nfce {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.tipo-documento-header.dav {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
}

.tipo-documento-header.os {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

.tipo-documento-header.recebimentos {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.tipo-documento-header.sangrias {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.tipo-documento-header.suprimentos {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.tipo-documento-content {
    padding: 15px;
    background: #f8f9fa;
}

/* Forma de Pagamento Item */
.forma-pagamento-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.forma-pagamento-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.forma-pagamento-item:last-child {
    margin-bottom: 0;
}

.forma-pagamento-item .descricao {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.forma-pagamento-item .valor {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a5298;
}

/* Movimentação Detalhe */
.movimentacao-detalhe {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #dee2e6;
}

.movimentacao-detalhe:last-child {
    margin-bottom: 0;
}

.movimentacao-detalhe .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.movimentacao-detalhe .justificativa {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
    margin: 8px 0;
}

/* Conferência de Caixa */
.forma-pagamento {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.forma-pagamento:hover {
    background: #e9ecef;
}

.forma-pagamento label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.forma-pagamento input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: right;
    transition: all 0.3s;
    background: white;
}

.forma-pagamento input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.forma-pagamento .diferenca {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
}

/* Resumo Linha */
.resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.resumo-linha.total {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
}

.resumo-linha.diferenca-positiva {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.resumo-linha.diferenca-negativa {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#linhaSemTroca {
    background: #f0f8ff;
    font-style: italic;
    color: #004085;
    border: 1px solid #b8daff;
}

#linhaDiferenca {
    font-weight: 600;
}

/* Alert de Conferência */
.alert-conferencia {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.alert-conferencia.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-conferencia.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-conferencia i {
    font-size: 1.2rem;
}

/* Botões de Ação do Fechamento */
.btn-group-fechamento {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-group-fechamento .btn {
    flex: 1;
}

/* Tabela de Detalhes */
.tabela-detalhes {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.tabela-detalhes thead {
    background: #2a5298;
    color: white;
}

.tabela-detalhes th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.tabela-detalhes td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.tabela-detalhes tbody tr:hover {
    background: #f8f9fa;
}

.tabela-detalhes tbody tr:last-child td {
    border-bottom: none;
}

.tabela-detalhes .badge {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsividade */
@media (max-width: 1024px) {
    .fechamento-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .valor-total {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .forma-pagamento {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .forma-pagamento label {
        font-weight: 600;
    }
    
    .forma-pagamento .diferenca {
        text-align: right;
    }
    
    .valor-total {
        font-size: 2rem;
    }
    
    .btn-group-fechamento {
        flex-direction: column;
    }
    
    .btn-group-fechamento .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card-fechamento {
        padding: 15px;
    }
    
    .resumo-card {
        padding: 20px;
    }
    
    .valor-total {
        font-size: 1.8rem;
    }
    
    .tabela-detalhes {
        font-size: 0.75rem;
    }
    
    .tabela-detalhes th,
    .tabela-detalhes td {
        padding: 8px;
    }
}

/* Print Styles para Fechamento */
@media print {
    .resumo-card {
        background: none !important;
        color: #333 !important;
        border: 2px solid #333;
        -webkit-print-color-adjust: exact;
    }
    
    .fechamento-container {
        grid-template-columns: 1fr;
    }
    
    .tabs-movimento,
    .btn-group-fechamento,
    .clear-btn {
        display: none !important;
    }
    
    .tipo-documento-header {
        background: none !important;
        color: #333 !important;
        border: 1px solid #333;
        font-weight: bold;
    }
    
    .forma-pagamento input {
        border: 1px solid #333;
        background: white;
    }
    
    .tabela-detalhes {
        page-break-inside: avoid;
    }
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #2a5298;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.report-card {
    cursor: default;
}