/* Habit tracker generator (מעקב הרגלים להדפסה). */

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

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

.in4u-ht-sheet { background: #fff; padding: 8px; }
.in4u-ht-caption { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.in4u-ht-render { overflow-x: auto; }

.in4u-ht-table { border-collapse: collapse; width: 100%; background: #fff; }
.in4u-ht-table th, .in4u-ht-table td { border: 1px solid #adb5bd; text-align: center; }
.in4u-ht-table thead th {
	background: #2271b1; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 2px;
}
.in4u-ht-hcol { background: #eaf2fb; text-align: right; padding: 0 10px; min-width: 130px; }
.in4u-ht-table tbody td { height: 30px; }
.in4u-ht-table tbody .in4u-ht-hcol { font-weight: 600; }

@media print {
	.in4u-ht-controls, .in4u-ht-actions { display: none !important; }
	.in4u-ht { border: none; padding: 0; margin: 0; }
	.in4u-ht-table thead th, .in4u-ht-hcol { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
