/* Estilos modernos para a tabela CFOP */
.cfop-table-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cfop-search-container {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#cfop-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#cfop-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.cfop-table-wrapper {
    overflow-x: auto;
}

#cfop-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#cfop-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#cfop-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

#cfop-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.cfop-code {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.cfop-description {
    color: #6c757d;
    line-height: 1.4;
}

#cfop-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cfop-pagination button {
    padding: 8px 16px;
    border: 2px solid #007cba;
    border-radius: 6px;
    background-color: #fff;
    color: #007cba;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#cfop-pagination button:hover:not(:disabled) {
    background-color: #007cba;
    color: white;
    transform: translateY(-1px);
}

#cfop-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    font-weight: 500;
    color: #495057;
    margin: 0 10px;
}

.cfop-stats {
    font-size: 14px;
    color: #6c757d;
}

/* Responsividade */
@media (max-width: 768px) {
    .cfop-table-container {
        margin: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .cfop-search-container {
        padding: 15px;
    }
    
    #cfop-table th,
    #cfop-table td {
        padding: 8px;
        font-size: 14px;
    }
    
    #cfop-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-controls {
        order: 2;
    }
    
    .cfop-stats {
        order: 1;
    }
}

