.card {
  padding: 20px;
  background-color: #fff;
  border: 0;
  overflow: auto;
}

.p-paginator .p-dropdown {
  margin: 0;
}

.p-datatable {

  .p-datatable-header,
  .p-paginator,
  .p-toolbar {
    padding: 0;
    border: 0;
    background-color: #ffffff;
    padding-top: 25px !important;
  }

  .p-datatable-thead>tr>th {
    text-align: center;
    font-size: 14px;
    position: relative;
    color: #fff !important;
    background: var(--primary-theme) !important;

    &:focus {
      box-shadow: none !important;
    }

    .p-sort-icon {
      .p-sortable-column-icon {
        height: 10px;
        color: #fff !important;
      }
    }
  }

  .p-datatable-tbody>tr>td {
    font-size: 14px;
    text-align: center;
    padding: 1rem .5rem;
  }

  .p-paginator-current {
    margin-right: auto;
  }
}

// table status
.product-badge {
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 12px;
}

.product-badge.status-instock {
  background: #c8e6c9;
  color: #256029;
}

.product-badge.status-lowstock {
  background: #feedaf;
  color: #8a5340;
}

.product-badge.status-outofstock {
  background: #ffcdd2;
  color: #c63737;
}

.text-success {
  color: #62bc55;
}

.text-danger {
  color: red;
}

// table paginator
.p-paginator .p-inputwrapper {
  position: absolute;
  left: 0;
  top: 0;
}

.p-paginator {

  .p-paginator-last,
  .p-paginator-next,
  .p-paginator-first,
  .p-paginator-prev {
    background-color: #ebe9f2;
    min-width: 30px !important;
    height: 30px !important;
  }

  .p-paginator-current {
    padding: 0;
  }
}

.actionButton {
  .mat-icon-button {
    border: 1px solid #c1c1c1;
    border-radius: 5px;
  }

  .mat-icon-button:hover {
    background-color: #f2f3f8 !important;
    color: var(--primary-theme);
    border: 0 !important;
  }

  .mat-icon-button {
    width: 35px !important;
    height: 30px !important;
    line-height: 23px !important;
  }

  .material-icons {
    font-size: 22px !important;
  }
}

.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover {
  background: none !important;
  color: inherit !important;
}

.p-datatable .p-datatable-tbody>tr:focus {
  outline: none !important;
}

.p-dropdown-clear-icon {
  display: none !important;
}

.p-paginator {
  & .p-paginator-page {
    min-width: 30px !important;
    height: 30px !important;

    &.p-highlight {
      background: var(--primary-theme) !important;
      border-color: var(--primary-theme) !important;
      color: var(--surface-section) !important;
    }

    &:focus {
      box-shadow: none;
    }
  }
}

.product-badge.status-active {
  background: #e8fff3 !important;
  color: #50cd89 !important;
  padding: 4px 8px !important;
}

.product-badge.status-inactive {
  background: #ffebeb;
  color: #f1416c;
}

.p-paginator .p-dropdown .p-inputtext {
  border: 0 !important;
}

.p-toolbar .p-toolbar-group-right {
  margin-left: auto;
}

.p-datatable-responsive-scroll>.p-datatable-wrapper {
  // min-width: 90pc;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary-theme);
  border-radius: 10px;
}

/* Handle on hover */
// ::-webkit-scrollbar-thumb:hover {
//   background: var(--primary-theme);
// }
@media screen and (max-width: 768px) {
  .card {
    padding: 15px;
  }

  .p-toolbar-group-right {
    width: 100%;
    display: block !important;
    margin-top: 20px;
  }

  .p-datatable-wrapper {
    overflow: auto;
  }

  .p-paginator-current {
    width: 100%;
    justify-content: start !important;
  }

  .p-input-icon-left {
    display: flex !important;
  }

  .p-inputtext {
    width: 100% !important;
  }

  .p-datatable-table {
    min-width: 50pc !important;
  }
}

.ResultNotFound {
  height: 42px;
}

.ResultNotFound td {
  position: absolute !important;
  width: 100%;
  text-align: center;
}

.p-datatable-wrapper {
  margin-top: 20px;
  padding-bottom: 10px;
}

.p-datatable-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-theme);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-theme);
  border-radius: 10px;
}

.p-datatable-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scroll-host::-webkit-scrollbar {
  width: 7px;
}

.scroll-host::-webkit-scrollbar-thumb {
  height: 20px;
  background: var(--primary-theme);
}

.scroll-host::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}

.p-datatable-wrapper::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

// update cancel policy
.formInputBorder .formInput:hover {
  box-shadow: unset;
}

.wPx-200 {
  width: 130px !important;
}

.wPx-90 {
  max-width: 90px !important;
}

.customSticky .sticky,
.customSticky .sticky2 {
  position: sticky;
  background: white;
  font-weight: 500;
}

.customSticky .sticky {
  left: 0px;
}

.customSticky .sticky2 {
  left: 97px;
  z-index: 2;
}

.commonSection {
  width: 90%;
}

.sectionCpyOn {
  display: grid;
  grid-template-columns: 78% 20%;
  gap: 15px;
}

.tableWrapper ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
  text-align: left !important;
}

@media screen and (max-width: 960px) {
  .sectionCpyOn {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }
}

// end
// update allocation
.formInputBorder .formInput:hover {
  box-shadow: unset;
}

.wPx-200 {
  width: 150px !important;
  margin: auto;
}

.commonSection {
  width: 90%;
}

.sectionCpyOn {
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 10px;
}

.tableWrapper ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
  text-align: left !important;
}

.rowColorGreen {
  background-color: #4caf50;
  color: white;
}

.rowColorRed {
  background-color: #d14d4d;
  color: white;
}

.rowColorGreen input,
.rowColorRed input {
  color: white !important;
}

.rowColorGreen .formInput[readonly],
.rowColorRed .formInput[readonly] {
  color: black !important;
}

// end