html,
body {
    height: 100%;
}

hr {
    margin-top: 15px;
    margin-bottom: 15px;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container,
.wrap > .container-fluid{
    padding: 70px 15px 20px;
}

.break{
    word-break: break-all;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {

}

.grid-view th a.asc,
.grid-view th a.desc
{
    padding-right: 20px;
    position: relative
}

.grid-view th a.asc:after,
.grid-view th a.desc:after{
    right: 0px;
    bottom: 3px;
    top: auto;
    position: absolute;
}

.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;
}

.cursor-pointer{
    cursor: pointer;
}

.multiselect-container>li>a{
  padding: 0;
}
.multiselect-container>li>a>label {
  margin: 0;
  height: 100%;
  cursor: pointer;
  font-weight: 400;
  padding: 3px 20px 3px 40px;
}

.ui-datepicker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  *border-right-width: 2px;
  *border-bottom-width: 2px;
  color: #333333;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.428571429;
}
.ui-datepicker{
  box-shadow: 5px 5px rgba(102, 102, 102, 0.1);
  border: 1px solid #efefef;

  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
}
.ui-datepicker th,
.ui-datepicker td{
  padding: 0px 5px;
}
.ui-datepicker:before {
  content: '';
  display: inline-block;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
  border-top: 0;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  position: absolute;
}
.ui-datepicker:after {
  content: '';
  display: inline-block;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  border-top: 0;
  position: absolute;
}
.ui-datepicker:before {
  top: -7px;
}
.ui-datepicker:after {
  top: -6px;
}
.ui-datepicker table {
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ui-datepicker table tr td,
.ui-datepicker table tr th {
  text-align: center;
  width: 30px;
  height: 30px;
  border-radius: 4px !important;
  border: none !important;
}
.ui-datepicker table tr td a,
.ui-datepicker table tr th {
  background-color: transparent !important;
  border: none !important;
}
.ui-datepicker table tr td:hover,
.ui-datepicker table tr td.focused {
  background: #eeeeee !important;
  cursor: pointer;
}
.ui-datepicker table tr td.old,
.ui-datepicker table tr td.new {
  color: #999999;
}
.ui-datepicker table tr td.ui-datepicker-current-day{
  background-color: #ffdb99 !important;
  border-color: #ffb733 !important;
}
.ui-datepicker table tr td.ui-datepicker-current-day a{
  color: #000000;
}
.ui-widget-header{
  background: none;
  border: none
}
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover{
  top: 2px
}
.ui-datepicker .ui-datepicker-prev-hover{
  left: 2px
}
.ui-datepicker .ui-datepicker-next-hover{
  right: 2px
}

html.error{
  height: auto !important
}

.has-error input, .has-error textarea, .has-error select{
    border: #bf6464 2px dashed !important;
    background-color: #fdfbfb !important;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

form .required label.control-label:after{
    content:" * ";
    color:red;
}

select.input-inline{
  display: inline-block;
  width: auto
}

.margin-bottom-0{
  margin-bottom: 0
}
.margin-bottom-5{
    margin-bottom: 5px !important
}
.margin-bottom-15{
  margin-bottom: 15px !important
}
.margin-negative-top-20{
  margin-top: -20px
}
.margin-negative-top-30{
  margin-top: -30px
}
.margin-top-5{
    margin-top: 5px !important
}
.margin-top-15{
    margin-top: 15px !important
}
.margin-top-24{
    margin-top: 24px;
}
.margin-top-25{
    margin-top: 25px;
}
.margin-top-33{
    margin-top: 33px;
}
.margin-right-5{
    margin-right: 5px;
}
.padding-top-24{
    padding-top: 24px;
}
.padding-top-25{
    padding-top: 25px;
}
.padding-right-30{
    padding-right: 30px !important;
}
.padding-right-40{
    padding-right: 40px !important;
}
.pe-0 {
    padding-right: 0 !important;
}
.pt-1{
    padding-top: 1em !important;
}
.pt-2{
    padding-top: 2em !important;
}
.me-0{
    margin-right: 0 !important;
}
.me-50{
    margin-right: .5em !important;
}
.me-1{
    margin-right: 1em !important;
}
.my-0{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.my-30{
    margin-top: .3em;
    margin-bottom: .3em;
}
.my-50{
    margin-top: .5em;
    margin-bottom: .5em;
}
.my-1{
    margin-top: 1em;
    margin-bottom: 1em;
}
.mx-1{
    margin-left: 1em !important;
    margin-right: 1em !important;
}
.mx-2{
    margin-left: 2em !important;
    margin-right: 2em !important;
}
.mt-50{
    margin-top: .5em !important;
}
.mt-60{
    margin-top: .6em !important;
}
.mt-70{
    margin-top: .7em !important;
}
.mt-1{
    margin-top: 1em !important;
}
.mt-2{
    margin-top: 2em !important;
}
.mb-0{
    margin-bottom: 0 !important;
}
.mb-50 {
    margin-bottom: .5em !important;
}
.mb-1{
    margin-bottom: 1em !important;
}

.brown{
    background-color: #fbe9d0 !important;
}
.brown:hover{
    background-color: #f9deb9 !important;
}

.text-bold{
    font-weight: bold;
}

.col-xs {
    width: 1%;
}

@media (min-width: 768px){
    .form-horizontal .control-value {
        padding-top: 7px;
    }
}

.select-multiple-items-label{
  margin: 0;
  padding-left: 20px;
  display: block
}
.select-multiple-items-label i{
  top: 0
}
.select-multiple-items-label input:disabled + i{
    opacity: .3;
}

#middle div.panel-heading{
    height: auto
}
#middle div.panel-heading form .form-control{
  height: 34px;
  width: 100%
}
#middle div.panel-heading form label{
  margin-right: 10px
}
#middle div.panel-heading form .btn:not(.btn-xs){
  height: 34px
}

#orderFilters label{
  white-space: nowrap
}

table form{
  margin-bottom: 0
}

@media (max-width: 991px){
    table.table-responsive{
        border: none
    }
     table.table-responsive thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

  table.table-responsive .select-multiple-items-label{
    margin-bottom: 20px
  }

    table.table-responsive tr {
        border: 1px solid #ccc;
        margin-bottom: 20px;
        display: block;
    }

     table.table-responsive td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    table.table-responsive td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        font-size: .8em;
        text-align: left;
    }

  #middle div.panel-heading{
    height: auto
  }
  #middle div.panel-heading form{
    margin: 0
  }
  #middle div.panel-heading form .form-group{
    margin: 0
  }
  #orderViewWrapper .date,
  #orderViewWrapper .invoice,
  #orderViewWrapper .status,
  #orderViewWrapper .update,
  #orderViewWrapper .shelf,
  #orderViewWrapper .label-button{
    height: 39px;
    line-height: 33px;
  }
}

.input-group .form-control{
  border-right: 0
}
.input-group .form-control:focus ~div{
  border-color: #c6c6c6;
}
.input-group-addon{
  border: #ddd 2px solid;
  background: #fff
}

.input-sm {
    height: 32px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}
select.input-sm{
    height: 32px;
}

.auto-height{
  height: auto !important
}

.panel-body .table.detail-view tr:first-child th,
.panel-body .table.detail-view tr:first-child td{
  border-top: none
}

.select2-container{
  width: 100% !important
}
.select2-container .select2-selection--multiple{
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 3px;
  border: #ddd 2px solid
}
.select2-container--default.select2-container--focus .select2-selection--multiple{
  border: #c6c6c6 2px solid
}

.panel-danger>.panel-heading{
  padding: 15px 15px;
}

.users-date-filter{
  white-space: nowrap
}
.users-date-filter input{
  max-width: 100px
}

.label-iframe{
  width: 100%;
  min-height: 400px
}

#parcelsGrid .field-parcels-width,
#parcelsGrid .field-parcels-length,
#parcelsGrid .field-parcels-height,
#parcelsGrid .field-parcels-weight{
  max-width: 80px
}

#searchForm{
  width: 500px
}
#searchForm .select2-container--default .select2-selection--single{
  background: transparent;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  height: 50px;
}
#searchForm .select2-container--default .select2-selection--single .select2-selection__rendered{
  color: #999;
  height: 50px;
  line-height: 50px;
}
#searchForm .select2-selection__arrow{
  display: none
}

#ordersFooterForm .field-orders-netcost label,
#ordersFooterForm .field-orders-vat label,
#ordersFooterForm .field-orders-comment_admin label{
  font-weight: bold
}

#page-header .title-wrapper h1{
    padding: 0;
    color: #666;
    display: inline-block;
    font-weight: 300;
    text-shadow: #fff 0 1px;
    font-size: 22px;
    line-height: 22px;
    margin: 7px 0;
}
.title-wrapper{
  display: flex;
  align-items: center
}
.title-wrapper .title_suffix{
  margin-left: 20px
}

#middle #orderViewWrapper div.panel-heading{
  height: auto;
}

.has-error .select2-container .select2-selection--single{
  border: #bf6464 2px dashed !important;
  background-color: #fdfbfb !important;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

#selectedAlert{
  display: none
}

.flex-wrapper{
  display: flex !important;
  align-items: center
}
.flex-justify-space{
    justify-content: space-between;
}
.flex-align-top{
    align-items: start;
}
.flex-justify-right{
    justify-content: right;
}
.flex-align-bottom{
    align-items: end;
}
.flex-space-between{
    justify-content: space-between;
}
.flex-wrap{
    flex-wrap: wrap;
}

.nowrap{
    white-space: nowrap;
}

@media (max-width: 991px){
  #panel-1  div.panel-heading form{
    margin-top: 0;
  }
}

@media (max-width: 786px){
  #panel-1  div.panel-heading form{
    margin-top: 10px;
  }
}

#parcelSaveForm{
  margin-right: 20px
}

.align-items-end{
  align-items: flex-end;
}
.justify-space-between{
  justify-content: space-between;
}

#ordersFooterForm .field-orders-files{
  flex-basis: 100%
}

#orderWebcamModal .form-group{
  margin-bottom: 0;
  overflow: hidden
}

form .pjax > div.row{
  margin-bottom: 0
}
#parcelPhotosForm{
  margin-bottom: 0
}

#parcelPhotosForm .field-parcels-files2{
  flex-basis: 100%;
}

.modal-body.disabled{
    opacity: 0.2;
}

/* modal vertical center */
.modal {
    text-align: center;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

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

#invoicesBulkForm .btn{
    margin-left: 8px
}

.create-mf-filters-form .form-group{
    display: flex;
    margin-bottom: 0;
    align-items: center;
}
.create-mf-filters-form .form-group label{
    margin-bottom: 0;
    white-space: nowrap;
}

.user-details-print .user-avatar{
    width: 250px;
}
.user-details-print .user-passport{
    max-width: 100%;
}

#order-scan-form .btn{
    margin-bottom: 3px;
}
#order-scan-form{
    margin-bottom: 15px;
}

#parcelOrdersWrapper .panel-heading{
    padding: 15px 15px;
}

.scan-box.scanned{
    animation: shake 1s infinite;
    -webkit-animation: shake 1s infinite;
    -moz-animation: shake 1s infinite;
    -o-animation: shake 1s infinite;
}
.scan-box.scanned .modal-header{
    background: #dff0d8;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(0, -1px, 0);
    }

    20%, 80% {
        transform: translate3d(0, 2px, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(0, -4px, 0);
    }

    40%, 60% {
        transform: translate3d(0, 4px, 0);
    }
}

.inventory-item-form .item,
.stock-lot-form .item,
.pallet-box-form .item,
.pallet-box-box-form .item{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    padding-right: 20px;
}

.inventory-item-form .group,
.stock-lot-form .group,
.pallet-box-form .group,
.pallet-box-box-form .group{
    width: 8%;
    min-width: 170px;
}
.inventory-item-form .group:not(:last-child),
.stock-lot-form .group:not(:last-child),
.pallet-box-form .group:not(:last-child),
.pallet-box-box-form .group:not(:last-child){
    margin-right: 0.5%;
}
.inventory-item-form .group-delete,
.stock-lot-form .group-delete{
    position: absolute;
    top: calc(50% - 10px);
    right: 0;
}

.pallet-box-form .group-delete,
.pallet-box-box-form .group-delete{
    min-width: 30px;
    margin-right: -40px;
}

.inventory-item-form .control-label,
.stock-lot-form .control-label,
.pallet-box-form .control-label,
.pallet-box-box-form .control-label{
    text-align: left;
    font-size: 12px;
}
.inventory-item-form .photos-wrapper,
.inventory-item-form .print-wrapper,
.stock-lot-form .photos-wrapper,
.stock-lot-form .print-wrapper{
    margin-top: 25px;
}
.inventory-item-form .photos-wrapper .modal-body,
.stock-lot-form .photos-wrapper .modal-body{
    position: relative;
}
.inventory-item-form .photos-wrapper .upload-button,
.stock-lot-form .photos-wrapper .upload-button{
    position: absolute;
    right: 15px;
    bottom: 15px;
}
.inventory-item-form .photos-wrapper .image-item,
.stock-lot-form .photos-wrapper .image-item{
    display: flex;
    align-items: center;
}
.inventory-item-form .photos-wrapper .image-item .delete,
.stock-lot-form .photos-wrapper .image-item .delete{
    margin-left: 5px;
}

#inventory-date-filter-form .row,
#stock-date-filter-form .row{
    margin-bottom: 0;
}

#inventory-view-wrapper .panel-heading,
#stock-view-wrapper .panel-heading,
#fulfilled-view-wrapper .panel-heading{
    height: auto !important;
}

#fulfilled-view-wrapper .panel-heading form{
    margin-top: 0 !important;
}

#items-grid table tfoot td,
.box-items-grid table tfoot td{
    font-weight: 700;
}

.panel-info > .panel-heading{
    padding: 15px;
}

#shipment-view-wrapper .label-iframe,
#pallet-separating-wrapper .label-iframe,
#pallet-box-separating-wrapper .label-iframe{
    display: none
}

.panel-success>.panel-heading{
    padding: 15px;
}

.scan-widgets-wrapper{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.scan-widget{
    margin-right: 5px;
    margin-bottom: 3px;
}

.stock-shop-icon{
    width: 16px;
}

tr.liquidated td,
tr.liquidated td a,
tr.liquidated td button{
    color: #ccc;
}

.stock-replenish-qty-form a.btn.btn-xs{
    line-height: 1.5;
}

.lot-sku-form .field label,
.lot-sku-form .field .help{
    font-size: 80%;
}
.lot-sku-form .lot-sku-field{
    flex: 1 1;
    margin-right: 10px;
}

.courier-rule-form .condition{
    margin: 11px 10px 11px 0;
}
.courier-rule-form .result{
    margin: 11px;
}
.courier-rule-form .courier-rule-add-button{
    margin-left: 10px;
}
.field-courierrule-currency{
    margin-left: 10px;
}

.px-1{
    padding-left: 1em;
    padding-right: 1em;
}
.px-2{
    padding-left: 2em;
    padding-right: 2em;
}
.px-50{
    padding-left: .5em;
    padding-right: .5em;
}
.pe-1{
    padding-right: 1em;
}
.my-0{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.flex-wrapper.form-fields > div:not(.actions){
    flex: 1 0 200px;
}
.flex-basis-100{
    flex: 1 0 100px !important;
}
.flex-basis-150{
    flex: 1 0 150px !important;
}
.flex-basis-200{
    flex: 1 0 200px;
}
.flex-basis-400{
    flex-shrink: 1 !important;
    flex-basis: 400px !important;
}
.flex-basis-500{
    flex-basis: 500px !important;
    flex-shrink: 1 !important;
}
.flex-basis-600{
    flex-basis: 600px !important;
    flex-shrink: 1 !important;
}

.text-lg {
    font-size: 1.5em;
}
.text-lg select, .text-lg input[type=text]{
    font-size: inherit;
    height: 45px;
}

.product-form{
    margin-left: -15px;
    margin-right: -15px;
}
.product-form .item-background{
    position: absolute;
    left: 0;
    top: -21px;
    width: 100%;
    height: calc(100% + 42px);
    z-index: 0;
    opacity: .2;
}
.product-form:last-child{
    margin-bottom: 0
}
.product-form .item{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    padding-right: 25px;
    padding-left: 15px;
}
.product-form .group{
    width: 8%;
    min-width: 170px;
    position: relative;
}
.product-form .modal .group{
    width: unset;
}
.product-form .group:not(:last-child){
    margin-right: 0.5%;
}
.product-form .group-delete{
    position: absolute;
    top: calc(50% - 10px);
    right: 15px;
}
.product-form .control-label{
    text-align: left;
    font-size: 12px;
}

#header .nav{
    margin: 0 10px
}
#header .dropdown{
    margin: 0
}
.dropdown-language > a .fi{
    margin-right: 5px;
    margin-left: 8px;
}
.dropdown-language .selected-language{
    margin-right: 8px;
}
.dropdown-language .dropdown-menu{
    min-width: unset;
}
#header .dropdown-language .dropdown-item{
    display: block;
    white-space: nowrap;
    padding: 5px 25px;
}
.dropdown-menu > li button {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333333;
    white-space: nowrap;
    width: 100%;
    text-align: left;
}
.dropdown-menu > li button:hover, .dropdown-menu > li button:focus {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}
.dropdown-header{
    margin-top: 9px;
}

#content .border-right-black {
    border-right: 1px solid rgba(0,0,0,0.5);
}

#content #accordion a:is(.collapsed) {
    font-size: 1.5rem;
}

/* Audit */
.audit-buttons {
    display: flex;
    justify-content: center;
}
