/* Contenedor principal de la tarjeta */
.table-card {
    font-family: var(--font-family, 'Inter', system-ui, sans-serif);
    width: 94%;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-sm, 0px 2px 4px rgba(0, 0, 0, 0.02));
    overflow: hidden; /* Asegura que los bordes redondeados contengan la tabla */
}

/* Cabecera superior */
.table-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    background-color: var(--color-surface, #ffffff);
}

.table-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-card__title h3 {
    margin: 0;
    font-size: 16px;
    color: var(--color-text, #111827);
    font-weight: 600;
}

/* Botón de añadir */
.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary, #6366f1);
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 8px 16px;
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    border-color: var(--color-primary, #6366f1);
    background-color: var(--color-primary-light, #ede9fe);
}

/* Estilos de la tabla */
.table-container {
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal en pantallas pequeñas */
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background-color: var(--color-surface-raised, #f8fafc);
    color: var(--color-text-secondary, #475569);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.custom-table td {
    padding: 16px 24px;
    font-size: 13px;
    color: var(--color-text-secondary, #334155);
    border-bottom: 1px solid var(--color-border-subtle, #f3f4f6);
}

.custom-table tbody tr:hover td {
    background-color: var(--color-surface-hover, #f1f5f9);
}

/* Remueve el borde de la última fila para que no choque con el de la tarjeta */
.custom-table tr:last-child td {
    border-bottom: none;
}

/* Mensaje cuando no hay datos */
.empty-state {
    text-align: center !important;
    color: var(--color-text-muted, #64748b) !important;
    padding: 40px 20px !important;
}