/* 
    Document   : application
    Created on : Jul 30, 2013, 11:47:16 AM
    Author     : Toxus/Jaap
    Description:
        Bootstrap application extension
*/

.waiting {
  width: 100px;
  height: 100px;
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.5;
  margin: auto;
  z-index: 10;
}

.bs-container {
	min-height: 500px;
	padding-top: 38px;
}

.bs-header {
    font-size: 21px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
    color: #5A5A5A;
    font-size: 16px;
		padding-bottom: 20px;
}

.bs-header h1 {
    font-size: 60px;
    line-height: 1;
}
.items .panel-title {
	max-height: 36px;
  overflow: hidden;
}

/** next try */
/*
 * Side navigation
 *
 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
 * sections of docs content.
 */

/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
  position: fixed;
	top: 80px;
	width: 173px;
}

.bs-sidebar.affix-top {
	width: 173px;
}

.bs-nav-searchbar {
	margin-top: 10px;
}

/* First level of nav */
.bs-sidenav {
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top:    10px;
  padding-bottom: 10px;
  text-shadow: 0 1px 0 #fff;
  background-color: #f7f5fa;
  border-radius: 5px;
}

/* All levels of nav */
.bs-sidebar .nav > li > a {
  display: block;
  color: #716b7a;
  padding: 5px 20px;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
  text-decoration: none;
  background-color: #e5e3e9;
  border-right: 1px solid #dbd8e0;
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
  font-weight: bold;
  color: #563d7c;
  background-color: transparent;
  border-right: 1px solid #563d7c;
}

/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
  display: none; /* Hide by default, but at >768px, show it */
/*  margin-bottom: 8px; */
}
.bs-sidebar .nav .nav > li > a {
  padding-top:    3px;
  padding-bottom: 3px;
  padding-left: 30px;
  font-size: 90%;
}

.nav-form {
    padding: 10px;
}
.nav-form label {
    color: #A9A9A9;
    display: block;
    font-weight: normal;
    padding-bottom: 0;
    padding-top: 0;
}
.bs-nav-toolbar {
	padding-top: 6px;
}
@media screen and (min-width: 768px) {
	.bs-sidebar.affix-top {
		width: 173px;
	}

}

/* Show and affix the side nav when space allows it */
@media screen and (min-width: 992px) {
  .bs-sidebar .nav > .active > ul {
    display: block;
  }
  /* Widen the fixed sidebar */
  .bs-sidebar.affix,
	.bs-sidebar.affix-top,
  .bs-sidebar.affix-bottom {
    width: 213px;
  }
  .bs-sidebar.affix {
    position: fixed; /* Undo the static from mobile first approach */
    top: 50px;
  }
  .bs-sidebar.affix-bottom {
    position: absolute; /* Undo the static from mobile first approach */
  }
  .bs-sidebar.affix-bottom .bs-sidenav,
  .bs-sidebar.affix .bs-sidenav {
    margin-top: 0;
    margin-bottom: 0;
  }
}
@media screen and (min-width: 1200px) {
  /* Widen the fixed sidebar again */
  .bs-sidebar.affix-bottom,
	.bs-sidebar.affix-top,
  .bs-sidebar.affix {
    width: 263px;
  }
}


.bs-sidenav {
    background-color: #F7F5FA;
    border-radius: 5px 5px 5px 5px;
    margin-bottom: 30px;
    margin-top: 30px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-shadow: 0 1px 0 #FFFFFF;
}

.navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus {
	background-color: #dbd0eb;
}

.bs-sidebar .nav > .active > a, .bs-sidebar .nav > .active:hover > a, .bs-sidebar .nav > .active:focus > a {
    background-color: transparent;
    border-right: 1px solid #563D7C;
    color: #563D7C;
    font-weight: bold;
}

.bs-footer {
    border-top: 1px solid #E5E5E5;
    margin-top: 100px;
    padding-bottom: 30px;
    padding-top: 40px;
}
.bs-footer p {
    color: #777777;
    margin-bottom: 0;
}


.footer-links {
    margin: 10px 0;
    padding-left: 0;
}
.footer-links li {
    display: inline;
    padding: 0 2px;
}
.footer-links li:first-child {
    padding-left: 0;
}


.bs-page-header {
	background-color: #F7F5FA;
  border-color: #DDDDDD;
	border-radius: 4px 4px 0 0;
	border-width: 1px;
	box-shadow: none;
	margin-left: 0;
	margin-right: 0;
	padding: 10px;
}
.bs-page-info {
	color: #BBBBBB;
	font-size: 12px;
	font-weight: bold;
	left: 15px;
	letter-spacing: 1px;
	position: absolute;
	text-transform: uppercase;
	top: 15px;	
}
.bs-page-control {
	color: #BBBBBB;
	font-size: 12px;
	font-weight: bold;
	left: 15px;
	letter-spacing: 1px;
	position: absolute;	
	top: 15px;	
  text-align: right;
}
.header-toolbar {
	float : right;
	margin-top: -40px;
	margin-right: 14px;
}

/* making as summery list */
.comma-list-summary {
	padding-left: 0px;
	margin-bottom: 0px !important;
}
.comma-list {
	display: inline;
}
.comma-list:after {	
	content: ', ';
}
.comma-list:last-child:after
{
  content: '';
}

/**
 fix browser incompatibility 
 */
 @media screen and (-webkit-min-device-pixel-ratio:0) {

 select {
	 -webkit-appearance:none;
	 background: url(dropdown.png) no-repeat right 10px !important;
	 padding-right: 15px;
	 background-color: white !important;
 }
 }
 /* fix chosen incompatible */
 .chosen-container .search-field input {
	 padding: 0px;
 }
 .chosen-container .chosen-choices {
	 border: none !important;
	 background-image: none !important;
 }
 .chosen-container .search-choice {
	 margin: 0 10px 0 0 !important;
 }
 .chosen-single > span {
	 margin-top: -2px;
 }
 .chosen-choices input {
	 height: 20px;
 }
 /*end chosen fix */

 /**
 codeMirror
 autoresize
*/
.CodeMirror {
  border: 1px solid #eee;
  height: auto !important;
}
.CodeMirror-scroll {
  overflow-y: hidden;
  overflow-x: auto;
}
 
/**
  for BootstrapLinkPager
*/

.hide-it {
	display: none !important;
}

/* for the dialog wait */
.wait-icon {
	width: 50%;
  margin: 0 auto;	
	text-align: center;
}
.id-wait {
	margin-top: 30px;
	margin-bottom: 30px;
}
/* creating a wider modal defintion: http://stackoverflow.com/questions/10169432/how-can-i-change-the-default-width-of-a-twitter-bootstrap-modal-box */

body .modal-preview {
 /* new custom width */
	width: 750px;
	/* must be half of the width, minus scrollbar on the left (30px) */
	margin-left: -375px;	
}

/* to center an input (login, message) on an empty screen */
.msgbox-layout {
	margin-top: 40px;
	margin-left: 40px;
	padding: 20px 20px;
	
}
.msgbox-layout h5 {
	font-size: 150%;
}
.border {
	-moz-box-shadow: 0 0 1px gray;
  -webkit-box-shadow: 0 0 1px gray;
   box-shadow: 0 0 1px gray;
}
.border-space {
	padding: 20px;
	border-radius: 20px;
	margin-bottom: 40px;
}

.no-left-padding {
	padding-left:0px !important;
}
.no-horz-padding {
	padding-left:0px !important;
	padding-right:0px !important;			
}
.no-horz-margin {
	margin-left:0px !important;
	margin-right:0px !important;			
}
.no-right-padding {
	padding-right:0px !important;		
}
.no-top-padding {
	padding-top:0px !important;		
}
.no-bottom-padding {
	padding-bottom:0px !important;			
}
.no-vert-padding {
	padding-bottom:0px !important;			
	padding-top:0px !important;			
}
.no-padding {
	padding: 0px;
}

input.input-date {
	width: 30%;
}
.pagination .selected {
  font-weight: bold;
}
.small {
  font-size: 60%;
}
.menu-modal {
	cursor: pointer;
}

/* the top navigation */
.navbar-left {
	display:inline-block;
}
.navbar-right {
	float: right !important;
	display:inline-block;
}

.list-layout li {
	display: inline-block !important;
	margin-left: 15px;
}
/** using div as a table */
.grid-header {
	border-bottom: solid 3px lightgray;
	font-weight: bold;
	font-size: 110%;
}
.grid-row {
	border-bottom: solid 1px lightgray;
	margin-bottom: 0px;
	padding-top: 3px;
	padding-bottom: 5px;
}
.grid-row:hover {
	background-color: #EEEEEE;
}
.sort-key {
	cursor: pointer;
}
.grid-col-no-wrap {
	white-space: nowrap;
	overflow: hidden;
}
.items {
	width: 100%;
	display: inline-block;
}
/* for the twitter typeahead */

.typeahead-wrapper {
	display: block;
	margin: 50px 0;
}
.twitter-typeahead {
	width: 100%;
}
.tt-query {
	width: 100%;
}
.tt-dropdown-menu {
	background-color: #fff;
	border: 1px solid #eee;
	width: 100%;
	-moz-border-bottom-colors: none;
	-moz-border-left-colors: none;
	-moz-border-right-colors: none;
	-moz-border-top-colors: none;
	-moz-box-sizing: border-box;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
	background-clip: padding-box;
	border-radius: 4px;
	margin-top: 9px;	
}

.tt-suggestion.tt-is-under-cursor {
	background-color: #ccc;
}

.triggered-events {
	float: right;
	width: 500px;
	height: 300px;
}
.tt-dataset-search-related p {
	margin-bottom: 0px; 
}
.tt-suggestion {
	padding: 5px 15px 0px 15px;
}
.tt-suggestion p {
	margin: 0 0 2px;
}
.tt-hint {
	display: none;
}

/* the system messages */

.tx-message .panel {
	margin-top: 140px;
}
.tx-message .panel-body {
	min-height: 100px;
}

.menu-button {
	margin-left : 5px;
}

body.dragging, body.dragging * {
  cursor: move !important;
}

.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

ol.drag-list li.placeholder {
  position: relative;
  /** More li styles **/
}
ol.drag-list li.placeholder:before {
  position: absolute;
  /** Define arrowhead **/
}
ol.vertical li {
    background: none repeat scroll 0 0 #EEEEEE;
    border: 1px solid #CCCCCC;
    color: #0088CC;
    display: block;
    margin: 3px;
    padding: 3px;
}
ol.simple_with_animation {
	padding-left: 0px;
}

/* marking a panel as a list */
.panel-no-padding {
	padding-left: 0px;
	padding-right: 0px;
}
.panel-item-full {
	padding-left: 14px;
	padding-right: 14px;	
}
.mark-active {
	background-color: #ECF4F6;
	background-image: url(../images/arrow.png);
	background-repeat: no-repeat;
	background-position: 2px 4px;
}

/* twitter typeahead 0.10  cursor position */
.tt-cursor {
	color: white;
	background-color: #5BC0DE;
	padding-bottom: 2px;
}
/* article layout */
.article-content td {
	vertical-align: top;
}
/* to fadeout add a div with class fadeout. In the container class add class fadded */
div.fadeout {
	height:200px; 
	width:100%; 
	position:fixed; 
	bottom:0;
	background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(95%,rgba(255,255,255,1)));
	background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
}

div.fadded {
	margin-bottom: 200px;
}

/* layout of search in the grid */
.grid-tile {
	min-height: 200px;
	max-height: 200px;
	overflow: hidden;
}
.grid-tile h4, .grid-wide h4 {
	color: #444444;
	font-size: 14px;
	margin-bottom: 0px;
}
.grid-tile:hover, .grid-wide:hover {
	background-color: #F8F8F8 !important;
}
.grid-tile .label, .grid-wide .label{
	width: 20%;
	color: lightgray;
	vertical-align: top;
	display: inline-block;	
	margin-top: 4px;
	text-align: right;
}
.grid-tile .field, .grid-wide .field {
	width: 80%;
	color: #666;
	display: inline-block;	
}
.grid-tile hr, .grid-wide hr {
	margin-top: 2px;
	margin-bottom: 2px;
}
.grid-row .trunc {
	overflow: hidden;
}
.grid-row a {
	color: #666;	
}
.grid-wide {
	border-bottom: 1px lightgray solid;
	padding-bottom: 3px;
	padding-top: 3px;
}

.article-content td:nth-child(2) {
	width: 70px;
	color: gray;
	text-align: right;
	font-size: 70%;	
	padding-top: 6px;
}
