/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}


/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

#sidebar_main_wrapper {
	display: flex;
	position: relative;
	width: 100%;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
@media (min-width: 768px) {
  .sidebar {
	 width: 250px;
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 7px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
  font-size: 16px;
}
.nav-sidebar > li > a.nolink {
  color: #666;
  cursor: auto;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #fff;
  background-color: #428bca;
}
.nav-sidebar > li > a.nolink:hover {
  color: #666;
  background-color: #f5f5f5;
}
.nav-sidebar > li > ul {
}
.nav-sidebar > li > ul > li > a {
  color: #222;
  font-size: 14px;
}
.nav-sidebar > li > ul > li.active > a {
  font-weight: bold;
}


/*
 * Main content
 */

.main {
  padding: 20px;
  width: 100%;
  margin-left: 250px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}



/* TEMPLATE ENDE */


.icon { vertical-align: middle; margin: -4px 3px 0 3px; }

.cl {
	clear: both;
}
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }







/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

div#index-view .grid-view .table th {
    white-space: nowrap;
    vertical-align: middle;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}





div#index-view div.outer_search {
	/* float: left; */
	margin-bottom: 10px;
}
div#index-view div.outer_search input[type="text"] {
	width: 250px;
}
div#index-view div.outer_search .btn {
	margin:0;
	margin-top: -10px;
}

div#index-view div.action_buttons {
/*
	float: right;
	margin-left:30px;
*/
}
div#index-view div.action_buttons a.btn {

	padding: 6px 12px 3px 12px;
}

div.grid-view .summary {
	margin-bottom: 15px;
}

div.grid-view th.action-column, div.grid-view td.action {
	width: 170px;
	max-width: 170px;
}

div.grid-view tr.filters input {
	text-align:center;
}

div.grid-view img {
	max-width:100px;
	background-color:#ccc; /* for transparent white pngs */
}

/* for svg */
div.grid-view td.action a {
	font-size: 18px;
	padding: 0 3px 0 3px;
}
/*
div.grid-view td.action .glyphicon {
	font-size: 22px;
	padding: 0 3px 0 3px;
}
*/

/* not in use
div.grid-view .glyphicon.history-field {
	font-size: 14px;
}
* */
div.grid-view .glyphicon-trash {
	color: #f14949;
}
div.grid-view td.action {
	white-space: nowrap;
}
div.grid-view th, div.grid-view td {
	text-align: center;
}

div#detail-view img {
	max-width: 400px;
	background-color:#ccc; /* for transparent white pngs */
}

div#detail-view div.headline {
	float: left;
}
div#detail-view div.headline h1 {
	margin-top:0;
}
div#detail-view div.action_buttons {
	float: right;
	margin-left:30px;
}


div.admin_next_prev {
	float: right;
  margin-right: 10px;
  margin-top: -50px;
}
div.admin_next_prev a {
  font-size: 22px;
}
div.admin_next_prev a.prev {
  display: inline-block;
}
div.admin_next_prev a.next, div.admin_next_prev a.up {
	display: inline-block;
	margin-left: 10px;
}

div.action_after_success {
	/* margin-top: 50px; */
	opacity: 0.5;
}

#admin_history h3 { margin-top: 50px; }
#admin_history td.empty { opacity: 0.2; /* background-color: #fff2f2;  background-image: url(../img/stripe.png); */ }
#admin_history td a.load_field { display: none; }


div.grid-view {
	max-width: 700px;
}
div.grid-view.medium {
	max-width: 1000px;
}
div.grid-view.large {
	max-width: 1200px;
}
div.grid-view.xl {
	max-width: 1400px;
}
div.grid-view.xxl {
	max-width: 100%;
}
div.create-update-form {
	max-width: 500px;
}


.myrow50 {
    display: flex;
    width: 100%;
    justify-content: space-between;

    margin-left: -16px;
    padding: 0 8px;
}
.myrow50 > div {
	 flex-basis: 50%;
    flex-grow: 0;
	 flex-shrink: 0;
    max-width: 50%; 
    margin: 0 8px;
}


.my_add_icon, .my_remove_icon {
    font-size: 22px;
    color: #4e8cce;
    cursor: pointer;
}
.my_remove_icon {
    color: #f14949;
}


.float8020, .float2080 {
	width: 100%;
}
.float8020 > div:nth-child(1) {
	width: 80%;
	float: left;
	padding-right: 10px;
}
.float8020 > div:nth-child(2) {
    width: 20%;
    float: right;
}

.float2080 > div:nth-child(1) {
	width: 20%;
	float: left;
}
.float2080 > div:nth-child(2) {
    width: 80%;
    float: right;
    padding-left: 10px;
}

.my_flex_header {
	padding-bottom: 0px;
	margin: 0 0 20px;
	border-bottom: 1px solid #eeeeee;
	display: flex;
	justify-content: center;
}


.bootstrap-touchspin input {
	text-align: center
}


.select2-container--krajee-bs3 .select2-selection--single .select2-selection__clear, .select2-container--krajee-bs3 .select2-selection--multiple .select2-selection__clear {
	position: absolute;
	top: -3px;
	font-size: 30px;
}

.has-success .form-control {
	border-color: #ccc;
}



/*
 * BUCHUNG-INDEX
*/

.buchung-index .mail_sent_buchung {
	color: #ff9d46;
}





@media print {
	.noprint { display: none !important; }

	body {
	  padding-top: 0px;
	}

	.main {
	  margin-left: 0px;
	}
}


