/*********************************************************
**********************************************************
************        Global Definitions        ************
**********************************************************
**********************************************************/
*, *:before, *:after {
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.autocomplete{
	width: 70%;
}
.bad-source {
	outline: 1px solid red;
}
body {
	background: #fafafa;
	display: flex;
	flex-direction: column;
	font-family: Helvetica, sans-serif;
	height: 100vh;
	font-size:16px;
	overflow-x: hidden;
}

/**
 * Boxes
 **/
.bottom-wrapper {
	margin-bottom: 10px;
	flex: 0 1 auto;
}
.box {
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: white;
	padding: 16px 16px 10px 16px;
	position: relative;
}
.box-stack {
	border-bottom: none;
	border-radius: 0px;
}
.box-top {
	border-radius: 4px 4px 0 0;
	border-bottom: none;
	margin-top: 10px;
}
.box-bottom {
	border-radius: 0 0 4px 4px;
	padding-bottom: 10px;
}
.box-bottom + .box-bottom {
	margin-top: 10px;
}
.button-box {
	margin: 10px 0;
}
.button-box .box {
	display: flex;
	justify-content: center;
}
.title-box {
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: white;
	margin-top: 10px;
	padding: 16px 16px 10px 16px;
	position: relative;
}
.title-box h1 {
	align-items: flex-end;
	display: inline-flex;
	justify-content: space-between;
	width: 100%;
}
.top-wrapper {
	margin-top: 10px;
}

/**
 * Button CSS
 **/
.button {
	display: inline-block;
	outline: none;
	cursor: pointer;
	vertical-align: middle;
	margin: 0 2px;
	text-align: center;
	text-decoration: none;
	padding: .5em 2em .55em;
	font-size: 14px/100%;
	text-shadow: 0 1px 1px rgba(0,0,0,.3);
	border-radius: .5em;
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.button:hover {
	text-decoration: none;
}
.button-row {
	padding-left: 160px;
}
.disabled {
	background: #eee !important;
	border-color: #aaa !important;
	color: #666 !important;
	cursor: default !important;
	text-shadow: 0 0 0 !important;
}
.button-medium {
	font-size: 12px;
    flex-basis: 60px;
    padding: .4em 1em .36em;
}
.button-small {
	font-size: 11px;
    flex-basis: 28px;
    padding: .2em 1em .275em;
}
.small {
	font-size: 11px;
	padding: .2em 1em .275em;
	flex-basis: 28px;
}
.medium {
	font-size: 12px;
	padding: .4em 1.5em .42em;
	flex-basis: 72px;
}
.button-gray {
	color: #e9e9e9;
	border: solid 1px #555;
	background: #6e6e6e;
	background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
	background: -moz-linear-gradient(top,  #888,  #575757);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
}
.button-gray:hover {
	background: #616161;
	background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
	background: -moz-linear-gradient(top,  #757575,  #4b4b4b);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
}
.button-gray:active {
	color: #afafaf;
	background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
	background: -moz-linear-gradient(top,  #575757,  #888);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
}
.gray {
	color: #e9e9e9;
	border: solid 1px #555;
	background: #6e6e6e;
	background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
	background: -moz-linear-gradient(top,  #888,  #575757);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
}
.gray:hover {
	background: #616161;
	background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
	background: -moz-linear-gradient(top,  #757575,  #4b4b4b);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
}
.gray:active {
	color: #afafaf;
	background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
	background: -moz-linear-gradient(top,  #575757,  #888);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
}
.white {
	color: #606060;
	border: solid 1px #b7b7b7;
	background: #fff;
	background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
	background: -moz-linear-gradient(top,  #fff,  #ededed);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
}
.white:hover {
	background: #ededed;
	background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
	background: -moz-linear-gradient(top,  #fff,  #dcdcdc);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
}
.white:active {
	color: #999;
	background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
	background: -moz-linear-gradient(top,  #ededed,  #fff);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}
.content-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	margin: 0 auto;
	max-width: 820px;
	min-width: 820px;
	overflow: hidden;
	padding: 0 10px;
	right: 100px;
}

/**
* Dialog CSS
**/
.progress-bar {
	margin-top: 16px;
}
.ui-button {
	padding: .2em .5em !important;
}

em {
	font-size: 1.2em;
}

/**
* Field CSS
**/
.field-container {
	border: 1px solid #ccc;
	text-align: right;
	background-color: #F2F2F2;
	min-width: 60px;
	padding: 0px 2px 0px 2px;
	height: 1.2em;
	overflow: hidden;
}

fieldset {
	padding-top: 0.8em;
}

/**
 * Flex Boxes
 **/
 .flex-column {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}
.flex-column:first-child {
	margin-top: 8px;
}
.flex-field {
	display: flex;
	align-items: center;
	flex: 0 0 100px;
	margin: 0;
}
.flex-heading {
	align-items: center;
	flex: 0 0 150px;
	margin-right: 10px;
	align-self: center;
	display: flex;
	position: relative;
	justify-content: space-between;
}
.flex-heading-200 {
	flex: 0 0 200px;
	margin-right: 10px;
	align-self: center;
	display: flex;
	position: relative;
}
.flex-input {
	display: flex;
}
.flex-row {
	display: flex;
	flex-direction: row;
	margin-top: 8px;
	align-items: center;
}
.flex-row-spaced {
	display: flex;
	flex-direction: row;
	margin-top: 8px;
	align-items: center;
	justify-content: space-between;
}
.flex-row:first-child {
	margin-top: 0;
}
.flex-half {
	flex: 0 0 50%;
	display: flex;
	flex-direction: row;
	align-items: center;
	height:100%;
}
.flex-third {
	flex: 0 0 33%;
	display: flex;
	flex-direction: row;
	min-width: 0; /*wierd MS Edge issue*/
}
.flex-fourth {
	flex: 0 0 25%;
	display: flex;
}
.flex-fifth {
	flex: 0 0 20%;
	display: flex;
	flex-direction: row;
	align-self: center;
	max-width: 20%;
}

.float-right {
	float: right;
}

/**
* Flyout
**/
.flyout {
	display: none;
	left: 150px;
	opacity: 1;
	position: absolute;
	top: 0;
	width: 150px;
	z-index: 300;
}
.flyout ul {
	background: white;
	border: 1px solid #666;
	padding: 0;
	position: fixed;
}
.flyout ul li {
	margin: 0;
}

/**
* Footer
**/
.footer {
	flex: 0 1 auto;
	background: #333;
	color: white;
	border-top: 1px solid #666;
}
.footer-container {
	position: relative;
	padding: 0.5em 1em;
}

/**
* Headings
**/
h1 {
	border-bottom: 1px solid #666;
	margin: 0;
}
h1 a {
	float:right;
}
h2 {
	display: inline-block;
	color: inherit;
	font-size: 1em;
	margin: 0;
}

.hidden {
	visibility: hidden;
}
html {
	height: 100%;
}

.inline-box {
	margin-top: 5px;
	margin-left: 5px;
}

/**
* Inputs
**/
input:disabled {
	background: #eee !important;
	border-color: #aaa !important;
	color: #666 !important;
	cursor: default !important;
	text-shadow: 0 0 0 !important;
}
input[type=checkbox] {
	transform: scale(1.3);
	margin-right: 10px;
}
input[type=number] {
	width: 60px;
	text-align: right;
	-moz-appearance:textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type=radio] {
	transform: scale(1.25);
}
input[type=text] {
	width: 100px;
}
#input-select {
	max-width: 180px;
}
.input-unit {
	border-collapse: separate;
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	margin: 0.4em 0;
	position: relative;
	width: auto;
}
.input-unit input {
	background-color: #fff;
	background-image: none;
	border: 1px solid #999;
	border-right: 0 !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-sizing: border-box;
	float: left;
	height: 1.5em;
	margin-right: 0 !important;
	min-width: 4em;
	padding: 4px 8px;
	position: relative;
}
.input-unit span {
	border: 1px solid #999;
	box-sizing: border-box;
	float: left;
	height: 1.5em;
	min-width: 1.8em;
	padding: 2.3px 8px;
}

label {
	margin-left: 8px;
	display: inline-block;
}
legend {
	background-color: white;
	height: 1.5em;
	padding: 2px 5px 0px 5px;
	position: absolute;
	top: 5px;
}

.loading-dialogue {
	position: fixed;
	z-index: 800;
	padding-top: 100px;
	left: 0%;
	top: 0%;
	overflow: auto;
	width: 100%;
	height: 100%;
	background-color: rgb(0,0,0); 
	background-color: rgba(0,0,0,0.4);
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.loading-dialogue div {
	align-items: center;
	background-color: #666;
	border: 1px solid black;
	border-radius: 4px;
	bottom: 30%;
	color: #fafafa;
	display: flex;
	font-size: 3em;
	font-weight: bold;
	height: 20%;
	justify-content: center;
	left: 0;
	margin: auto;
	max-width: 350px;
	min-width: 220px;
	position: absolute;
	right: 0;
	top: 0;
	width: 25%;
	z-index: 800;
}

.main-wrapper {
	display: flex;
	flex-direction: row;
	flex: 1 0 auto;
}
@media (max-width: 1200px) {
	.content-wrapper {
		position: static;
	}
}
.margin-top-10 {
	margin-top: 10px;
}

p {
	color: #666;
	line-height: 1.25em;
	margin-bottom: 0;
	display: inline-block;
}

.no-margin {
	margin: 0;
}

.redirect-button {
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100px;
}

select {
	max-width: 200px;
	text-transform: capitalize;
}
select option {
	text-transform: capitalize;
}
.shadow {
	-webkit-box-shadow: 6px 0px 5px -2px #bbb;
	-moz-box-shadow: 6px 0px 5px -2px #bbb;
	box-shadow: 6px 0px 5px -2px #bbb;
}

/**
* Sidebar Definitions
**/
.MOB-warning {
	color: red;
	text-align: center;
 }
.sidebar {
	flex: 0 0 200px;
	background-color: #6e6e6e;
	position: relative;
}
.sidebar ul, .sidebar li{
	margin-top: 0;
	list-style: none;
	display: block;
	text-decoration: none;
	padding: 0;
}
.sidebar i {
	float: right;
}
.sidebar ul a {
	background: #333;
	border-bottom: 2px solid #444;
	color: #ccc;
	display: block;
	margin: 0;
	padding: 8px 12px;
	text-decoration: none;
}
.sidebar ul a:hover {
	background: #444;
	color: #fff;
	padding-bottom: 8px;
}
.sidebar .submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: none;
	position: relative;
	z-index: 20;
}
.sidebar-bottom {
	position: absolute;
	bottom: 0;
	padding: 16px 12px;
	color: #ddd;
	font-size: 15px;
	width: 100%;
	z-index: 10;
}
.submenu {
	overflow: hidden;
	max-height: 250px;
	-webkit-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}
.submenu li a {
	background: #555;
}

.space-between {
	justify-content: space-between;
}
.swing-status-row {
	justify-content: space-between;
}
.swing-status-row > div {
	margin-top: 0;
}
.swing-status-row > div:not(:first-child) {
	justify-content: flex-end;
}
.swing-status-row .field-container {
	margin-left: 0.5em;
}

/**
* Table definitions
**/
table {
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	width: 100%;
}
td, th {
	text-align: left;
	padding: 4px;
}
tr {
	border-bottom: 1px solid #ccc;
}

/**
* Tooltip definitions
**/
.tooltip-wrapper {
	align-items: center;
	display: flex;
	flex:0 1 auto;
	flex-direction: row;
	position: relative;
}
.tooltip {
	margin-left: 4px;
	background-color: #aaa;
	border-radius: 50%;
	display: inline-block;
	height: 16px;
	width: 16px;
	text-align: center;
	font-size: 14px;
	line-height: 16px;
	min-width: 16px;
}
.tooltip:before {
	content:'?';
	font-weight: bold;
	color: #fff;
}
.tooltip:hover p{
	display: block;
	transform-origin: 100% 0%;
	
	-webkit-animation: fadeIn 0.3s ease-in-out;
	animation: fadeIn 0.3s ease-in-out;
	z-index: 10000;
}
.tooltip p {
	display: none;
	text-align: left;
	position: absolute;
	width: 300px;
	padding: 20px;
	border-radius: 3px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    color: white;
	background: #444;
	z-index: 10000;
	top: 18px;
	font-size: 13px;
	line-height: 1.4;
}
.tooltip[tooltip-position='left'] p {
	right: 0%;
}
.tooltip[tooltip-position='left'] p:before {
	right: 2px;
	left: unset;
}
.tooltip p:before { /* The pointer of the tooltip */
    position: absolute;
    content: '';
    width:0;
    height: 0;
    border:6px solid transparent;
    border-bottom-color: #444;
    left:6px;
    top:-10px;
}
.tooltip p em {
	color: red;
	font-size: 1.2em;
	font-style: normal;
}

@-webkit-keyframes fadeIn {
	0% { 
		opacity:0; 
		transform: scale(0.6);
	}

	100% {
		opacity:100%;
		transform: scale(1);
	}
}

@keyframes fadeIn {
	0% { opacity:0; }
	100% { opacity:100%; }
}

#unavailable-source {
	color: red;
	font-weight: bold;
	margin-left: 1em;
}

.warning-paragraph {
	color: red;
}

/**
* Adjustment Classes
**/
.justify-center {
	justify-content: center;
}

/*********************************************************
**********************************************************
************         Modal Definitions        ************
**********************************************************
**********************************************************/
.modal {
	display: none;
	position: fixed;
	z-index: 800;
	padding-top: 100px;
	left: 0%;
	top: 0%;
	overflow: auto;
	width: 100%;
	height: 100%;
	background-color: rgb(0,0,0); 
	background-color: rgba(0,0,0,0.4);
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.modal-body {
	padding: 8px;
}
.modal-content {
	position: relative;
	background-color: #fefefe;
	margin: auto;
	border: 1px solid #888;
	overflow: hidden;
	max-width: 800px;
	border-radius: 4px;
}
.modal-flex-item {
	padding: 0px 0px 10px 0px;
	flex: 1;
	text-align: center;
	display: flex;
	justify-content: center;
}
.modal-title {
	flex: 1 0 auto;
	color: white;
}
.modal-title h1 {
	margin-bottom: 8px;
	border-bottom: 1px solid white;
}
.modal-title-container {
	position: relative;
	display: flex;
	padding: 16px 16px 0;
	background-color: #6e6e6e;
}
.voltage-reference {
	flex: 5 0 auto;
	display: flex;
	flex-direction: column;
}
.temp-reference {
	flex: 5 0 auto;
	display: flex;
	flex-direction: column;
}
.reference-select {
	align-self: stretch;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}
.reference-select fieldset {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.modal-close {
	color: white;
	position: absolute;
	right: 16px;
	top: 8px;
	font-size: 28px;
	font-weight: bold;
	margin-left: 10px;
}
.modal-close:hover,
.modal-close:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

/*********************************************************
**********************************************************
************          Navigation Bar          ************
**********************************************************
**********************************************************/
header {
	align-items: center;
	background: #000;
	display: flex;
	flex: 0 0 auto;
	height: 70px;
	margin: 0;
	padding: 0 0.5em;
	position: relative;
	z-index: 700;
}
.hold-button {
	position: absolute;
	right: 10px;
	text-align: center;
	top: 78px;
	transform: scale(1.2);
	z-index: 650;
}
.icon-logo {
	width: 100%;
	display: block;
	background-image: url('images/A+T-Instruments-logo-reverse.jpg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	text-indent: -9999px;
	overflow: hidden;

	font-size: 100%;
	max-width: 15em;
}
.icon-logo:after {
	display: block;
	content: '';
	padding-top:17%
}
.nav {
	position: relative;
	background: #000;
	height: 100%;
}
.nav a {
	display: block;
    padding: 20px 20px;
    background: #000;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
	min-width: 80px;
	white-space: nowrap;
}
.nav a:hover, .nav a:active, .nav-item--selected {
	border-bottom: 5px solid white;
}
.nav button {
	position: absolute;
	height: 100%;
	right: -45px;
	padding: 0 15px;
	border: 0;
	outline: none;
	background-color: #666;
	color: #fff;
	cursor: pointer;
}
.nav button:hover {
	background-color: #aaa;
}
.nav button::after {
	content: attr(count);
	position: absolute;
	width: 30px;
	height: 30px;
	left: -16px;
	top: 12px;
	text-align: center;
	background-color: #666;
	color: #fff;
	font-size: 14px;
	line-height: 28px;
	border-radius: 50%;
	border: 3px solid #fff;
	font-weight: bold;
}
.nav button:hover::after {
  transform: scale(1.075);
}
.nav .hamburger {
  position: relative;
  width: 32px;
  height: 4px;
  background: #fff;
  margin: auto;
}
.nav .hamburger:before,
.nav .hamburger:after {
  content: '';
  position: absolute;
  left: 0;
  width: 32px;
  height: 4px;
  background: #fff;
}
.nav .hamburger:before {
  top: -8px;
}
.nav .hamburger:after {
  bottom: -8px;
}
.nav li {
	margin-top: 0;
}
.nav .visible-links {
  display: inline-table;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
.nav .visible-links li {
  display: table-cell;
  border-left: 1px solid #666;
}
.nav .hidden-links {
  position: absolute;
  right: -46px;
  top: 100%;
  margin-top: 0em;
}
.nav .hidden-links li {
  display: block;
  border: 1px solid #666;
}
.nav .hidden {
	display: none;
	visibility: visible;
}
.site-title {
	position: relative;
	line-height: 1.25em;
	float: left;
	width: 15%;
	min-width: 9em;
}
.nav-container {
	float: left;
	width: 80%;
	margin-right: 5%;
	height: 100%;
}
.sub-bar {
	background: #aaa;
	border-bottom: 1px solid black;
	height: 10px;
	position: relative;
	width: 100%;
	left: 0;
	border-top: 1px solid white;
	z-index: 600;
	flex: 0 0 auto;
}

/*********************************************************
**********************************************************
************         Local Definitions        ************
**********************************************************
**********************************************************/

/**
* Alarm page
**/
#alarms .alarm-reset {
	float: right;
	margin-top: 16px;
}
#alarms .alarm-header {
	flex: 0 0 13%;
	justify-content: center;
}
#alarms .alarm-header-small {
	flex: 0 0 8%;
	justify-content: center;
}
#alarms .alarm-test-button {
	display: flex;
	flex: 1 0 13%;
	justify-content: flex-end;
}
#alarms input[type="checkbox"] {
	margin-left: 16px;
}
#alarms .flex-heading {
	align-self: flex-start;
}
#alarms td {
	height: 45.8px;
}

/**
* Alternating channels page
**/
.alt-heading {
	width: 120px;
}
.alt-heading-row, .alt-input-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.alt-input-row {
	margin: 16px 0;
}
.alt-top-row {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	padding-top: 8px;
}
.alt-top-row-item {
	align-items: center;
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex: 1 1 200px;
}
.channel-dropdown {
	cursor: pointer;
	display: inline-block;
	height: 24px;
	line-height: 20px;
	position: relative;
	width: 150px;
}
.channel-dropdown .menu-list {
	background: white;
	border: 1px solid #666;
	height: 100%;
	list-style: none;
	margin: 0;
	max-height: 300px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 100%;
	z-index: 3;
}
.channel-dropdown .menu-list li {
	display: block;
	height: 100%;
	position: relative;
}
.channel-dropdown:before {
	content: attr(data-selected);
	display: inline-block;
	height: 24px;
	line-height: 24px;
	max-width: 130px;
	overflow: hidden;
	position: absolute;
	padding: 0 0 0 4px;
	width: 130px;
	white-space: nowrap;
	z-index: 4;
}
.channel-dropdown:after {
	color: #666;
	content: '\f107';
	font-family: FontAwesome;
	font-size: 1em; 
	height: 22px;
	right: 1px;
	position: absolute;
	padding-left: 3.5px;
	top: 1px;
	width: 16px;
	z-index: 4;
}
.channel-dropdown:hover:after {
	background: rgba(173, 216, 230, 0.6);
	border-left: 0.5px solid #7a66e6;
	padding-left: 2.5px;
}
.channel-dropdown a {
	background: white;
	display: none;
	line-height: 24px;
	padding: 2px 0 2px 4px;
	text-decoration: none;
	width: 100%;
}

.channel-dropdown-visible .menu-list {
	height: auto;
	overflow-y: auto;
	z-index: 5;
}
.channel-dropdown-visible .menu-list li a {
	display: block;
}
.channel-dropdown-visible .menu-list li a:hover {
	background: lightblue;
}
.channel-dropdown-visible .menu-list li:first-child {
	margin-top: 24px;
}
.channel-dropdown-visible .menu-list li:first-child a {
	border-top: 1px solid #666;
}
.channel-dropdown-visible .menu-list li:hover > ul {
	position: fixed;
}
.channel-dropdown-visible:after {
	content: '\f106';
	z-index: 6;
}
.channel-noafter:after {
	display: none;
}
.alt-input-row {
	margin: 16px 0;
}

/*
* -- Analogue Page --
*/
#analogue .flex-heading {
	flex: 0 0 80px;
}
#analogue .flex-input {
	margin-right: 10px;
}
#analogue .flex-row:first-child {
	margin-top: 8px;
}
.analogue-close {
	position: absolute;
	right: 16px;
	font-size: 28px;
	font-weight: bold;
	top: -2px;
	color: #ccc;
	cursor: pointer;
}
.analogue-close:hover,
.analogue-close:focus {
	color: black;
}

/*
* -- Barometer Page--
*/
#Barometer .flex-third {
	justify-content: center;
}
#Barometer .flex-heading {
	justify-content: center;
}
#Barometer .flex-field {
	justify-content: center;
}

/*
* -- B&G Proprietary --
*/
#bg-prop select {
	max-width: none;
}
#progress-complete {
	display: none;
	position: absolute;
	color: white;
	font-weight: bold;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	margin-top: 4px;
}

/*
* -- CanBus Page --
*/
#CanBus input[type="checkbox"] {
	margin-left: 10px;
}
#CanBus td {
	height: 50px;
}
#CanBus th:not(:first-child), #CanBus td:not(:first-child) {
	text-align: center;
}
#CanBus select {
	max-width: none;
	width: 100%;
	background: transparent;
}

/**
* Channel names page
**/
#channelNames #channelInfoContainer {
	margin-left: 4px;
}
#channelNames #channelSelectContainer {
	height: 100%;
}
#channelNames .medium {
	flex-basis: auto;
}
#channelNames .button {
	align-self: center;
}
#channelNames .flex-column {
	height: 100%;
}
#channelNames input[type="text"] {
	width: 150px;
}
.channel-property-row {
	display: flex;
	flex-direction: row;
	margin-top: 8px;
	justify-content: space-between;
}
.listbox {
	max-width: none;
	height: auto;
	margin: 0 5px;
	background-color: #fafafa;
	width: 100%;
}

/**
* Commissioning page
**/
#commission .field-container {
	margin: 0;
}
#commission .flex-field {
	justify-content: center;
}
#commission .flex-third {
	justify-content: center;
}

/*
* -- Current Page --
*/
#SOGWarning {
	flex: 0 1 auto;
	color: red;
	align-self: flex-end;
}
#current .flex-field {
	align-self: flex-end;
}

/*
*	-- Data Display Page --
*/
#data-page {
	max-width: 1120px;
}
#data-page .data-grid-container {
	display: flex;
	height: 840px;
	margin: auto 0;
	max-width: 1100px;
}
#data-page .data-grid-container .data-grid {
	display: grid;
	flex: 1;
	max-width: inherit;
}
#data-page .data-grid-container .data-grid > div {
	align-items: flex-end;
	border: 1px solid #666;
	border-radius: 4px;
	display: flex;
	flex: 1;
	justify-content: flex-end;
	overflow: hidden;
	padding: 0 5%;
	pointer-events: none;
	position: relative;
	white-space: nowrap;
}
#data-page .data-grid-container .data-grid > div::before {
	content: attr(title);
	font-size: 24px;
	font-weight: 600;
	position: absolute;
	left: 4px;
	top: 4px;
}
#data-page .data-grid-container .data-grid > div::after {
	content: '\f013';
	cursor: pointer;
	font-family: 'Font Awesome 5 Free';
	font-size: 24px;
	font-weight: 900;
	pointer-events: auto;
	position: absolute;
	right: 4px;
	top: 4px;
}

#data-page .field-container {
	background: none;
	height: auto;
}

#data-page-modal .flex-heading {
	flex-basis: 160px;
}

#data-page-sidebar #num-pages {
	display: flex;
	justify-content: center;
}
#data-page-sidebar #page-select-container {
	display: flex;
	justify-content: center;
	margin-top: 6px;
}
#data-page-sidebar .sidebar-content {
	padding-top: 16px;
}

#data-page-sidebar .sidebar-toggle {
	background: #aaa;
	border: 3px solid #111;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	font-weight: 900;
	height: 30px;
	justify-content: center;
	padding: 3px 1px 0 0;
	position: absolute;
	right: -13px;
	text-align: center;
	top: 6px;
	width: 30px;

	-webkit-box-shadow: 6px 0px 5px -2px #bbb;
	-moz-box-shadow: 6px 0px 5px -2px #bbb;
	box-shadow: 6px 0px 5px -2px #bbb;
}
#data-page-sidebar .sidebar-toggle:hover {
	background: #ccc;
}

.grid-1 {
	grid-template-columns: auto;
	grid-template-rows: auto;
}
.grid-2 {
	grid-template-columns: auto;
	grid-template-rows: 50% 50%;
}
.grid-3 {
	grid-template-columns: 50% 50%;
	grid-template-rows: 33.3% 33.3% 33.4%;
}
.grid-3 div {
	font-size: 8em;
}
.grid-3 div:first-child {
	align-items: center;
	font-size: 17em;
	grid-column-start: 1;
	grid-column-end: 3;
	grid-row-start: 1;
	grid-row-end: 3;
}
.grid-4 {
	grid-template-columns: 50% 50%;
	grid-template-rows: 50% 50%;
}
.grid-5 {
	grid-template-columns: 50% 50%;
	grid-template-rows: 33.3% 33.3% 33.4%; 
}
.grid-5 div {
	font-size: 8em;
}
.grid-5 div:first-child {
	font-size: 15em !important;
	grid-column-start: 1;
	grid-column-end: 3;
	grid-row-start: 1;
	grid-row-end: 2;
}
.grid-6 {
	grid-template-columns: 33.3% 33.3% 33.4%;
	grid-template-rows: 33.3% 33.3% 33.4%;
}

/*
* -- Data Output Page --
*/
#udp .flex-heading {
	flex-basis: 200px;
}
#udp .flex-half:not(:first-child) {
	padding-left: 80px;
}
#udp input[type="text"] {
	width: 140px;
}
#udp select {
	width: 140px;
}

/*
* -- Debug Page --
*/
#debug {
	max-width: none;
	right: 0px;
}
#debug .debug-top-row {
	margin-top: 16px;
}
.log-controls {
	justify-content: space-between;
	margin-top: 20px;
}
iframe {
	width: 100%;
	height: 70vh;
	margin: 20px 0;
}
#iframe-clear {
	flex: 0 1 auto;
}
.reload {
	display: inline-block;
	position: relative;
	height: 2em;
	padding: .25em;
	width: 2em;
	vertical-align: middle;
}
.reload:before, .reload:after {
	content: '';
	display: block;
}
.reload:before {
	border-color: transparent white white white;
	border-radius: 50%;
	border-style: solid;
	border-width: .125em;
	height: 1.5em;
	width: 1.5em;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
.reload:after {
	border-color: transparent transparent transparent white;
	border-style: solid;
	border-width: .3125em 0 .3125em .5em;
	height: 0;
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
}
@-webkit-keyframes rotate {
	100% {
		-webkit-transform: rotate(360deg);
	}
}
@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

/*
* -- Depth Page --
*/
#depth #input-advanced {
	margin-left: 16px;
	align-self: center;
}

/*
* -- Environment Page -- 
*/
.barometer {
	padding: 0 10px;
	justify-content: space-between;
}
.no-source-row {
	color: #666;
	display: flex;
	opacity: 0.4;
	margin: 5px 0;
}
.no-source-row h2 {
	margin: auto;
}
#pressure {
	margin-left: 16px;
}
.sensor-grid {
	align-items: center;
	display: grid;
	grid-row-gap: 10px;
	grid-template-columns: [sensor-name] 200px auto auto auto;
	grid-template-rows: auto;
	margin-bottom: 10px;
}
.sensor-grid .sensor-heading {
	display: flex;
	grid-row: 1;
	justify-content: center;
}
.sensor-grid .sensor-name {
	color: #666;
	grid-column: 1;
	position: relative;
}
.sensor-grid .sensor-name .tooltip {
	margin-right: 10px;
}
.sensor-grid .sensor-offset {
	display: flex;
	grid-column: 3;
	justify-content: center;
}
.sensor-grid .sensor-value-offset {
	display: flex;
	grid-column: 4;
	justify-content: center;
}
.sensor-grid .sensor-value-raw {
	display: flex;
	grid-column: 2;
	justify-content: center;
}

/*
* -- Expedition Format Page --
*/
#expedition-format .format-grid {
	display: grid;
	grid-row-gap: 8px;
	grid-template-columns: 34% 33% 33%;
	grid-template-rows: auto;
}

#expedition-format .format-grid div {
	font-weight: bold;
}

#expedition-format .format-grid h2 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

#expedition-format .format-grid h2:not(:first-child) {
	justify-self: center;
}

#expedition-format .format-grid input {
	justify-self: center;
	width: auto;
}

#expedition-format .format-grid select {
	justify-self: center;
}

/*
* -- External Channels Page --
*/
#externalChannels div:not(#externalHeadingRow) > .flex-fifth {
	padding-left: 2px;
}
#externalChannels .field-container {
	margin-left: 8px;
}
#externalChannels select {
	width: 200px;
}

/*
* -- Faro Export Page --
*/
#faro-export .flex-heading {
	flex: 0 0 200px;
}

/*
* -- Faro Import Page --
*/
#faro .faro-grid {
	display: grid;
	grid-row-gap: 8px;
	grid-template-columns: 25% 25% 25% 25%;
	grid-template-rows: auto;
}

#faro .faro-grid * {
	justify-self: center;
}

#faro .faro-grid > div:nth-child(4n+1), #faro .faro-grid > h2:nth-child(4n+1) {
	font-weight: bold;
	justify-self: left;
}

#faro .faro-grid h2 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

/*
* -- Fastnet Page --
*/
.arrow {
	border: solid black;
	border-width: 0 3px 3px 0;
	display: inline-block;
	padding: 3px;
}
.arrow-down {
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
}
.arrow-up {
	position: relative;
	top: 2px;
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}
.border-bottom {
	border-bottom: 1px solid #ccc;
	padding-bottom: 5px;
}
#fastnetHeadingBox {
	padding:4px 16px 8px 16px;
	background-color:#f7f8f9;
}
#fastnet select {
	width: auto;
}
#fastnet-modal p {
	margin-top: 0px;
}
#fastnet-modal input {
	margin-left: 16px;
	width: 60px;
}

/*
* -- Firmware Page --
*/
#firmware .flex-field {
	flex: 1 0 100px;
}
#firmware .file-check {
	margin-left: 16px;
	color: green;
}

/*
* -- Heading Page --
*/
#heading #input-advanced {
	margin-left: 16px;
	align-self: center;
}
#heading #compass-calibration {
	margin-left: 2.5em;
}
#heading #cog-row {
	justify-content: right;
}
#heading #cog-row #cog-heading {
	flex-basis:  5em;
}

/**
* Heel page
**/
#heel .flex-third {
	justify-content: space-around;
}
#heel #sensor-select-row {
	display: flex;
	justify-content: space-around;
}
#heel #instance-select .flex-half > div {
	flex: 1;
}
#heel .label-wide {
	margin-right: 8px;
	width: 71px;
}
#heel .label-narrow {
	width: 35px;
}
#heel li:not(:first-child) {
	margin-top: 16px;
}
.heel-mounting {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
#sensor-fields .flex-field {
	flex: 1 1 auto;
	justify-content:center;
}
#sensor-fields .flex-row {
	margin: 16px 16px 8px;
}

/*
* -- Heel Corrections --
*/
#heelCorrections td:first-child, 
#heelCorrections th:first-child {
	border-right: 1px solid #ccc;
}
#heelCorrections #base-field {
	border: 1px solid #ccc;
	text-align: right;
	background-color: #F2F2F2;
	min-width: 60px;
	padding: 0px 2px 0px 2px;
	height: 1.2em;
	overflow: hidden;
}
#heelCorrections td, #heelCorrections th {
	text-align: center;
}
#heelCorrections #source-select {
	position: absolute;
	right: 30px;
	top: 16px;
	z-index: 5;
}
#heel-table {
	margin: 0.5em 0;
}
.correction-base {
	width: 60px;
	text-align: right;
	-moz-appearance:textfield;
}

/**
* Home page
**/
#home p:first-child {
	margin-top: 0;
}
#home #internalSensors .flex-half {
	justify-content: center;
}
.manual-button {
	float: right;
}

/*
* -- Leeway Page --
*/
#leeway .flex-heading {
	flex: 0 1 175px;
}

/**
* -- Mast Motion Page -- 
*/
#mast-motion .flex-heading {
	flex-basis: 200px;
}
#mast-motion #reload-button {
	margin-bottom: 0.5em;
}
#mast-motion .flex-row {
	justify-content: center;
}
#mast-motion #input-select {
	max-width: 800px;
}
#mast-motion #input-select-container .flex-heading {
	flex-basis: 150px;
}

/**
* MOB page
**/
#MOB p:first-child {
	margin-top: 0px;
}
#MOB li:not(:first-child) {
	margin-top:8px;
}
#mobHistory td, #mobHistory th {
	text-align: center;
}
#MOB .flex-heading {
	align-self: flex-start;
}
.mob-trigger-list {
	color: #666;
	padding-left: 15px;
}
.mob-warning-small {
	color:red;
	font-size: 0.85em;
	font-weight: normal;
	margin: 0;
}
.mob-warning-large {
	color: red;
	display: inline-block;
	font-size: 0.8em;
	margin: 0;
}

/*
* -- NMEA Page --
*/
#NMEA .box-bottom {
	margin-bottom: 16px;
}
#NMEAChannels input[type=checkbox] {
	margin-left: 20px;
}
#NMEA td {
	text-align: center;
}
.nmea-filter tr:first-child th:not(:first-child) {
	text-align: center;
}
#NMEA #fast-output {
	background-color: #aaa;
	border-radius: .5em;
	bottom: 8px;
	box-shadow: 0px 1px 2px rgba(0,0,0,.2);
	color: white;
	cursor: help;
	right: 1em;
	padding: 5px;
	position: absolute;
	text-shadow: 0 1px 1px rgba(0,0,0,.3);
	-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,.2);
}
#NMEA #fast-output:hover p{
	display: block;
	transform-origin: 100% 0%;
	
	-webkit-animation: fadeIn 0.3s ease-in-out;
	animation: fadeIn 0.3s ease-in-out;
	z-index: 10000;
}
#NMEA #fast-output p {
	display: none;
	text-align: left;
	position: absolute;
	width: 300px;
	padding: 20px;
	border-radius: 3px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    color: white;
	background: #444;
	z-index: 10000;
	top: 18px;
	right: 0px;
	font-size: 13px;
	line-height: 1.4;
}
#NMEA #fast-output p:before { /* The pointer of the tooltip */
    position: absolute;
    content: '';
    width:0;
    height: 0;
    border:6px solid transparent;
    border-bottom-color: #444;
    right: 6px;
    top:-10px;
}

/*
* -- Position Page --
*/
#position #input-advanced {
	margin-left: 16px;
	align-self: center;
}
#position .flex-field {
	margin-left: 10px;
	align-items: center;
}
#position .latlong-input {
	width: 120px;
	text-align: right;
}

/*
* -- Simulator Page --
*/
#simulator #simulated-select {
	margin-right: 16px;
	width: 100%;
}
#simulator #use-simulated-data {
	margin-left: 20px;
}

/*
* -- Speed Page --
*/
#speed .flex-heading {
	flex: 0 1 160px;
	align-self: auto;
}
#storedLog {
	overflow: hidden;
}
#tripLog {
	overflow: hidden;
}
#sog-container {
	margin-top: 10px;
}
#speed #correction-value, #speed #correction-value-pulse {
	margin-right: 16px;
}

/*
* -- Speed Select Page --
*/
#speed-select .flex-row, #wind-select .flex-row {
	justify-content: space-between;
}
.active-sensor {
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: white;
	flex: 0 60%;
	font-size: 1.5em;
	padding: 16px 16px 10px 16px;
	position: relative;
	margin: auto;

	-webkit-box-shadow: 5px 2px 5px -2px #bbb;
	-moz-box-shadow: 5px 2px 5px -2px #bbb;
	box-shadow: 5px 2px 5px -2px #bbb;
}
.active-sensor div {
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.active-sensor div div:last-child {
	text-align: right;
}
.active-sensor .flex-heading {
	flex-basis: 200px;
}
.active-sensor legend {
	top: 0;

}
.active-arrow {
	height: 100%;
	width: 20%;
}
.loading-box {
	display: flex;
}
.loading-box div {
	font-size: 2em;
	font-weight: bold;
	margin: auto;
	opacity: 0.4;
	text-align: center;
}
.placeholder-box {
	display: flex;
}
.placeholder-box div {
	font-size: 2em;
	font-weight: bold;
	margin: auto;
	opacity: 0.4;
	text-align: center;
}
.radio-container {
	flex: 1 50%;
	margin-right: 0.5em;
	margin-top: 10px;
}
.radio-container:not(:first-child) {
	margin-left: 1em;
}
.radio-container > div {
	display: flex;
	justify-content: space-between;
}
.radio-container > div > div {
	padding: 0.5em 0;
	text-align: center;
}
.radio-container > div > div:first-child {
	margin-right: 1em;
}
.radio-container > div > div:not(:first-child) {
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
}
.radio-container > div > div:nth-child(2) {
	border-bottom-left-radius: 4px;
	border-left: 1px solid #666;
	border-top-left-radius: 4px;
}
.radio-container > div > div:nth-child(3) {
	border-bottom-right-radius: 4px;
	border-right: 1px solid #666;
	border-top-right-radius: 4px;
}
.radio-container div {
	flex: 1;
} 
.sensor-details {
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: white;
	flex: 1 50%;
	flex-direction: column;
	padding: 16px 16px 10px 16px;
	position: relative;
}
.sensor-details:first-child {
	margin-right: 0.5em;
}
.sensor-details:last-child {
	margin-left: 0.5em;
}
#switching-container {
	margin-top: 16px;
}
#switching-container select, #switching-container input {
	margin-left: 10px;
}
#switching-container .field-container {
	margin-right: 12px;
	margin-left: 16px;
}

/*
* -- Stored Log --
*/
#stored-log #stored-log-button, #trip-log-button {
	flex-basis: 120px;
}
#stored-log #stored-log-input {
	width: 100px;
	margin-right: 16px;
}
.trip-log-row, .stored-log-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5em;
}

/*
* -- Time Page --
*/
#time .flex-input {
	flex: 1 1 auto;
}
#time .flex-third {
	align-items: center;
}

/*
* -- Wind Derived Page --
*/
#windDerived td:first-child {
	margin-right: 16px;
}
#windDerived .flex-field{
	align-items: flex-end;
	flex: 0 1 100px;
}
#windDerived .flex-heading {
	flex: 0 1 130px;
}
#windDerived legend h1 {
	background-color: white;
	border-bottom: none;
	padding: 0 4px;
	position: absolute;
	top: -8px;
}
#wind-table {
	margin-top: 8px;
}
#wind-table td:first-child, #wind-table th:first-child {
	width: 90px;
}
#wind-table td:nth-child(2), #wind-table th:nth-child(2) {
	width: 90px;
	font-weight: normal;
}
#wind-table input {
	width: 100%;
}
#wind-table th:not(:first-child) {
	padding-left: 6px;
}
#windDerived #input-select {
	max-width: 400px;
	position: absolute;
	right: 5%;
	top: 0.5em;
}

/*
* -- Wind Measured Page --
*/
#wind-measured .flex-half {
	align-self: stretch;
	flex-direction: column;
}
#wind-measured .flex-half > div {
	width: 100%;
}
#wind-measured #pulse-calibration, #wind-measured #calibration-factor {
	margin-right: 16px;
}
#wind-measured #modal-mast {
	position: absolute;
	right: 5%;
}
[name="modal-mast"] .flex-half:not(:first-child) .flex-heading {
	flex-basis: 200px;
}
#calibration-factor-container, .mast-motion-row {
	display: none;
}
.measured-wind-grid {
	display: grid;
	grid-row-gap: 8px;
	grid-template-columns: 50% 50%;
	grid-template-rows: auto;
}
.measured-wind-grid .flex-row {
	margin-top: 0px;
}
