﻿/* Remove todos os sublinhados */
* {
    text-decoration: none !important;
}

a, a:hover, a:focus, a:active, a:visited {
    text-decoration: none !important;
}

/* Dashboard Admin Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bb-datepicker-container {
    z-index: 1100 !important;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: white;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    width: 250px;
}

.sidebar.closed {
    width: 72px;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.logo-section:hover {
    background-color: #f1f5f9;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.company-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.company-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-info {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== MENU ITEMS ===== */
.menu-items {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: none;
    background: none;
    color: #64748b;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #f1f5f9;
    color: #374151;
}

.menu-item.active {
    background-color: #ddd6fe;
    color: #6b46c1;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.menu-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SIDEBAR TOGGLE ===== */
.sidebar-toggle {
    margin-top: auto;
    padding: 1rem;
    border: none;
    background: none;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.sidebar-toggle:hover {
    background-color: #f1f5f9;
}

.sidebar-toggle i {
    width: 20px;
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-edit {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    background: #d97706;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: #dc2626;
}

/* ===== TABLE ===== */
.table-container {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.875rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.loading i {
    margin-right: 0.5rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ===== FORM ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.error-message i {
    flex-shrink: 0;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #bbf7d0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.success-message i {
    flex-shrink: 0;
}

/* ===== DASHBOARD INFO ===== */
.dashboard-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #667eea;
}

.info-card p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.info-card strong {
    color: #374151;
}


/* ===== QUICK ACTIONS (INLINE & RESPONSIVE) ===== */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.quick-actions h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-actions button {
    margin: 0;
}

@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== UPLOAD GRID - HOLERITES ===== */
.period-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.period-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.upload-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.upload-card.uploading {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.employee-details h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.employee-details p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
    margin-bottom: 1rem;
    position: relative;
}

.drop-zone:hover {
    border-color: #667eea;
    background: #f1f5f9;
}

.drop-zone.uploading {
    border-color: #667eea;
    background: #ddd6fe;
}

.drop-zone i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: block;
}

.drop-zone span {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.drop-zone small {
    color: #64748b;
    font-size: 0.875rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
}

.upload-progress i {
    font-size: 1.5rem !important;
    color: #667eea !important;
}

.upload-status {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.last-upload {
    color: #059669;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.no-upload {
    color: #64748b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar.open {
        width: 100%;
        position: fixed;
        z-index: 20;
    }

    .main-content {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .upload-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .period-selector {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .upload-card {
        padding: 1rem;
    }

    .drop-zone {
        padding: 1.5rem 0.75rem;
    }
}


.period-selection-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.period-selection-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.period-selection-container h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

.period-selection-container h3 i {
    color: #667eea;
    font-size: 1.5rem;
}

.selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.period-input-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.period-input-lg:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.period-input-lg:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.period-selection-container p {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.925rem;
    font-weight: 500;
}

/* ===== SEÇÃO DE PROMPT DESABILITADO ===== */
.disabled-upload-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    border: 2px dashed #d1d5db;
    margin-top: 2rem;
}

.disabled-upload-prompt i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.disabled-upload-prompt h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.disabled-upload-prompt p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .period-selection-container {
        padding: 1.5rem;
    }

    .period-selection-container h3 {
        font-size: 1.125rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .selectors {
        flex-direction: column;
        gap: 1rem;
    }

    .period-input-lg {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .disabled-upload-prompt {
        padding: 2rem 1rem;
    }

    .disabled-upload-prompt i {
        font-size: 3rem;
    }

    .disabled-upload-prompt h3 {
        font-size: 1.25rem;
    }
}

.period-selection-container .selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.period-selection-container .period-input-lg {
    padding: 0.75rem;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-weight: 500;
}

.period-selection-container p {
    margin-top: 1rem;
    color: #555;
}

.disabled-upload-prompt {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.disabled-upload-prompt i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Adicione ao final de wwwroot/adm.css */

.batch-upload-container {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
    position: relative;
}

.batch-upload-container .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.batch-upload-container i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.batch-upload-review-table .form-select {
    min-width: 200px;
}

.batch-upload-review-table .action-buttons .btn {
    padding: 0.3rem 0.6rem;
}

.mapping-status-auto {
    color: #28a745; /* Verde */
    font-weight: bold;
}

.mapping-status-manual {
    color: #fd7e14; /* Laranja */
    font-weight: bold;
}

.mapping-status-pending {
    color: #dc3545; /* Vermelho */
    font-weight: bold;
}

/* Adicione ao final de wwwroot/adm.css */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Para responsividade */
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #555;
}

.filter-group .form-control,
.filter-group .form-select {
    min-width: 180px;
}

/* Tabs Customizadas */
.custom-tabs {
    margin-top: 1rem;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1rem;
    gap: 0;
}

.tab-header {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.tab-header:hover {
    background-color: #f8f9fa;
    color: #333;
}

.tab-header.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9ff;
}

.tab-content {
    min-height: 400px;
}

/* Batch Upload Section */
.batch-upload-section {
    padding: 1rem;
}

.batch-header h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.batch-header p {
    color: #666;
    margin-bottom: 1.5rem;
}

.batch-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.batch-drop-zone:hover {
    border-color: #0056b3;
    background: #e6f3ff;
}

.batch-drop-zone i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.batch-drop-zone span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.batch-drop-zone small {
    color: #666;
}

/* Batch Table */
.batch-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.batch-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.batch-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.batch-table-row:last-child {
    border-bottom: none;
}

.col-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.col-file i {
    color: #dc3545;
}

.form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.auto-mapped {
    color: #28a745;
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

.mapping-status-pending {
    color: #ffc107;
    font-weight: 500;
}

.mapping-status-auto {
    color: #28a745;
    font-weight: 500;
}

.mapping-status-manual {
    color: #007bff;
    font-weight: 500;
}

.batch-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Filters Section */
.filters-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-item label {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.filter-item .form-select {
    min-width: 150px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Action Buttons */
.btn-action {
    background: none;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.btn-action:hover {
    background: #f8f9fa;
}

.btn-action.btn-danger:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
}

.btn-sm.btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-sm.btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* ===== MELHORIAS DOS FILTROS ===== */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
}

.filter-item label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.filter-item .form-select {
    padding: 0.625rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-item .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.filter-item .form-select:hover {
    border-color: #d1d5db;
}

.filter-item .btn-secondary {
    padding: 0.625rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    height: 44px; /* Mesma altura dos selects */
}

.filter-item .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* ===== MELHORIAS DOS BOTÕES DE AÇÃO ===== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.btn-action {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.btn-action i {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

/* Botão de Download */
.btn-action:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    transform: translateY(-1px);
}

.btn-action:hover i {
    color: #0ea5e9;
}

/* Botão de Upload/Substituir */
.btn-action.upload:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.btn-action.upload:hover i {
    color: #f59e0b;
}

/* Botão de Excluir */
.btn-action.btn-danger {
    border-color: #fee2e2;
}

.btn-action.btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: translateY(-1px);
}

.btn-action.btn-danger:hover i {
    color: #ef4444;
}

/* Input file oculto dentro dos labels */
.btn-action input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ===== MELHORIAS DA TABELA ===== */
.data-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: 0.025em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.data-table tr:hover .btn-action {
    border-color: #d1d5db;
}

/* ===== MELHORIAS DAS TABS ===== */
.tab-headers {
    display: flex;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
    gap: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-header {
    background: #f8fafc;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.025em;
}

.tab-header:hover {
    background-color: #f1f5f9;
    color: #374151;
}

.tab-header.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
    position: relative;
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

.tab-header i {
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-item {
        min-width: 100%;
    }

    .action-buttons {
        flex-direction: row;
        gap: 0.25rem;
    }

    .btn-action {
        width: 32px;
        height: 32px;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== PERÍODO CONFIRMADO COMPACTO ===== */
.period-confirmed-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.period-info {
    font-weight: 600;
    color: #0369a1;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-info::before {
    content: "📅";
    font-size: 1rem;
}

.btn-compact {
    background: white;
    border: 1px solid #0ea5e9;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-compact:hover {
    background: #0ea5e9;
    color: white;
}

.btn-compact i {
    font-size: 0.75rem;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}