*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

::-webkit-scrollbar {
    width: 12px;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

html { height:100%; width:100%;}

body {
	/*font-family: 'Segoe UI', helvetica, arial, sans-serif;*/
	font-family: 'Titillium Web', sans-serif;
	background-color: #e0e8ed;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-size: 11px;
	color: #333;
	height: 100%;
	width:100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
	body > div { position: absolute }

p {margin:5px 0 10px 10px;}

br,li {line-height:18px;}

h1,h2,h3,h4 { margin: 0 0 5px 0;font-weight: bold; }

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1em; }

input, textarea, select, button { font-size: 1em; }

textarea {
	vertical-align: middle;
	height: 3em;
}

span {display:inline-block;}

ol,ul {
	padding-left:40px;
	margin:13px 0;
}

input {
	width:150px;
	border:0;
	padding: 1px 0 0 5px;
	background-color:#e0e8ed;
	height: 1.5em;
}

select {
	width:150px;
	border:0;
	padding: 1px 0 0 1px;
	background-color:#e0e8ed;
	height: 1.5em;
}

input:disabled,select:disabled {
	background-color:#bbb !important;
}

table { border-collapse: collapse;}

pre {
	margin:0;
	padding-left: 10px;
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.pre {
	white-space: pre-wrap;
}

button {
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    padding: 4px 8px;
    border-radius: 2px;
    text-align: center;
    vertical-align: middle;
    background-color: #aeb2d3;
    display: inline-block;
    cursor: pointer;
    margin: 0 1px 1px 0;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

button:active {
	box-shadow: none;
    margin: 1px 0 0 2px;
}

.flex_between { display: flex; justify-content: space-between; }
/* .line > div { margin-left: 20px } */

.checkbox {
	display:inline-block;
	border:1px solid black;
	background-color:white;
	box-shadow:1px 1px 1px rgba(0,0,0,0.1);
	height: 17px;
	width: 15px;
	line-height: 10px;
	font-size:20px;
	vertical-align: middle;
	cursor:pointer;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
	
.question_mark {
	width:20px;
	vertical-align: middle;
	cursor:pointer;
}

.clickme {
	cursor:pointer;
    background-color: #e0e8ed;
    padding: 0 2px 0 4px;
    border: 1px solid #d0dae1;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* this is.. when the clickme should look like a button.  why not just make it a button? .. so we can have one listener.. */
.clickme.blue {
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    padding: 4px 8px;
    border-radius: 2px;
    text-align: center;
    vertical-align: middle;
    background-color: #aeb2d3;
    display: inline-block;
    cursor: pointer;
    margin: 0 1px 1px 0;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dropdown::after {
	content: ' \25BC';
	color: #313345;
}
	
/*********** TOP ***********/

#top {
	background-color:#313345;
	display: flex;
	justify-content:space-between;
	padding:3px 30px 0 10px;
}
	#logo {
		height: 30px;
		width: 30px;
		background-image:url(/img/logo.png);
		background-size: contain;
		background-repeat: no-repeat;
		display: inline-block;
		vertical-align: middle;
	}
	#client_name {
		text-transform: uppercase;
		font-size: 2em;
		color: #a7b5c4;
		display: inline-block;
		vertical-align: middle;
		margin-left: 20px;
	}
	#client_name_after {
		font-size: 2em;
		color: #9ea8ff;
	}
	
	#welcome {
		z-index:10;
		color: #aeb2d3;
		font-size:2em;
		margin-top: -3px;
	}
	#welcome img {
		height: 20px;
		vertical-align: middle;
	}
	#welcome span {
		vertical-align: middle;
		margin-left:5px;
	}

	#logout {
		cursor:pointer;
		font-weight:bold;
		color: #9ea8ff;
	}
	#logout:hover {
		text-decoration:underline;
	}
/*********** TABS ***********/

.tabs {
	display:flex;
}

.tabs div {
	align-self: flex-end;
	font-size: 1.2em;
	font-weight: bold;
    border: 1px solid #e0e8ed;
    padding: 8px;
    width: 132px;
    text-align: center;
    background-color: #aeb2d3;
    cursor: pointer;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.related > .tabs > div {
	align-self: flex-start !important;
}

#tabs { font-size: 1.4em }

.active_tab {
	padding: 11px !important;
	background-color:#fff !important;
}

/*********** CONTENT ***********/

#content {
	width:100%;
}

.content {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
    display: none;
	overflow:auto;
}
	#datasets {overflow: initial !important;}
	
.shown {
    display: block !important;
}
	
/*********** MODULE ***********/
.module {
	position:absolute;
	background-color: white;
    border: 1px solid #e0e8ed;
    padding: 5px;
	border-radius: 3px;
}
	.module_title {
		position: absolute;
		top: -25px;
		left: 2px;
		font-size: 1.2em;
		font-weight: bold;
		color: #333;
	}

	.module_loader_gif {
		display:none;
		width:150px;
		height:150px;
		position:absolute;
		z-index: 1;
	}
	
	.module.relative {
		position:relative !important;
	}
	
	.list_filter {
		position: absolute;
		top: -22px;
		right: 2px;
		width: 100px;
	}
	
	.module_foot_left {
		position: absolute;
		bottom: -25px;
		left: 2px;
	}
	
	.module_foot_right {
		position: absolute;
		bottom: -25px;
		right: 2px;
	}
	
/*********** LIST SEARCH ***********/

#search {
	z-index:2;
}

.search {
	background-color: #aeb2d3;
}

.search input,.search button,.search select {
	display:inline-block;
	margin-left: 5px;
    vertical-align: middle;
}

.search > div {
	margin: 5px 0;
}

.radio {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/img/radio_off.png);
    background-size: contain;
	vertical-align: middle;
	cursor:pointer;
}
	.radio_selected {
		background-image: url(/img/radio_on.png) !important;
	}

/*********** LIST ***********/

.select_data:last-child {
	border-bottom: 1px solid #ddd;
}
.select_data {
	padding:4px;
	border-top: 1px solid #ddd;
	cursor:pointer;
	-webkit-user-select: none;  
	-moz-user-select: none;    
	-ms-user-select: none;      
	user-select: none;
}
.select_data:nth-child(even) {
	background-color: #f9f9f9;
}

.selected_data {
	background-color: #313345 !important;
	color:white;
}

/*********** COLS ***********/

.cols {
	display:flex;
	justify-content: space-between;
}
	.two_col > div {
		width:48%;
	}
	
	.three_col > div {
		width:32%;
	}

	.four_col > div {
		width:24%;
	}
	
	.five_col > div {
		width:19%;
	}
	
	.six_col > div {
		width:15%;
	}

	.one_third > div:first-child {
		width:32%;
	}
	.one_third > div:last-child {
		width:66%;
	}
	.two_thirds > div:first-child {
		width:66%;
	}
	.two_thirds > div:last-child {
		width:32%;
	}
/*********** DETAIL DATA ***********/

.detail {
	height:100%;
	width:100%;
}

.detail > .module_data {
	margin: 8px 0 0 8px;
    padding-left: 16px;
    /* max-width: 400px; */
    font-weight: bold;
	font-size: 1.2em;
    height: calc(100% - 20px);
    overflow: auto;
    direction: rtl;
	text-align: left;
}

.detail > .module_data > div {
	margin-bottom:5px;
	direction: ltr;
}
.detail_title {
	font-size:1.5em;
	font-weight:bold !important;
	display: inline-block;
}

.detail .module_data > div > span:first-child {
	font-weight:normal;
	vertical-align: top;
	padding-right: 10px;
}

/* overrides for previous statement .. yes, I know this is bad. Sometimes elegance is not the first choice */
.detail_title span {
	font-weight: bold !important;
	padding: 0 !important;
}

#related_detail .detail_title::after {
	content:'' !important;
}

	/*#last20 {
		display: block;
		position: absolute;
		top: 73px;
		left: 506px;
		background-color: #000000d4;
		height: 250px;
		width: 345px;
		z-index: 2;
		color: white;
		font-weight:bold;
		padding:10px;
	}
		#last20content > div {
			margin-bottom:4px;
			cursor: pointer;
		}
		#last20content > div:hover {
			text-decoration: underline;
		}*/

/*********** DATA ***********/

.data {
	display:block;
    font-family: monospace;
	font-weight:bold;
	background-color:#e0e8ed;
	width:100%;
	border-bottom:1px solid #333 !important;
	margin:0;
}
	div.data {
		padding: 1px 0 0 5px;
	}
	
	.filldown {
		/* background-color: #ecc283; */
		background-image: url(../img/i_cursor.png);
		background-repeat: no-repeat;
		background-position-x: right;
		background-position-y: center;
	}

.being_modified {background-color:#6ea7ff !important;}
.pending_save {background-color:#ffeb3b !important;}
.flash_green {background-color:green !important;}
.invalid_input {color:red;font-weight:bold;}
.edited_from_nodejs {color:#a94200;}
.orange {color:#ff6400;}

.data_title {
	font-size:1.1em;
	font-weight:bold;
	padding-bottom:5px;
}

.data_preview {
    font-family: monospace;
	font-weight:bold;
	height:17px;
	margin-left:10px;
	background-color: inherit;
}

.field_title {
	cursor: pointer;
	font-size: 1.15em;
	padding-top: 2px;
}

/*********** MENU ***********/

.hamburger {
	position:absolute;
	height:28px;
	width:30px;
	background-image:url(/img/menu.png);
	background-size:contain;
	background-repeat:no-repeat;
	cursor:pointer;
}

.menu {
	position:absolute;
	top:0;
	right:0;
	width:200px;
	height:100%;
	background-color:#333;
	display:none;
	overflow-y: auto;
	overflow-x: hidden;
	white-space: nowrap;
}
	.menu div {
		width: 100%;
		font-size: 1.2em;
		color:white;
		padding:10px 20px;
		border-bottom: 1px solid white;
		cursor:pointer;
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}
	.menu div:hover {
		background-color:#555;
	}

	.small_code {
		font-family:monospace;
		font-size:.9em;
	}
	
#dataset_menu {
	left:0;
}

#last20_menu {
	width:300px;
}
/*********** RELATED LIST ***********/

.related_list_container {
	height:100%;
}

.related {
	height:100%;
}

.related_list {
	display:none;
	height:100%;
}

.shown_related_list {
	display:block !important;
}

/*********** BUTTONS ***********/

.delete {	
    background-color: #b10000;
    padding: 1px 3px 1px 3px;
    margin-left: 5px;
    font-size: .9em;
}

.closer {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 15px;
    height: 15px;
    border-radius: 7px;
    padding-left: 4px;
    color: white;
    background-color: red;
    box-shadow: 1px 1px 2px 0px #676767;
    font-weight: bold;
    font-size: 12px;
    line-height: 12px;
    cursor: pointer;
}

#main_buttons {
	position:absolute;
	top:0;
	right:0;
	display:flex;
}
	#main_buttons button {
		margin-left: 10px;
	}

/*********** OVERLAY ***********/

#overlay_container { z-index: 1001 }
#data_overlay_container { z-index: 1000 }

.overlay_container {
	position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay {
    width: 800px;
    padding: 20px;
    position: relative;
    margin: 50px auto 0 auto;
    z-index: 1001;
	background-color: white;
    border: 2px solid #e0e8ed;
    max-height: 80%;
    overflow: auto;
}
	.pop-detail {
		margin-left: 10px;
	}
	.overlay_close {
		position: absolute;
		top: 0;
		right: 10px;
		color: #7b7b7b;
		font-size: 20px;
		font-family: sans-serif;
		font-weight: bolder;
		cursor: pointer;
		padding: 10px;
	}
/*********** FILLDOWN ***********/
	
#filldown_container {
	position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1003;
}

#filldown {
	position:absolute;
	top:0px;
	left:0px;
	max-height: 100px;
	overflow:auto;
	background-color:white;
	z-index:1002;
}

/*********** AGENCY MANAGER ***********/

#agency_mgr_new {
	top: 40px;
	left: 20px;
	background-color:inherit;
	padding:10px;
}

	#agency_mgr_new_txt {
		font-size:1.2em;
	}

#agency_mgr_left {
	width: 320px;
	height: 200px;
	top: 160px;
	left: 20px;
}

#agency_mgr_add_child {
	top: 380px;
	left: 115px;
	background-color:inherit;
	padding:10px;
}

#agency_mgr_right {
	width: 320px;
	height: 200px;
	top: 40px;
	left: 370px;
}

#agency_mgr_children {
	width: 320px;
	height: 200px;
	top: 280px;
	left: 370px;
}


/*********** CHAT ***********/

#chat_open {
    position: fixed;
    bottom: 10px;
    right: 10px;
    height: 60px;
    width: 60px;
    background-color: #dcdcdc;
    background-image: url(../img/chat.png);
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #313345;
    border-radius: 5px;
    cursor: pointer;
}
	.notified {
		background-color: #feff4d !important;
	}

#chat {
	position:fixed;
	bottom:20px;
	right:20px;
	display:none;
}
	#chat_close {
		position: absolute;
		top: -4px;
		right: -4px;
		height: 20px;
		width: 20px;
		text-align: center;
		font-size: 16px;
		padding-top: 5px;
		background-color: #ef4545;
		border-radius: 8px;
		cursor: pointer;
		color: #313345;
		font-family: monospace;
		font-weight: bold;
		line-height: 10px;
	}
	#chat_text_container {
		height: 400px;
		width: 300px;
		background-color: white;
		border-top: 2px solid #313345;
		border-bottom: 2px solid #313345;
		background-color: #d0e7f6;
		box-shadow: inset 0px 0px 3px #000000c2;
		overflow: auto;
		direction: rtl;
		text-align: left;
		padding-left: 10px;
	}
	#chat_send_container {
		padding: 10px;
		background-color: #dcb1b1;
		box-shadow: inset 0px 0px 3px #000000c2;
	}
	.chat_msg_container {
		padding: 5px 0 0 10px;
		margin-top: 3px;
		border-top: 1px solid #0000001f;
		direction: ltr;
	}
	.chat_msg {
		font-size: 16px;
	}
	.chat_msg_sender,.chat_msg_to {
		margin-left: 10px;
		font-size: 10px;
	}
	#chat_send_txt {
		width: 200px;
		margin-right: 20px;
	}


/*********** OTHER ***********/

#system_status {
	position:fixed;
	top:5px;
	width:280px;
	text-align: center;
	padding:10px;
	border: 2px solid black;
	background-color:yellow;
	display: none;
		
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.tip_content {
	display:none;
}
.code {
	padding-left:10px;
	font-family: monospace;
	white-space: pre;
}

.clearer {
	clear:both;
}