/* 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-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background-color: white;
    padding: 20px;
    border-bottom: 2px solid #ddd;
}

.logo-section {
    margin-bottom: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
}

.main-title {
    text-align: center;
    color: #d32f2f;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
}

.personnel-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.personnel-item {
    display: flex;
    gap: 5px;
}

.label {
    font-weight: bold;
}

.value {
    color: #666;
}

/* Tabela principal */
.main-table-section {
    margin: 20px;
    overflow-x: auto;
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 1200px;
}

.main-table th {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
}

.main-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    min-width: 80px;
}

.main-table input {
    width: 100%;
    border: none;
    padding: 4px;
    font-size: 11px;
    text-align: center;
    background-color: transparent;
}

.main-table input:focus {
    background-color: #fff3cd;
    outline: 2px solid #ffc107;
}

.status-cell {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

/* Seção de resumo */
.summary-section {
    display: flex;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 200px;
}

.summary-item.analyzed {
    background-color: #d32f2f;
    color: white;
}

.summary-item.not-analyzed {
    background-color: #d32f2f;
    color: white;
}

.summary-item.balance {
    background-color: #d32f2f;
    color: white;
}

.status-label {
    font-size: 14px;
}

.currency {
    font-size: 12px;
}

/* Seção de verificação de documentos */
.document-check-section {
    margin: 20px;
}

.document-check-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.document-table th {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

.document-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.document-table input[type="number"] {
    width: 60px;
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
}

.document-table input[type="checkbox"] {
    transform: scale(1.2);
}

.total-row {
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
}

.total-row td {
    padding: 10px;
}

/* Seções de auditoria */
.audit-sections {
    margin: 20px;
}

.audit-section {
    margin-bottom: 25px;
}

.audit-section h3 {
    background-color: #d32f2f;
    color: white;
    padding: 10px 15px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.audit-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ddd;
    padding: 15px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    background-color: white;
}

.audit-textarea:focus {
    outline: 2px solid #007bff;
    border-color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    .personnel-info {
        flex-direction: column;
    }
    
    .summary-section {
        flex-direction: column;
    }
    
    .main-table {
        font-size: 10px;
    }
    
    .main-table th,
    .main-table td {
        padding: 4px;
        min-width: 60px;
    }
}

/* Estilos específicos para replicar visual do Excel */
.excel-like {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
}

.cell-border {
    border: 1px solid #000;
}

.highlighted-cell {
    background-color: #ffff99;
}

/* Botões e controles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
