@import "bulma-grid.css";

body {
  min-width: 996px !important;
}

$spaceamounts: (0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100); // Adjust this to include the pixel amounts you need.
$sides: (top, bottom, left, right); // Leave this variable alone

@each $space in $spaceamounts {
  .m-#{$space} {
    margin: #{$space}px !important;
  }

  .p-#{$space} {
    padding: #{$space}px !important;
  }

  @each $side in $sides {
    .m-#{str-slice($side, 0, 1)}-#{$space} {
      margin-#{$side}: #{$space}px !important;
    }

    .p-#{str-slice($side, 0, 1)}-#{$space} {
      padding-#{$side}: #{$space}px !important;
    }
  }
}


.sidebar-menu .treeview-menu {
  padding-left: 14px;
}
.table.with-action tbody tr td:last-child {
  padding: 0 5px !important;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
  min-width: 50px;
  text-align: center;
}
.table tr td:last-child > a {
  display: inline-block;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  padding: 1px 5px;
  border-radius: 3px;
  margin: 0 2px;
  min-width: 26px;
}
.table tr td:last-child > a:hover:not(.btn):not(.grid-row-delete) {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}
.table tr td:last-child > a:not(.btn) {
  background-color: #ececec;
  color: #444;
  border-color: #ddd;
}
.table tr td:last-child > a.grid-row-delete, .table tr td:last-child > a.grid-row-delete2 {
  color: #fff;
  background-color: #ff5d58;
  border-color: #d43f3a;
}
.table.with-bg tr th:not([class*=bg-]) {
  background-color: #f3f3f3;
}

.table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
  border: 1px solid #e2e2e2;
}

form .control-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
select.form-control {
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='#666666' d='M10 16l-4-4h8l-4 4zm0-12L6 8h8l-4-4z'></path></svg>");
  background-position: 100% 50%;
  background-repeat: no-repeat;
  background-size: 15px;
}
.select2-container {
  width: 100% !important;
}
.form-control.bold, .bold {
  font-weight: bold;
}
.form-group {
  margin-bottom: 10px;
}

.box-header .box-title {
  vertical-align: middle;
  vertical-align: -webkit-baseline-middle;
}
.sweet-alert h2 {
  font-size: 24px;
}
/********/
.first-screen {
  display: flex;
  width: 100%;
  min-height: 150px;
  margin-top: 1em;
  margin-bottom: 10px !important;
}
.is-dcolumn {
  flex-direction: column;
  -webkit-flex-direction: column;
}
.is-drow {
  flex-direction: row;
  -webkit-flex-direction: row;
}
.flex {
  display: flex;
  display: -webkit-flex;
}
.flex.is-centered {
  justify-content: center;
}
.flex.is-vcentered {
  align-items: center;
}
.flex-none {
  flex: none !important;
}
.flex-grow {
  flex: 1;
}
.modal-header {
  border-bottom-color: #e8e8e8;
  background: #f7f7f7;
}
.text-center {
  text-align: center;
}
td.number, th.number {
  text-align: right;
}
.main-footer {
  height: 30px;
  font-size: 1.2rem;
  padding: 6px;
}
.box-body .table {
  margin-bottom: 0px;
}

.nowrap {
  white-space: nowrap !important;
}

.help-block {
  color: #777;
  font-size: 12px;
  margin-bottom: -3px;
}
* .help-block:last-child {
  margin-bottom: 5px;
}
.text-middle {
  vertical-align: middle !important;
}
.bg-light {
  background-color: #f3f3f3;
}

.control-sidebar {
  height: 100%;
}
.control-sidebar-close {
  background: black;
  border: 0;
  font-size: 21px;
  font-weight: 700;
  padding: 3px 10px 6px;
  line-height: 21px;
  outline: none;
}

td.shirk, th.shirk {
  width: 1%;
  white-space: nowrap;
}
.filter-zone > * {
  display: inline-block;
  vertical-align: top;
}
.badge.badge-md {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 14px;
}
.badge.badge-lg {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 16px;
}
.label.label-sm {
  font-size: 8px;
}

.label.label-md {
  font-size: 12px;
}

.label.label-lg {
  font-size: 16px;
}

td.label-justify .label {
  width: 100%;
  display: inline-block;
  font-size: 12px;
  line-height: 1em;
  padding-top: 4px;
}
td > .is-inline-block {
  margin-bottom: 4px;
}
.bg-gray-active {
  color: #FFF;
}
.small-box {
  transition: all .2s;
}
.small-box:hover {
  margin-top: -3px;
}
.form-group-sm select.form-control {
  line-height: 1.5em;
}
.typeahead.dropdown-menu {
  box-shadow: 0 2px 6px #aaa;
  max-height: 150px;
  overflow-y: auto;
}
.checkbox label:after {
  content: '';
  display: table;
  clear: both;
}

.checkbox .cr {
  position: relative;
  display: inline-block;
  border: 1px solid #a9a9a9;
  border-radius: .25em;
  width: 1.3em;
  height: 1.3em;
  float: left;
  margin-right: .5em;
}

.checkbox .cr .cr-icon {
  position: absolute;
  font-size: .8em;
  line-height: 0;
  top: 50%;
  left: 15%;
}

.checkbox label input[type="checkbox"] {
  display: none;
}

.checkbox label input[type="checkbox"]+.cr>.cr-icon {
  opacity: 0;
}
.checkbox label input[type="checkbox"]:checked+.cr {
  background: #dcdcdc;
}
.checkbox label input[type="checkbox"]:checked+.cr>.cr-icon {
  opacity: 1;
}

.checkbox label input[type="checkbox"]:disabled+.cr {
  opacity: .5;
}
.inline-link {
  color: #333;
  cursor: pointer;
  text-decoration: underline dotted #999;
  border: none;
}
.select2-dropdown .select2-search__field:focus, .select2-search--inline .select2-search__field:focus {
  outline: none;
  border: none;
}
.vcenter {
  vertical-align: middle !important;
}
tbody.with-line, tfoot.with-line {
  border-top: 2px solid #b3b3b3;
}
.table.table-bordered.custom-line>tbody+tbody {
  border-top: 2px solid #ccc;
}
.table.table-bordered.custom-line td, .table.table-bordered.custom-line th {
  border-color: #ccc;
}
.table > tfoot.total-box td, .table > tfoot.total-box th{
  padding: 15px 8px;
}
.fa-spinner:before {
  content: "\f110" !important;
}
td .product-img {
  height: 50px;
  width: 60px;
  display: block;
  margin: 0 auto;
}
.nav-tabs-custom {
  background: transparent !important;
  &>.nav-tabs {
    border-bottom-color: #e0e0e0;
  }
  &>.nav-tabs>li>a {
    background: #ffffff7a;
  }
  &>.nav-tabs>li>a:hover {
    background: #ffffff;
    color: #444;
  }
}
/**
 Table
 */
.d-table {
  display: table;
  width: 100%;

  .d-table-row {
    display: table-row;
  }

  .d-table-cell {
    display: table-cell;
    padding: 10px;
    &.w50 {
      width: 50%;
    }
    &.w60 {
      width: 60%;
    }
  }


}

.vcenter {
  vertical-align: middle;
  float: none;
}

/**
 Increase input
 */
* {
  box-sizing: border-box;
}

.input-number {
  width: 50px;
  padding: 0 12px;
  vertical-align: top;
  text-align: center;
  outline: none;
}

.input-number,
.input-number-decrement,
.input-number-increment {
  border: 1px solid #ccc;
  height: 30px;
  user-select: none;
}

.input-number-decrement,
.input-number-increment {
  display: inline-block;
  width: 30px;
  line-height: 26px;
  background: #f1f1f1;
  color: #444;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}
.input-number-decrement:active,
.input-number-increment:active {
  background: #ddd;
}

.input-number-decrement {
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.input-number-increment {
  border-left: none;
  border-radius: 0 4px 4px 0;
}

/**
 POS
 */
.box-pos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 160px);
  margin-bottom: 0;
}

.scanner-input-cont {
  position: relative;
}

.scanner-input-cont::after {
  font-family: FontAwesome;
  content: "\f110";
  position: absolute;
  font-size: 20px;
  color: #808080;
  right: 0;
  top: 0;
  text-align: center;
  padding: 10px;
  -webkit-animation: fa-spin 1s infinite steps(8);
  animation: fa-spin 1s infinite steps(8);
  display: none;
}

.scanner-input-cont.loading::after {
  display: block;
}

.scanner-input-autocomplete {
  position: absolute;
  width: 100%;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #3c8dbc;
  border-top: 0;
  list-style: none;
  margin-top: -1px;
  z-index: 1;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
  display: none;
}

.scanner-input-autocomplete .autocomplete-item {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
}

.scanner-input-autocomplete .autocomplete-item:hover {
  background-color: #f5f5f5;
}

.autocomplete-running .scanner-input-autocomplete {
  display: block;
}



