.historial-container {
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;

	.historial-header {
		display: flex;
		align-items: center;
		margin-bottom: 20px;
		padding-bottom: 15px;
		border-bottom: 2px solid #5867dd;

		mat-icon {
			font-size: 28px;
			width: 28px;
			height: 28px;
			color: #5867dd;
			margin-right: 10px;
		}

		h4 {
			margin: 0;
			font-size: 18px;
			font-weight: 600;
			color: #333;
		}
	}

	.loading-container,
	.error-container,
	.empty-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 40px;
		color: #999;

		mat-icon {
			font-size: 48px;
			width: 48px;
			height: 48px;
			margin-bottom: 15px;
		}

		span {
			font-size: 14px;
		}
	}

	.error-container {
		color: #f44336;
	}

	.historial-list {
		.historial-item {
			display: flex;
			padding: 15px 0;
			border-bottom: 1px solid #eee;

			&:last-child {
				border-bottom: none;
			}

			.item-icon {
				width: 36px;
				height: 36px;
				min-width: 36px;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 15px;

				mat-icon {
					font-size: 18px;
					width: 18px;
					height: 18px;
					color: white;
				}
			}

			.item-content {
				flex: 1;

				.item-header {
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-bottom: 5px;

					.usuario {
						font-weight: 600;
						font-size: 14px;
						color: #333;
					}

					.tiempo {
						font-size: 12px;
						color: #999;
					}
				}

				.item-body {
					.accion-texto {
						font-size: 13px;
						color: #666;
						line-height: 1.5;

						strong {
							color: #5867dd;
						}

						.valor-anterior {
							background: #ffebee;
							color: #c62828;
							padding: 2px 6px;
							border-radius: 3px;
							text-decoration: line-through;
							font-size: 12px;
						}

						.valor-nuevo {
							background: #e8f5e9;
							color: #2e7d32;
							padding: 2px 6px;
							border-radius: 3px;
							font-size: 12px;
						}
					}
				}
			}
		}
	}
}

@media (max-width: 768px) {
	.historial-container {
		.historial-list .historial-item {
			.item-content .item-header {
				flex-direction: column;
				align-items: flex-start;

				.tiempo {
					margin-top: 3px;
				}
			}

			.item-content .item-body .accion-texto {
				display: block;

				.valor-anterior,
				.valor-nuevo {
					display: inline-block;
					margin-top: 5px;
				}
			}
		}
	}
}
