:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Profissional */
.professional-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 3px solid #34495e;
    z-index: 1000;
}

.professional-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #34495e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3498db;
}

.logo-icon i {
    font-size: 1.3rem;
    color: #3498db;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: #bdc3c7;
    letter-spacing: 0.5px;
}

/* Menu Toggle Profissional */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background: #34495e;
    border: 1px solid #3498db;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: #3498db;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* Navegação Principal */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

/* Seções de Navegação */
.nav-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.nav-link.active {
    color: white;
    background: #3498db;
    border-color: #2980b9;
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

/* Divisor de Navegação */
.nav-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    margin: 0 5px;
}

/* Botão de Exportar */
.export-link {
    background: #27ae60 !important;
    color: white !important;
    font-weight: 600;
    border-color: #229954 !important;
}

.export-link:hover {
    background: #229954 !important;
    border-color: #1e8449 !important;
}

/* Conteúdo Principal */
.main-content {
    padding: 2rem 0;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.card-body {
    display: flex;
    justify-content: space-around;
}

.count-item {
    text-align: center;
}

.count {
    font-size: 1.8rem;
    font-weight: bold;
}

.ativos { color: var(--success-color); }
.inativos { color: var(--danger-color); }

.category {
    font-size: 0.9rem;
    color: #666;
}

/* Tabelas */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Badges e Status */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.active {
    background-color: #d4edda;
    color: #155724;
}

.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.maintenance {
    background-color: #fff3cd;
    color: #856404;
}

.pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

.unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1e2b38;
}

/* Detalhes */
.detail-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.detail-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    color: var(--dark-color);
}

.detail-value {
    color: #555;
}

/* Abas */
.tabs {
    margin-bottom: 20px;
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.tab.active {
    background: white;
    border-color: #ddd;
    color: var(--secondary-color);
    font-weight: bold;
}

.tab:hover:not(.active) {
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Barra de Pesquisa */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-bar button {
    padding: 10px 15px;
}

/* Resumo */
.summary-section {
    margin: 2rem 0;
}

.summary-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.summary-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 300px;
    max-width: 400px;
}

.summary-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 500;
    color: #555;
}

.summary-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Gráficos */
.chart-section {
    margin: 2rem 0;
}

.chart-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    height: 400px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Relatórios */
.report-header {
    margin-bottom: 30px;
}

.report-meta {
    margin: 15px 0;
    color: #666;
}

.report-actions {
    margin: 20px 0;
}

.report-summary {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 2rem;
}

.summary-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.summary-box {
    flex: 1 1 200px;
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.summary-label {
    color: #666;
    font-size: 1rem;
}

.report-data-section {
    margin-bottom: 2rem;
}

.report-chart-container {
    height: 400px;
    margin-bottom: 30px;
}

.report-table-container {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th, .report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.report-table th {
    background-color: var(--primary-color);
    color: white;
}

.report-table .total-row {
    background-color: #e9ecef;
    font-weight: bold;
}

.report-notes {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.note-section {
    margin-bottom: 20px;
}

.warning-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

/* Filtros para gráficos */
.filter-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.chart-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsividade */
/* Responsividade do Header Profissional */
@media (max-width: 1100px) {
    .main-navigation {
        gap: 15px;
    }
    
    .nav-section-title {
        font-size: 0.7rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .nav-section-title {
        display: none;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link i {
        margin-right: 0;
        font-size: 1rem;
        width: auto;
    }
    
    .nav-link {
        justify-content: center;
        padding: 8px;
        min-width: 35px;
    }
    
    .main-navigation {
        gap: 10px;
    }
    
    .nav-list {
        gap: 2px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        background: #34495e;
        border-radius: 6px;
        margin-top: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-navigation.active {
        max-height: 500px;
        padding: 15px;
    }
    
    .nav-section {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .nav-section:last-child {
        margin-bottom: 0;
    }
    
    .nav-section-title {
        display: block;
        font-size: 0.8rem;
        color: #3498db;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 8px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 3px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 15px;
        width: 100%;
        text-align: left;
        font-size: 0.9rem;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
    }
    
    .nav-text {
        display: inline;
    }
    
    .nav-link i {
        margin-right: 10px;
        width: 18px;
        text-align: center;
    }
    
    .nav-divider {
        display: none;
    }
    
    .professional-header .container {
        flex-wrap: wrap;
    }
    
    .logo-section {
        padding-right: 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 1.1rem;
    }
    
    .export-link {
        background: #27ae60 !important;
        border-color: #229954 !important;
    }
    
    .export-link:hover {
        background: #229954 !important;
    }
    
    .dashboard {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: none;
    }
    
    .summary-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-box {
        width: 100%;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .entidades-container {
        padding: 10px 5px;
    }
    
    .entidades-titulo {
        font-size: 1.8rem;
    }
    
    .entidades-card-header {
        padding: 15px;
    }
    
    .entidades-card-header h3 {
        font-size: 1.1rem;
    }
    
    .entidades-table th, 
    .entidades-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .entidades-table .entidade-nome {
        max-width: 100px;
        white-space: normal;
        word-break: break-word;
    }
    
    .entidades-controles {
        flex-direction: column;
        align-items: center;
    }
    
    .entidades-controles button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .voltar-topo {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Estilos para impressão */
@media print {
    .container {
        width: 100%;
        max-width: none;
    }
    
    header, .report-actions, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .report-header, .report-summary, .report-data-section, .report-notes {
        break-inside: avoid;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
}

/* Estilos específicos para entidades */
.entidades-container * {
    box-sizing: border-box;
}

.entidades-container {
    margin: 0 auto;
    padding: 20px 10px;
    max-width: 100%;
    background-color: #f9fafb;
    border-radius: 8px;
}

/* Título da página */
.entidades-titulo {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* Legenda */
.entidades-legenda {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 12px 18px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.entidades-legenda:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.entidades-legenda .badge-ativo {
    background-color: #28a745;
    color: white;
    margin-left: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.entidades-legenda .badge-inativo {
    background-color: #dc3545;
    color: white;
    margin-left: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Controles - Adicionando espaçamento adequado */
.entidades-controles {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-left: 4px solid #3498db;
}

.entidades-controles button {
    margin-right: 10px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.entidades-controles button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.entidades-controles button i {
    margin-right: 5px;
}

/* Instrução de rolagem */
.entidades-scroll-hint {
    display: none;
    text-align: center;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    margin-bottom: 25px;
    border-radius: 4px;
    animation: pulse 2s infinite;
    font-weight: bold;
}

.entidades-scroll-hint i {
    margin-right: 8px;
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Cards de entidade */
.entidades-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 35px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.entidades-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.entidades-card-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 25px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(0,0,0,0.1);
}

.entidades-card-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.35rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.entidades-card-toggle {
    background: rgba(255,255,255,0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.entidades-card-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.entidades-card-toggle i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.entidades-card-toggle.collapsed i {
    transform: rotate(-180deg);
}

.entidades-card-body {
    padding: 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* Estilos para tabelas de entidades */
.entidades-table-container {
    width: 100%;
    background-color: white;
    padding: 5px;
    border-radius: 0 0 8px 8px;
}

.entidades-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
    table-layout: fixed;
}

.entidades-table th, 
.entidades-table td {
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entidades-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.75rem;
}

.entidades-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.entidades-table .entidade-nome {
    text-align: left;
    font-weight: 600;
    border-right: 2px solid #dee2e6;
    background-color: #f8f9fa;
    width: 15%;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entidades-table .valor-ativo,
.entidades-table .valor-inativo {
    width: 3.5%;
    min-width: 30px;
    font-weight: 600;
}

.entidades-table .valor-ativo {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.entidades-table .valor-inativo {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.entidades-table .linha-total,
.entidades-table .linha-total-geral {
    font-weight: 700;
    background-color: #e9ecef;
}

.entidades-table .linha-total td,
.entidades-table .linha-total-geral td {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.entidades-table .linha-total-geral {
    background-color: #d6e9f8;
}

.entidades-table .th-ativos {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.entidades-table .th-inativos {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Estilos específicos para tickets */
.filter-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.filter-buttons button,
.filter-buttons a {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.btn-apply {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-apply:hover {
    background-color: #0056b3;
}

.btn-reset {
    background-color: #6c757d;
    color: white;
    transition: background-color 0.3s;
}

.btn-reset:hover {
    background-color: #5a6268;
}

.btn-reload {
    background-color: #28a745;
    color: white;
    transition: background-color 0.3s;
}

.btn-reload:hover {
    background-color: #218838;
}

.date-fields {
    display: none; /* Inicialmente oculto */
}

.year-month-fields {
    display: none; /* Inicialmente oculto */
}

.filter-info {
    background-color: #e8f4ff;
    border-left: 4px solid var(--primary-color);
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.filter-info .data-atualizado {
    font-size: 0.9rem;
    color: #6c757d;
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.filter-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.cache-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: right;
    padding: 5px 0;
    border-top: 1px dashed #ddd;
}

.cache-info .cached {
    color: #856404;
    background-color: #fff3cd;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cache-info .fresh {
    color: #155724;
    background-color: #d4edda;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px dashed #ccc;
}

.empty-state .icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #495057;
    margin-bottom: 15px;
}

/* Métricas e Gráficos */
.metrics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}

.metric-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric-label {
    color: #666;
    font-size: 1rem;
}

.timeline-chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
    height: 400px;
}

.pie-chart-container {
    height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

.mt-4 {
    margin-top: 20px;
}

/* Estilos para a seção de exportação */
.entidades-export {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
    text-align: center;
    border-top: 4px solid #3498db;
}

.entidades-export h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.entidades-export p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.entidades-export-btn {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.entidades-export-btn:hover {
    background-color: #2ecc71;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.entidades-separator {
    height: 5px;
    background: linear-gradient(to right, #3498db, transparent);
    margin: 30px 0;
    border-radius: 5px;
}

/* Botão volta ao topo */
.voltar-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.voltar-topo.visible {
    opacity: 1;
    visibility: visible;
}

.voltar-topo:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Animação de fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards grid para resumo de chamados */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Ajuste para evitar conflitos com os estilos de .card existentes */
.dashboard-section .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--card-color, var(--primary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    max-width: none; /* Remover max-width do estilo original */
    flex: none; /* Resetar o flex do estilo original */
}

.dashboard-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--card-color, var(--primary-color));
}

.dashboard-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-total {
    border-top-color: #4e73df;
    background: linear-gradient(135deg, #4e73df10, #ffffff);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--card-color, var(--primary-color));
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
}

.card-content {
    text-align: center;
    width: 100%;
}

.card-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--card-color, var(--dark-color));
}

.card-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .card-value {
        font-size: 2rem;
    }
    
    .card-icon {
        font-size: 2rem;
        height: 50px;
        width: 50px;
    }
} 

/* Estilos PWA */
.pwa-install-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    position: relative;
    z-index: 1000;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.pwa-install-button:active {
    transform: translateY(0);
}

.pwa-install-button i {
    font-size: 16px;
}

/* Indicador offline */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    animation: slideDown 0.3s ease;
}

.offline-indicator i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Estilos para modo offline */
body.offline .professional-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

body.offline .logo-text .logo-title {
    color: white;
}

/* Estilos para instalação PWA */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    max-width: 350px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.pwa-install-prompt h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 18px;
}

.pwa-install-prompt p {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.pwa-install-prompt .pwa-buttons {
    display: flex;
    gap: 10px;
}

.pwa-install-prompt button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-install-prompt .install-btn {
    background: #2563eb;
    color: white;
}

.pwa-install-prompt .install-btn:hover {
    background: #1d4ed8;
}

.pwa-install-prompt .dismiss-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.pwa-install-prompt .dismiss-btn:hover {
    background: #e5e7eb;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Responsividade para PWA */
@media (max-width: 768px) {
    .pwa-install-button {
        padding: 8px 16px;
        font-size: 12px;
        margin-left: 15px;
    }
    
    .pwa-install-prompt {
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* Estilos para notificações PWA */
.pwa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px;
    max-width: 300px;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #2563eb;
}

.pwa-notification h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
}

.pwa-notification p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Tipos de notificação */
.pwa-notification-success {
    border-left-color: #28a745;
}

.pwa-notification-warning {
    border-left-color: #ffc107;
}

.pwa-notification-info {
    border-left-color: #17a2b8;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animações para modais */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
} 