/*
 * Week picker (Admin\Form\Type\WeekPickerType, week_picker_controller.js):
 * an inline jQuery UI calendar where a click on any day picks its whole
 * Monday-to-Sunday row. The row under the pointer and the chosen row are
 * both drawn as one band, so it reads as "a week", not as "a day".
 *
 * **Here and not in public/backend/css/custom.css** (FEAT-1, 7. 11. 2026):
 * imported from assets/app.js, so Asset Mapper serves it under a content
 * hash and a changed rule reaches every browser on the next deploy. In
 * custom.css it hid behind `framework.assets.version` - the picker shipped
 * without the bump and the owner saw one day picked instead of a week.
 */
.week-picker__calendar .ui-datepicker {
	width: auto;
	max-width: 22rem;
	padding: .25rem;
}

.week-picker__calendar .ui-datepicker-calendar tbody tr:hover td a {
	background: #f9dbe9;
	border-color: #f9dbe9;
	color: #5c0430;
}

.week-picker__calendar .ui-datepicker-calendar td.week-picker__selected a,
.week-picker__calendar .ui-datepicker-calendar tbody tr:hover td.week-picker__selected a {
	background: #cf176d;
	border-color: #cf176d;
	color: #fff;
	font-weight: 700;
	/* A day of the neighbouring month is `ui-priority-secondary` (.7) -
	   the week is one band, whichever month its days are in (FEAT-2). */
	opacity: 1;
}

/* Read-only (the cook, FEAT-4): jQuery UI's .35 left the week unreadable. */
.week-picker__calendar .ui-datepicker .ui-state-disabled {
	opacity: .6;
}

.week-picker__range {
	margin: .5rem 0 0;
	font-size: 1.05rem;
}
