/**
 * Layout
 */

/*
html {
	overflow-y: scroll;
}
*/

body {
	/*
    padding-top: 50px;
    */
}

body.noscript .script,
body.script .noscript {
	display: none;
}

body > .container-fluid {
	margin-top: 20px;
	/*min-height: 300px;*/
}

#header {
	margin-top: -20px;
	background-color: #f8f8f8;
  border-bottom: 1px solid #286090;
  margin-bottom: 20px;
}

#header h1 {
	margin-top: 10px;
	font-size: 14pt;
}


.footer {
	border-style: solid;
  border-width: 1px 0 1px 0;
  border-color: #e7e7e7;
	padding: 10px 0;
  /*background-color: #f5f5f5;*/
  text-align: right;
  margin-bottom: 20px;
}
.footer p {
	margin: 0;
}

/**
 *
 */

.has-error .text-muted {
    color: #737373 !important;
}
/*
.modal-open {
	overflow: visible !important;
}
.modal-open .modal {
	overflow-y: visible !important;
}
*/
/*
body.noscript .toolbar,
body.noscript div.datatable .table-search,
*/
body.noscript .datatable .table input[type="checkbox"] {
	display: none;
}

/**
 * NavBar - No javascript css
 */
body.noscript .navbar-nav > li:hover > ul.dropdown-menu {
	display: block;
}
/*
body.noscript .navbar-default .navbar-nav > li:hover > a {
    background-color: #225177 !important;
}
*/

/**
 * Navbar
 */
.navbar-nav .dropdown-menu {
	max-height: 800px;
	overflow-y: auto;
}

#mainmenu .navbar-nav .open .dropdown-menu {
	background-color: #fff;
}
#mainmenu.navbar-default {
	border-radius: 0;
	background-color: #0061A1;
}
/*#mainmenu.navbar-default,*/
#mainmenu.navbar-default .navbar-brand,
#mainmenu.navbar-default .navbar-brand:hover,
#mainmenu.navbar-default .navbar-nav > li > a {
	color: #ffffff;
}
#mainmenu.navbar-default .navbar-nav > li > a:hover,
#mainmenu.navbar-default .navbar-nav > .open > a,
#mainmenu.navbar-default .navbar-nav > .open > a:focus,
#mainmenu.navbar-default .navbar-nav > .open > a:hover {
	background-color: #225177;
}

#mainmenu.navbar-default .navbar-nav .active > a {
	background-color: #225177;
}

#secondmenu {
	margin-top: -20px;
}

/**
 * .alert
 */
#messages .alert {
	margin-top: -20px;
	border-radius: 0;
}

/**
 * datatable
 */

.datatable .navbar-default .container-fluid {
	padding-left: 0;
}

.datatable {
	margin-bottom: 15px;
}

.datatable .table th {
	padding: 0;
}
.datatable .table th.check {
	/*padding: 8px;*/
}
.datatable .table th a, .datatable .table th span {
	padding: 8px;
	display: block;
}

.datatable .table th[align=right] {
	text-align: right;
}
.datatable .table th[align=center] {
	text-align: center;
}

.datatable .table th {
	background-color: #dddddd;
	border-right: 1px solid white;
}

.datatable .norecords {
	text-align: center;
	padding: 50px 0;
}
.datatable .norecords,
.datatable .table {
	border-bottom: 5px solid #dddddd;
}

.datatable .table th.sort-asc a,
.datatable .table th.sort-desc a {
	padding-right: 18px;
	background-position: center right;
	background-repeat: no-repeat;
}

.datatable .table th.sort-asc a { background-image: url(../images/datatable/sort_asc.png); }
.datatable .table th.sort-desc a { background-image: url(../images/datatable/sort_desc.png); }

.datatable .table tr:hover td {
	background-color: #eeeeee;
}

.datatable .table {
	margin-bottom: 3px;
}
.datatable nav {
	margin-top: 0;
	margin-bottom: 0;
}

.datatable .datatable-footer .pagination {
	margin-top: 0;
}
.datatable .datatable-footer .navbar-text {
	margin-top: 7px;
}


.form-control[type="file"] {
	height: auto;
}

.file {
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	color: #555;
	display: inline-block;
	padding: 6px 10px;
	margin: 0 5px 5px 0;
}

.file label {
	cursor: pointer;
	display: inline-block;
	font-weight: 400;
	margin: 0 0 0 10px;
	min-height: 20px;
	padding-left: 20px;
	color: #000;
}

.file input[type="checkbox"] {
	line-height: normal;
	margin: 4px 0 0 -20px;
	padding: 0;
	position: absolute;
}

.input-group {
	width: 100%;
}
select {
	padding-left: 8px !important;
}
select option.placeholder {
	color: grey !important;
	display: none;
}

blockquote {
	font-size: inherit;
}

.mce-content-body.container-fluid {
	padding-top: 15px;
	padding-bottom: 15px;
}

.ui-autocomplete .ui-menu-item {
	border-bottom: 1px solid #aaaaaa;
}

.table tbody tr.highlight {
	background-color: #ffffcc;
}
.table.table-hover tbody tr.highlight:hover {
	background-color: #F3FA91;
}

.navbar-default .navbar-toggle {
	border: none !important;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
	background-color: #225177 !important;
}

.navbar-default .navbar-toggle .icon-bar {
	background-color: #fff !important;
}
/*
@media (min-width: 768px) {
	.datatable input[name=table-search] {
		width: 300px !important;
	}
}

@media (min-width: 992px) {
	.datatable input[name=table-search] {
		width: 400px !important;
	}
}

@media (min-width: 1200px) {
	.datatable input[name=table-search] {
		width: 500px !important;
	}
}

@media (min-width: 1300px) {
	.datatable input[name=table-search] {
		width: 600px !important;
	}
}

@media (min-width: 1400px) {
	.datatable input[name=table-search] {
		width: 700px !important;
	}
}

@media (min-width: 1500px) {
	.datatable input[name=table-search] {
		width: 800px !important;
	}
}

@media (min-width: 1600px) {
	.datatable input[name=table-search] {
		width: 900px !important;
	}
}

@media (min-width: 1700px) {
	.datatable input[name=table-search] {
		width: 1000px !important;
	}
}
*/

/*
table.sortable .sorted_table tr {
  cursor: pointer;
}

table.sortable tr.placeholder {
  display: block;
  background: red;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
}
*/

table.sortable .handle-move {
	width: 45px;
	cursor: move;
	color: white;
	/*padding-top: 15px;*/
	text-align: center;
	background-color: #dddddd;
	border-top: 1px solid #ffffff;
	vertical-align: middle;
}

/*
table.sortable tr.placeholder {
	width: auto;
}
table.sortable tr.placeholder:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-left-color: red;
    margin-top: -5px;
    left: -5px;
    border-right: none;
}
*/

a#navigation-back {
	border: 0;
	margin: -7px 0 0 -12px;
}


/**
 * AutoComplete
 */

.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
  z-index: 2000 !important;
}

.ui-autocomplete-values {
	width: 100%;
	display: table;
}

.ui-autocomplete a:not([href]):hover {
	color: inherit;
	text-decoration: inherit;
}

input[data-flow-autocomplete] {
	margin-bottom: 5px;
}

.ui-autocomplete-values > div {
	display: table-row;
	/*border: 1px solid #ccc;*/
	/*
	padding-top: 2px;
	margin-top: 2px;
	*/

	background-color: #eeeeee;
}

.ui-autocomplete-values > div > div,
.ui-autocomplete-values > div > button,
.ui-autocomplete-values > div > a {
	border: 1px solid #ccc;
	display: table-cell;
	vertical-align: middle;
	float: none;
	margin-top: 2px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.ui-autocomplete-values > div > div {
	padding: 3px 6px;
	border-radius: 4px 0 0 4px;
}

.ui-autocomplete-values > div > button,
.ui-autocomplete-values > div > a {
	width: 50px;
	text-align: center;

	cursor: pointer;

	border-left: 0 !important;
	border-radius: 0 4px 4px 0;
}
.ui-autocomplete-values > div > a span {
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
	filter: alpha(opacity=20);
	opacity: .2;
}

.ui-autocomplete-values > div > a:hover {
	text-decoration: none;
}

.ui-autocomplete-values > div > a:hover span {
	text-decoration: none;
	filter: alpha(opacity=40);
	opacity: .4;
}

/**
 * pre
 */
pre.with-lines {
	padding: 0 !important;
	counter-reset: linecounter;
}
pre.with-lines code {
	counter-increment: linecounter;
	white-space: pre;
	/*white-space: pre-wrap;*/

	/*display: block;*/
	/*display: inline-block;*/
}
pre.with-lines code:before {
	color: #999;
	content: counter(linecounter);
	width: 3em;
	display: inline-block;
	border-right: 1px solid #ccc;
	text-align: right;

  padding-left: auto; /* now works */
  margin-left: auto;  /* now works */

  padding-right: 3px;
  margin-right: 3px;
}
pre.with-lines code.highlight {
	background-color: #ffff00;
}

pre.with-lines code span {
	color: #999;
}

pre.with-lines code span:before {
	/*color: #999;*/
	display: inline-block;
	content: attr(content);
}
/*
pre.with-lines code span {
	color: #999;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
*/

/*
pre.with-lines code:first-child,
pre.with-lines code:first-child:before {
	padding-top: 6px;
}
pre.with-lines code:last-child:before {
	padding-bottom: 6px;
}
*/

@media print {

	body {
		font-size: 12px !important;
	}

	#header {
		margin-top: 0;
		border-bottom: 0;
		background-color: transparent;
	}

	#header h1 {
		font-size: 12pt;
	}

	.dl-horizontal dt {
    clear: left;
    float: left;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 120px;
	}
	.dl-horizontal dd {
	    margin-left: 130px !important;
	}

	.footer {
		display: none;
	}

	.noprint {
		display: none;
	}

	.main-barcode {
		position: absolute;
		top: 0;
		right: 0;
	}

  a[href]:after {
    content: none !important;
  }

  a#navigation-back {
  	display: none;
  }

	.table tbody tr.highlight {
		background-color: transparent;
	}

}

