/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Tela de Login */
.login-container {
    min-height: calc(100vh - 50px); /* Ajuste para o footer mais discreto */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    color: #667eea;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
    display: none;
}

/* Layout Principal da Aplicação */
.app-container {
    min-height: 100vh;
    background: #f8f9fa;
    padding-bottom: 50px; /* Espaço para o footer mais discreto */
}

.app-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    color: #667eea;
    font-size: 24px;
}

.header-left h1 {
    font-size: 20px;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Conteúdo Principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Seção de Filtros */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filters-section h2 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.filter-input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

/* Estilos para o datepicker */
.date-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.date-icon {
    position: absolute;
    right: 10px;
    color: #666;
    cursor: pointer;
    z-index: 10;
}

.date-input-container input {
    padding-right: 35px;
}

/* Estilos do Flatpickr */
.flatpickr-calendar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: #6366f1;
    border-color: #6366f1;
}

.flatpickr-day.selected:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Timer Visível */
.timer-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 150px;
    justify-content: center;
}

.timer-display i {
    font-size: 20px;
    opacity: 0.9;
}

.timer-status {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
}

.timer-status.active {
    color: #28a745;
    font-weight: 600;
}

.timer-status.inactive {
    color: #6c757d;
}

/* Estilos para relatórios */
.report-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.report-header h3 {
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-date {
    color: #666;
    font-size: 14px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-card i {
    font-size: 24px;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.report-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
}

.report-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e1e5e9;
    color: #555;
}

.report-table tbody tr:hover {
    background: #f8f9fa;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading i {
    margin-right: 10px;
    color: #667eea;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Estilo para itens faltantes */
.faltante {
    color: #dc3545;
    font-weight: bold;
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Filtros do relatório */
.report-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.report-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-filters label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.report-filters select {
    min-width: 200px;
}

/* Seção de Pedidos */
.orders-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-header h2 {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f8f9fa;
}

.text-warning {
    color: #ffc107;
}

.text-success {
    color: #28a745;
}

/* Lista de Pedidos */
.orders-list {
    display: grid;
    gap: 15px;
}

.order-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

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

.order-card.separado {
    border-left-color: #28a745;
    background: #f8fff9;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pendente {
    background: #fff3cd;
    color: #856404;
}

.order-status.separado {
    background: #d4edda;
    color: #155724;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.order-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
}

.items-section h4 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-list {
    display: grid;
    gap: 15px;
}

.item-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.item-card.confirmado {
    border-color: #28a745;
    background: #f8fff9;
}

.item-card.quantidade-menor {
    border-color: #ffc107;
    background: #fffbf0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.item-code {
    color: #666;
    font-size: 14px;
}

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quantity-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.quantity-input {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

.confirm-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: #218838;
}

.confirm-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.edit-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.edit-btn:hover {
    background: #138496;
}

/* Autocomplete para filtros de clientes e produtos */
.client-autocomplete,
.product-autocomplete {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .client-code {
    font-weight: 600;
    color: #333;
}

.autocomplete-item .client-name {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.autocomplete-item .product-code {
    font-weight: 600;
    color: #333;
}

.autocomplete-item .product-name {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.autocomplete-container {
    position: relative;
}

/* Estilos para modo visualizador */
.user-visualizador .filters-section,
.user-visualizador .orders-section {
    display: none !important;
}

/* Controle de visibilidade baseado no cargo */
.gerente-only {
    display: inline-flex !important;
}

.visualizador-only {
    display: none !important;
}

.user-visualizador .gerente-only {
    display: none !important;
}

.user-visualizador .visualizador-only {
    display: inline-flex !important;
}

/* Estilos para busca de produtos */
.search-product-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-product-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

.clear-product-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.clear-product-btn:hover {
    background: #c0392b;
    transform: translateY(-50%) scale(1.05);
}

/* Estilos para campos obrigatórios */
.required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 4px;
}

.filter-input:required:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.filter-input:required:valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Layout em grid para os filtros do relatório */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* 1ª parte: data, 2ª e 3ª parte: produto, 4ª parte: botão */
    gap: 20px;
    align-items: end;
    padding: 20px 0;
}

.filter-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 1ª Parte: Filtro de Data */
.filter-date {
    grid-column: 1;
    min-width: 200px;
}

/* 2ª e 3ª Parte: Filtro de Produto (mais espaço) */
.filter-product {
    grid-column: 2;
    min-width: 300px;
}

/* 3ª Parte: Botão Gerar Relatório */
.filter-button {
    grid-column: 3;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.generate-report-btn {
    width: 100%;
    max-width: 200px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
}

/* Ajustar largura do filtro de produto no relatório */
#itemClienteQuantidade-tab .filter-group .autocomplete-container {
    width: 100%; /* Usar toda a largura disponível no grid */
}

/* Melhorar visualização do campo de produto */
#itemClienteQuantidade-tab .filter-input {
    font-size: 14px;
    padding: 10px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Garantir que o campo de produto tenha espaço suficiente */
#itemClienteQuantidade-tab .filter-product .autocomplete-container {
    position: relative;
    width: 100%;
    max-width: none;
}

/* Melhorar acessibilidade do botão em dispositivos móveis */
#generateItemClienteQuantidadeReport {
    position: relative;
    z-index: 15; /* Garantir que esteja acima de outros elementos */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Estilo para texto opcional nos labels */
.optional {
    color: #666;
    font-weight: normal;
    font-size: 12px;
}

/* Melhorar visualização da coluna do veículo */
.report-table th:nth-child(3),
.report-table td:nth-child(3) {
    min-width: 120px;
    text-align: left;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr; /* Em telas pequenas, empilhar verticalmente */
        gap: 15px;
    }
    
    .filter-date,
    .filter-product,
    .filter-button {
        grid-column: 1;
        min-width: auto;
    }
    
    .generate-report-btn {
        max-width: none;
        min-height: 44px; /* Garantir área de toque adequada para mobile */
        touch-action: manipulation; /* Otimizar para touch */
        -webkit-tap-highlight-color: transparent; /* Remover highlight no iOS */
    }
    
    /* Garantir que o botão seja clicável em dispositivos móveis */
    .filter-button {
        position: relative;
        z-index: 10;
    }
    
    /* Melhorar a área de toque para botões em mobile */
    .btn-primary {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Garantir que o modal de busca de produtos do relatório apareça acima do modal de relatórios */
#reportProductSearchModal {
    z-index: 1051; /* Deve ser maior que o z-index do modal de relatórios */
}

/* Estilo para o nome do produto no relatório */
.report-product-name {
    text-align: center;
    color: #e74c3c; /* Cor vermelha */
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Estilo para o badge de quantidade faltante */
.qtd-faltante-badge {
    background-color: #e74c3c; /* Fundo vermelho */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block; /* Para aplicar padding e background */
}

.search-container {
    padding: 20px 0;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
}

.product-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-result-item:hover {
    background-color: #f8f9fa;
}

.product-result-item:last-child {
    border-bottom: none;
}

.product-result-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.product-info {
    flex: 1;
}

.product-code {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.product-name {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.product-select-hint {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.loading-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.loading-results i {
    font-size: 24px;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.visualizador-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px;
}

.visualizador-info {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.visualizador-info i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.visualizador-info h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.visualizador-info p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.visualizador-info p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .orders-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .item-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .filters-section,
    .orders-section {
        padding: 20px;
    }
    
    .order-card {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Botão de expedição */
.expedicao-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
    text-decoration: none;
}

.expedicao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* Botões de navegação */
.nav-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* Botão de relatórios */
.reports-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.reports-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Modal de relatórios */
.reports-modal {
    max-width: 90vw;
    width: 1200px;
    max-height: 90vh;
}

/* Modal de expedição */
.expedicao-modal {
    max-width: 95vw;
    width: 1400px;
    max-height: 95vh;
}

.expedicao-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.expedicao-filters .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.expedicao-filters .filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.expedicao-filters .filter-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.expedicao-filters .filter-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.expedicao-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px;
    width: 100%;
}

/* Cards de veículos */
.veiculos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.veiculo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.veiculo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.veiculo-card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.veiculo-card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.veiculo-card-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.veiculo-card-body {
    padding: 10px;
}

/* Informações do veículo removidas - agora apenas produtos e clientes */

.faltantes-list {
    max-height: 450px;
    overflow-y: auto;
}

.faltantes-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    gap: 6px;
}

.faltantes-item:hover {
    background-color: #f8f9fa;
}

.faltantes-item:last-child {
    border-bottom: none;
}

/* Cores alternadas para produtos na expedição */
.faltantes-item:nth-child(odd) {
    background-color: #d4edda; /* Verde claro para produtos ímpares */
    border-left: 4px solid #28a745; /* Borda verde */
}

.faltantes-item:nth-child(even) {
    background-color: #ffeaa7; /* Laranja claro para produtos pares */
    border-left: 4px solid #fd7e14; /* Borda laranja */
}

.faltantes-item:nth-child(odd):hover {
    background-color: #c3e6cb; /* Verde mais escuro no hover */
}

.faltantes-item:nth-child(even):hover {
    background-color: #ffd54f; /* Laranja mais escuro no hover */
}

.faltantes-produto {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    line-height: 1.3;
}

.faltantes-quantidades {
    display: flex;
    gap: 12px;
    font-size: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.faltantes-pedida {
    color: #495057;
    font-weight: 600;
}

.faltantes-separada {
    color: #28a745; /* Verde para quantidade separada */
    font-weight: 600;
}

.faltantes-faltante {
    color: #dc3545; /* Vermelho para quantidade faltando */
    font-weight: 600;
}

/* Estilos para lista de clientes */
.faltantes-clientes {
    padding: 6px 0;
    margin-top: 6px;
    border-top: 1px solid #e9ecef;
}

.clientes-label {
    font-size: 11px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.clientes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cliente-tag {
    color: #495057;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    margin: 1px 4px 1px 0;
    display: inline-block;
    padding: 3px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-faltantes {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.no-faltantes i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #28a745;
}

/* Estilos para header e stats de expedição */
.expedicao-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
}

.expedicao-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.expedicao-date {
    font-size: 16px;
    opacity: 0.9;
}

.expedicao-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.expedicao-stats .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.expedicao-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.expedicao-stats .stat-card i {
    font-size: 24px;
    color: #28a745;
}

.expedicao-stats .stat-info {
    display: flex;
    flex-direction: column;
}

.expedicao-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
}

.expedicao-stats .stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Estilos para a página de expedição */
.page-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

.page-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.expedicao-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.welcome-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.welcome-card {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    border: 2px solid #e9ecef;
}

.welcome-card i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.welcome-card h3 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 15px;
}

.welcome-card p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

.reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.report-tab {
    display: none;
}

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

/* Estilos para filtros de relatório */
.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.report-filters .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.report-filters .filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.report-filters .filter-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.report-filters .filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.report-filter {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0;
    font-style: italic;
}

.report-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

/* Estilos para tabelas de relatórios */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.report-table tr:hover {
    background: #f8f9fa;
}

.report-summary {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #2196f3;
}

.report-summary h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

.summary-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    min-width: 80px;
}

.summary-stat .number {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
}

.summary-stat .label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Botões de exportação */
.export-actions {
    display: flex;
    gap: 10px;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-warning.active {
    background: #e0a800;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

/* Responsividade para relatórios */
@media (max-width: 768px) {
    .reports-tabs {
        flex-direction: column;
    }
    
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-actions {
        flex-direction: column;
    }
    
    .reports-modal {
        width: 95vw;
        margin: 2% auto;
    }
}

@media (max-width: 600px) {
    .timer-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .timer-display {
        font-size: 20px;
        padding: 12px 20px;
    }
    
    .timer-status {
        font-size: 14px;
    }
}

/* Responsividade para o grid de veículos */
@media (max-width: 1400px) {
    .veiculos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .veiculos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .veiculos-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos adicionais para relatórios */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.separado {
    background: #d4edda;
    color: #155724;
}

.status-badge.pendente {
    background: #fff3cd;
    color: #856404;
}

.report-table td[rowspan] {
    vertical-align: top;
}

.report-table strong {
    color: #dc3545;
} 

/* Histórico de Confirmações */
.historico-section {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.resumo-confirmacoes {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.resumo-confirmacoes h6 {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 600;
}

.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.resumo-item .label {
    font-weight: 500;
    color: #6c757d;
}

.resumo-item .value {
    font-weight: 600;
    color: #495057;
}

.resumo-item .value.success {
    color: #28a745;
}

.lista-confirmacoes h6 {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 600;
}

.confirmacao-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.confirmacao-item.success {
    border-left: 4px solid #28a745;
}

.confirmacao-item.warning {
    border-left: 4px solid #ffc107;
}

.confirmacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.confirmacao-numero {
    font-weight: 600;
    color: #495057;
}

.confirmacao-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.confirmacao-status.success {
    background: #d4edda;
    color: #155724;
}

.confirmacao-status.warning {
    background: #fff3cd;
    color: #856404;
}

.confirmacao-details {
    padding: 15px;
}

.confirmacao-produto {
    margin-bottom: 8px;
    color: #495057;
}

.confirmacao-quantidades {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.quantidade-pedida {
    color: #6c757d;
    font-size: 0.9em;
}

.quantidade-confirmada {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9em;
}

.confirmacao-info {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #6c757d;
}

.funcionario {
    color: #007bff;
}

.data-hora {
    color: #6c757d;
}

/* Responsividade para o histórico */
@media (max-width: 768px) {
    .resumo-grid {
        grid-template-columns: 1fr;
    }
    
    .confirmacao-quantidades,
    .confirmacao-info {
        flex-direction: column;
        gap: 5px;
    }
} 

/* Seção de produtos consolidados */
.consolidated-products-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.consolidated-products-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consolidated-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.consolidated-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consolidated-stat .stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.consolidated-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
}

.consolidated-stat .stat-value.faltante {
    color: #ff6b6b;
}

/* Seção detalhada de clientes */
.detailed-clients-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.detailed-clients-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsividade para estatísticas consolidadas */
@media (max-width: 768px) {
    .consolidated-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .consolidated-stat {
        padding: 12px;
    }
    
    .consolidated-stat .stat-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .consolidated-stats {
        grid-template-columns: 1fr;
    }
    
    .consolidated-products-section,
    .detailed-clients-section {
        padding: 15px;
        margin: 15px 0;
    }
} 

/* ===== LOGO STYLES ===== */
.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
}

/* ===== FOOTER STYLES ===== */
.app-footer {
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    padding: 12px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 13px;
}

.footer-link {
    color: #00b894;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #00a085;
    text-decoration: underline;
}

/* Ajuste para o conteúdo principal quando há footer fixo */
.app-container {
    padding-bottom: 50px; /* Espaço para o footer mais discreto */
}

/* ===== CORES PARA CARDS DOS CLIENTES ===== */
.cliente-tag .quantidade-separada {
    color: #28a745; /* Verde */
    font-weight: 600;
}

.cliente-tag .quantidade-faltante {
    color: #dc3545; /* Vermelho */
    font-weight: 600;
}



/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .header-logo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .app-footer {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .app-container {
        padding-bottom: 45px;
    }
    
    .login-container {
        min-height: calc(100vh - 45px);
    }
}

/* Botões de Administrador */
.admin-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* Modal Large */
.modal-large {
    max-width: 90%;
    width: 1200px;
}

/* Tabelas de dados */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f5f5f5;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Containers de listas */
.usuarios-list-container,
.logs-list-container {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

/* Mensagens vazias */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-message i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-message strong {
    color: #667eea;
    font-weight: 600;
}

#logsInitialMessage {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 50px 20px;
}

#logsInitialMessage i {
    color: #667eea;
    opacity: 1;
}

/* Loading */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.loading-message i {
    font-size: 24px;
    margin-right: 10px;
}

/* Select de cargo */
.cargo-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.cargo-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Botão salvar cargo */
.btn-save-cargo {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.btn-save-cargo:hover {
    background: #218838;
} 