body{ font: 14px sans-serif; }
body.center {text-align: center;}
#loader {
	position: fixed;
	top: 50%;
	left: 50%;
	overflow: hidden;
	height: 100vh;
	width: 100vw;
	z-index: 99999;
}
.content { padding: 0 20px; }
.content-spacer { margin-bottom: 20px; }
.wrapper{ max-width: 500px; padding: 20px; margin: 0 auto;}
.wrapper-wide{ max-width: 900px; padding: 20px; margin: 0 auto;}
.wrapper-uwide{ max-width: 1600px; padding: 20px; margin: 0 auto;}
.wrapper-left{ margin: 0; }
.table{ width: 100%; max-width: 100%; margin: 0 auto 20px auto; }
.ordtxt {
	white-space: break-spaces !important;
}
.select2{
    max-width: 100%;
}
.attachment_file:focus {
	color: #7c2323;
}
a.attachment_file:visited {
	color: #7c2323;
}

.form-control.targetdate-success {
	background-color: #5cb85c;
	color: #fff;
}
.form-control.targetdate-fail {
	background-color: #d9534f;
	color: #fff;
}

.navbar-default .navbar-nav > li > a.archiv {
	color: #ff3c00;
}

.bg_number {
	background-color: rgba(232, 232, 232, 0.5);
}
.bg_project, .bg_coater {
	background-color: rgba(255, 251, 234, 0.5);
}
.bg_ordertext {
	background-color: rgba(250, 255, 213, 0.5);
}
.bg_sheduled {
	background-color: rgba(237, 251, 255, 0.5);
}
.bg_dest {
	background-color: rgba(241, 237, 255, 0.5);
}
.bg_store {
	background-color: rgba(255, 237, 237, 0.5);
}
.bg_sheduled span {
	font-size: 11px;
	font-weight: 700;
}

.coat-group {
	margin-left: 10px;
}
.coater-date-org {
	display: block;
	margin-top: 5px;
	margin-bottom: 10px;
	margin-left: 10px;
	color: #ababab;
}
.coater-info {
	display: block;
	margin-top: 5px;
	margin-bottom: 10px;
	margin-left: 10px;
	color: #e38e20;
}
.hidden {
	display: none;
}

/* Bedarfsliste */
.row-header {
	margin-top: 5px;
}
.row-head {
	border: 1px solid #efefef;
    padding: 12px;
    text-align: center;
}
.row-contents {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
}
.row-content {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
	border: 1px solid #efefef;
	padding: 2px;
}
/* Transportliste */
.ip-nb {
	border: 0 none;
}
.curstore {
	font-size: 12px;
}
/*.ta-nb {
	position: absolute;
	left: 0px;
	border: none;
	height: 100%;
	width: 100%;
	top: 0;
	margin: 0;
	padding: 0 8px;
	resize: none;
}*/
[data-bestellt="1"] {
	background-color: #def6ff;
}
td.has_comment input {
	border-style: dashed;
}
td.ta-nb {
	padding: 0 !important;
}
.ta-nb textarea {
	padding: 5px;
	resize: vertical;
	border: none;
	width: 100%;
	min-height: 48px;
}
.tour-fields .ta-nb textarea {
	min-height: 54px;
}
.tour-date {
	display:inline-block;
	min-width:88px;
	font-weight:bold;
}
select.sl-nb {
	/*width: 100%;
	max-width: 250px;*/
	min-height: 20px;
	padding: 5px;
	border: none;
}
span[title="Logistik"] {
	color: rgb(128, 53, 7) !important;
}
span[title="Lagerist"] {
	color: rgb(12, 98, 0) !important;
}
span[title="Werk 3"] {
	color: rgb(255, 75, 75) !important;
}
span[title="Werk 5"] {
	color: rgb(60, 56, 177) !important;
}
input.chkbox-center {
	display: flex;
	margin: auto;
}
.dml-fields .div_kommissioniert {
	border: none;
}
.dml-fields .lbl_kommissioniert, .tour-fields td {
	position: relative;
}
.dml-fields input[name="kommissioniert"] {
	position: absolute;
	display: block;
	top:0;
	left:0;
	margin: 0;
	height: 100%;
	width: 100%;
	border: none;
	padding: 10px;
	box-sizing: border-box;
}
.tour-fields td input {
	margin: 0;
	height: auto;
	width: auto;
	border: none;
	padding: 10px;
	box-sizing: border-box;
}
.fs-8 {
	font-size: 0.8575em;
}
td .missing-input {
	background-color: rgb(255, 128, 128);
}
span.select2-selection.missing-input {
	border-color: rgb(255, 128, 128);
}
td .correct-input {
	background-color: #dff0d8;
}
.bg-success {
	background-color: #dff0d8;
}
.tpl-fields input:disabled, .tpl-fields textarea:disabled, .dml-fields input:disabled, .dml-fields textarea:disabled, .tour-fields input:disabled, .tour-fields textarea:disabled, .ord-fields input:disabled, .ord-fields textarea:disabled, {
	background-color: rgb(242, 242, 242);
}
.tpl-fields textarea, .ord-fields textarea {
	resize: both !important;
}
.tour-fields input.activeShedule {
	background-color: rgba(189, 213, 173, 0.5);
}

.pos_arrows {
	font-size: 22px;
	text-align: center;
	width: 50%;
}
.pos_arrows a {
	color: #000;
}
.pos_arrows a:hover, .pos_arrows a:active {
	text-decoration: none;
}
.row-contents .del-pos {
	width: 24px;
	height: 24px;
	margin-left: 15%;
}
.dml-first-cell {
	flex-direction: row;
	padding-top: 18px;
}

/* Fertigungsplan */
tr.prod-fields:nth-child(even) {
	background-color: #f9f9f9;
}
tr.prod-fields textarea {
	height: 34px;
}

/* Baustelleninfo */
#total-progress {
	opacity: 0;
	transition: opacity 0.3s linear;
}
#previews p {
	margin: 10px 0;
}
.head-row {
	font-weight: bold;
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 5px;
	border-bottom: 1px solid #efefef;
}
.file-row {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #efefef;
}
.files {
	margin-bottom: 10px;
}
.parts span {
	border: 1px solid #efefef;
	border-radius: 5px;
	padding: 3px;
	margin-right: 2px;
	background-color: #efefef;
	cursor: pointer;
}
.parts span.selected {
	background-color: #d6eca5;
}
.old_version {
	margin-left: 5px;
	color: #f00;
	font-weight: bold;
}
h4.plan_head {
	font-weight: bold;
	padding: 5px;
	font-size: 22px;
	border-bottom: 2px solid #b77726;
}

/* BSB */
.bsb-panels .panel-title {
	display: inline-block;
}
.bsb-panels .panel-title span.day {
	display: inline-block;
	width: 100px;
}
.bsb-panels .panel-title span.date {
	display: inline-block;
	width: 100px;
	font-weight: bold;
}
.bsb-panels .panel-group {
	margin-bottom: 10px;
}
.timetype-usr, .timetype-drv, .timetype-km {
	line-height: 23px !important;
}
.bsb-tsize input, .bsb-tsize select, .bsb-tsize textarea, .bsb-tsize span {
	font-size: 19px;
}
span.label-info {
	font-size: 14px;
}
#lastweek, #curweek, #nextweek {
	cursor: pointer;
}
.bsb-panels h4 {
	cursor: pointer;
}
.day_count {
	font-weight: 700;
	margin-left: 10px;
}
.day_count_ok {
	color: #389938;
}
.day_count_missing {
	color: #ff0000;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.select2-container .select2-selection--single {
	height: 34px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 34px;
}

.fahrer-liste, .arbeiter-liste, .storages-liste {
	margin: 0;
	padding: 0;
}
.fahrer-liste li, .arbeiter-liste li, .storages-liste li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.list-button {
	vertical-align: middle;
	cursor: pointer;
	font-size: .875rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: 0 0;
}
.list-button img {
	vertical-align: middle;
	border: 0;
}
.list-div {
	height: 28px;
	margin-top: 28px;
}

/* General */
.form-inline {
	display: inline-block;
}
.fs-90 {
	font-size: 90%;
}
.pl-0 {
	padding-left: 0;
}
.pt-30 {
	padding-top: 30px;
}
.mtb-0 {
	margin-top: 0;
	margin-bottom: 0;
}
.mt-0 {
	margin-top: 0;
}
.mt-6 {
	margin-top: 6px;
}
.mb-0 {
	margin-bottom: 0;
}
.mb-5 {
	margin-bottom: 5px;
}
.mb-8 {
	margin-bottom: 8px;
}
.mb-10 {
	margin-bottom: 10px;
}
.mb-12 {
	margin-bottom: 12px;
}
.mb-20 {
	margin-bottom: 20px;
}

/* BSK */
.jumbotron {
	text-align: center;
	padding-top: 2px;
	padding-bottom: 2px;
	background-color: rgba(245,245,245,0.8);
}
.jumbotron h3 {
	color: #337ab7;
}
.jumbotron p {
	font-size: 16px;
}
.product-line {
	padding: 5px 0;
	border-left: 1px solid #efefef;
	border-right: 1px solid #efefef;
}
.last_selected, .last_selected:focus {
	border-color: #ff8300;
}
.part-amount {
	background-color: rgba(255,255,0,0.4);
}
.full-amount {
	background-color: rgba(0,255,0,0.2);
}

input:disabled, textarea:disabled, input:disabled::placeholder, textarea:disabled::placeholder {
	-webkit-text-fill-color: currentcolor; /* 1. sets text fill to current `color` for safari */
	opacity: 1; /* 2. correct opacity on iOS */
}

.has-error .select2-container--default .select2-selection--single {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.bsk_td_ba {
	padding: 0 2px;
}
.panel {
	cursor: pointer;
}

/* Media Querys */
.show-mobile-only {display: none;} 
@media only screen and (min-width:768px) {
	li.divider { border-left: 2px solid #e7e7e7; }
	/* Baustellenberichte */
	.pager { text-align: left; }
	.ordtxt {
		max-width: 100px;
		white-space: break-spaces !important;
	}
	.shorten-text {
		white-space: nowrap !important;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
@media only screen and (max-width:650px) {
	.row-contents { margin-bottom: 20px; }
	.hide-mobile { display: none !important; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}
@media only screen and (max-width:768px) {
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
}
@media all and (-ms-high-contrast:none)
{
	.tour-fields td input { height: auto; } /* IE10 */
	*::-ms-backdrop, .tour-fields td input { height: auto; } /* IE11 */
}
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}

/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}
/* ----------- iPhone 6, 6S, 7 and 8 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}
/* ----------- iPhone 6+, 7+ and 8+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}
/* ----------- iPad 1, 2, Mini and Air ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
	.row-contents { margin-bottom: 20px; }
	.show-mobile-only {display: block;}
	.panel-heading { padding: 10px 2px; }
}
@media only screen and (max-device-width: 374px) {
	.bsb-panels .panel-group {
		margin: 0 -10px;
	}
	.row-contents { margin-bottom: 20px; }
}


@media (max-width: 1400px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
   .navbar-nav .open .dropdown-menu {
       position: static;
       float: none;
       width: auto;
       margin-top: 0;
       background-color: transparent;
       border: 0;
       -webkit-box-shadow: none;
       box-shadow: none;
    }
}


/* CSS for smaller view spaces */
@media screen and (max-width: 768px) {

    /* hide table headings */
    .jim-table-responsive table thead {
        display: none;
    }

    /* treat rows like divs */
    .jim-table-responsive table tr {
        display: block;
        border-top: 2px solid lightgray; /* separate row data with thicker line */
        margin-top: 5px;
    }

    /* treat columns like divs */
    .jim-table-responsive table td {
        display: block;
        text-align: right; /* text to right */
    }

    /* this part is ugly, but necessary to show label on left */
    .jim-table-responsive table td:before {
        content: attr(data-label);
        float: left; /* label to left */
        font-weight: 700;
    }
}