﻿body {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

.cat-tree {
    max-height: 75vh;    
    overflow-y: auto;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
  white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

tfoot input {
  width: 100%;
  padding: 3px;
  box-sizing: border-box;
}

div.dataTables_filter {
  display: none;
}

#datatable_ajax tbody td {
  padding: 3px;
}

#datatable_ajax .btn-toggle-active {
  width: 80px;
}

table.dataTable thead th {
  padding: 4px 18px;
}

table.dataTable thead th .column-search {
  height: 64px;
}

table.dataTable thead th .column-name {
  min-height: 25px;
}

table.dataTable thead th .column-search .input-icon > i {
  margin-top: 7px;
  margin-left: 5px;
}

table.dataTable > tbody > tr.child .dtr-title > .column-search {
  display: none;
}

.table > tbody > tr.success > td {
  background-color: #abe7ed !important;
}

/*td:nth-last-child(1) {
    padding-right:0!important;
    padding-bottom:2px!important;
    padding-left:5px!important;
    padding-top:2px!important;
}*/

#datatable_ajax td {
  height: 20px;
  max-width: 250px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.dataTable .form-control {
  height: 28px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.dataTable .select2-container--bootstrap .select2-selection--single {
  height: 28px;
  padding-top: 3px;
  padding-bottom: 3px;
}

#datatable_ajax .btn {
  padding-top: 3px;
  padding-bottom: 3px;
}

.field-validation-error {
  color: red;
  display: block;
}

#datatable_ajax_wrapper > .row:nth-child(3) {
  display: none !important;
}

.select2-results__option:before {
  content: '\00a0';
}

.form .dd {
  margin-bottom: 20px;
}

.receipt {
  width: 320px;
  padding: 10px;
  font-size: 1em;
  -webkit-box-shadow: 10px 10px 4px rgba(0,0,0,.2),inset 0 0 50px rgba(0,0,0,.1) !important;
  -moz-box-shadow: 10px 10px 4px rgba(0,0,0,.2),inset 0 0 50px rgba(0,0,0,.1) !important;
  box-shadow: 10px 10px 10px rgba(0,0,0,.2),inset 0 0 50px rgba(0,0,0,.1) !important;
  direction: ltr !important;
  line-height: 1.2;
  word-wrap: normal !important;
  border: none;
  margin: 0 auto !important;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.receipt-img {
  align-self: center;
  max-height: 100px;
  max-width: 100%;
}

.rc-row {
  padding: 5px 0;
}

.discount {
  color: red;
}

.separator {
  border: 1px dashed rgb(224, 225, 226);
}

.mark-unlim {
  float: right;
  margin-right: 35px;
}

.report-bt {
  padding-left: 15px;
  float: left;
}

.IDinShop {
  width: 35px;
}

.product-in-items {
  width: 250px !important;
}

.tooltip-inner {
  max-width: 300px;
}

@media(max-width: 480px) {
  .product-in-items {
    width: 100px !important;
  }
}

@media(max-width: 380px) {
  .product-in-items {
    width: 30px !important;
  }
}


@media(min-width: 992px) {
  .page-sidebar.collapse {
    position: fixed;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
  }

  .page-sidebar.collapse {
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
  }

    .page-sidebar.collapse::-webkit-scrollbar {
      display: none;
    }

    .page-sidebar.collapse::-moz-scrollbars {
      display: none;
    }
}

.page-sidebar {
  z-index: 100;
}

.page-content-wrapper {
  width: auto;
  min-width: 100%;
}

#datatable_ajax_wrapper {
  margin-top: 0;
}

  #datatable_ajax_wrapper th {
    background: white;
  }

  #datatable_ajax_wrapper > .row {
    height: 61.5px;
    padding-bottom: 31px!important;
  }

  #datatable_ajax_wrapper .table.dataTable {
    margin: 0px !important;
  }

.portlet-title {
  margin: 0;
}

  .portlet-title > .row > .caption {
    display: inline-block;
    float: left;
    margin-left: 20px;
    margin-top: 5px;
  }

  .portlet-title > .row > .actions {
    display: inline-block;
    float: right;
    margin-right: 20px;
  }

#stockFilter {
  text-align: center;
  margin-top: 10px;
}

.portlet.light.portlet-datatable.portlet-fit > .portlet-body {
  padding-top: 0;
}

.input-icon > i {
  z-index: 0;
}

.input-group .form-control {
  z-index: 0;
}

.input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group {
  z-index: 0;
}

.BrandName {
  width: 140px !important;
}

.SKU {
  width: 100px;
}

.Name {
  width: 205px;
}

.Capacity {
  width: 100px;
}

.CategoryID {
  width: 100px;
}

.ContentUnitMeasureID {
  width: 100px;
}

.Image {
  width: 75px;
}

.table-striped th:last-child {
  width: 15% !important;
}

#header_search_bar .dropdown-menu {
  padding: 10px;
}

@media (max-width: 580px) {
  #header_search_bar .dropdown-menu {
    left: 10px;
    top: 100px;
    position: fixed;
  }
}

#header_search_bar .dropdown-menu-list .column-name {
  margin-top: 5px;
}

#big-img {
  max-width: 100%;
}

@media (max-width: 580px) {
  .portlet-title > .row > .caption {
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
    display: block;
    float: none;
  }

  .portlet-title .actions {
    text-align: center;
  }

    .portlet-title .actions .btn {
      margin-bottom: 5px;
    }

  #stockFilter .btn {
    margin-bottom: 5px;
  }


  #shopFilter + .btn-group {
    width: 150px !important
  }

    #shopFilter + .btn-group > .dropdown-menu {
      margin-top: 10px;
      position: fixed;
      left: 10px;
      top: 200px;
      width: 90vw;
    }

}

.missing-sku-page #datatable_ajax th.Name,
.private-products-page #datatable_ajax th.Name,
.product-names-page #datatable_ajax th.Name,
.sku-map-page #datatable_ajax th.Name,
.product-page #datatable_ajax th.Name {
  width: 150px !important;
}

.product-page #datatable_ajax th.ID {
  width: 25px !important;
}

.orders-page table.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul > li[data-dtr-index="12"] > .dtr-title {
  display: none;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul.dtr-details {
  width: 100%;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, 
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
  top: 6px;
}

#orderItemsResponsiveTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
#orderItemsResponsiveTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
  top: 10px;
}

#orderItemsResponsiveTable.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul > li[data-dtr-index="10"] > .dtr-title,
#orderItemsResponsiveTable.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul > li[data-dtr-index="11"] > .dtr-title {
  display: none;
}

#orderItemsResponsiveTable.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul > li[data-dtr-index="10"] > .dtr-data {
  width: 90vw;
  text-align: center;
  display: block;
}

#orderItemsResponsiveTable.dataTable.dtr-inline.collapsed > tbody > tr.child > td.child > ul > li[data-dtr-index="10"] > .dtr-data .btn {
  margin-bottom: 5px;
}

@media(max-width: 580px) {
  .btn > .button-text {
    display: none;
  }
}

.select2-selection__rendered {
    line-height: 20px !important;
}

.select2-container .select2-selection--single {
    height: 34px !important;
}

.select2-selection__arrow {
    height: 34px !important;
}

table.dataTable.dtr-inline.collapsed > thead > tr[role="row"] > th:first-child {
    padding-left: 30px;
}

table.dataTable.dtr-inline.collapsed > thead > tr[role="row"] > th:first-child:before {
  top: 1px;
  left: 4px;
  height: 18px;
  width: 18px;
  display: block;
  position: absolute;
  color: white;
  border: 2px solid white;
  border-radius: 14px;
  box-shadow: 0 0 3px #444;
  box-sizing: content-box;
  text-align: center;
  text-indent: 0 !important;
  font-family: 'Courier New', Courier, monospace;
  line-height: 20px;
  content: '++';
  background-color: #337ab7;
  margin-top: 40%;
}

table#datatable_ajax.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child,
table#datatable_ajax.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child {
    padding-left: 30px;
}

table#datatable_ajax.dataTable.dtr-inline.collapsed > thead > tr[role="row"] > th.all-expanded:first-child:before {
    content: '--';
    background-color: #36c6d3;
}

table#orderItemsResponsiveTable.dataTable.dtr-inline.collapsed > thead > tr[role="row"] > th:first-child:before {
  margin-top: 0;
}

.quantity-cell {
    white-space: nowrap;
    text-align: right;
}

.order-item-deleted .item-comment,
.order-item-deleted .product-in-items,
.order-item-deleted .brand-name,
.order-item-deleted .discount-amount,
.order-item-deleted .sub-total,
.order-item-deleted .price,
.order-item-deleted .units,
.order-item-deleted .sku-cell,
.order-item-deleted .quantity-cell {
    color: red;
    text-decoration: line-through
}

#shopFilter + .btn-group .dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
}

.date-picker {
    width: 130px;
}

.scales-disconnected #install_scales_service_button {
    display: block;
}

.scales-connected #install_scales_service_button {
    display: none;
}

.scales-disconnected #weight_container {
    display: none;
}

.scales-connected #weight_container {
    display: block;
}

.scales-disconnected .load-weight-btn {
    display: none;
}
.scales-connected .load-weight-btn {
    display: inline-block;
}

.display-replace-select2 {
    width: 100%;
}

div.dataTables_wrapper div.dataTables_processing {
    z-index: 100;
}

.select2-dropdown {
    min-width: 200px;
}

#add_new {
    overflow: visible !important;
    top: 30px;
    margin-top: 0 !important;
}

input.cat-tags {
    display: none!important;
}