/* Smoothness style sheet for jQuery Datepicker v4.0.5. */
/* Restyled for MachForm: every visual rule is scoped under .datepick-popup. */

/* ---- Plugin structure ---- */
.datepick-rtl {
	direction: rtl;
}
.datepick-popup {
	z-index: 1000;
}
.datepick-disable {
	position: absolute;
	z-index: 100;
	background-color: white;
	opacity: 0.5;
	filter: alpha(opacity=50);
}
.datepick-month-header input {
	position: absolute;
	display: none;
}
.datepick-clear-fix {
	clear: both;
}
.datepick-cover {
    display: none;
    display/**/: block;
    position: absolute;
    z-index: -1;
    filter: mask();
    top: -1px;
    left: -1px;
    width: 100px;
    height: 100px;
}

/* ---- Tokens (a form theme can override these on .datepick-popup) ---- */
.datepick-popup {
	--mf-dp-accent: #3661a1;
	--mf-dp-accent-tint: #eaf0f9;
	--mf-dp-text: #1f2937;
	--mf-dp-muted: #6b7280;
	--mf-dp-hover: #f1f3f6;
	--mf-dp-unavailable: #c3c8cf;
	--mf-dp-border: #e3e6ea;
	--mf-dp-bg: #ffffff;
	--mf-dp-on-accent: #ffffff;            /* selected day */
	--mf-dp-label: #374151;                /* Prev / Next, footer buttons */
	--mf-dp-other-month: #9aa1ab;
	--mf-dp-unavailable-ring: #d7dbe0;     /* today, when it can't be picked */
	--mf-dp-divider: #eef0f3;
	--mf-dp-preview: #f1f5fb;              /* a range previewed under the pointer, lighter than a picked one */
	--mf-dp-accent-text: #1f3b66;          /* text on the accent tint (a message at the top) */
}
/* A picker on a dark form theme: its field adds mf-dp-dark to the picker (pickerClass) */
.datepick-popup .mf-dp-dark {
	--mf-dp-accent: #8fb1ea;
	--mf-dp-accent-tint: #33476b;
	--mf-dp-text: #e8ecf2;
	--mf-dp-muted: #9aa4b2;
	--mf-dp-hover: #323b49;
	--mf-dp-unavailable: #6c7684;
	--mf-dp-border: #3a4452;
	--mf-dp-bg: #262d38;
	--mf-dp-on-accent: #0f1d33;
	--mf-dp-label: #d5dbe4;
	--mf-dp-other-month: #7d8795;
	--mf-dp-unavailable-ring: #4a5462;
	--mf-dp-divider: #3a4452;
	--mf-dp-preview: #2c3950;
	--mf-dp-accent-text: #e8efff;
}

/* ---- Popup ---- */
.datepick-popup .datepick {
	position: relative;
	box-sizing: border-box;
	width: 292px !important; /* the plugin sets an inline width from the month width */
	padding: 12px;
	background: var(--mf-dp-bg);
	border: 1px solid var(--mf-dp-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	font-size: 14px;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: var(--mf-dp-text);
}
.datepick-popup .datepick-rtl {
	text-align: right;
}
.datepick-popup .datepick *,
.datepick-popup .datepick *::before {
	box-sizing: border-box;
}
.datepick-popup .datepick a,
.datepick-popup .datepick a:hover {
	text-decoration: none;
}

/* ---- Commands (shared): <button>s (mf.datepick.a11y.js), reset to the popup's text ---- */
.datepick-popup .datepick-cmd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	width: auto;
	margin: 0;
	padding: 0 10px;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
.datepick-popup .datepick-cmd:hover {
	background-color: var(--mf-dp-hover);
}
.datepick-popup .datepick-cmd:focus-visible {
	outline: 2px solid var(--mf-dp-accent);
	outline-offset: 1px;
}
.datepick-popup .datepick-cmd.datepick-disabled {
	opacity: .35;
	cursor: default;
}
.datepick-popup .datepick-cmd.datepick-disabled:hover {
	background: none;
}

/* ---- Header: Prev and Next as chevrons at the ends of the month header row (they're inside it, around the dropdowns) ---- */
.datepick-popup .datepick-cmd-prev,
.datepick-popup .datepick-cmd-next {
	position: absolute;
	top: 12px;
	display: block;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	overflow: hidden;
	white-space: nowrap;
	text-indent: 40px; /* the text stays in the DOM for screen readers */
	color: var(--mf-dp-label);
}
.datepick-popup .datepick-cmd-prev {
	inset-inline-start: 12px;
}
.datepick-popup .datepick-cmd-next {
	inset-inline-end: 12px;
}
.datepick-popup .datepick-cmd-prev::before,
.datepick-popup .datepick-cmd-next::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--mf-dp-chevron) center / 16px 16px no-repeat;
	mask: var(--mf-dp-chevron) center / 16px 16px no-repeat;
}
.datepick-popup .datepick-cmd-prev::before {
	--mf-dp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}
.datepick-popup .datepick-cmd-next::before {
	--mf-dp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}
.datepick-popup .datepick-rtl .datepick-cmd-prev::before,
.datepick-popup .datepick-rtl .datepick-cmd-next::before {
	transform: scaleX(-1);
}

/* ---- Month and year dropdowns ---- */
.datepick-popup .datepick-month-row {
	clear: none;
}
.datepick-popup .datepick-month {
	float: none;
	width: auto;
	padding: 0;
	border: 0;
	text-align: center;
}
.datepick-popup .datepick-month-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 32px;
	margin: 0 0 6px;
	padding: 0 34px; /* keeps the dropdowns clear of the chevrons */
	background: none;
}
.datepick-popup .datepick-month-header select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0 26px 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 12px 12px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 32px;
	color: var(--mf-dp-text);
	text-overflow: ellipsis;
	cursor: pointer;
}
.datepick-popup .datepick-rtl .datepick-month-header select {
	padding: 0 10px 0 26px;
	background-position: left 9px center;
}
/* Fixed minimum widths keep the arrows in place from month to month:
   month fits "September", year fits 4 digits. Longer names still grow. */
.datepick-popup .datepick-month-header select:first-of-type {
	min-width: 116px;
}
.datepick-popup .datepick-month-header select:last-of-type {
	min-width: 76px;
}
/* Japanese puts the year first ("yyyy<year sign> MM"). A select with more than 12 options is the
   year, so both get the narrow width there and still fit beside the chevrons. */
.datepick-popup .datepick-month-header select:first-of-type:has(option:nth-child(13)),
.datepick-popup .datepick-month-header select:first-of-type:has(option:nth-child(13)) ~ select {
	min-width: 76px;
}
.datepick-popup .datepick-month-header select:hover {
	background-color: var(--mf-dp-hover);
}
.datepick-popup .datepick-month-header select:focus {
	outline: none;
}
.datepick-popup .datepick-month-header select:focus-visible {
	outline: 2px solid var(--mf-dp-accent);
	outline-offset: 1px;
}
.datepick-popup .datepick-month-header option {
	background-color: var(--mf-dp-bg);
	color: var(--mf-dp-text);
	font-weight: 400;
}

/* ---- Day grid ---- */
.datepick-popup .datepick-month table {
	width: calc(100% + 4px); /* the outer border-spacing sits in the popup padding */
	margin: 0 -2px;
	border: 0;
	border-collapse: separate;
	border-spacing: 2px;
	background: none;
	table-layout: auto;
}
.datepick-popup .datepick-month thead,
.datepick-popup .datepick-month tbody,
.datepick-popup .datepick-month tr {
	border: 0;
	background: none;
}
.datepick-popup .datepick-month th,
.datepick-popup .datepick-month td {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	vertical-align: middle;
}
.datepick-popup .datepick-month th {
	height: 28px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mf-dp-muted);
}
.datepick-popup .datepick-month th span {
	color: inherit;
}

/* Days: selectable days are <a>, unselectable days and empty cells are <span>. */
.datepick-popup .datepick-month td a,
.datepick-popup .datepick-month td span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	box-shadow: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-indent: 0;
	text-decoration: none;
	color: var(--mf-dp-text);
}
/* The plugin's datepick-highlight class is left unstyled: it sits on today when the picker opens. */
.datepick-popup .datepick-month td a:hover {
	background-color: var(--mf-dp-hover);
}
.datepick-popup .datepick-month td a:focus,
.datepick-popup .datepick-month td span:focus {
	outline: none;
}
.datepick-popup .datepick-month td a:focus-visible,
.datepick-popup .datepick-month td span:focus-visible {
	outline: 2px solid var(--mf-dp-accent);
	outline-offset: 2px;
}
.datepick-popup .datepick-month td .datepick-today {
	box-shadow: inset 0 0 0 1.5px var(--mf-dp-accent);
	font-weight: 700;
	color: var(--mf-dp-accent);
}
.datepick-popup .datepick-month td a.datepick-selected,
.datepick-popup .datepick-month td a.datepick-selected:hover {
	background-color: var(--mf-dp-accent);
	box-shadow: none;
	font-weight: 600;
	color: var(--mf-dp-on-accent);
}

/* Unavailable: outside the date limit or otherwise unselectable */
.datepick-popup .datepick-month td span {
	font-weight: 400;
	color: var(--mf-dp-unavailable);
	cursor: not-allowed;
}
.datepick-popup .datepick-month td span.datepick-today {
	box-shadow: inset 0 0 0 1.5px var(--mf-dp-unavailable-ring);
	font-weight: 400;
	color: var(--mf-dp-unavailable);
}
.datepick-popup .datepick-month td .datepick-other-month {
	color: var(--mf-dp-other-month);
}
.datepick-popup .datepick-month td span.datepick-other-month {
	cursor: default;
}

/* ---- Footer: Clear, Today, Close (Today centered whatever the other two say) ---- */
.datepick-popup .datepick-ctrl {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	float: none;
	width: auto;
	margin: 8px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--mf-dp-divider);
	border-radius: 0;
	background: none;
}
.datepick-popup .datepick-ctrl .datepick-cmd {
	height: 30px;
	padding: 0 10px;
	border-radius: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--mf-dp-label);
}
.datepick-popup .datepick-ctrl .datepick-cmd-clear {
	justify-self: start;
	font-weight: 500;
	color: var(--mf-dp-muted);
}
.datepick-popup .datepick-ctrl .datepick-cmd-today {
	white-space: nowrap;
	color: var(--mf-dp-accent);
}
.datepick-popup .datepick-ctrl .datepick-cmd-close {
	justify-self: end;
}

/* ---- More than one month, side by side: the plugin adds datepick-multi to the picker, first and last to the months ---- */
.datepick-popup .datepick.datepick-multi {
	width: auto !important; /* the plugin's inline width is measured before these styles apply */
}
.datepick-popup .datepick-multi .datepick-month-row {
	display: flex;
	gap: 24px;
}
.datepick-popup .datepick-multi .datepick-month {
	flex: none;
	width: 268px; /* the grid width of a one-month popup; a width, not only a flex basis, so the popup is sized from it */
}
/* Prev on the first month and Next on the last only; display: none also keeps the others out of the Tab order */
.datepick-popup .datepick-month.first .datepick-cmd-next,
.datepick-popup .datepick-month.last .datepick-cmd-prev {
	display: none;
}

/* ---- An inline calendar with the popup's look: a div with the classes datepick-popup and datepick-inline-styled.
   It sits in the page, so it never grows wider than its container ---- */
.datepick-popup.datepick-inline-styled .datepick {
	max-width: 100%;
}
.datepick-popup.datepick-inline-styled .datepick-multi {
	display: inline-block;
	vertical-align: top;
}

/* Announces the month shown (mf.datepick.a11y.js) */
.datepick-popup .mf-dp-live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---- Trigger: a button around the calendar image. No display here: page CSS that shows or hides an
   admin page's trigger (e.g. .filter_date .filter_date_trigger) sets it. ---- */
.mf-dp-trigger {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	line-height: 0;
	color: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
/* public form: the image floats (view.css .datepicker), so the button does instead */
#main_body form li .mf-dp-trigger {
	float: left;
}
.mf-dp-trigger:focus {
	outline: none;
}
/* the ring hugs the image (the button also holds the image's margins). Two tones, white inside a dark blue that is
   9:1+ against white, so one of them has 3:1 against any theme background (WCAG technique C40). The transparent
   outline shows in forced-colors mode, which drops box-shadow. */
.mf-dp-trigger:focus-visible > img {
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #24416c;
}
.mf-dp-trigger:disabled {
	cursor: default;
}
.mf-dp-trigger:disabled > img {
	opacity: .5;
}
