/* Bootstrap Overrides & Additions */
.navbar-brand {
	overflow-x: hidden;
	margin-right: 3px;
}

#countdown {
	float: right;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
}

/* OpenLayers Overrides */
.ol-zoom {
	left: unset;
	right: 8px;
}
.ol-control button {
	background-color: #0d6efd;
	width: unset;
	min-width: 26px;
	height: 31px;
}

/* Application Styles */
html { 
	width: 100vw;
	height: 100vh;
	margin: 0px;
	padding: 0px; 
}
body { 
	width: 100vw;
	height: 100vh;
	margin: 0px;
	padding: 0px; 
}
@media (min-width: 768px) {
	#navSearch #navSearchInput {
		width: 300px;
	}
}
@media (max-width: 768px) {
	#navSearch #navSearchInput {
		width: 250px;
	}
}
.no-select {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* Navigation menu styles */
#mainMenuList li {
	display: none;
}
#mainMenuList .dropdown-item .bi {
	margin-right: 9px;
}
#mainMenuSearchDivider {
	display: none;
}

/* Page header */
#pageHeader {
	background-color: #f8f9fa;
	border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* Typeahead Styles (for the navbar search) */
#navSearch {
	display: none;
}
#navSearch .tt-query {
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
#navSearch .tt-hint {
	color: #999
}
#navSearch .tt-menu {
	width: 100%;
	margin-top: 4px;
	padding: 4px 0;
	background-color: #fff;
	border: 1px solid #ccc;
	border: 1px solid rgba(0, 0, 0, 0.2);
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
	border-radius: 4px;
		-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
		-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
	box-shadow: 0 5px 10px rgba(0,0,0,.2);
	overflow-y: auto;
	max-height: 500px; /* Dynamically set */
}
#navSearch .tt-suggestion {
	font-size: 0.8rem;
	padding: 3px 20px;
	line-height: 24px;
	border-top: 1px solid #ccc;
}
#navSearch .tt-suggestion.tt-cursor,.tt-suggestion:hover {
	color: #fff;
	background-color: #0097cf;
}
#navSearch .tt-suggestion p {
	margin: 0;
}
#navSearch .tt-header {
	color: #606060;
	font-size: 0.9rem;
	font-weight: bold;
	padding: 3px 10px;
	line-height: 24px;
	background-color: #ccc;
}

/* Page sidebar */
#pageSidebar {
	overflow: hidden;
	position: fixed;
	z-index: 100;
	margin: 0px;
	padding: 5px 0px 0px 0px;
	top: 66px; /* Adjusted dynamically based on navbar height */
	bottom: 0px;
	left: 0px;
	width: 200px; /* Initial setting.  Adjusted dynamically */
	background-color: #1E1E1E;
	border-right: 1px solid rgba(0,0,0,0.15);
}
#pageSidebarToggler {
	font-size: 15px;
	color: #FFFFFF;
	text-align: center;
	position: fixed;
	z-index: 101;
	margin: 0px;
	padding: 4px 1px 0px 1px;
	top: 80px; /* Initial setting.  Adjusted dynamically based on navbar height */
	left: 199px; /* Initial setting.  Adjusted dynamically */
	width: 20px;
	height: 32px;
	border-radius: 0px 5px 5px 0px;
	border-top: 1px solid rgba(255,255,255,0.55);
	border-right: 1px solid rgba(255,255,255,0.55);
	border-bottom: 1px solid rgba(255,255,255,0.55);
	background-color: #1E1E1E;
	border-left-color: #1E1E1E;
}
#pageSidebarToggler :hover {
	cursor: pointer;
}

/* Sidebar Tab Stuff */
#sidebarTabButtons {
	border-bottom: 1px solid #FFFFFF;
}
#sidebarTabContent .tab-pane {
	overflow: auto;
	background-color: #F8F9FA;
}

/* Page content */
#pageContent {
	overflow: hidden;
	position: fixed;
	margin: 0px;
	padding: 0px;
	top: 66px; /* Adjusted dynamically based on navbar height */
	bottom: 0px;
	left: 200px; /* Initial setting.  Adjusted dynamically */
	right: 0px;
}
#map {
	width: 100%;
	height: 100%;
}

/* Map toolbars */
#mapToolbarNW {
	position: absolute;
	top: 0.5em;
	left: 30px;
}
#mapToolbarSW {
	position: absolute;
	bottom: 0.5em;
	left: 8px;
}
.mapToolbar .mapToolbarItem, .mapToolbarGroupItem {
	width: unset;
	min-width: 26px;
	height: 31px;
	background-color: #0d6efd;
	padding-left: 3px;
	padding-right: 3px;
	margin-top: unset;
	margin-right: 1px;
	margin-bottom: unset;
	margin-left: unset;
	float: left;
	border-radius: 0px 0px 0px 0px;
}
.mapToolbar .mapToolbarItem:first-child {
	border-radius: 4px 0px 0px 4px;
}
.mapToolbar .mapToolbarItem:last-child {
	border-radius: 0px 4px 4px 0px;
}
.mapToolbar .mapToolbarItem.disabled, .mapToolbarGroupItem.disabled {
	/*color: rgba(0,60,136,.6);*/
	pointer-events: none;
}

/* Table styles */
.tables_ui {
	display:inline-block;
	margin:2px;
	border:2px solid #3333fe;
	border-spacing:0;
}
.tables_ui ul li {
	min-width: 200px;
}
.dragging li.ui-state-hover {
	min-width: 240px;
}
.dragging .ui-state-hover a {
	color:green !important;
	font-weight: bold;
}
.tables_ui th, .tables_ui td {
	text-align: center;
	padding: 2px 4px;
	border: 1px solid;
	width: 100%
}
.t_sortable tr, .ui-sortable-helper {
	cursor: move;
}
.t_sortable tr:first-child {
	cursor: default;
}
.ui-sortable-placeholder {
	background: yellow;
}

/* Tab Context Options Menus */
.tab-context-options-menu {
	z-index: 1000;
	display: none;
	position: absolute;
	border: 1px solid black;
	border-radius: 3px;
	background: white;
	font-size: 14px;
}

.tab-context-options-menu hr {
	margin: 3px;
}

.tab-context-options-menu .btn-group {
	width: 100%;
}

.tab-context-options-menu .dropdown-menu {
	border: 1px solid red;
	border-radius: 3px;
	background: white;
	font-size: 14px;
	margin: 3;
}

/* Attributes Table */
.attributes-table-column {
	max-width: 350px;
	word-wrap: break-word;
}

/* Attributes Popup */
.attributes-popup {
	position: absolute;
	background-color: white;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	padding: 15px;
	border-radius: 10px;
	border: 1px solid #cccccc;
	bottom: 12px;
	left: -50px;
	min-width: 280px;
}

.attributes-popup:after, .attributes-popup:before {
	top: 100%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.attributes-popup:after {
	border-top-color: white;
	border-width: 10px;
	left: 48px;
	margin-left: -10px;
}

.attributes-popup:before {
	border-top-color: #cccccc;
	border-width: 11px;
	left: 48px;
	margin-left: -11px;
}

.attributes-popup-closer {
	text-decoration: none;
	position: absolute;
	top: 2px;
	right: 8px;
}

#attributesPopupContent {
	max-height: 275px;
	overflow-y: scroll;
	padding: 2px;
}

/* Permissions Tables */
.permission-row-disabled {
	color: grey !important;
}