:host {
	height: 100%;
	width: calc(100% - 8px);
	display: flex;
	align-items: center;
	margin-left: 4px;
	margin-right: 4px;
}

:host(.invalid) input::-webkit-calendar-picker-indicator,
input:invalid::-webkit-calendar-picker-indicator {
	width: 16px;
	---height: 16px;
	max-height: 26px;
	border: none;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="fill: none; stroke-width: 2px; stroke: darkgoldenrod;" viewBox="0 0 16 16"><path d="m8 1 7 14H1L8 1z"></path><path d="M7.99 12H8v.01h-.01zM8 6v4"></path></svg>');
	opacity: 1;
	background-color: #f0f0f0;
}

input {
	position: relative;
	height: 26px;
	padding:0;
	margin:0;
	font: inherit;
	width: 100%;
	font: inherit;
	padding-left: 4px;
	border: 1px solid #f0f0f0;
	border-radius: 3px;
	outline: 0;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"/><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1z"/><path d="M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 14px auto;
	color: unset;
	box-sizing: border-box;
}
input:hover {
	filter: brightness(95%);
}
input::-webkit-calendar-picker-indicator {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	background: #ccc;
	color: transparent;
	cursor: pointer;
	width: 16px;
	opacity: 0.3;
}
input::before {
	content: attr(data-placeholder);
	position: absolute;
	display: flex;
	align-items: center;
	width: calc(100% - 22px);
	height: 100%;
	background-color: white;
}
input:valid::before,
input:focus::before {
	display: none;
}
input:focus {
	border: 1px solid #28a745;
	border-radius: 3px;
   	--box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}
