/* Selector de displays de comanda (10 checks). Ver tpv_display_picker.js. */

.km-disp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	width: 100%;
	max-width: 640px;
}
@media (max-width: 575px) {
	.km-disp-grid { grid-template-columns: 1fr; }
}

.km-disp-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid #e6ddd2;
	border-radius: 9px;
	background: #fff;
	min-width: 0;
}
.km-disp-item--fixed { background: #faf6f0; }

/* Checkbox custom */
.km-disp-cb-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}
.km-disp-cb { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.km-disp-box {
	width: 22px;
	height: 22px;
	border: 2px solid #c8b8a6;
	border-radius: 6px;
	background: #fff;
	display: inline-block;
	position: relative;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.km-disp-cb:checked + .km-disp-box {
	background: #ff8024;
	border-color: #ff8024;
}
.km-disp-cb:checked + .km-disp-box::after {
	content: '';
	position: absolute;
	left: 6px; top: 2px;
	width: 6px; height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}
.km-disp-cb:focus + .km-disp-box { box-shadow: 0 0 0 3px rgba(255, 128, 36, 0.2); }

/* Nombre fijo (COCINA/BARRA) */
.km-disp-name--fixed {
	font-weight: 700;
	color: #1a1108;
	letter-spacing: 0.3px;
	flex: 1;
	cursor: pointer;
	user-select: none;
}
.km-disp-lock { color: #b9a893; font-size: 14px; flex-shrink: 0; }

/* Input editable (DISPLAY 3..10) */
.km-disp-rename {
	flex: 1;
	min-width: 0;
	height: 34px;
	border: 1px solid #e0d3c4;
	border-radius: 7px;
	padding: 0 10px;
	font-size: 0.95rem;
	color: #1a1108;
	background: #fff;
}
.km-disp-rename:focus {
	outline: none;
	border-color: #ff8024;
	box-shadow: 0 0 0 3px rgba(255, 128, 36, 0.15);
}
.km-disp-rename:disabled { background: #f3efe9; color: #9a8b7a; }
