/*!* Bootstrap overwrite *!*/
/**, *::before, *::after {*/
/*  box-sizing: content-box !important;*/
/*}*/

/*input, button, select, optgroup, textarea {*/
/*  line-height: normal !important;*/
/*}*/

/*h1 {*/
/*  font-size: 20px !important;*/
/*  margin: 0 0 20px;*/
/*  font-weight: 300;*/
/*}*/

/*button#popover:hover {*/
/*  cursor: pointer;*/
/*}*/

/*.show-all {*/
/*  float: right;*/
/*  margin-top: 10px;*/
/*  margin-bottom: 5px*/
/*}*/


/*.popover {*/
/*  z-index: 9999;*/
/*}*/

/*a:hover {*/
/*  text-decoration: none !important;*/
/*}*/

/*.btn:focus, .btn.focus {*/
/*  box-shadow: none !important;*/
/*}*/

/*a:focus {*/
/*  text-decoration: none;*/
/*}*/

/*body .btn-secondary {*/
/*  background-color: #999;*/
/*  border: none;*/
/*}*/

/*body .btn-secondary:hover {*/
/*  background-color: #716f6f;*/
/*}*/

/* end bootstratp overwrite */
.popover-body span {
  display: inline-block;
  min-width: 110px;
}

.object-tools a {
  border-radius: 5px;
}

thead th, tfoot td,
#changelist #toolbar {
  border: 1px solid #eee;
}

#content {
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fdfdfd;
  margin: 0 20px 20px;
  padding: 20px 20px;
}

.dashboard #content {
  width: auto;
  margin: 0;
  padding: 20px 40px;
}

.login #header {
  height: auto;
  padding: 5px 10px 0;
}

.login .stockfile, .logout .stockfile, .login .main-logo {
  display: none;
}

.logout #header {
  padding-bottom: 0;
}

.login h1#site-name a {
  background: none;
  background-size: 36%;
  padding-left: 0;
  line-height: 54px;
}

.login #content {
  border: none;
  background: white;
}

.stockfile {
  display: block;
  margin-top: -16px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #555;
}

.stockfile-name {
  background: #f8f8f8;
  padding: 4px 8px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 0 0 5px 5px;
}

ul.messagelist li {
  margin: 0;
}

#header {
  position: relative;
}

#header, #header #branding h1 {
  line-height: 50px;
  font-size: 30px;
}

#branding {
  height: 60px;
  padding: 5px 10px 5px 10px;
  visibility: hidden;
}
.login #branding {
  visibility: visible;
}
#content.colMS {
  margin-right: 0;
}

.dashboard #content-main {
  width: 69%;
}

#content-related {
  width: 30%;
  margin-right: 0;
}

h1#site-name a {
  font-weight: bold;
  padding-left: 0;
  background: url("../img/favicon.1254cab6318f.ico") left center no-repeat;
  display: inline-block;
}

h1#site-name span {
  font-size: 13px;
  font-weight: bold;
  margin-left: 20px;
}

.main-logo {
  height: 90px;
  position: absolute;
  left: 40px;
  top: -6px;
}

.main-logo img {
  height: 90px;
  padding-top: 1px;
}

.inline-group .tabular .dynamic-warehouseline_set td.original p {
  color: red;
  font-size: 14px;
}

.field-_actions, .column-_actions {
  width: 56px;
  text-align: center;
}

.field-_actions a:first-child {
  margin-right: 10px;
}

.text-center {
  text-align: center;
}

.change-list.map .filtered .results, .change-list.map .filtered .paginator, .filtered #toolbar, .filtered div.xfull,
.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull, .open_warehouses_cl {
  margin-right: 250px;
}

.change-list.map #changelist .toplinks {
  border-bottom: 0;
}

.total_quantity {
  float: right;
  margin-right: 255px;
  padding-top: 12px;
}

.total_quantity span {
  background: #ba2121;
  border-radius: 4px;
  padding: 5px;
  color: #fff;
  font-weight: bold;
}

.card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
}

.card {
  margin-right: auto;
  margin-left: auto;
  background-color: #f8f8f8;
  margin-bottom: 25px;
}

.card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 1.25rem;
}

.card-body > div {
  margin-bottom: 25px;
}

.popup .object-tools {
  margin-top: -32px;
}

.popup #content > h1, .popup .object-tools li {
  display: none;
}

.popup .object-tools li.show-always {
  display: block
}
.before-result-list {
  margin-bottom: 5px;
}
#column-shifter {
  float: left;
  margin-right: 6px;
}
.select2-container--default .select2-selection--single span {
  font-weight: normal;
  font-size: 13px;
  text-transform: uppercase;
}

.column-shifter-button, #column-controls .show-all, #column-controls .close {
  outline: none !important;
  background: #999;
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  text-transform: uppercase;
  border: none;
  font-size: 11px;
}


.column-shifter-button:hover, #column-controls .show-all:hover, #column-controls .close:hover {
  background: #716f6f;
  cursor: pointer;
}

#column-controls h2 {
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
}

#column-controls .show-all {
  background: #79aec8;
}

#column-controls .show-all:hover {
  background: #578ca6;
}

.fade.show {
  opacity: 1;
}

.bs-popover-auto[x-placement^=left], .bs-popover-left {
  margin-right: .5rem;
}

#column-controls {
  position: absolute;
  top: -175px;
  right: 405px;
  z-index: 9999;
  display: block;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: .875rem;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .3rem;
  padding: 10px;
  max-width: 320px;
}

.popup #column-controls {
  top: 0 !important;
}

#column-controls span {
  display: inline-block;
  min-width: 150px;
}

#column-controls hr {
  margin-top: 15px;
}

#column-controls .column-controls-footer > div {
  float: left;
  width: 50%;
}

#column-controls .show-all {
  float: none;
  margin-top: 10px;
  margin-bottom: 5px
}

#column-controls .close {
  float: right;
  margin-top: 10px;
  margin-bottom: 5px
}

.model-warehousestock.change-list #changelist #toolbar {
  margin-bottom: 5px;
}

/*media queries*/
@media (min-width: 576px) {
  .card {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  body .dashboard #content-main {
    width: 100%;
  }

  .card {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .card {
    max-width: 960px;
  }
}

@media (max-width: 1024px) {
  body #content-related {
    margin-right: 0;
  }
}

@media (min-width: 1200px) {
  .card {
    max-width: 1140px;
  }
}

/*
  tingle.js
*/
.tingle-modal {
  background-color: #417690 !important;
  z-index: 9999 !important;
}

iframe {
  border-width: 1px;
}

.iframe-modal .tingle-modal-box {
  margin-top: 50px;
}

.iframe-modal .tingle-modal-box {
  width: 98%;
  height: 92%;
}

.iframe-modal .tingle-modal-box__content,
.iframe-modal .tingle-modal-box__content iframe {
  width: 100%;
  height: 100%;
  padding: 0;
}

.iframe-modal .tingle-modal__close {
  top: 10px;
  right: 3rem;
}

.dashboard .dashboard-module h3 {
  padding: 0;
  margin: 0;
  background: none;
  height: auto;
  color: #5B80B2;
  font-size: 15px;
}

.dashboard .dashboard-module-content p {
  margin: 0;
  padding: 6px;
  font-size: 13px;
}

.dashboard-warehouse-wrapper {
  float: left;
  width: 60%
}

.dashboard .container .import-css {
  float: right;
  width: 37%;

}

.dashboard-module {
  margin: 15px 0;
}

.dashboard-module fieldset.module h2 {
  margin: 0;
  padding: 8px;
  font-size: 14px;
  text-align: center;
  height: 28px;
  color: #fff;
  border-radius: 5px 5px 0 0;
  line-height: 28px;
  font-weight: bold;
  background: #417690;
}

.dashboard-module fieldset.module table {
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

.dashboard-module fieldset.module h2 a,
.dashboard-module fieldset.module h2 a:visited,
.dashboard-module fieldset.module h2 a:focus,
.dashboard-module fieldset.module h2 a:active {
  color: white;
}

.dashboard .container .import-css a.load-csv {
  display: block;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 28px;
  color: white;
  letter-spacing: 0.7px;
  border: 1px solid #205470;
  padding: 6px;
  border-radius: 5px;
  background-color: #417690;
  transition: 0.3s;
}

.dashboard .container .warehouse-button a {
  display: block;
  text-align: center;
  font-weight: bold;
  line-height: 28px;
  color: white;
  letter-spacing: 0.7px;
  border: 1px solid #205470;
  padding: 5px;
  border-radius: 5px;
  background-color: #417690;
  transition: 0.3s;
}

.dashboard .container a:hover,
.dashboard .container a:focus,
.dashboard .container a:active,
.dashboard .container a:visited {
  text-decoration: none;
}

.dashboard .container .warehouse-button a:hover,
.dashboard .container .import-css a:hover {
  background-color: #5287a1;
}

.dashboard .container .warehouse {
  padding: 11px;
  border: 1px solid #417690;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #cfeded;
  font-weight: bold;
  color: #417690;
  box-shadow: 4px 6px lightsteelblue;
  /*display: grid;*/
  /*grid-template-columns: 80% 20%;*/
  /*grid-template-rows: 50% 50%;*/
  /*row-gap: 15px;*/
}


.dashboard .container .warehouse .warehouse-name {
  float: left;
}

.dashboard .container .warehouse .warehouse-links {
  float: right;
}

.dashboard .container .warehouse .warehouse-name {
  line-height: 45px;
  width: 75%;
}

.dashboard .container .warehouse .warehouse-links {
  width: 25%;
}

.clear {
  clear: both;
}

.dashboard-module-content .warehouse-name a {
  padding: 6px;
}

.dashboard-module-content a {
  transition: 0.2s;
}

.dashboard-module-content a:hover {
  color: #258;
}

.dashboard .dashboard-module-content,
.dashboard .dashboard-module {
  border: 0;
}

.dashboard .container .warehouse a i,
.dashboard .container .import-css a i,
.dashboard-module fieldset.module h2 i {
  float: left;
}

.dashboard .container .warehouse-button.first {
  margin-bottom: 10px;
}

a.button:focus {
  text-decoration: none;
}

/*.dashboard .container .button.B {*/
/*  border: 2px solid #205470;*/
/*  padding: 8px 5px 0 5px;*/
/*  border-radius: 15px;*/
/*  background-color: #417690;*/
/*  width: 100%;*/
/*  text-align: center;*/
/*  transition: 0.3s;*/
/*  grid-column: 2;*/
/*  grid-row: 2;*/
/*}*/

.dashboard .container .button a {
  color: white;
}

.column-quantity, .field-_warehouses {
  text-align: right;
}

.column-_warehouses {
  text-align: center;
}

.field-quantity {
  font-weight: bold;
  text-align: right;
}

.column-_import_action, .field-_import_action {
  text-align: center;
}

th.column-sscc, td.field-sscc,
th.column-barcode, td.field-barcode,
th.column-warehouse, td.field-warehouse,
th.column-expiry_date, td.field-expiry_date {
  min-width: 75px;
}

td.field-sscc,
td.field-barcode, td.field-warehouse, td.field-expiry_date {
  word-break: break-all;
}
input[name='expiry_date__range__gte'],
input[name='expiry_date__range__lte'] {
  max-width: 65px;
  font-size: 12px;
}
.field-warehouse.nowrap {
  white-space: normal;
  word-break: break-word;
}

#result_list .row1, #result_list .row2, #changelist-filter {
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

#changelist-filter {
  border-bottom: 1px solid #eee;
}

.changelist-filter-footer {
  margin-bottom: 0;
  margin-top: -5px;
}

#changelist-filter .changelist-filter-footer h2 {
  margin-bottom: 0;
}

.object-tools a:focus, .object-tools a:hover {
  background-color: #716f6f;
}

ul.warehouses-buttons li {
  display: inline;
  list-style-type: none;
}

ul.warehouses-buttons li a {
  color: white;
  background-color: #28a745;
  padding: .25em .4em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  margin-right: 3px;
}

ul.warehouses-buttons li a.default {
  background-color: #447e9b;
}

ul.warehouses-buttons {
  padding-right: 0;
  margin: 0;
}

ul.warehouses-buttons li a:hover {
  background-color: #058412;
}

ul.warehouses-buttons li a.default:hover {
  background-color: #036;
}

ul.warehouses-buttons li:last-child a {
  margin-right: 0;
}

ul.warehouses-buttons li:last-child a:hover,
ul.warehouses-buttons li:last-child a:focus,
ul.warehouses-buttons li:last-child a:visited {
  text-decoration: none;
}

ul.warehouses-buttons li a.no-link {
  background-color: #999;
}

ul.warehouses-buttons li a.no-link:hover {
  cursor: default;
  background-color: #999;
}

.buttons-extra {
  margin-bottom: 5px;
}

.buttons-extra .open_warehouses_cl {
  float: right;

}

#result_list thead tr:last-child th {
}

.model-warehousestock.change-list:not(.map) .total_quantity {
  margin-right: 5px;
}

.button.submit_filters {
  height: 28px;
  display: inline-block;
  margin: 0 0 0 -3px;
  line-height: 24px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

th .button.submit_filters {
  width: 95%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-left: 0;
  height: 23px;
  line-height: 20px;
}

th .select2-selection.select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.model-warehousestock.change-list:not(.map) .buttons-extra .open_warehouses_cl {
  margin-right: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  min-height: 33px;
}

.model-warehousestock.change-list .before-result-list .select2.select2-container.select2-container--default {
  width: 90% !important;

}

.select2-container--default .select2-selection--single {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

#filter-controls {
  float: left;
  width: 250px;
}
#reset-filters {
  float: left;
}
.column-shifter-button {
  height:28px;
}
#reset-filters a.button {
  display: inline-block;
    outline: none !important;
    background: #999;
    border-radius: 4px;
    padding: 6px 12px;
    color: #fff;
  height: 16px;
    line-height: 16px;

  margin:0;
    text-transform: uppercase;
    border: none;
    font-size: 11px;
}
span:focus {
  outline: none;
}

.open_warehouses_cl {
  margin-bottom: 5px;
  text-align: right;
  color: #666;
}

.map .open_warehouses_cl {
  margin-bottom: 15px;
}

.title_wl .open_warehouses_cl {
  margin-bottom: 5px;
  text-align: left;
  color: #666;
}

.open_warehouses_cl > span:last-child {
  margin-right: 0
}
#container {
  overflow-x: hidden;
}
#content > .title_wl span.warehouse_cl {
  font-size: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

/* Fix warehousestock changelist */
th .admindatefilter p {
  position: relative;
  margin-bottom: 2px;
}

th .admindatefilter form p:first-child {
  margin-top: 0;
}

th .admindatefilter p input {
  border: 1px solid #aaa;
}

/*th.column-expiry_date {*/
/*  min-width: 140px;*/
/*}*/
div.modified .select2-selection.select2-selection--multiple {
  border: 1px solid #716f6f;
  background: #fbfbfb;
}
button.modified {
  background-color: #716f6f;
}
button.modified:hover {
  background-color: #605e5e;
}
.model-warehousestock.change-list:not(.map) #changelist-filter {
  display: none;
}

.model-warehousestock.change-list:not(.map) .results,
.model-warehousestock.change-list:not(.map) #toolbar,
.model-warehousestock.change-list:not(.map) .paginator {
  margin-right: 0;
}

.model-warehousestock.change-list #result_list th {
  vertical-align: top;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  font-size: 9px;
  line-height: 12px;
}

.select2-dropdown.select2-dropdown--below {
  min-width: 175px;
}

/*.select2-container--default .select2-results__option[aria-selected=true] {*/
/*  background: white;*/
/*}*/
/*.select2-container--default .select2-results__option[aria-selected=true]:hover,*/
/*.select2-container--default .select2-results__option[aria-selected=true]:active,*/
/*.select2-container--default .select2-results__option[aria-selected=true]:focus {*/

/*  background: #5897fb;*/
/*}*/

.select2-container--default .select2-results__option[aria-selected=true]:before {
  content: url("../img/icon-yes.d2f9f035226a.svg");
  margin-right: 5px;
}

/* End fix warehousestock changelist */

@media (max-width: 1200px) {
  .dashboard .container .warehouse .warehouse-name {
    width: 60%;
  }

  .dashboard .container .warehouse .warehouse-links {
    width: 40%;
  }
}

/*@media (max-width: 1457px) {*/
/*  .open_warehouses_cl {*/
/*    float: left;*/
/*    margin-left: 600px;*/
/*    margin-top: -100px;*/
/*  }*/
/*}*/


