body {
    font-family: 'Gabarito', sans-serif;
    background-color: #f7f8fa;
    margin: 0;
    padding: 0;
}

.csd-container {
    margin: 0px;
    padding: 0px;
}

.csd-table-wrapper {
    overflow-x: clip;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.csd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    overflow: hidden;
    min-width: 800px;
    border: 0.5px solid #dcdcdc; /* Gris claro */

}

.csd-time {
    font-size: 0.75rem;
    color: #888888;
}

.csd-table thead {
    background-color: #7A00FF;
    color: white;
}

.csd-table th, .csd-table td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
    border: 0.5px solid #dcdcdc; /* Gris claro */

}

.csd-table tbody tr:nth-child(odd) {
    background-color: #F8F8F8;
}

.csd-table tbody tr:nth-child(even) {
    background-color: white;
}

.csd-table tbody tr:hover {
    background-color: #f1f1f1;
}

.csd-btn {
    background-color: #7A00FF;
    color: white;
    padding: 6px 14px;
    font-size: 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.csd-btn:hover {
    background-color: #5d00c5;
}

/* Status badge */
.csd-status-succeeded {
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85em;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .csd-table th, .csd-table td {
        padding: 10px;
        font-size: 0.875rem;
    }

    .csd-container {
        padding: 10px;
    }
}

.csd-pagination {
    text-align: center;
    margin-top: 20px;
    color: #7A00FF !important;
}

.csd-page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.csd-page-link:hover {
    background-color: #ddd;
}

.csd-page-link.active {
    background-color: #7A00FF;
    color: white;
    border-color: #7A00FF;
}

.csd-search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0px;
}

#csd-search-input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Gabarito', sans-serif;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.2s ease;
}

#csd-search-input:focus {
    box-shadow: 0 0 0 2px rgba(170, 16, 231, 0.23);
}

.csd-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* Estilos para el icono del ojo */
.csd-eye-icon {
    color: #7A00FF;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.csd-eye-icon:hover {
    transform: scale(1.2);
}

/* Estilos para el popup */
.csd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.csd-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.csd-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.csd-popup-close:hover {
    color: #7A00FF;
}

.csd-popup-content h3 {
    margin-top: 0;
    color: #7A00FF;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.csd-detail-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.csd-detail-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.csd-detail-value {
    color: #333;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 1rem;
}

.csd-payment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .csd-payment-details {
        grid-template-columns: 1fr;
    }
    
    .csd-popup-content {
        padding: 20px;
        width: 95%;
    }
}

/* Estilos para la sección de información de pago */
.csd-card-info {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.csd-card-info-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #7A00FF;
}

.csd-card-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.csd-risk-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    color: white;
    margin-top: 5px;
}

.csd-risk-low {
    background-color: #28a745;
}

.csd-risk-medium {
    background-color: #ffc107;
    color: #333;
}

.csd-risk-high {
    background-color: #dc3545;
}

.csd-eye-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.csd-amount-net {
    font-size: 0.75rem;   /* más pequeño */
    color: #888888;       /* gris tenue */
}