h5 {
    font-weight:700;
}

hr.small {
    margin-top: 5px;
    margin-bottom: 5px;
}

.errorlist {
    list-style:none;
    color:red;
    margin-left:0px;
}
.select2 {
	width:500px;
}
.bundles {
	margin:0px 40px 20px;
}
div.datepicker {
	  z-index:1052;
}
.modal form {
	margin:0px;
}
#big_generic_modal {
	width:800px;
	/*max-height:600px;*/
	left:50%;
	margin-left:-400px;

}
.form-horizontal .control-group {
	margin-bottom:10px;

}
.dropdown-menu {
	z-index:1200;
}
/*.stockresults th {
	background:lightgrey;
}*/
div.branddiv table {
	margin-bottom:10px;
}
div.branddiv td, div.branddiv th {
	text-align:center;
	margin-left:0px;
	margin-right:0px;
	vertical-align: middle;
}
@media (min-width:1600px) {
    .hidden-xl {
        display:none;
    }
}
@media (max-width:1599px) {
    .visible-xl {
        display:none;
    }
}
div.branddiv th {
	font-weight:400;
	background-color:#eaeaea;
	margin:0;
	padding:0;
}
.stockresults div.alt {
	background:#eeffff;
}
span.eol {
	color:red;
}
span.replacement {
    color: red;
    display: block;
}
.pricetrackersort label {
	width:100px;
	float:left;
	line-height: 32px;
}
.pricetrackersort .select2 {
	width:100%;
	float:left;
}
.pricetrackersort td {
	width:45%;
}
.pricepositions td {
	line-height:40px;
}
span.red {
	color:red;
}
span.green {
	color:green;
}
span.yellow {
	color:orange;
}
/*.pricetrackersort {
	display:none;
}*/
#wrap {
        min-height: 100%;
        height: auto !important;
        height: 100%;
        /* Negative indent footer by it's height */
        margin: 0 auto -100px;
      }

/* Set the fixed height of the footer here */
#push,
#footer {
height: 120px;
}
#footer {
/*background-color: #f5f5f5;*/
	background-color: #1B1B1B;
	display:none;
	color: #999999;
	float:left;
	position:fixed;
	clear:both;
	left:0px;
	width:100%;
	bottom:0px;
}
html,
body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */
}
.ui-selecting { background: #FECA40; }
.ui-selected { background: #F39814; color: white; }
.exceldata select {
	width:auto;
}
.newbrand,.newcategory {
	display:block;
}
.tyyppi .form-group {
	margin-bottom:5px;
}
.tyyppi .form-horizontal .control-label {
	padding-top:3px;
}
.tyyppi input.form-control {
	height:25px;
	padding:3px 12px;
}
.tyyppi .input-group-addon {
    padding:3px 12px;
}
.tyyppi .tyyppi-langspecific {
    display:none;
}
.tyyppi .tyyppi-langspecific.active {
    display:block;
}
.contenteditable {
	min-height:25px;
	border-bottom: 1px dashed #0088CC;
	width:100%;
}
.contenteditable:focus {
	color: #0088CC;
}
.table-condensed {
	font-size:0.9em;
}
.tyyppi .panel-heading {
	padding:4px 15px;
}
.tyyppi .panel {
	margin-bottom:10px;
}
#maincontent .tab-pane {
	padding-top:10px;
}
#maincontent > .nav-tabs a {
	padding: 5px;
}
#maincontent > .nav-tabs a button {
	margin-left:5px;
}
#maincontent > .tab-content > .tab-pane, #tplist .tab-pane {
	overflow-y:auto;
	padding-right:15px;
	padding-bottom:15px;
}
#tyyppiimages-products {
    overflow-y:auto;
}
.tyyppiimages-products-container {
    padding: 0 15px;
    border:1px solid #ddd;
    background-color: #fdfdfd;
}
#tyyppiimages-productimages > .tab-content {
    overflow-y:scroll;
    overflow-x:hidden;
}
@media (min-width:768px) {
	.container {
		/*max-width:95%;*/
		width:100%;
	}
}
@media (min-width: 768px) {
  .wiki-container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .wiki-container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .wiki-container {
    width: 1170px;
  }
}
.vertical-track {
    width: 10px;
    background: rgba(0, 0, 0, 0);
    margin-right: 2px;
    border-radius: 10px;
    -webkit-transition: background 250ms linear;
    transition: background 250ms linear;
}

.vertical-track:hover,
.vertical-track.dragging {
    background: #d9d9d9; /* Browsers without rgba support */
    background: rgba(0, 0, 0, 0.15);
}

.vertical-handle {
    width: 7px;
    right: 0;
    background: #999;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 7px;
    -webkit-transition: width 250ms;
    transition: width 250ms;
}

.vertical-track:hover .vertical-handle,
.vertical-track.dragging .vertical-handle {
    width: 10px;
}
.page-header {
	margin:0 0 20px 0;
}
.page-header h1 {
	margin:0;
}
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top:0;
    left:100%;
    margin-top:-6px;
    margin-left:-1px;
    -webkit-border-radius:0 6px 6px 6px;
    -moz-border-radius:0 6px 6px 6px;
    border-radius:0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
    display:block;
}
.dropdown-submenu>a:after {
    display:block;
    content:" ";
    float:right;
    width:0;
    height:0;
    border-color:transparent;
    border-style:solid;
    border-width:5px 0 5px 5px;
    border-left-color:#cccccc;
    margin-top:5px;
    margin-right:-10px;
}
.dropdown-submenu:hover>a:after {
    border-left-color:#ffffff;
}
.dropdown-submenu.pull-left {
    float:none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
    left:-100%;
    margin-left:10px;
    -webkit-border-radius:6px 0 6px 6px;
    -moz-border-radius:6px 0 6px 6px;
    border-radius:6px 0 6px 6px;
}

.banner img {
    height:auto;
    max-width:150px;
}
.active-banners .banner img {
    height:auto;
    max-width:200px;
    width:100%;

}
.active-banners .form-group {
    margin-bottom:0px;
}
.active-banners .control-label {
    padding-top:3px;
}
.active-banners .form-control {
    padding:3px 6px;
}
.active-banners form {
    width:auto;
}
.active-banners .banner:first-child .banner-up,.active-banners .banner:last-child .banner-down {
    display:none;
}
.banner .control-label, .banner .help-block, .banner .form-control {
    font-size:11px;
}
.banner .help-block {
    margin-bottom:5px;
}
.tyyppi-other-images img {
    height:50px;
    width:50px;
    border:1px solid lightgrey;
    margin:0px 5px;
}
.active-images p, .available-images p {
    padding: 15px;
    font-size:14px;
    font-weight:700;
}
.active-images img, .available-images img {
    height:auto;
    max-width:100%;
}
.active-images img  {
    width:100%;
    max-width:175px;
}
.active-images > form.sortable {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: auto;
}
.active-images > form.sortable > div {
    padding: 15px;
}
@media (min-width:767px) {
    .active-images > form.sortable > div {
        width: 100%;
    }
}
@media (min-width:768px) {
    .active-images > form.sortable > div {
        width: 50%;
    }
}
@media (min-width:1200px) {
    .active-images > form.sortable > div {
        width: 33.3333%;
    }
}
@media (min-width:1800px) {
    .active-images > form.sortable > div {
        width: 25%;
    }
}
.active-images > form.sortable > div.ui-state-highlight {
    margin: 15px 0;
    padding: 0;
}

.active-images .fa-bars {
    cursor: move;
}

.active-images .thumbnail {
    margin-bottom: 0;
}
.imagecropcontainer {
    text-align:center;
    margin-bottom:20px;
    position:relative;
}
.imagecropcontainer img {
    width:100%;
    max-width:600px;
    margin-left:auto;
    height:auto;
    border:1px solid grey;
}
.jcrop-holder {
    margin:0 auto;
}
.fa-spinner {
    margin-right:5px;
}
.tyyppiimages-product.danger {
    display:none;
}
.select2-results {
    max-height:450px;
}
.tyyppi-competitorprices {
    max-height: 400px;
    overflow:auto;
}
table.product-campaignprices.table, table.product-deliverytimes.table {
    background:none;
    }
table.product-campaignprices.table > tbody > tr > td, table.product-deliverytimes.table > tbody > tr > td {
    border-top-color:#bababa;
}
table.product-campaignprices.table>thead>tr>th, table.product-deliverytimes.table>thead>tr>th {
    border-bottom-color: #bababa;
}
.tyyppi-campaignprices .list-group-item:not(.list-group-item-danger) {
    background:none;
}
.tyyppi-campaignprices .nav > li,
.tyyppi-restrictions-toggle {
    background-color:#d9edf7;
}
.tyyppi-restrictions-toggle {
    text-align: center;
    display: block;
    color: #555;
    padding: 10px 15px;
    cursor: pointer;
}


@media (min-width: 768px) {
    .tyyppi > .tab-content {

        margin-left:235px;
        width:auto;
    }

    .search-page-actions {
        width:220px;
        position:absolute;
    }
}
.search-container .tyyppi > .tab-content {
    margin-left:0;
    width:auto;
}



/* Tyyppi search page */
.search-results-container {
    position:relative;
}
#maincontent .nav-tabs {
    min-height:42px;
}
.search-results > .tab-content {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.search-results-opened > .tab-content {
    /*position:relative;*/
    overflow-y:scroll;
    transition : all .5s linear;
}
.search-result-tyyppi-id,
.search-result-product-stock {
    width:30%;
}
/* Seach bar closed */
.search-results-closed .search-results .nav-tabs,
.search-results-closed .search-results .tab-content {
   display:none;
}
.search-results-closedcontainer {
    display:none;
}
.search-results-closed .search-results-closedcontainer {
    margin-top:42px;
    display:block;
    width:100%;
    height:200px;
    /*line-height:200px;*/
    color:#428bca;
    background-color: #f5f5f5;
    border:1px solid #ddd;
    text-align:center;
}
.search-results-closed .search-results-closedcontainer p {
    width: 80%;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
}
/* Search bar open */
.search-results-open .search-results .nav-tabs,
.search-results-open .search-results .tab-content {
    display:block;
}

.search-container.has-opened-results .search-result-tyyppi-id,
.search-container.has-opened-results .search-result-product-stock {
    width:131px;
}
.search-container.has-opened-results .search-result-tyyppi-name a,
.search-container.has-opened-results .search-result-product-name a {
    display:inline-block;
    width:306px;
}
.search-results, .search-results-opened {
    /*float:left;*/
    position:relative;
    padding-left:15px;
    padding-right:15px;
}
.search-results {
    max-width:700px;
    width:100%;
    float:left;
    position:absolute;
    z-index:50;
}
.search-results table {
    width:100%;
    max-width:700px;
}
.search-container .search-page-actions {
    position: absolute;
    top: 250px;
    left: -235px;
    /*z-index: 100;*/
    width: 220px;
}

.search-result-tyyppi-name a,
.search-result-product-name a {
    text-transform: uppercase;
}

/*.search-container.has-opened-results .search-results .search-result-tyyppi-id,
.search-container.has-opened-results .search-results .search-result-product-stock {
    display:none;
}*/
.search-container.has-opened-results .search-results {
    width: 250px;
    
}
.search-container.has-opened-results .search-results table {
    width:437px;
}
#tplist .tab-content, #tplist .tab-pane {
    overflow-x:hidden;
    background-color:#fff;
}
.search-results .nav-tabs {
    z-index:-1;
}
.search-results .tab-pane {
    background-color:#fff;
}
.search-results-opened {
    width:auto;
    margin-left:250px;
}
.search-results-open .search-results-opened > .tab-content:after {
    content: " ";
    background-color: black;
    transition : all .5s linear;
    opacity: 0.6;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
}
.search-results-open .search-results-opened > .tab-content {
    position:relative;
}
.tyyppi .page-header {
    display:none;
}
/*.search-results-closed .search-results .nav-tabs,
.search-results-closed .search-results .tab-content {
    display:none;
}
.search-results-closed .search-results-closedcontainer {
    
}*/

.tyyppi-featured-and-catalogues hr {
    margin: 5px 0;
}
.tyyppi-featured-products-product, .tyyppi-catalogue-product, .tyyppi-featured-header {
    padding:5px 10px;
    border-bottom:1px solid #eee;
}
.tyyppi-featured-actionsrow, .tyyppi-catalogue-actionsrow {
    margin-top:10px;
}
.show-on-hover {
    display:none;
}
.show-on-hover-trigger:hover .show-on-hover {
    display:block;
}
.pricepositions .tooltip-inner { 
    width:400px;
    max-width: 400px;
    background-color:#fff; 
    border:1px solid grey;
    color:#333;
}
.pricepositions .tooltip.in {
    opacity: 1;
}
.sort {
    cursor: pointer;
}
.form-group.tyyppi-benefits {
    margin-top: 30px;
    margin-bottom: 30px;
}
.tyyppi-benefits-container {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.tyyppi-benefit.old {
    border-top: 1px solid #eee;
    padding: 10px 0 10px;
    margin: auto;
    position: relative;
    display: flex;
}
.tyyppi-benefit.old > div {
    width: 100%;
}
.tyyppi-benefit.old:first-child {
    border-top: 0;
    padding-top: 0;
}
.tyyppi-benefit.old .fa-bars {
    font-size: 20px;
    cursor: move;
    z-index: 100;
    padding-right: 10px;
}
.tyyppi-benefit.new .fa-bars {
    display: none;
}
#toast-container > div {
    opacity: 0.9;
}
@media (min-width: 400px) {
    #toast-container > div {      
    width: 400px;
    }
}

.receipts-container {
    display: flex;
    flex-wrap: nowrap;
}
.receipts-results {
    width: 400px;
}
.receipts-preview {
    font-family: 'Courier';
    font-size: 12px;
    padding: 20px;
    -webkit-column-count: 2;
      -moz-column-count: 2;
           column-count: 2;

   -webkit-column-gap: 20px;
      -moz-column-gap: 20px;
           column-gap: 20px;
}
.tyyppiproducts .product .wholesale_fields h3,
.tyyppiproducts .product .wholesale_fields p,
.tyyppi-wholesale h3 {
    text-align: center;
}
.tyyppi-wholesale > div:last-child > div:last-child > *:last-child {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee
}
