*
{
	box-sizing: border-box;
}

body
{
	font-family: Arial, sans-serif;
	padding: 30px;
	margin: 0;
	font-size: 14px;
}

nav
{
	background: #333;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	padding: 10px;
	margin: -30px -30px 30px;
	position: sticky;
	top: 0;
	gap: 20px;
	z-index: 1;
}

nav :last-child
{
	margin-left: auto;
}

nav a
{
	color: #FFF;
}

table
{
	width: 100%;
	border-collapse: collapse;
}

th,
td
{
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
}

tr:hover td
{
	background: #F1F1F1;
}

th
{
	background-color: #f2f2f2;
}

th[data-sort]
{
	position: relative;
	cursor: pointer;
	user-select: none;
	padding-right: 30px;
}

th[data-sort]:hover
{
	background: #e5e5e5;
}

th[data-sort]::after
{
	content: "";
	width: 12px;
	height: 8px;
	background: #ccc;
	display: block;
	position: absolute;
	top: 50%;
	margin-top:  -4px;
	right: 10px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

th.sort::after
{
	background: #000;
}

th.sort.asc::after
{
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

tr[data-status="in_repair"] td
{
	background: Yellow;
}

tr[data-status="waiting_for_diagnostic"] td
{
	background: lightgray;
}

tr[data-status="parts_on_order"] td
{
	background: Orange;
}

tr td[data-priority="Yes"]
{
	background: DodgerBlue ;
}

form
{
	display: grid;
	gap: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type=date],
select,
textarea
{
	border: 1px solid #CCC;
	padding: 5px;
	width: 100%;
	font-family: inherit;
	font-size: inherit;
}

label input[type=text],
label input[type=date],
label input[type=email],
label textarea,
label select
{
	margin-top: 5px;
}

textarea
{
	resize: vertical;
}

button
{
	justify-self: left;
	cursor: pointer;
	padding: 5px 15px;
	border: 1px solid #999;
	border-radius: 5px;
}

button.delete
{
	background: rgb(205, 36, 36);
	color: #FFF;
}

.notified
{
	background: lightgreen;
}

.notice
{
	color: lightgreen;
}

#changes
{
	color: lightblue;
}

dialog
{
	padding-top: 30px;
}

dialog .close
{
	position: absolute;
	background: #000;
	color: #FFF;
	padding: 5px;
	top: 5px;
	right: 5px;
	border: 0;
	width: 30px;
	height: 30px;
	line-height: 1;
	padding: 0;
}

.error
{
	color: red;
}

#loginForm
{
	max-width: 500px;
	margin: 0 auto;
}

#waitlist input[type=date]
{
	border: 0;
	padding: 0;
	background: unset;
	color: unset;
	text-align: center;
}

#waitlist input[value=""]
{
	display: none;
}

#updated
{
	margin-bottom: 20px;
	text-align: center;
}
