html, body {
	margin: 0;
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
}

.fullwidth { width: 100%; }

.blockcentred {
	display: flex;
	margin: 25px;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

.blockcentredlong {
	display: flex;
	margin: 25px;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}
@media only screen and (max-width: 800px) {
	.blockcentred, .blockcentredlong { margin: 5px; }
}

.userscontainer, .usersheader, .usersrow,
.machinescontainer, .machinesheader, .machinesrow,
.sitescontainer, .sitesheader, .sitesrow,
.machinesitescontainer, .machinesitesheader, .machinesitesrow,
.eventcontainercontainer, .eventcontainer, .eventheader, .eventrow,
.groupsubscriptioncontainer, .groupsubscriptionheader, .groupsubscriptionrow {
	max-width: 100%;
	box-sizing: border-box;
}

.topnav {
	background-color: black;
	overflow: hidden;
	height: 50px;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
}

.topnav a { background: black; }

.topnav .logout {
	color: white;
	text-align: center;
	padding: 14px 16px;
	margin-left: auto
}

.topnav .backnav {
	color: white;
	text-align: center;
	padding: 14px 16px;
}

.topnav .logoimg { height: 50px; }

@media only screen and (max-width: 800px) {
	.topnav { justify-content: space-between; }
	.topnav .logout { margin-left: unset; }
}

input.visiblevalidity:invalid { border: 2.5px solid red; }

td.label { text-align: right; }


body {
	background: white;
	color: #12123a;
}
@media only screen and (min-width: 1001px) {
	body { font-size: larger; }
}

#onlinetime.notlive {
	align-self: stretch;
	position: sticky;
	top: 0;
	z-index: 10;
	margin: 0 -25px;
	padding: 14px 22px 14px 22px;
	background: #f28849;
	border-left: 6px solid #ff4700;
	color: white;
	font-weight: bold;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 18px rgba(18, 18, 58, 0.22);
}
@media only screen and (max-width: 800px) {
	#onlinetime.notlive { margin: 0 -5px; }
}

a {
	color: #241058;
	background: #f8f8f8;
	text-decoration: none;
}

hr {
	border: none;
	background-color: black;
	height: 2.5px;
}

.spacer {
	margin-bottom: 25px;
}

input, button, select, textarea {
	background: white;
	color: #16163d;
	border: solid #14143c;
	padding: 5pt;
	box-shadow: 2px 2px 5px 0px white;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
	font-family: Arial, Helvetica, sans-serif;
}
@media only screen and (min-width: 1001px) {
	input, button { font-size: medium; }
}

input:focus {
	outline: 2px solid #12123a;
}

input.edited {
	outline: 5px solid #fc5413;
	font-weight: bold;
}

select.edited {
	outline: 5px solid #fc5413;
	font-weight: bold;
}

input[type=number] {
	text-align: right;
}

input[type=checkbox] {
	width: 25px;
	height: 25px;
}

button, select {
	font-size: medium;
	padding: 10px 10px;
	background: #fefefe;
	color: #111;
}

button:hover, select:hover {
	background: #ff5512;
	color: white;
	box-shadow: 3px 3px black;
}

select option {
	background: white !important;
	color: #111 !important;
	box-shadow: none !important;
}

select option:hover {
	background: #0078d4 !important;
	color: white !important;
}

button:active, select:active {
	background: #ccc;
	color: #111;
	box-shadow: 1px 1px black inset;
}
@media only screen and (max-width: 800px) {
	button { padding: 8px 2px; }
}

button.caution {
	background: #fc5413;
}

.verticalmenu {
	width: 400px;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
}
@media only screen and (max-width: 800px) {
	.verticalmenu { width: 95% }
}

.verticalmenu a {
	color: #16163d;
	display: block;
	padding: 16px;
}

.verticalmenu a:not(:last-child) {
	border-bottom: 1.5px solid #14143c;
}

.verticalmenu a:hover {
	background-color: #ccc;
}

.verticalmenu a.active {
	background: #fc7c0b;
	color: white;
}

.hidden {
	display: none !important;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 25px;
	min-width: 410px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-field.two-column {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

/* Form divider for hr elements */
.form-divider {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.form-divider hr {
    width: 100%;
}

.form-field.two-column label { flex: 0 0 175px; }
.form-field.two-column input { flex: 0 0 200px; }
.form-field.two-column select { flex: 0 0 218px; }
.form-field.two-column input[type="checkbox"] { flex: 0 0 auto; }

@media (max-width: 500px) {
	.form { min-width: unset; }
	.form-field.two-column {
		flex-direction: column;
		align-items: stretch;
	}

	.form-field.two-column label {
		flex: none;
	}

	.form-field.two-column input,
	.form-field.two-column select {
		flex: none;
		width: 95%;
	}
	.form-field.two-column input[type="checkbox"] {
		width: 25px;
		margin-left: 25px;
	}
}

.form-field.machines-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 500px) {
    .form-field.machines-section {
        flex-direction: column;
    }
    
    .machines-list {
        padding-left: 0;
    }
    
    .form-field.two-column textarea {
        flex: none;
        width: 100%;
    }
}

.form-field.two-column .password-input {
    flex: 0 0 200px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-field.two-column .password-input input {
    width: 200px;
    flex: none;
}

.inputmessage {
	display: block;
	line-height: 1.2;
	flex: 1;
	margin-top: 2px;
	width: 150px;
	font-style: italic
}

@media (max-width: 500px) {
	.form-field.two-column .password-input {
		flex-direction: column;
		gap: 5px;
		width: 100%;
	}

	.form-field.two-column .password-input input {
		width: 100%;
	}
}

.machines-label {
	flex: 0 0 auto;
	font-weight: 500;
	color: #374151;
}

.machines-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 50px;
}

.machine-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.machine-checkbox label {
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.userscontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.usersheader, .usersrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.usersrow { align-items: baseline; }
.usersrow:not(:nth-child(2)) {
	border-top: 0.5px solid #faf0f0;
	padding-top: 10px;
}

.usersheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.usersheader > * { font-weight: bold; }
.usersemail { width: 300px; }
.usersname { width: 250px; }
.usersorg { width: 250px; }
.usersadmin { width: 100px; }

@media only screen and (max-width: 1000px) {
	.userscontainer > .usersrow:nth-of-type(even) { background: #faf5f5; }

	.usersheader { display: none !important; }

	.usersrow {
		flex-direction: column;
		border-top: none !important;
	}

	.usersemail { width: 100%; max-width: 350px; box-sizing: border-box; }
	.usersemail:before {
		display: inline-block;
		width: 110px;
		content: "Email:";
		font-weight: bold;
	}

	.usersname { width: 100%; max-width: 350px; box-sizing: border-box; }
	.usersname:before {
		display: inline-block;
		width: 110px;
		content: "Name:";
		font-weight: bold;
	}

	.usersorg { width: 100%; max-width: 350px; box-sizing: border-box; }
	.usersorg:before {
		display: inline-block;
		width: 110px;
		content: "Organisation:";
		font-weight: bold;
	}

	.usersadmin { width: 100%; max-width: 350px; box-sizing: border-box; }
	.usersadmin:before {
		display: inline-block;
		width: 110px;
		content: "Admin?";
		font-weight: bold;
	}

	.usersbuttonlink { align-self: flex-end; }
	.usersbutton {
		align-self: flex-end;
		width: 250px;
	}
}

.machinescontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.machinesheader, .machinesrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.machinesrow {
	border-bottom: 0.5px solid #faf0f0;
	align-items: baseline;
}

.machinesheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.machinesheader > * { font-weight: bold; }
.machinesorg { width: 125px; }
.machinessite { width: 250px; }
.machinestype { width: 125px; }
.machinesserial { width: 175px; }
.machinesonline { width: 250px; }

@media only screen and (max-width: 1200px) {
	.machinescontainer > .machinesrow:nth-of-type(even) { background: #faf5f5; }

	.machinesheader { display: none !important; }

	.machinesrow {
		flex-direction: column;
		border-bottom: none;
	}

	.machinesorg { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesorg:before {
		display: inline-block;
		width: 110px;
		content: "Org.:";
		font-weight: bold;
	}

	.machinessite { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinessite:before {
		display: inline-block;
		width: 110px;
		content: "Site:";
		font-weight: bold;
	}


	.machinestype { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinestype:before {
		display: inline-block;
		width: 110px;
		content: "Type:";
		font-weight: bold;
	}

	.machinesserial { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesserial:before {
		display: inline-block;
		width: 110px;
		content: "Serial:";
		font-weight: bold;
	}

	.machinesonline { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesonline:before {
		display: inline-block;
		width: 110px;
		content: "Online:";
		font-weight: bold;
	}

	.machinesbuttonlink { align-self: flex-end; }
	.machinesbutton { width: 250px; }
}

.sitescontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.sitesheader, .sitesrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.sitesrow { align-items: baseline; }
.sitesrow:not(:nth-child(2)) {
	border-top: 0.5px solid #faf0f0;
	padding-top: 10px;
}

.sitesheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.sitesheader > * { font-weight: bold; }
.sitesorg { width: 250px; }
.sitesname { width: 250px; }

@media only screen and (max-width: 1000px) {
	.sitescontainer > .sitesrow:nth-of-type(even) { background: #faf5f5; }

	.sitesheader { display: none !important; }

	.sitesrow {
		flex-direction: column;
		border-top: none !important;
	}

	.sitesorg { width: 100%; max-width: 350px; box-sizing: border-box; }
	.sitesorg:before {
		display: inline-block;
		width: 110px;
		content: "Organisation:";
		font-weight: bold;
	}

	.sitesname { width: 100%; max-width: 350px; box-sizing: border-box; }
	.sitesname:before {
		display: inline-block;
		width: 110px;
		content: "Name:";
		font-weight: bold;
	}

	.sitesbuttonlink { align-self: flex-end; }
	.sitesbutton {
		align-self: flex-end;
		width: 250px;
	}
}

.machinesitescontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.machinesitesheader, .machinesitesrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.machinesitesrow {
	border-bottom: 0.5px solid #faf0f0;
	align-items: baseline;
}

.machinesitesheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.machinesitesheader > * { font-weight: bold; }
.machinesitesorg { width: 125px; }
.machinesitestype { width: 125px; }
.machinesitesserial { width: 175px; }
.machinesitessite { width: 350px; }
.machinesitesbutton { width: 340px; }

@media only screen and (max-width: 1000px) {
	.machinesitescontainer > .machinesitesrow:nth-of-type(even) { background: #faf5f5; }

	.machinesitesheader { display: none !important; }

	.machinesitesrow {
		flex-direction: column;
		border-bottom: none;
	}

	.machinesitesorg { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesitesorg:before {
		display: inline-block;
		width: 110px;
		content: "Org.:";
		font-weight: bold;
	}


	.machinesitestype { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesitestype:before {
		display: inline-block;
		width: 110px;
		content: "Type:";
		font-weight: bold;
	}

	.machinesitesserial { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesitesserial:before {
		display: inline-block;
		width: 110px;
		content: "Serial:";
		font-weight: bold;
	}

	.machinesitessite { width: 100%; max-width: 350px; box-sizing: border-box; }
	.machinesitessite:before {
		display: inline-block;
		width: 110px;
		content: "Site:";
		font-weight: bold;
	}

	.machinesitesbuttonlink { align-self: flex-end; }
	.machinesitesbutton { align-self: flex-end; width: 250px; }
}

.eventcontainercontainer {
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
}

.eventcontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	height: 400px;
	scrollbar-gutter: stable;
}

.eventheader, .eventrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.eventrow {
	border-bottom: 0.5px solid #faf0f0;
}

.eventrow[data-ms-since-boot="0"][data-ev-counter="0"] {
	display: none !important;
}

.eventheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.eventheader > * { font-weight: bold; }
.eventtime { width: 225px; }
.eventtype { width: 75px; }
.eventcode { width: 250px; }
.eventsubcode { width: 250px; }
.eventactivestate { width: 75px; }
.eventactive { font-weight: bold; }
.eventinactive { font-style: italic; }

@media only screen and (max-width: 1050px) {
	.eventcontainer > .eventrow:nth-of-type(even) { background: #faf5f5; }

	.eventheader { display: none !important; }

	.eventrow {
		flex-direction: column;
		border-bottom: none;
	}

	.eventtime { width: 100%; max-width: 350px; box-sizing: border-box; }
	.eventtime:before { 
		display: inline-block;
		width: 100px;
		content: "Time:"; 
		font-weight: bold;
	}

	.eventtype { width: 100%; max-width: 350px; box-sizing: border-box; }
	.eventtype:before { 
		display: inline-block;
		width: 100px;
		content: "Type:"; 
		font-weight: bold;
	}

	.eventcode { width: 100%; max-width: 350px; box-sizing: border-box; }
	.eventcode:before { 
		display: inline-block;
		width: 100px;
		content: "Code:"; 
		font-weight: bold;
	}

	.eventsubcode { width: 100%; max-width: 350px; box-sizing: border-box; }
	.eventsubcode:before { 
		display: inline-block;
		width: 100px;
		content: "Subcode:"; 
		font-weight: bold;
	}

	.eventactivestate { width: 100%; max-width: 350px; box-sizing: border-box; }
	.eventactivestate:before { 
		display: inline-block;
		width: 100px;
		content: "Active?"; 
		font-weight: bold;
		font-style: normal;
	}
}

.statecontainer {
	display: flex;
	margin: 25px;
	gap: 100px;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
}

.stategroup {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
}

.statepair {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.statetitle {
	border-bottom: 2.5px solid #14143c;
	padding: 5px;
	font-weight: bold;
	background: #faf5f5;
}

.stategroup {
	flex-direction: column;
}

.statepair {
	flex-direction: row;
	padding: 5px;
}

.statelabel {
	width: 215px;
	min-height: 25px;
}

.statevalue {
	width: 125px;
	min-height: 25px;
	text-align: right;
}
@media only screen and (max-width: 800px) {
	.statecontainer { margin: 5px; gap: 25px; }
	.statelabel { width: 150px }
	.statevalue { width: 100px }
}

.led {
	border-radius: 25px;
	height: 25px;
	width: 25px;
	border: 1.5px solid black;
	box-shadow: 2px 2px black;
	margin-left: 100px;
}
@media only screen and (max-width: 800px) {
	.led { margin-left: 75px; }
}

.ledgreen {
	background-color: #40fe40;
}

.ledorange {
	background-color: #ff8c07;
}

.ledred {
	background-color: #ff4040;
}

.ledblue {
	background-color: #4080ff;
}

.ledoff {
	background-color: white !important;
}

.paramscontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.paramsheader, .paramsrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.paramsrow {
	border-bottom: 0.5px solid #faf0f0;
	align-items: baseline;
}

.paramsheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.paramsheader > * { font-weight: bold; }
.paramslabel { width: 250px; }
.paramsvalue { width: 250px; }
.paramsvalue > * { 
	box-sizing: border-box;
	width: 100%;
	font-size: medium;
}
.paramssection {
	background: #f0f0f0;
	border-top: 2px solid #14143c;
	border-bottom: 1px solid #ccc;
	margin-top: 15px;
	margin-bottom: 5px;
}
.paramssectiontitle {
	padding: 5px 5px;
	font-weight: bold;
	font-size: medium;
	color: #14143c;
	letter-spacing: 0.5px;
}

.paramscontainer .paramssection:first-of-type {
	margin-top: 0;
}

.paramssection + .paramsrow {
	border-top: none;
}

@media only screen and (max-width: 800px) {
	.paramscontainer > .paramsrow:nth-of-type(even) { background: #faf5f5; }

	.paramsheader { display: none !important; }

	.paramsrow {
		flex-direction: column;
		border-bottom: none;
	}

	.paramslabel {
		width: 250px;
		font-weight: bold;
	}

	.paramsvalue > input[type="checkbox"] {
		margin-left: 220px;
	}

	.paramsunit {
		width: 250px;
		text-align: right;
	}

	.paramssectiontitle {
		padding: 8px 10px;
		font-size: 1em;
	}
}

.pagetitlerow {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	align-self: stretch;
}

.pagetitlerow > h2 {
	grid-column: 2;
	margin: 0;
	text-align: center;
}

.pagetitlerow > .machinesbuttonlink {
	grid-column: 3;
	justify-self: end;
}

@media only screen and (max-width: 800px) {
	.pagetitlerow {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 8px;
	}
	.pagetitlerow > h2 { grid-column: 1; }
	.pagetitlerow > .machinesbuttonlink { grid-column: 1; justify-self: center; }
}

body.has-action-bar .blockcentredlong { padding-bottom: 90px; }
@media only screen and (max-width: 800px) {
	body.has-action-bar .blockcentredlong { padding-bottom: 70px; }
}

.paramsactionbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 20;
	background: white;
	border-top: 2.5px solid #14143c;
	box-shadow: 0 -6px 18px rgba(18, 18, 58, 0.22);
	padding: 10px 25px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.paramsactionbar > .paramsactionlink:first-child { margin-right: auto; }

.paramsactionlink {
	background: transparent;
}

.paramsactionlink > .paramsactionbutton {
	width: 100%;
}

.paramsactionbutton {
	min-width: 160px;
}

@media only screen and (max-width: 800px) {
	.paramsactionbar {
		padding: 8px 5px;
		gap: 6px;
		justify-content: stretch;
		flex-wrap: nowrap;
	}
	.paramsactionbar > .paramsactionlink,
	.paramsactionbar > .paramsactionbutton {
		flex: 1 1 0;
		min-width: 0;
	}
	.paramsactionbutton {
		min-width: 0;
		width: 100%;
		padding: 8px 4px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.wide-only { display: none; }
}

.apply-dialog-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(18, 18, 58, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.apply-dialog-overlay.hidden { display: none; }

.apply-dialog-card {
	background: white;
	border: 2.5px solid #14143c;
	border-radius: 5pt;
	box-shadow: 2px 2px black;
	padding: 30px 40px;
	min-width: 320px;
	max-width: 90vw;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.apply-dialog-icon { font-size: 48px; line-height: 1; }
.apply-dialog-icon.writing { color: #14143c; }
.apply-dialog-icon.success { color: #2a8a2a; }
.apply-dialog-icon.failure { color: #fc5413; }

.apply-dialog-title {
	font-size: 1.4em;
	font-weight: bold;
	color: #14143c;
}

.apply-dialog-body {
	color: #14143c;
	max-width: 360px;
}

.apply-dialog-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.groupscontainer {
	display: flex;
	gap: 50px;
	flex-direction: column;
	max-width: 800px;
	padding: 10px;
}

.grouptitle {
	border-bottom: 2.5px solid #14143c;
	padding: 5px;
	font-weight: bold;
	background: #faf5f5;
}

.groupbox {
	display: flex;
	gap: 5px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
}

.grouppair {
	display: flex;
	padding: 5px;
	flex-direction: row;
	align-items: baseline;
}

.grouplabel {
	display: inline-block;
	width: 150px;
	font-weight: bold;
	flex-shrink: 0;
}

.groupmachinesgroup {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.groupmachinesgroup > a { background: none; }

.groupmachine {
	padding: 5px 10px;
	margin-right: 5px;
	margin-bottom: 5px;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	color: #241058;
	background: #f8f8f8;
}

.groupbuttoncontainer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 5px 5px 10px 5px;
	justify-content: flex-end;
	margin-left: 5px;
	margin-right: 5px;
	gap: 5px;
	border-top: 1.5px solid #14143c;
}

.groupsbutton, .groupsbutton > button { width: 125px; }

.groupsubscriptioncontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.groupsubscriptionheader, .groupsubscriptionrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.groupsubscriptionrow { align-items: baseline; }
.groupsubscriptionrow:not(:nth-child(2)) {
	border-top: 0.5px solid #faf0f0;
	padding-top: 10px;
}

.groupsubscriptionheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.groupsubscriptionheader > * { font-weight: bold; }
.groupsubscriptionemail { width: 300px; }
.groupsubscriptionname { width: 250px; }
.groupsubscriptionstatus { width: 300px; }

@media only screen and (max-width: 1000px) {
	.groupsubscriptioncontainer > .groupsubscriptionrow:nth-of-type(2) { background: #faf5f5; }

	.groupsubscriptionheader { display: none !important; }

	.groupsubscriptionrow {
		flex-direction: column;
		border-top: none !important;
	}

	.groupsubscriptionemail { width: 100%; max-width: 350px; box-sizing: border-box; }
	.groupsubscriptionemail:before {
		display: inline-block;
		width: 80px;
		content: "Email:";
		font-weight: bold;
	}

	.groupsubscriptionname { width: 100%; max-width: 350px; box-sizing: border-box; }
	.groupsubscriptionname:before {
		display: inline-block;
		width: 80px;
		content: "Name:";
		font-weight: bold;
	}

	.groupsubscriptionstatus { width: 100%; max-width: 350px; box-sizing: border-box; }
	.groupsubscriptionstatus:before {
		display: inline-block;
		width: 80px;
		content: "Status:";
		font-weight: bold;
	}

	.groupsubscriptionbuttonlink { align-self: flex-end; }
	.groupsubscriptionbutton {
		align-self: flex-end;
		width: 270px;
	}
}

.siteaccesscontainer {
	display: flex;
	gap: 10px;
	flex-direction: column;
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	box-shadow: 2px 2px black;
	overflow: hidden;
}

.siteaccessheader, .siteaccessrow {
	display: flex;
	gap: 10px;
	flex-direction: row;
	padding: 5px;
}

.siteaccessrow { align-items: baseline; }
.siteaccessrow:not(:nth-child(2)) {
	border-top: 0.5px solid #faf0f0;
	padding-top: 10px;
}

.siteaccessheader {
	border-bottom: 2.5px solid #14143c;
	background: #faf5f5;
}
.siteaccessheader > * { font-weight: bold; }
.siteaccessname { width: 250px; }
.siteaccessaccess { width: 150px; }
.siteaccessalerts { width: 150px; }
.siteaccessparameters { width: 135px; }

@media only screen and (max-width: 800px) {
	.siteaccesscontainer > .siteaccessrow:nth-of-type(even) { background: #faf5f5; }

	.siteaccessheader { display: none !important; }

	.siteaccessrow {
		flex-direction: column;
		border-top: none !important;
	}

	.siteaccessname { width: 300px; }
	.siteaccessname:before {
		display: inline-block;
		width: 100px;
		content: "Site:";
		font-weight: bold;
	}

	.siteaccessaccess { width: 300px; }
	.siteaccessaccess:before {
		display: inline-block;
		width: 100px;
		content: "Access?";
		font-weight: bold;
	}

	.siteaccessalerts { width: 300px; }
	.siteaccessalerts:before {
		display: inline-block;
		width: 100px;
		content: "Alerts?";
		font-weight: bold;
	}

	.siteaccessparameters { width: 300px; }
	.siteaccessparameters:before {
		display: inline-block;
		width: 100px;
		content: "Parameters:";
		font-weight: bold;
	}
}

.version-info {
	position: fixed;
	bottom: 10px;
	left: 10px;
	font-size: 10px;
	color: #999;
	font-family: monospace;
	z-index: 1000;
	opacity: 0.6;
	pointer-events: none;
}

.version-info:hover {
	opacity: 1;
}

.filter-input-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 400px;
}

.filter-input {
	padding: 8px 35px 8px 12px;
}

.filter-clear {
	position: absolute;
	width: 30px;
	top: 0px;
	bottom: 0px;
	right: 0px;
	background: none;
	color: #999;
	border: none;
	cursor: pointer;
	display: none;
	font-size: 14px;
	border-radius: none;
	box-shadow: none;
}

.filter-clear:hover {
	color: #666;
	background: none;
	border-radius: none;
	box-shadow: none;
}

.filter-clear.show {
	display: block;
}

.filter-info {
	margin-top: 8px;
	font-size: 12px;
	color: #666;
}

.pagetitleactions {
	grid-column: 3;
	justify-self: end;
	display: flex;
	flex-direction: row;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
@media only screen and (max-width: 800px) {
	.pagetitleactions {
		grid-column: 1;
		justify-self: center;
		flex-wrap: nowrap;
	}
	.pagetitleactions .machinesbutton {
		width: 150px;
	}
}

#graphingToggle.active {
	background: #fc7c0b;
	color: white;
}

.graphtoggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	font-weight: bold;
	border: 2px solid #14143c;
	border-radius: 4pt;
	background: white;
	color: #14143c;
	box-shadow: 1px 1px black;
	cursor: pointer;
	flex: 0 0 auto;
	box-sizing: border-box;
}

body.graphing-on .graphtoggle {
	display: inline-flex;
}

.graphtoggle.active {
	background: #fc5413;
	color: white;
}

.graphtoggle:hover {
	background: #ff5512;
	color: white;
	box-shadow: 2px 2px black;
}

.statepair {
	align-items: center;
}

.graphsection {
	width: 100%;
}

.graphsection h3 {
	text-align: center;
}

.graphwindowselector {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

.graphs {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 15px 0;
}

.graphsempty {
	text-align: center;
	color: #555;
	font-style: italic;
	padding: 10px 12px;
}

.graphwrapper {
	border-radius: 5pt;
	border: 2.5px solid #14143c;
	overflow: hidden;
	box-shadow: 2px 2px black;
	background: white;
	display: flex;
	flex-direction: column;
}

.graphheader {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: #faf5f5;
	border-bottom: 2.5px solid #14143c;
	gap: 10px;
}

.graphtitle {
	font-weight: bold;
	min-width: 0;
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ledcombinedcanvas {
	display: block;
	width: 100%;
	background: #faf5f5;
}

.graphclose {
	width: 26px;
	height: 26px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	font-weight: bold;
	border: 2px solid #14143c;
	border-radius: 4pt;
	background: white;
	color: #14143c;
	box-shadow: 1px 1px black;
	cursor: pointer;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.graphclose:hover {
	background: #ff5512;
	color: white;
	box-shadow: 2px 2px black;
}

.graphmount {
	width: 100%;
	height: 220px;
}
@media only screen and (max-width: 800px) {
	.graphmount { height: 180px; }
}

.statestrip {
	display: block;
	width: 100%;
	height: 70px;
	background: #faf5f5;
}
@media only screen and (max-width: 800px) {
	.statestrip { height: 60px; }
}

.statelegend {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	padding: 6px 10px 8px 10px;
	font-size: 12px;
	background: white;
}

.statelegend .swatchitem {
	display: inline-flex;
	align-items: center;
}

.statelegend .swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid #14143c;
	margin-right: 5px;
}

.statelegend .swatchlabel {
	color: #14143c;
}
