/* ======= ======= ========= ======= ======= */
/* ======= ======= STRUCTURE ======= ======= */
/* ======= ======= ========= ======= ======= */

 html {
	min-height: 100%;
	/* The following two lines corrected the scrolling lag issues on the iphones */
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
 /*	margin-bottom: 10%; */
 }
header {
  height: 10%;
}
/*
body {
  display: block;
  height: 100%;
  width: 100%;
  margin: 0;
 padding: 0;
 padding-bottom: 5%;
  margin-bottom: 60px;	
  font-size: 16px;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

* {
  transition: color 0.25s linear,
    background-color 0.25s linear,
    background-image 0.25s linear;
}

header {
  display: table-row;
  width: 100%;
}
*/
#main {
  display: block;
 /* min-height: 100%; */
  position: relative;
  width:75%;
  float: right;
	height: 100%;	
}
/*
.headerContainer {
	width: 100%;
	text-align: center;
	height: 20%;
} 

.frontContainer {
  max-width: 1300px;
  min-width: 320px; 
	

  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;

  padding: 0;

}

.loginContainer {
  max-width: 1300px;
  min-width: 320px;

  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;
 
  height: 100%; 
 padding-bottom: 5%;

}
.frontContainer > * {
  text-align: left;
}

.headerContainer > * {
  text-align: left;
}

.container {
 max-width: 1300px;
  min-width: 320px; 
  width: 75%;	

  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;

  padding: 0;
  float: right;
}

.container > * {
 text-align: left;
}
*/
.leftbar {
	float: left;
	width: 25%;
	overflow: hidden;
	margin: 0;
}
/*
======= ======= ============= ======= =======
======= ======= TAG OVERRIDES ======= =======
======= ======= ============= ======= =======
.clear {
  clear: both;
}

p {
  line-height: 150%;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 5px 0px 5px 0px;
  padding: 0px;
  font-weight: bold;
}

h1 {
  font-size: 220%;
}

h2 {
  font-size: 150%;
}

h3 {
  font-size: 120%;
}

a:link, a:visited {
  color: #E6A523;
  text-decoration: none;
}

a:hover {
  color: #FF0000;
}

a.btn {
  color: #FFFFFF;
}

a img {
  border: none;
}

ul {
  padding: 0;
  margin: 0;
  line-height: 1.5em;
  list-style: none;
}

label {
 user-select: none; 
}


*/
body {
  display: block;
  min-height: 100%; 
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
 /* padding-bottom: 10%;
  margin-bottom: 60px;	 */
  font-size: 16px;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  position: fixed;
  top: 0;	
}

.mainContainer {
	min-height: 100%;
/*	height: auto !important; */
	height: 100%; 
	width: 100%;
	position: relative;
	display: block;
	padding: 0px;
	/* margin: 0 auto -10%; */
}

.content-container {
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 2%;
  padding bottom: 2%;				
}

.middle {
	height: 82%; 
	width:100%;
	position: relative; 
	/*padding-bottom: 5%; */
	padding-left: 0;
	padding-right: 0;
	/* padding-top: 2%; */
	display: block;
   /* min-height: 100%; */
	overflow: visible; 
	max-height: inherit;
}

.middle > .content {
  padding-left: 15%;
  padding-right: 15%;
  /*padding-bottom: 30px;*/
	
/*	margin-bottom: -99999px;
	padding-bottom: 99999px; */
}

.match-cols {
	overflow-y: scroll; 
	position: relative;
	height: 100%; 
	/* height: inherit; */
	max-height: inherit;
	display: block;
	/* padding-bottom: 10%; */
}

.match-cols [class*="col-"]{
/*	margin-bottom: -99999px;
	padding-bottom: 99999px;  */
}

/*======= ======= ====== ======= =======*/
/*======= ======= HEADER ======= =======*/
/*======= ======= ====== ======= =======*/
/*
header > .container {
  height: 40px;
} */

header #logo {
  display: inline-block;
 /* width: 250px; */
  height: auto;
  margin-left: 5%;	
 /* padding: 2%; */
  padding-left: 1%;
  top: 3;
  position: absolute;
  z-index: 10;
}

header #logo img {
  width: 100%;
  height: auto;
}

header .main-color-bar {
  background-color: #F50107;
  border-bottom: 8px solid #981A1A;
  height: 2em;
}

header .main-color-bar.small {
  height: 2em;
}

header nav {
  float: right;
  /*margin: 2%;*/
  padding-right: 5%;
}

header nav a:link, header nav a:visited {
  color: #f50107;
  font-weight: bold;
}

header nav a:hover {
  color: #5f5f5f;
}

header .container-fluid {
	min-height: 100%;
	padding: 0;
	margin: 0;
}

header .container-fluid .row1 {
	min-height: 50%;
	padding: 1%;
}

header .container-fluid .bottom {
	bottom: 0;
}
/*======= ======= ====== ======= =======*/
/*======= ======= FOOTER ======= =======*/
/*======= ======= ====== ======= =======*/

footer {
  background-color: #383D43;
  color: #FFFFFF;
  display: block;
  text-align: left;	
  width: 100%;
 height: 8%;
/* line-height: 60px; */

}

footer > .container > .content {
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 2%;	
 /* height: 10%; */
}

.footer {
	background-color: #383D43;
	text-align: left;
}
/*
footer > .frontContainer > .loginContainer {
  padding-left: 20px;
  padding-right: 20px;
}

.footerContainer {
	width: 100%;
	text-align: center;
	height: 20%; 
	position: absolute;
	bottom: 0;
} 

======= ======= ==== ======= =======
======= ======= MAIN ======= =======
======= ======= ==== ======= =======
*/
#main > .container > .content {
  padding-left: 20px;
  padding-right: 20px;
}
/*

.loginContainer > .frontContainer > .content {
  padding-left: 20px;
  padding-right: 20px;
}

======= ======= ========== ======= =======
======= ======= CHECKBOXES ======= =======
======= ======= ========== ======= =======
:root input[type=checkbox].custom-checkbox {
  display: none;
}

:root input[type=checkbox].custom-checkbox + label:before {
  position: relative;
  visibility: visible;
  content: "";
  display: inline-block;
  width: 37px;
  height: 31px;
  background: transparent url('/images/forms/checkbox_off.png') no-repeat center center;
  background-size: 37px 31px;
  padding-left: 15px;
}

:root input[type=checkbox].custom-checkbox:checked + label:before {
  background: transparent url('/images/forms/checkbox_on.png') no-repeat center center;
  background-size: 37px 31px;
}

:root input[type=radio].custom-radio {
  display: none;
}

:root input[type=radio].custom-radio + label:before {
  position: relative;
  visibility: visible;
  content: "";
  display: inline-block;
  width: 37px;
  height: 31px;
  background: transparent url('/images/forms/radio_off.png') no-repeat center center;
  background-size: 37px 31px;
  padding-left: 15px;
}

:root input[type=radio].custom-radio:checked + label:before {
  background: transparent url('/images/forms/radio_on.png') no-repeat center center;
  background-size: 37px 31px;
}



======= ======= ========== ======= =======
======= ======= TEXT INPUT ======= =======
======= ======= ========== ======= =======
input[type=text],
input[type=password],
input[type=tel],
textarea {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #AAAAAA;
  width: 100%;
  transition: box-shadow 0.25s linear;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=tel]:focus,
textarea:focus {
  box-shadow: 0 0 5px #E6A523;
}

.has-error input[type=text],
.has-error input[type=password],
.has-error input[type=tel],
.has-error textarea {
  border: 1px solid #AA0000;
  background-color: #FFEEEE;
}

.has-error input[type=text]:focus,
.has-error input[type=password]:focus,
.has-error input[type=tel]:focus,
.has-error textarea:focus {
  box-shadow: 0 0 5px #AA0000;
}

.has-success input[type=text],
.has-success input[type=password],
.has-success input[type=tel],
.has-success textarea {
  border: 1px solid #006600;
  background-color: #EEFFEE;
}

.has-success input[type=text]:focus,
.has-success input[type=password]:focus,
.has-success input[type=tel]:focus,
.has-success textarea:focus {
  box-shadow: 0 0 5px #006600;
}

select {
  padding: 5px;
}

input[type=text][readonly],
input[type=password][readonly],
input[type=tel][readonly],
textarea[readonly] {
  background-color: #EBEBE4;
}


======= ======= ====== ======= =======
======= ======= LABELS ======= =======
======= ======= ====== ======= =======
form .form-group.required label.control-label:after,
label.required:after {
  content:" (required) ";
  color:red;
  font-size: 70%;
  position: relative;
  top: -5px;
}

.control-label {
  color: #333333;
  font-weight: bold;
  font-size: 85%;
  margin: 5px 0 3px 0;
  display: block;
  text-align: left;
}

.help-block-error {
  height: 1em;
  margin: 5px 0 1em 0;
  padding: 0;
  font-size: 0.9em;
  text-align: left;
}

.help-block-error {
  color: #AA0000;
}

======= ======= ======= ======= =======
======= ======= BUTTONS ======= =======
======= ======= ======= ======= =======
.message-indicator {
  display: inline-block;
  vertical-align: center;
  margin: 5px;
  padding: 0;
  position: relative;
  padding: 0 20px 0 0;
  color: #B0C2D3 !important;
  float: right;
}

.message-indicator:before {
  display: inline-block;
  vertical-align: bottom;
  width: 2em;
  height: 2em;
  margin: 0;
  padding: 0;
  content: " ";
  background-image: url('/images/icons/email_gry.png');
  background-repeat: no-repeat;
  background-position: 0px 5px;
  background-size: cover;
}

button {
  border: none !important;
}

.btn {
  display: inline-block;
  text-align: center;
min-width: 115px;
  background-color: #999999;
  color: #FFFFFF;
  padding: 10px;
  margin: 5px;
  text-decoration: none;
  border-radius: 3px;
  WTF Linux Chrome is pulling font-size and font-family from OS appearance settings
 font-size: inherit;
  font-family: inherit;

  user-select: none; 
}

.btn:hover {
  background-color: #AAAAAA;
}

.btn:active {
  box-shadow: inset 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.customer-search-result-attribute {
  display: inline-block;
  margin: 5px 35px 10px 5px;
  vertical-align: top;
}

.customer-search-result {
  border-bottom: 1px solid #444444;
}

.btn-primary {
  background-color: #337AB7;
}

.btn-success {
  background-color: #5CB85C;
}

.btn-info {
  background-color: #5BC0DE;
}

.btn-warning {
  background-color: #F0AD4E;
}

.btn-danger {
  background-color: #D9534F;
}


*/
/*======= ======= ===== ======= =======*/
/*======= ======= POPUP ======= =======*/
/*======= ======= ===== ======= =======*/
#popup-outer {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute;
  z-index: 100;
  display: none;
}

#popup-inner {
  min-width: 300px;
  max-width: 800px;
  height: 400px;
  background-color: #FFFFFF;
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 20px auto 0 auto;
  padding: 0 8px 0 8px;
}

#popup-content {
  width: 100%;
  height: 100%;
}

#popup-close {
  float: right;
  margin: 5px;
}

.alert {
  width: 100%;
  margin: 5px auto 5px auto;
  border: 1px solid #444444;
  border-radius: 5px;
  text-align: center;
  padding: 10px;
  background-color: #FFFFAA;
}

.alert-success {
  background-color: #AAFFAA;
}

.alert-error {
  background-color: #FFAAAA;
}

 #customer-search {
 	margin-top: 10%;
}

#main-navbar-collapse {
	margin-bottom: 0;
}

.image-preview {
  width: 10%;
  height: 10%;		
}

.krajee-default .file-preview-image {
  max-width: 100%;
}

.navbar {
	padding: 0;
	margin: 0;
}

.navbar-collapse {
	padding: 0;
}
.navbar-toggle {
	padding-right: 2%;
}
.navbar-fixed-bottom {
	position: relative;
}
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
	margin-left: 2%;
}

.image-row {
	padding: 2%;
	margin: 2%;
}
@media (max-width: 992px) {
	.leftbar {
	 width: 100%;
	}
	
    #main {
	 width: 100%;
	}
	
	.middle {
	 overflow: scroll;
	}
	
}
/*======= ======= ===== ======= =======*/
/*======= ======= RJW ADDED === =======*/
/*======= ======= ===== ======= =======*/
.item-block {
	background-color:#ccccff;
	margin: 3px 0;
}
/* Hide the element */
#item-template {
	display: none;
}