.table-container {
    width: 100%;    
    background-color: #ffffff;
    border-radius: 8px; 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); 
    padding: 0.5rem; 
    height: 100%; 
}

.modern-table {
    width: 100%;
    table-layout: auto; 
    border-collapse: collapse;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
    border-collapse: separate; 
    border-spacing: 0;
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden;
}

.modern-table th,
.modern-table td {
    padding: 6px 4px;  
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;  
}

.table-header-main th {
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.85rem; 
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #cbd5e1;
    padding: 8px 4px;  
}

.brand-icon {
    max-width: 20px !important; 
    width: auto !important;     
    height: auto;
    padding: 0 !important; 
    margin: 0 auto !important;
    
    display: block;  
}

.modern-table td i {
    padding: 0 !important;
    margin: 0 !important;
}

.col-institucion {
    text-align: left !important;
    color: #64748b;
    font-size: 0.8rem; 
    width: 34%;  
    max-width: 100%;  
}

.bank-name {
    text-align: left !important;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem; 
}

.icon-active {
    font-size: 1rem; 
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f1f5f9;
}

@media (max-width: 400px) {
    .table-container {
        padding: 0.25rem;  
    }
    
    .modern-table th,
    .modern-table td {
        padding: 6px 1px; 
    }
    
    .table-header-main th {
        font-size: 0.65rem;  
        padding: 6px 2px;
    }
    
    .col-institucion {
        width: auto; 
        max-width: 100%;
    }

    .col-institucion,
    .bank-name {
        font-size: 0.55rem; 
        line-height: 1.1;
    }
    
    .brand-icon {
        max-width: 30px !important;  
    }
    
    .icon-active {
        font-size: 0.7rem; 
    }
}