@charset "UTF-8";

.custom-margin {
	margin-bottom: 10px; /* Adds 20 pixels of space below the element */
}

.custom-link {
	font-size: 16px; /* Sets the font size */
}

#productos-row {
	margin-top: 10px;
}

.detailed-row {
	width: 180px;
	height: 365px;
	/*height: 380px;*/
	position: relative;
}

.thumbnail-wrapper {
	position: relative;
	display: inline-block; /*显示禁用文字设置*/
	width: 170px; /* 与#imgproducto宽度相同 */
	height: 220px; /* 与#imgproducto高度相同 */
}

.disabled-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0); /* 设置最后面背景框颜色 */
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.disabled-text {
	color: red; /* 文字颜色设置为红色 */
	font-weight: bold; /* 文字加粗 */
	border: 2px solid red; /* 文字周围有2像素宽的红色边框 */
	border-radius: 5px; /* 边框圆角设置为5像素 */
	font-size: 20px; /* 字体大小设置为20像素 */
	display: inline-block; /* 元素显示为inline-block，这样它既有inline的特性也有block的特性 */
	white-space: normal; /* 允许文字换行 */
	word-wrap: break-word; /* 允许单词换行 */
	text-align: center; /* 文字居中对齐 */
	position: absolute; /* 使元素相对于最近的定位祖先元素进行绝对定位 */
	top: 0; /* 使元素靠近其容器的顶部 */
	left: 50%; /* 使元素在其容器的水平中间 */
	transform: translateX(-50%); /* 水平居中对齐 */
	padding: 2px 2px; /* 调整内边距，使框更紧凑 */
	margin: 0; /* 去除外边距 */
}

#imgproducto {
	height: 220px;
	width: 170px;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
	color: red; /* 红色字体 */
	display: none; /* 默认不显示 */
	justify-content: center;
	align-items: center;
	font-size: 20px; /* 字体大小 */
	flex-direction: column; /* 确保文本垂直居中 */
}

.overlay-content {
	transform: rotate(-45deg); /* 对角旋转 */
	border: 2px solid red; /* 文字边框 */
	padding: 5px; /* 边框内填充 */
}

.codigo-precio, .contado {
	padding: 4px 6px;
}

#codigo-producto {
	font-size: 12px;
}

#precio-producto {
	font-size: 14px;
}

#nombreproducto {
	padding: 5px;
}

.add-row {
	width: 100%;
	position: absolute;
	bottom: 3px;
	text-align: center;
}

/* 默认情况下内容居中对齐 */
.page-row {
	text-align: center;
}

/* 小屏幕情况下内容靠左对齐 */
@media ( max-width : 767px) {
	.jump-page {
		text-align: center;
	}
	.page-row {
		text-align: left;
	}
}

.producto-cant {
	width: 30px;
	color: #0F0F0F;
	text-align: center;
}

.jump-page label {
	font-size: 14px;
}

.jump-page button {
	margin-left: 6px;
}

.jump-page input {
	margin-left: 6px;
	width: 42px;
	font-size: 16px;
	color: #0F0F0F;
	text-align: center;
}

#pagination {
	margin-top: 2px;
}