:root {
  --white: #ffffff;
  --brand-primary: #37a000;
  --brand-primary-2: #00a653;
  --brand-primary-15: #00b07426;
  --brand-secondary: #2c3136;
  --brand-secondary-15: #5e6c9326;
  --danger: #e5343d;
  --border-color: #dfdfdf;
}
.fw-400 {
  font-weight: 400;
}
.fw-500 {
  font-weight: 500;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}

.fs-12 {
  font-size: 12px;
}
.fs-14 {
  font-size: 14px;
}
.fs-16 {
  font-size: 16px;
}
.fs-18 {
  font-size: 18px;
}
.fs-20 {
  font-size: 20px;
}
.fs-22 {
  font-size: 22px;
}
.fs-24 {
  font-size: 24px;
}
.fs-26 {
  font-size: 26px;
}
.fs-30 {
  font-size: 30px;
}
.fs-32 {
  font-size: 32px;
}

.gap-10 {
  gap: 10px;
}
.btn_custom {
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
}
.payment_type_wrapper {
  display: flex;
  gap: 15px;
  overflow-y: hidden;
  overflow-x: auto;
}
.payment_type_wrapper .btn_outline {
  background-color: transparent;
  border: 1px solid var(--brand-secondary) !important;
}
.payment_type_wrapper .btn_outline.active {
  background-color: #292929;
  color: var(--white);
}
.d_none {
  display: none !important;
  opacity: 0 !important;
  transform: scale(0) !important;
}

html {
  scroll-behavior: smooth !important;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.truncate {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.select2-container--default .select2-selection--single {
  height: 36px;
  border-radius: 4px;
  border-color: #cecece;
  box-shadow: rgba(0, 0, 0, 0.07) 0 1px 3px 0 inset;
}
.bg_light_15 {
  background-color: #f5f7fa;
}

.btn_edit {
  border: none;
  color: var(--brand-primary-2);
  background-color: transparent;
}
.btn_edit i {
  font-size: 18px;
}
.btn_delete {
  border: none;
  color: var(--danger);
  background-color: transparent;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  &:hover {
    background-color: rgba(247, 134, 134, 0.3);
  }
  i {
    font-size: 18px;
  }
}

.btn_catagory {
  border: none;
  outline: none;
  background-color: #37a000;
  padding: 8px 12px;
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 100%;
  margin-bottom: 6px;
}

.btn_catagory:hover {
  background-color: var(--brand-secondary);
}

.btn_catagory.active-btn {
  background-color: var(--brand-secondary); /* Active */
}

.btn-check.active {
  background-color: var(--brand-secondary) !important;
}

.btn-success {
  transition: all 0.5s ease;
}
.btn-success:active,
.btn-success:focus,
.btn-success:hover {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

/* bootstrap overwrite class */
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

table.summary_table {
  background-color: rgb(255, 255, 255);
}
table.product_item_table,
table.summary_table,
table.calculate_table {
  width: 100%;
}
table.product_item_table th,
table.product_item_table td {
  padding: 6px;
  border: none;
  border-bottom: 1px solid var(--border-color);
}
table.product_item_table thead tr {
  background-color: #f1f3f6;
}
/* table.product_item_table tbody tr:nth-child(even){
        background-color:rgb(240, 240, 240);
    } */
table.summary_table th,
table.summary_table td {
  padding: 6px 12px;
  border: none;
}
table.summary_table td:nth-child(2),
table.summary_table td:nth-child(4) {
  border-right: 1px solid var(--border-color) !important;
}

table.calculate_table th,
table.calculate_table td {
  padding: 10px;
  border: none;
}
table,
th,
td {
  border: 1px solid var(--border-color);
  border-collapse: collapse;
}
.btn_increment,
.btn_decrement {
  background-color: #c8c8c8;
  border: none;
  color: var(--white);
  padding: 3px;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}
.btn_increment:hover,
.btn_increment:active,
.btn_increment:focus,
.btn_decrement:hover,
.btn_decrement:active,
.btn_decrement:focus {
  background-color: var(--brand-primary);
}

/* POS Layout */
.pos_layout {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  .main_content {
    padding: 72px 8px 16px 8px;
    .main_content_body {
      display: flex;
      flex-direction: row;
      .left_section {
        width: 60%;
        .filter_section {
          height: calc(100vh - 80px);
          overflow-y: auto;
          overflow-x: hidden;
        }
        .product_grid {
          position: relative;
          height: calc(100vh - 140px);
          overflow-y: auto;
          overflow-x: hidden;
        }
      }
      .right_section {
        position: relative;
        background-color: var(--white);
        width: 40%;
        height: calc(100dvh - 85px);
        border-radius: 6px;
        padding: 1rem;
        overflow: hidden;
        .product_item_table_wrapper {
          height: calc(100vh - 85px);
          overflow: auto;
          padding-bottom: 300px;
        }

        .summary_section {
          position: absolute;
          left: 0;
          bottom: 0;
          z-index: 20;
          width: 100%;
          padding-top: 1.5rem;
          background-color: var(--white);
        }
      }
    }
  }
}

@media screen and (max-width: 1400px) {
  .pos_layout {
    .main_content {
      .main_content_body {
        .left_section {
          width: 55%;
        }
        .right_section {
          width: 45%;
        }
      }
    }
  }
}
@media screen and (max-width: 768px) {
  .pos_layout {
    overflow-y: auto;
    .main_content {
      .main_content_body {
        display: flex;
        flex-direction: column;
        .left_section {
          width: 100%;
          margin-bottom: 2rem;
          .product_grid {
            position: relative;
            height: calc(100vh - 250px);
            overflow-y: auto;
            overflow-x: hidden;
          }
        }
        .right_section {
          width: 100%;
        }
      }
    }
  }
}
.vat_summary {
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 12px;
  .item {
    padding: 12px 12px 0 12px;
    border-right: 1px solid var(--border-color);
    input {
      background-color: none;
      width: 70px;
      border: none;
      &:focus {
        outline: none;
      }
    }
  }
}
.btn_summary_submit {
  border: none;
  outline: none;
  box-shadow: none;
  &:focus {
    outline: none;
  }
}
.grand_total_price_input {
  width: 100px;
  text-align: right;
  &:focus {
    outline: none;
    border: none;
  }
}
