﻿.nucleus-table-icon {
	width: 2rem;
	height: 2rem;
	border-radius: 3px;
}

.nucleus-table-icon-cell {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	vertical-align: middle !important;
	text-align: center;
}

.nucleus-table-icon-umbrella {
/*	width:rem;*/
	height: 3rem;
	border-radius: 3px;
}

.nucleus-table-icon-umbrella-cell {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	vertical-align: middle !important;
	text-align: center;
}

.nucleus-logo {
	position: absolute;
	width: 5.4rem;
	top: 70px;
	right: 18px;
/*	margin-top: -15px;
	margin-bottom: -15px;
	max-width: 35% !important;*/
}

.configTemplateModal {
	background-color: aliceblue;
	height: 300px;
	overflow-y: auto;
}

.toast-link {
/*	color: #007BFF !important;*/
	text-decoration: underline;
}

.toast-link:hover {
	/*	color: #007BFF !important;*/
	text-decoration: underline !important;
}

.log-v3 {
	overflow-y: scroll;
	height: 554px;
	/*	resize: none;*/
	font-family: Courier New, Courier, monospace;
	background-color: #e9ecef !important;
	padding: 6px 12px 6px 12px;
	font-weight: 400;
	line-height: 18px;
	color: #000;
	font-size: 16px;
	/*	border: 1px solid #e9e9e9;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out*/

	/* The following reverse the scroll direction so that scrollbar is always at bottom.
		Content gets reversed, hence extra div in the UiLog */
	overflow: auto;
	display: flex;
	flex-direction: column-reverse;
}

.log-debug{
	color: green !important;
}

.log-info {
	color: black;
}

.log-warn {
	color: orange;
}

.log-error {
	color: red;
}

.functions-step-titles {
	font-size: 16px;
	font-weight: bold;
	text-align: left;
	padding-top: 5px;
	padding-bottom: 5px;
}

#functions:focus {
	box-shadow: none !important;
	outline: none !important;
	border-color: lightgrey;
}

.functions-long-desc {
	margin-top: 8px;
	border-radius: 5px;
	box-shadow: none !important;
	outline: none !important;
	resize: none;
	border: 1px solid #ced4da;
	color: #495057;
}

	.functions-long-desc:focus {
		box-shadow: none !important;
		outline: none !important;
		border-color: lightgrey;
	}

.disable-file-import {
	pointer-events: none;
	border: 3px dashed #aeaeae66;
	color: #aeaeae66;
}

.disable-file-template {
	pointer-events: none;
	color: #aeaeae66;
	background-color: #8c6f90;
	opacity: .65;
}

#processing-status-bar > .btn-danger {
	font-size: 16px;
	letter-spacing: unset;
	font-weight: unset;
}

#functions.custom-select-with-adjusted-selection-text {
	text-indent: -12px;
}

.functions-tab-group.nav-tabs {
	/* one shorter than label ensures the bottom border of the label is white */
	height: 39px !important;
	/* this removes the entire line under the tabs so that the content area
		can show the curved corners. Combined with the height adjustment,
		the labels connect to it seamlessly.
	*/
	border-bottom: 0px !important;
}

.functions-tab-label {
	height: 40px !important;
	border-bottom: 0px;
}

.functions-drag-drop-zone {
	margin: 3px !important;
	border-radius: 5px;
	height: 80px;
	font-size: 20px !important;
}

.functions-tab-general-content {
	height: 111px !important;
	margin-top: 0 !important;
	border-top: solid 1px #aeaeae66 !important;
	border-left: solid 1px #aeaeae66 !important;
	border-right: solid 1px #aeaeae66 !important;
	border-bottom: solid 1px #aeaeae66 !important;
	border-bottom-left-radius: 5px !important;
	border-bottom-right-radius: 5px !important;
	border-top-right-radius: 5px !important;
}

.functions-tab-batch-content {
	border-top-left-radius: 5px !important;
}

.functions-template-button {
	display: inline;
	font-size: 13px;
	padding: 6px;
	margin-right: 4px;
}

/* Make the dropdown section titles slightly less bold */
.functions-dropdown-section-titles {
	font-weight: 500;
}

.functions-networks-dropdown {
	padding: 6px !important;
}

.functions-network-search-text{
	font-size: 14px;
	text-align: left;
	margin-bottom: 5px;
	height: 9px;
}

.barcode-scanner .file-input-zone {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: blue;
	color: white;
	cursor: pointer;
	position: relative;
	width: 120px;
	height: 30px;
}

.barcode-scanner .file-input-zone:hover {
	background-color: lightblue;
}

.barcode-scanner .file-input-zone input[type=file] {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.barcode-scanner-image-container {
	text-align: center;
	/* allows to control movement of table-cell in .barcode-scanner-image */
	display: table;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid black;
	/* when there's no image yet, need to expand the box height */
	height: 280px;
	max-height: 280px;
}

.barcode-scanner-image-initialising {
	/* move the initialise text or image to center */
	display: table-cell;
	vertical-align: middle;
}

.barcode-scanner-image {
	width: 100%;
	top: 0 !important;
}

.barcode-scanner-debug-image{
	padding-left: 8px;
	width: 36px;
	height: 31.5px;
	vertical-align: top;
}

.barcode-scanner-debug-image-under-log {
	padding-top: 8px;
	text-align: center;
}

/* Show a strobing red line over the desktop camera image */
#barcode-scanner-scanline-container {
}

	#barcode-scanner-scanline-container hr.barcode-scanner-image-hr {
		/* could only get working with absolute positioning so vertical position is a little off */
		position: absolute;
		width: 416px;
		animation: vertical-scan-line 4s linear infinite;
		margin: 0;
		padding: 0;
		background-color: red;
		/* line borders are a lighter red than body */
		border: 0.1px solid #ffcccc;
		height: 2px;
	}

.barcode-scanner-add-device-form > label {
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	padding-bottom: 20px;
	height: 9px;
}

.barcode-scanner-add-device-form > input {
	margin-bottom: 15px;
}

.barcode-scanner-networks-dropdown {
	padding: 6px !important;
}

.barcode-scanner-network-search-text {
	font-size: 14px;
	text-align: left;
	margin-bottom: 5px;
	height: 9px;
}

.barcode-scanner-desktop-scan-button {
	width: 200px;
	border-radius: 5px !important;
}

	.barcode-scanner-desktop-scan-button > i {
		font-size: 34px;
	}

/* Without this the label is much thicker than the button within */
.barcode-scanner-mobile-scan-label-wrapper {
	height: 50px;
}

.barcode-scanner-mobile-scan-button > a {
	width: 200px;
	border-radius: 5px !important;
}

	.barcode-scanner-mobile-scan-button > a > i {
		font-size: 34px;
	}

.serial-number-input-error{
	font-size: 12px;
	color: red;
}

.add-device-choices-serial-input-form {
	padding-bottom: 30px;
	margin: 0 auto;

	/* This was a bit weird, setting to this exact width makes the inline form centered,
		anything else and off center or wraps submit on to new line. It'll do
	*/
	width: 282px;
}

.barcode-scanner-add-button {
	/*	display: inline-flex;*/
	width: 36px;
	margin-bottom: 0;
}


.barcode-scanner-edit-button {
	vertical-align: top;
	width: 36px;
}

.barcode-scanner-minus-button {
	vertical-align: top;
}

.barcode-scanner-tab-label {
	height: 40px !important;
	border-bottom: 0px;
}

.barcode-scanner-tab-content {
	height: 111px !important;
	margin-top: 0 !important;
	border-top: solid 1px #aeaeae66 !important;
	border-left: solid 1px #aeaeae66 !important;
	border-right: solid 1px #aeaeae66 !important;
	border-bottom: solid 1px #aeaeae66 !important;
	border-bottom-left-radius: 5px !important;
	border-bottom-right-radius: 5px !important;
	border-top-right-radius: 5px !important;
}

.excel-drag-drop-zone {
	margin: 3px !important;
	border-radius: 5px;
	height: 65px;
	font-size: 20px !important;
}

@keyframes vertical-scan-line {
	0% {
		top: 20px;		
	}
	
	50% {
		top: 320px;
	}

	100% {
		top: 20px;
	}
}

.rotate-device-prompt {
	padding: 16px;
	padding-top: 50px;
}

.fa-rotate-device {
	/* could only get working with absolute positioning so vertical position is a little off */
	/*		position: absolute;*/
	font-size: 80px;
	animation: rotate-device-action 3s infinite;
	animation-fill-mode: forwards;
	padding-top: 20px;
}

.excel-drag-drop-footnote {
	font-size: 12px;
}

@keyframes rotate-device-action {
	0% {
		transform: rotate(0deg) translate(0,0px);
	}

	50% {
		transform: rotate(90deg) translateY(-10px) translateX(10px);
	}

	100% {
		transform: rotate(90deg) translateY(-10px) translateX(10px);
	}
}

@media screen and (max-width: 600px) {
	.functions-network-tab-hide-if-mobile {
		visibility: hidden;
	}
}

/* Hack to only wrap the 'add sites/devices using file import' labels when a phone is in portrait. Works for iphone 7 plus. >650 it wraps in landscape too */
@media screen and (max-width: 650px) {
	.functions-tab-label {
		height: 50px !important;
	}

	.functions-tab-group.nav-tabs {
		height: 49px !important;
	}

	.functions-tab-general-content {
		height: 131px !important;
	}
}

/* Hack to stop text wrapping near the Template button */
@media screen and (max-width: 800px) {
	.excel-drag-drop-footnote {
		font-size: 10px;
	}
}

/* Reduce font sizes on smaller devices */
@media (max-width: 1200px) {

	/* Changed from just .container override, as it was affecting NI pages too and breaking the piecharts */
	.smaller-text-on-mobile {
		font-size: smaller;
	}

	.provisioning-import-file-text {
		font-size: 16px !important;
	}

	.mobile-barcode-processing-spinner {
		position: fixed;
		z-index: 100;
		top: 50%;
		left: 46%;
		margin: 0 0 0 0;
		padding: 10px;
		margin-top: -28px;
		margin-left: -28px;
		width: 56px;
		height: 56px;
		font-size: 38px;
/*		background-color: rgba(100,100,100, 0.1);*/
		color: grey;
	}

	.mobile-barcode-processing-spinner span {
		font-size: 18px;
		position: relative;
		text-align: center;
		top: -95px;
		left: 37px;
	}

}