/* Weekly planner generator (יומן / פלנר שבועי להדפסה). */

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

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

.in4u-wp-sheet { background: #fff; padding: 8px; }
.in4u-wp-caption { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.in4u-wp-weekof { text-align: center; font-size: 14px; color: #495057; margin-bottom: 16px; }

.in4u-wp-day {
	border: 1px solid #adb5bd;
	border-radius: 6px;
	margin-bottom: 10px;
	overflow: hidden;
	break-inside: avoid;
	page-break-inside: avoid;
}
.in4u-wp-dayname {
	background: #2271b1;
	color: #fff;
	font-weight: 700;
	padding: 6px 12px;
	font-size: 15px;
}
.in4u-wp-lines { padding: 4px 12px 8px; }
.in4u-wp-line {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	border-bottom: 1px solid #d7dbe0;
}
.in4u-wp-line:last-child { border-bottom: 0; }
.in4u-wp-check { flex: 0 0 16px; width: 16px; height: 16px; border: 1.5px solid #333; border-radius: 3px; }

.in4u-wp-notes {
	border: 1px solid #adb5bd;
	border-radius: 6px;
	margin-top: 6px;
	break-inside: avoid;
}
.in4u-wp-notes .in4u-wp-dayname { background: #495057; }

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