/* Date fields in the user's own date format (mwlIncludes/class.mwlDateField.php, js/date-field).
   The text field keeps the page's own look (its class from the page); the calendar button sits inside it at the
   right end, as the browser's own date field has it (Magnus 2026-11-21). The browser's date field is hidden under
   the button, so its picker opens next to the button.
   The selectors name the input type and the parent (span.mwlDate > ...[type=...]) so they win over the pages' own
   field rules (form.plogForm input[type=date] ...) and the site's general button style. */
/* As wide as the text field, also as a flex item (in a flex <label> it would otherwise stretch and leave the
   button outside the field) */
span.mwlDate
{
	position:relative;
	display:inline-block;
	width:max-content;
	align-self:flex-start;
}
/* The date centred in its field, with room at the right for the button (Magnus 2026-11-21) */
span.mwlDate > input.mwlDateText[type=text]
{
	box-sizing:border-box;
	width:9.5em;
	padding-right:2em;
	text-align:center;
}
span.mwlDate > input.mwlDateNative[type=date]
{
	position:absolute;
	right:0;
	bottom:0;
	width:1px;
	height:1px;
	min-width:0;
	margin:0;
	padding:0;
	border:0;
	opacity:0;
	pointer-events:none;
}
span.mwlDate > button.mwlDateButton[type=button]
{
	position:absolute;
	top:50%;
	right:4px;
	transform:translateY(-50%);
	width:auto;
	height:auto;
	min-width:0;
	margin:0;
	padding:4px 6px;
	border:0;
	border-radius:4px;
	box-shadow:none;
	background:none;
	color:var(--text-brand);
	font-size:1.1em;
	line-height:1;
	cursor:pointer;
	opacity:0.7;
}
span.mwlDate > button.mwlDateButton[type=button]:hover,
span.mwlDate > button.mwlDateButton[type=button]:focus-visible
{
	background:none;
	box-shadow:none;
	opacity:1;
}
span.mwlDate > input.mwlDateText[type=text].mwlDateInvalid
{
	border-color:var(--border-danger-4);
	box-shadow:0 0 0 2px var(--bg-danger-1);
}
