/* Shopping list generator (רשימת קניות להדפסה). */

.in4u-sl {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	font-family: inherit;
	color: #212529;
	direction: rtl;
	text-align: right;
}

.in4u-sl-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 12px; }
.in4u-sl-ctrl { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0; }
.in4u-sl-ctrl > span { font-weight: 600; color: #495057; }
.in4u-sl-ctrl select,
.in4u-sl-ctrl input[type="text"],
.in4u-sl-ctrl input[type="number"] {
	padding: 6px 10px; border: 1px solid #ced4da; border-radius: 4px;
	background: #fff; font-size: 14px; font-family: inherit; min-width: 120px; direction: rtl;
}
.in4u-sl-ctrl input[type="number"] { min-width: 90px; }

.in4u-sl-actions {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
}
.in4u-sl-btn { padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-family: inherit; cursor: pointer; transition: filter 0.15s; }
.in4u-sl-btn:hover { filter: brightness(0.95); }
.in4u-sl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.in4u-sl-btn-primary { background: #2271b1; color: #fff; }
.in4u-sl-btn-secondary { background: #fff; color: #2271b1; border: 1px solid #2271b1; }
.in4u-sl-status { font-size: 13px; color: #6c757d; }

.in4u-sl-sheet { background: #fff; padding: 8px; }
.in4u-sl-caption { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 16px; }

.in4u-sl-cols { column-gap: 18px; }
.in4u-sl-block { break-inside: avoid; page-break-inside: avoid; margin-bottom: 12px; -webkit-column-break-inside: avoid; }

.in4u-sl-cat {
	font-weight: 700;
	font-size: 15px;
	color: #2271b1;
	border-bottom: 2px solid #2271b1;
	padding-bottom: 2px;
	margin-bottom: 4px;
}

.in4u-sl-line {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	border-bottom: 1px solid #d7dbe0;
}
.in4u-sl-check { flex: 0 0 15px; width: 15px; height: 15px; border: 1.5px solid #333; border-radius: 3px; }

@media print {
	.in4u-sl-controls, .in4u-sl-actions { display: none !important; }
	.in4u-sl { border: none; padding: 0; margin: 0; }
	.in4u-sl-cat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
