/*
 * SBS Styles
 *
 * Color Standards:
 * - Orange (primary accent): #ff6600
 */

/* Form element reset — prevents padding from overflowing grid cells */
input, select, textarea {
	box-sizing: border-box;
}

/* DIV Styles */

	/* Container for left menu buttons */
	.leftMenuContainer {
		position: absolute;
		top: 50px;
		left: 0px;
		width: 30px;
		z-index: 4;
	}

	/* Style for individual left menu buttons */
	.leftMenuBtnDiv {
		background: rgba(42,42,42,0.9);
		padding: 4px;
		border-top-right-radius: 4px;
		border-bottom-right-radius: 4px;
		margin-bottom: 4px;
		width: 30px;
		max-height: 30px;
	}


	/* Style for left menu details */
	.leftMenuDetailsDiv {
		background: rgba(42,42,42,0.9);
		padding: 4px;
		border-top-right-radius: 4px;
		border-bottom-right-radius: 4px;
		position: absolute;
		top: 50px;
		left: 42px;
		width: 410px;
		max-height: 600px;
		overflow-y: auto;
		z-index: 4;
		display: none;
	}

	/* Style for formation canvas */
	.formationDiv {
		background: rgba(42,42,42,0.9);
		padding: 4px;
		border-top-right-radius: 4px;
		border-bottom-right-radius: 4px;
		position: absolute;
		top: 50px;
		left: 460px;
		max-width: 1300px;
		max-height: 600px;
		overflow-y: auto;
		z-index: 4;
		display: block;
	}

	/* Style for sub-divs inside left menu details */
	.detailsDivContent {
		margin-left: 6px;
		font-size: 11px;
	}


	/* Top banner that periodically displays messages */
	#taskdiv {
		position: absolute;
		background: rgba(42,42,42,0.8);
		padding: 4px;
		border-radius: 4px;
		width: 60%;
		top: 45px;
		text-align: center;
		display: none;
	}

	/* More style info for paragraph within taskdiv */
 	innertask {
		color: white;
		background: rgba(42,42,42,0.8);
		padding: 4px;
		border-radius: 4px;
		text-align: center;
		display: inline-block;
	}

	#errorDiv {
		position: absolute;
		background: rgba(42,42,42,0.8);
		padding: 2px;
		border-radius: 4px;
		width: 200px;
		bottom: 45px;
		right: 4px;
		overflow-y: auto;
		z-index: 4;
	}

	.innererror {
		color: red;
		background: rgba(42,42,42,0.8);
		padding: 2px;
		border-radius: 4px;
		display: inline-block;
	}



	/* Background Cesium content */
	#cesiumContainer {
		height: 50%;
		width: 50%;
		margin: 0;
		overflow: hidden;
		padding: 0;
		font-family: sans-serif;
	}




/* General HTML Styling */
	html {
		height: 100%;
		font-family: sans-serif;
	}

	body {
		padding: 0;
		margin: 0;
		overflow: hidden;
		height: 100%;
	}

	h5.divheader {
		font-size: 14px;
		color: #EF6700;
		text-transform: uppercase;
		margin-top: 0px;
		margin-bottom: 6px;
		margin-left: 2px;
	}
	h6.subtitle {
		font-size: 12px;
		color: white;
		font-weight: bold;
		margin-top: 4px;
		margin-bottom: 2px;
		margin-left: 2px;

	}

	/* Customize link styles. */
	a.mine, a.mine:link, a.mine:visited {
		color: white;
		font-family: sans-serif;
	    font-size: 11px;
	}

	p {
		color: white
	}

	table {
		color: white;
		font-size: 12px;
	}

	th {
	    background-color: #4d4d4d;
	    color: #ff9933;
	    font-size: 16px;
	    font-weight: bold;
	    text-shadow: 1px 1px black;
	}


/* Buttons and Pull-down Menus */
	.togglebuttonoff{
		background-color: #525354;
	    border: none;
	    color: white;
	    padding: 2px 4px;
	    text-align: center;
	    text-decoration: none;
	    display: inline-block;
	    font-size: 13px;
	    border-radius: 3px;
	}

	.button{
		background-color: #ef6700;
	    border: none;
	    color: white;
	    padding: 2px 4px;
	    text-align: center;
	    text-decoration: none;
	    display: inline-block;
	    font-size: 13px;
	    border-radius: 3px;
	}

	button:disabled,
	button[disabled]{
		background-color: #cccccc;
		color: #666666;
	}

	select option {
	    margin: 40px;
	    background: rgba(0, 0, 0, 0.3);
	    color: #fff;
	    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
	}

	select {
		-webkit-border-radius: 2px;
		-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
		-webkit-padding-end: 20px;
		-webkit-padding-start: 2px;
		background-position: center right;
		background-repeat: no-repeat;
		border: 1px solid #AAA;
		background-color: #525354;
		color: #fff;
		font-size: 13px;
		margin: 0;
		overflow: hidden;
		padding-top: 1px;
		padding-bottom: 1px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.custom-file-upload {
		background-color: #525354;
	    border: none;
	    color: white;
	    padding: 2px 4px;
	    text-align: center;
	    text-decoration: none;
	    display: inline-block;
	    font-size: 13px;
	    border-radius: 3px;
	}

	input[type="text"], textarea {
		background-color : #525354;
		color: #fff;
		font-size: 13px;
		margin: 0;
		outline: none;
	}

	input[type="number"], textarea {
		background-color : #525354;
		color: #fff;
		font-size: 13px;
		margin: 0;
		outline: none;
	}

	/* Dropdown Button */
	.dropbtn {
		background-color: #1e23af;
		color: white;
		padding: 14px;
		font-size: 10px;
		border: none;
		cursor: pointer;
	}

	/* The container <div> - needed to position the dropdown content */
	.dropdown {
		position: relative;
		display: inline-block;
	}

	/* Dropdown Content (Hidden by Default) */
	.dropdown-content {
		display: none;
		position: absolute;
		background-color: #f9f9f9;
		min-width: 100px;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
		z-index: 1;
	}

	/* Links inside the dropdown */
	.dropdown-content a {
		color: black;
		padding: 12px 16px;
		text-decoration: none;
		display: block;
	}

	/* Change color of dropdown links on hover */
	.dropdown-content a:hover {background-color: #f1f1f1}

	/* Show the dropdown menu on hover */
	.dropdown:hover .dropdown-content {
		display: block;
	}

	/* Change the background color of the dropdown button when the dropdown content is shown */
	.dropdown:hover .dropbtn {
		background-color: #1e23af;
	}


/* Bottom Ribbon */
	/* Style for individual icons/buttons/divs along the bottom ribbon */
	.BotRibbonIcon {
		float:left;
		background: rgba(42,42,42,0.9);
		padding: 4px;
		border-top-left-radius: 4px;
		border-top-right-radius: 4px;
		margin-bottom: 4px;
		padding-left: 30px;
		width: 30px;
		max-height: 30px;
	}

/* Animations */
	/* Spinner animation for loading indicators */
	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(360deg); }
	}

/* Disabled States */
	button:disabled,
	select:disabled,
	input:disabled {
		opacity: 0.4 !important;
		cursor: not-allowed !important;
		filter: grayscale(50%);
	}

	button:disabled:hover,
	select:disabled:hover,
	input:disabled:hover {
		opacity: 0.4 !important;
		cursor: not-allowed !important;
	}

/* Formation diagram canvas labels */
.diag-label {
	color: #ccc;
	font-family: monospace;
	font-size: 9px;
	padding: 1px 3px;
	background: rgba(0,0,0,0.5);
	border-radius: 2px;
	pointer-events: none;
	white-space: nowrap;
}

/* Make the calendar/clock picker icon visible on dark backgrounds */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
}
