.ui-autocomplete {
	z-index: 10000;
}


.dt-buttons .btn-secondary {
	width: 40px;
	margin: 0px;
	padding: 0px;
}


.pendiente {
	background-color: red;
}

.en_proceso {
	background-color: yellow;
	color: black;
}

.en_espera {
	background-color: orange;
}

.reparado {
	background-color: blue;
}

.entregado {
	background-color: green;
}

.cancelado {
	background-color: black;
}

.no_reparable {
	background-color: firebrick;
}

.pos-mode .navbar-bg,
.pos-mode .main-navbar,
.pos-mode .main-sidebar,
.pos-mode .settingSidebar {
	display: none !important;
}

.pos-mode .main-wrapper,
.pos-mode .main-content {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.pos-mode .main-content {
	padding-top: 0 !important;
}

.pos-mode .section {
	padding: 0 !important;
}

.pos-page {
	min-height: 100vh;
	background: #f5f6f8;
	overflow-x: hidden;
}

.pos-mode form.contents {
	display: contents;
}

.pos-topbar {
	position: sticky;
	top: 0;
	z-index: 1020;
	background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 12px 16px;
}

.pos-title {
	font-weight: 700;
	letter-spacing: 0.2px;
}

.pos-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
	gap: 16px;
	padding: 16px;
}

@media (max-width: 1200px) {
	.pos-grid {
		grid-template-columns: 1fr;
	}
}

.pos-panel {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	padding: 14px;
}

.pos-sticky {
	position: sticky;
	top: 76px;
	align-self: start;
}

.pos-kpi {
	background: #f8f9fa;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	padding: 12px;
}

.pos-kpi .pos-kpi-label {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}

.pos-kpi .pos-kpi-value {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: 0.2px;
	color: #198754;
}

.pos-kpi .pos-kpi-sub {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}

.pos-cart-table thead th {
	white-space: nowrap;
}

.pos-product-img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

.pos-product-name {
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 420px;
}

.pos-total {
	font-size: 28px;
	font-weight: 800;
	color: #198754;
	background: rgba(25, 135, 84, 0.08);
	padding: 4px 10px;
	border-radius: 12px;
	display: inline-block;
}

.pos-panel .table {
	margin-bottom: 0;
}

.pos-panel #tablaFormasPago th,
.pos-panel #tablaFormasPago td {
	vertical-align: middle;
}

.pos-panel #tablaFormasPago .form-control {
	min-width: 140px;
}

.pos-panel #tablaFormasPago input[name$="[referencia]"] {
	min-width: 200px;
}

.pos-panel #tablaFormasPago .pos-efectivo-row td {
	background: rgba(25, 135, 84, 0.06);
}

.pos-panel #tablaFormasPago .pos-efectivo-row .input-monto {
	font-size: 18px;
	font-weight: 800;
	border-color: rgba(25, 135, 84, 0.35);
	height: 44px;
}

@media (max-width: 1400px) {

	.pos-mode #tablaFormasPago th:nth-child(3),
	.pos-mode #tablaFormasPago td:nth-child(3),
	.pos-mode #tablaFormasPago th:nth-child(4),
	.pos-mode #tablaFormasPago td:nth-child(4) {
		display: none;
	}
}

@media (max-width: 1280px) {

	.pos-mode #tablaFormasPago th:nth-child(3),
	.pos-mode #tablaFormasPago td:nth-child(3),
	.pos-mode #tablaFormasPago th:nth-child(4),
	.pos-mode #tablaFormasPago td:nth-child(4) {
		display: none;
	}
}

.pos-mode .pos-panel .form-control,
.pos-mode .pos-panel .form-select,
.pos-mode .pos-panel .input-group-text {
	font-size: 16px;
	height: 42px;
}

.pos-mode .pos-panel textarea.form-control {
	height: auto;
}

.pos-mode #btnAccion {
	height: 52px;
	font-size: 18px;
	font-weight: 800;
}

.pos-panel #tablaFormasPago .btn {
	min-width: 40px;
}

.pos-panel .table-responsive {
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
	.pos-mode form.contents {
		display: block;
	}

	.pos-sticky {
		position: static;
	}

	.pos-grid {
		grid-template-columns: 1fr;
		padding: 10px;
		gap: 10px;
		justify-items: center;
	}

	.pos-panel {
		width: 100%;
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}

	.pos-kpi {
		text-align: center;
	}

	.pos-topbar {
		padding: 10px;
	}

	.pos-topbar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.pos-topbar .pos-title {
		text-align: center;
	}

	.pos-topbar>a.btn {
		width: 100%;
		justify-content: center;
	}

	.pos-topbar .ms-auto {
		width: 100%;
		justify-content: space-between;
	}

	.pos-topbar .input-group {
		width: 100% !important;
	}

	.pos-topbar .text-end {
		text-align: center !important;
		width: 100%;
	}

	.pos-topbar .btn {
		height: 42px;
		display: inline-flex;
		align-items: center;
	}

	.pos-total {
		font-size: 26px;
	}

	.pos-mode .pos-panel {
		padding: 12px;
		border-radius: 12px;
		min-width: 0;
	}

	.pos-mode .pos-panel * {
		min-width: 0;
	}

	.pos-mode .pos-panel .form-control,
	.pos-mode .pos-panel .form-select,
	.pos-mode .pos-panel .input-group-text {
		font-size: 16px;
		height: 46px;
	}

	.pos-mode #btnAccion {
		height: 56px;
		font-size: 18px;
	}

	/* Carrito: tabla a cards */
	.pos-mode #tblNuevaVenta {
		border: 0;
	}

	.pos-mode #tblNuevaVenta thead {
		display: none;
	}

	.pos-mode #tblNuevaVenta,
	.pos-mode #tblNuevaVenta tbody,
	.pos-mode #tblNuevaVenta tr,
	.pos-mode #tblNuevaVenta td {
		display: block;
		width: 100%;
	}

	.pos-mode #tblNuevaVenta tr {
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 14px;
		padding: 10px;
		margin-bottom: 10px;
	}

	.pos-mode #tblNuevaVenta td {
		border: 0;
		padding: 8px 6px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(1) {
		padding-top: 2px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(2)::before {
		content: 'Precio';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(3)::before {
		content: 'Cantidad';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(4)::before {
		content: 'Subtotal';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(5) {
		padding-bottom: 2px;
	}

	.pos-mode #tblNuevaVenta td:nth-child(5) .btn {
		width: 100%;
		height: 46px;
		font-weight: 800;
	}

	.pos-mode #tblNuevaVenta td:nth-child(2) select,
	.pos-mode #tblNuevaVenta td:nth-child(3) input {
		width: 100%;
	}

	.pos-mode #tblNuevaVenta td:nth-child(4) {
		font-weight: 800;
		font-size: 18px;
	}

	.pos-product-img {
		width: 54px;
		height: 54px;
		border-radius: 14px;
	}

	.pos-product-name {
		max-width: 240px;
	}

	/* Buscador productos: evitar overflow */
	.pos-mode .btn-group-toggle,
	.pos-mode .btn-group {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
	}

	.pos-mode .btn-group-toggle .btn,
	.pos-mode .btn-group .btn {
		flex: 1 1 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 14px;
		padding: 10px 8px;
	}

	.pos-mode .btn-group-toggle .btn input[type="radio"] {
		margin-right: 6px;
	}

	.pos-mode #containerCodigo,
	.pos-mode #containerNombre {
		width: 100%;
	}

	.pos-mode #containerCodigo .input-group-text,
	.pos-mode #containerNombre .input-group-text {
		flex: 0 0 auto;
	}

	.pos-mode #containerCodigo input,
	.pos-mode #containerNombre input {
		flex: 1 1 auto;
		width: 1%;
	}

	/* Pagos: evitar overflow, ocultar columnas pesadas */
	.pos-mode #tablaFormasPago th:nth-child(3),
	.pos-mode #tablaFormasPago td:nth-child(3),
	.pos-mode #tablaFormasPago th:nth-child(4),
	.pos-mode #tablaFormasPago td:nth-child(4),
	.pos-mode #tablaFormasPago th:nth-child(5),
	.pos-mode #tablaFormasPago td:nth-child(5) {
		display: none;
	}

	.pos-mode .pos-panel #tablaFormasPago .form-control {
		min-width: 0;
		width: 100%;
	}

	.pos-mode .pos-panel #tablaFormasPago .btn {
		min-width: 44px;
		height: 44px;
	}

	.pos-mode .pos-panel .table-responsive {
		max-height: none !important;
		overflow: visible !important;
	}
}

@media (max-width: 576px) {

	/* Pagos: tabla a cards para pantallas muy pequeñas */
	.pos-mode #tablaFormasPago thead {
		display: none;
	}

	.pos-mode #tablaFormasPago,
	.pos-mode #tablaFormasPago tbody,
	.pos-mode #tablaFormasPago tr,
	.pos-mode #tablaFormasPago td {
		display: block;
		width: 100%;
	}

	.pos-mode #tablaFormasPago tr {
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 14px;
		padding: 10px;
		margin-bottom: 10px;
	}

	.pos-mode #tablaFormasPago td {
		border: 0;
		padding: 6px 4px;
	}

	.pos-mode #tablaFormasPago td:nth-child(1)::before {
		content: 'Forma';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tablaFormasPago td:nth-child(2)::before {
		content: 'Recibido';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tablaFormasPago td:nth-child(6)::before {
		content: 'Acción';
		display: block;
		font-size: 12px;
		color: rgba(0, 0, 0, .55);
		margin-bottom: 4px;
	}

	.pos-mode #tablaFormasPago td:nth-child(6) .btn {
		width: 100%;
		font-weight: 800;
	}
}

.bg-light-alt {
	background-color: #f4f6f9 !important;
}

/* Egresos Mobile Date Fixes */
@media (max-width: 576px) {
	.input-group-sm>.form-control[type="date"] {
		min-width: 130px;
		/* Ensure enough space for DD/MM/YYYY */
	}
}