/**=====================
     Table CSS Start
==========================**/
.table {
  > :not(caption) {
    > * {
      > * {
        background-color: transparent;
      }
    }
  }
}

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

.dataTables_wrapper {
  width: calc(100% - 2px);

  [dir="rtl"] & {
    direction: rtl;
  }

  .dataTables_length,
  .dataTables_filter,
  .dataTables_info,
  .dataTables_processing,
  .dataTables_paginate {
    margin-bottom: 25px;
  }

  .dataTables_filter {
    label {
      margin: 0;
    }

    input {
      border: 1px solid #ced4da;
      padding: 8px 10px;
      margin-left: 13px;
    }
  }

  .dataTables_length {
    label {
      margin: 0;
    }

    select {
      border: 1px solid #ced4da;
      padding: 8px 10px;
      margin: 0 6px;
    }
  }

  .dataTables_info {
    margin-bottom: 0;
    margin-top: 10px;
    color: $content-color;
  }

  .dataTables_paginate {
    margin-bottom: 0;
    margin-top: 10px;

    .paginate_button {
      color: var(--theme-color) !important;

      &:hover {
        color: var(--theme-color) !important;
        border: none;
        background: none;
      }

      &.disabled,
      &:active {
        color: var(--theme-color) !important;
        border: 1px solid transparent;
        background: transparent;
        box-shadow: none;
        cursor: not-allowed;
        opacity: 0.5;
      }

      &.current {
        color: $white !important;
        background: var(--theme-color);
        border-color: var(--theme-color);
        z-index: 0;
        border: none;

        &:hover {
          color: $white !important;
          border: none;
          background: var(--theme-color);
        }
      }
    }
  }
}

.theme-table {
  table-layout: fixed;
  border: none;

  thead {
    tr {
      th {
        border: none;
        padding: 12px 15px !important;
        background-color: #f8f8f8 !important;

        &:first-child {
          max-width: none !important;
        }

        &:last-child {
          text-align: center;
        }

        .check-box-contain {
          display: flex;
          align-items: center;

          .user-checkbox {
            margin-bottom: 0;
            padding: 0;
            margin-right: 10px;
            margin-top: -5px;
          }
        }
      }
    }
  }

  tbody {
    tr {
      td {
        border: none;
      }

      th,
      td {
        &:first-child {
          max-width: none !important;
        }

        &:last-child {
          ul {
            @include flex_common;
            flex-wrap: nowrap;
            gap: 15px;

            li {
              a {
                display: block;
              }
            }
          }
        }

        .check-box-contain {
          display: flex;
          align-items: center;

          .user-checkbox {
            margin-bottom: 0;
            padding: 0;
            margin-right: 10px;
            margin-top: 3px;
          }
        }
      }
    }
  }
}

.tbl-image {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
}

.border-table {
  .no-data-added {
    text-align: center;
    padding: calc(10px + (30 - 10) * ((100vw - 320px) / (1920 - 320))) 0;

    @media (max-width: 576px) {
      text-align: left;

      [dir="rtl"] & {
        text-align: right;
      }
    }
  }
}

table {
  &.dataTable {
    &.no-footer {
      border-bottom: none;
      border-color: $light-gray;
    }

    tbody {
      th,
      td {
        padding: 12px 15px;
      }
    }
  }
}

.td-cross {
  i {
    font-size: 20px !important;
    color: #e22454 !important;
  }
}

.td-check {
  i {
    font-size: 20px !important;
    color: #10b981 !important;
  }
}

thead,
tbody,
tfoot,
tr,
td,
th {
  vertical-align: middle;
}

.table {
  margin-bottom: $table-b-margin;

  > :not(:last-child) {
    > :last-child {
      > * {
        border-bottom-color: $light-gray;
      }
    }
  }

  th,
  td {
    padding: $table-padding;
  }

  &.table-primary {
    th {
      color: $white;
    }
  }

  thead.bg-primary {
    tr {
      th {
        color: $white;
      }
    }
  }

  th {
    color: $table-heading-color;
    font-weight: 600;
    font-size: 18px;
  }

  td {
    color: $table-row-color;

    a {
      i,
      svg {
        font-size: 18px;
        color: var(--theme-color);
        font-weight: normal;
      }

      span {
        color: $table-heading-color;
      }
    }
  }

  [class*="bg-"] {
    color: $white;
  }

  .bg-light {
    color: $theme-body-font-color;
  }

  tfoot {
    font-weight: $table-footer-font-weight;
  }
}

.table[class*="bg-"] {
  th,
  td {
    color: $white;
  }
}

.table-striped {
  tbody {
    tr {
      &:nth-of-type(odd) {
        --bs-table-accent-bg: rgba(245, 247, 250, 0.5);
      }
    }
  }
}

table {
  tr {
    th {
      font-weight: 600;
    }
  }
}

.table-product {
  .table {
    thead {
      tr {
        th {
          text-align: left;

          [dir="rtl"] & {
            text-align: right;
          }

          &:first-child {
            text-align: center;
          }

          &:nth-last-child(2) {
            text-align: center;
          }
        }
      }
    }

    tbody {
      tr {
        td {
          text-align: left;
          padding: 12px 15px;

          [dir="rtl"] & {
            text-align: right;
          }

          &:nth-last-child(2) {
            text-align: center;
          }

          &:nth-child(3) {
            color: $theme-body-font-color;
          }

          .table-image {
            width: 45px;
            height: 45px;
            overflow: hidden;
            border-radius: 0;

            img {
              object-fit: cover;
            }
          }

          .user-name {
            span {
              display: block;

              &:first-child {
                font-weight: 700;
                color: $black1;
              }

              &:last-child {
                color: $theme-body-font-color;
              }
            }
          }
        }
      }
    }
  }
}
.datatable-wrapper {
  position: relative;

  .table-loader {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
  }
}
.all-package {
  thead {
    tr {
      th {
        font-size: calc(13px + 3 * (100vw - 320px) / 1600);
        background-color: #f9f9f6;
        text-align: center;
        min-width: 170px;
        padding: 15px !important;
        text-transform: capitalize;
        position: relative;
        cursor: pointer;

        &:first-child {
          max-width: 160px !important;
        }

        &:last-child {
          text-align: center;
        }

        @media (max-width: 1400px) {
          width: 150px;
        }
      }
    }
  }

  tbody {
    tr {
      &:last-child {
        td {
          border-bottom: unset;
          padding-bottom: 0;
        }
      }

      td {
        font-size: 14px;
        text-align: center;
        cursor: pointer;
        border-bottom: 1px solid #eee;

        &.td-price {
          font-weight: 800;
        }

        .btn-sm {
          padding: 5px 10px;
        }

        .table-image {
          width: 65px;
          height: 65px;
          margin: 0 auto;
          @include flex_common;

          img {
            @include pseudowh;
            object-fit: contain;
          }
        }

        span {
          img {
            width: 70px;
          }
        }

        &.order-cancel {
          span {
            background-color: rgba($color: #cf142b, $alpha: 0.2);
            color: #cf142b;
            padding: 5px 10px;
            border-radius: 0;
            font-size: 12px;
            font-weight: 600;
            position: relative;
          }
        }

        &.order-success {
          span {
            background-color: rgba($color: #42ba96, $alpha: 0.2);
            color: #42ba96;
            padding: 5px 10px;
            border-radius: 0;
            font-size: 12px;
            font-weight: 700;
            position: relative;
          }
        }

        &.order-pending {
          span {
            background-color: rgba($grey-13, $alpha: 0.2);
            color: $grey-13;
            padding: 5px 10px;
            border-radius: 0;
            font-size: 12px;
            font-weight: 700;
            position: relative;
          }
        }

        &:first-child {
          max-width: 160px;
        }

        &:last-child {
          ul {
            @include flex_common;
            flex-wrap: nowrap;
            gap: 15px;

            li {
              button {
                background-color: transparent !important;
                color: #ef3f3e;
                padding: 0;
                font-size: 18px;
              }

              a {
                display: block;
                line-height: 1;
              }
            }
          }
        }
      }
    }
  }
}

.vendor-table {
  thead {
    tr {
      th {
        padding: 14px 18px !important;
        border-bottom-color: transparent !important;
        text-align: left !important;
        min-width: 150px;
        font-size: 15px;

        &:last-child {
          text-align: left !important;
        }

        &:nth-child(2),
        &:nth-child(5),
        &:last-child {
          text-align: center !important;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        padding: 10px 18px !important;
        text-align: left !important;

        &:first-child {
          justify-content: flex-start !important;

          a {
            margin-left: 25px;
          }
        }

        &:nth-child(2),
        &:nth-child(5) {
          font-weight: 800;
          color: var(--theme-color);
        }

        &:nth-child(2),
        &:nth-child(5),
        &:last-child {
          text-align: center !important;
        }
      }
    }
  }
}

.texes-table {
  thead {
    tr {
      th {
        text-align: center;
      }
    }
  }

  tbody {
    tr {
      td {
        text-align: center;
      }
    }
  }
}

.coupon-list-table {
  thead {
    tr {
      th {
        text-align: center;

        &:first-child {
          max-width: none;
        }

        &:last-child {
          border-right: none;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        text-align: center;

        &:first-child {
          max-width: none;
        }

        &:last-child {
          border-right: none;
        }

        &:nth-child(2) {
          font-weight: 700;
        }

        &.menu-status {
          span {
            border-radius: 4px;
            font-size: 12px;
            padding: 3px 10px;
            font-weight: 600;

            &.success {
              background-color: rgba(16, 185, 129, 0.1);
              color: #10b981;
            }

            &.danger {
              background-color: rgba(255, 87, 36, 0.1);
              color: #ff5724;
            }
          }
        }
      }
    }
  }
}

.menu-list-table {
  thead {
    tr {
      th {
        text-align: center;

        &:nth-child(2) {
          text-align: left;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        text-align: center;

        &:nth-child(2) {
          font-weight: 700;
          text-align: left;
        }

        &.menu-status {
          span {
            border-radius: 4px;
            font-size: 12px;
            padding: 3px 10px;
            font-weight: 600;
            letter-spacing: 1.3px;

            &.success {
              background-color: rgba(129, 186, 0, 0.1);
              color: #81ba00;
            }

            &.warning {
              background-color: rgba(226, 36, 84, 0.1);
              color: var(--theme-color);
            }
          }
        }
      }
    }
  }
}

.tracker-table {
  padding-top: 0;
  overflow: hidden;
  margin-bottom: 0;

  thead {
    th {
      border-bottom-width: 1px;
      font-weight: 500;
      text-transform: uppercase;
      font-size: 15px;
      border-top: 0;
      text-align: left;
      padding: 1rem;
      border-bottom: 1px solid $light-blue !important;
      background-color: $inner-bg;

      [dir="rtl"] & {
        text-align: right;
      }
    }
  }

  tbody {
    h2 {
      margin-bottom: 0;
    }

    tr {
      td {
        vertical-align: middle;
        color: #777777;
        border-top: 0;
        border-bottom: 1px solid $light-blue !important;
        text-align: left;
        padding: calc(0px + (16 - 0) * ((100vw - 320px) / (1920 - 320))) calc(6px + (16 - 6) * ((100vw - 320px) / (1920 - 320)));
        min-width: 175px;

        [dir="rtl"] & {
          text-align: right;
        }

        a {
          font-weight: 400;
          font-size: 14px;
          text-transform: capitalize;
          display: inline-block;
        }
      }
    }
  }
}

.ticket-table {
  thead {
    tr {
      th {
        text-align: center;
        font-size: 16px;
      }
    }
  }

  tbody {
    tr {
      td {
        text-align: center;
        min-width: 150px;

        &:first-child {
          font-weight: 700;
        }

        &.status-danger {
          span {
            background-color: rgba($color: #0da487, $alpha: 0.15);
            color: var(--theme-color);
            padding: 5px 10px;
            text-transform: capitalize;
            display: inline-block;
            border-radius: 0;
            font-size: 12px;
          }
        }

        &.status-close {
          span {
            background-color: rgba($color: #2f8733, $alpha: 0.15);
            color: #2f8733;
            padding: 5px 10px;
            text-transform: capitalize;
            display: inline-block;
            border-radius: 0;
            font-size: 12px;
          }
        }
      }
    }
  }
}

.invoice-table {
  thead {
    tr {
      th {
        text-align: left !important;

        &:nth-child(5) {
          width: 120px !important;
          font-weight: 700;
        }

        &:last-child {
          text-align: center !important;
        }

        &:nth-child(3),
        &:nth-child(4),
        &:nth-child(5) {
          text-align: center !important;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        text-align: left !important;

        &:nth-child(2),
        &:nth-child(5) {
          font-weight: 700;
        }

        &:nth-child(3),
        &:nth-child(4),
        &:nth-child(5) {
          text-align: center !important;
        }

        &:nth-child(7) {
          color: var(--theme-color);
        }

        &:last-child {
          text-align: center !important;
        }
      }
    }
  }
}

.transactions-table {
  tbody {
    tr {
      &:first-child {
        td {
          padding-top: 0;
        }
      }

      td {
        background-color: $white;
        border: none;

        &:first-child {
          padding-left: 0;

          [dir="rtl"] & {
            padding-left: unset;
            padding-right: 0;
          }
        }

        &:last-child {
          padding-right: 0;

          [dir="rtl"] & {
            padding-right: unset;
            padding-left: 0;
          }
        }

        &.td-color {
          &-1 {
            &:first-child {
              .transactions-icon {
                background-color: rgba(40, 200, 112, 0.12);
                color: rgb(40, 200, 112);
              }
            }
          }

          &-2 {
            &:first-child {
              .transactions-icon {
                background-color: rgba(116, 104, 240, 0.12);
                color: rgb(116, 104, 240);
              }
            }
          }

          &-3 {
            &:first-child {
              .transactions-icon {
                background-color: rgba(226, 36, 84, 0.12);
                color: #e22453;
              }
            }
          }

          &-4 {
            &:first-child {
              .transactions-icon {
                background-color: rgba(255, 159, 68, 0.12);
                color: rgb(255, 159, 68);
              }
            }
          }
        }

        &:first-child {
          display: flex !important;
          align-items: center !important;
          justify-content: unset !important;

          .transactions-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(226, 36, 84, 0.12);
            color: #e22453;
            @include flex_common;
            margin-right: 15px;

            i {
              font-size: 20px;
            }
          }

          .transactions-name {
            width: calc(100% - 50px);

            h6 {
              font-weight: 700;
            }
          }
        }

        &:last-child {
          text-align: right;
          font-weight: 700;
          font-size: 18px;

          &.lost {
            color: var(--theme-color);
          }

          &.success {
            color: #42ba96;
          }
        }
      }
    }
  }
}

.list-table {
  thead {
    tr {
      th {
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));

        &:first-child {
          max-width: none;
        }

        &:nth-child(2),
        &:nth-child(3) {
          width: 350px;
        }

        &:nth-child(2),
        &:nth-child(3) {
          text-align: left;

          [dir="rtl"] & {
            text-align: right;
          }
        }

        &:last-child {
          text-align: center !important;
        }

        .check-box-contain {
          display: flex;
          align-items: center;

          .user-checkbox {
            margin-bottom: 0;
            padding: 0;
            margin-right: 10px;
            margin-top: -5px;
          }
        }
      }
    }
  }

  tbody {
    tr {
      td {
        .check-box-contain {
          display: flex;
          align-items: center;

          .user-checkbox {
            margin-bottom: 0;
            padding: 0;
            margin-right: 10px;
            margin-top: 3px;
          }
        }

        &:nth-child(2),
        &:nth-child(3),
        &:nth-child(4) {
          text-align: left !important;

          [dir="rtl"] & {
            text-align: right !important;
          }
        }

        &:first-child {
          max-width: none;
        }
      }
    }
  }
}

.rate-table {
  tbody {
    tr {
      td {
        &:nth-child(3) {
          color: var(--theme-color);
        }
      }
    }
  }
}

.menu-table {
  tbody {
    tr {
      td {
        span {
          img {
            width: 70px;
          }
        }
      }
    }
  }

  thead,
  tbody {
    tr {
      th,
      td {
        &:nth-child(2) {
          min-width: 260px;
        }

        &:nth-child(3) {
          min-width: 260px;
        }

        &:nth-child(4) {
          min-width: 115px;
        }
      }

      th {
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
      }
    }
  }
}

.all-cars-table {
  tbody tr td span img {
    width: auto;
    height: 32px;
    border-radius: none;
  }

  thead,
  tbody {
    tr {
      th,
      td {
        &:nth-child(2) {
          min-width: 200px;
        }

        &:nth-child(3) {
          min-width: 200px;
        }
      }

      th {
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
      }
    }
  }
}

.Booking-table {
  thead {
    tr {
      th {
        &:nth-child(n + 6) {
          text-align: center;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        &:nth-child(2) {
          min-width: 200px;
        }

        &:nth-child(4) {
          min-width: 130px;
        }

        &:nth-child(n + 6) {
          text-align: center;
        }
      }

      th {
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
      }

      td {
        &:nth-child(6) {
          svg {
            cursor: pointer;
            color: $x-color;
          }
        }

        i {
          font-size: 20px;
          opacity: 0.5;
        }

        &:nth-child(n + 6) {
          svg {
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }

  .status {
    color: $white;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 12px;

    &--upcoming {
      background-color: $upcoming-color;
    }

    &--past {
      background-color: $past-color;
    }

    &--cancel {
      background-color: $cancel-color;
    }
  }
}

.tooltip {
  .tooltip-inner {
    background-color: black !important;
    color: #fff !important;
  }
}

.tooltip-arrow {
  &::before {
    border-top-color: black !important;
  }
}

.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-left-color: transparent !important;
}

.dashboard-table {
  &.table {
    tbody {
      tr {
        td {
          border-bottom: none;
        }
      }
    }
  }

  tbody {
    tr {
      font-size: 12px;

      td:first-child {
        width: 90px;

        img {
          width: 65px;
          height: 45px;
          border-radius: 0;
        }
      }

      td {
        &:nth-child(2) {
          span {
            display: block;
            margin-left: 10px;

            &:first-child {
              font-weight: 600;
              font-size: 14px;
            }
          }

          span + span {
            color: $grey-9;
          }
        }
      }

      td {
        &:nth-child(4) {
          span {
            svg {
              fill: $primary-color;
            }
          }
        }

        &:nth-child(6) {
          span {
            svg {
              fill: $primary-color;
            }
          }
        }

        &:nth-child(4),
        &:nth-child(6) {
          span {
            svg {
              height: 25px;
              width: 25px;
              vertical-align: bottom;
              margin-right: 10px;
            }
          }
        }

        &:nth-child(8) {
          span {
            color: $grey-9;
          }
        }

        &:nth-child(7) {
          span {
            color: $white;
          }
        }
      }

      td {
        &:nth-child(5) {
          display: flex;
          flex-direction: column;
          align-items: center;

          span {
            &:first-child {
              margin-top: 29px;
              margin-bottom: 5px;
              display: block;
              width: 140px;
              height: 2px;
              background-color: rgba($grey-9, 0.4);
            }
          }

          span + span {
            color: $grey-9;
          }
        }
      }
    }
  }
}

.dashboard-table {
  thead,
  tbody {
    tr {
      th,
      td {
        padding: 0.75rem 0.75rem 0.75rem 0;

        &:nth-child(2) {
          min-width: 140px;

          span {
            width: 140px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
          }
        }

        &:nth-child(3) {
          min-width: 76px;
        }

        &:nth-child(4),
        &:nth-child(6) {
          min-width: 140px;
        }
      }
    }
  }
}

.order-details-table {
  .table-details {
    + .table-details {
      margin-top: 30px;
    }

    .table-transaction {
      td {
        &:last-child {
          text-align: right;
        }

        &:nth-child(2) {
          text-align: center;
        }
      }
    }

    .table-balance {
      &:last-child {
        td {
          h5 {
            color: var(--theme-color) !important;
            font-weight: 800;
          }
        }
      }

      td {
        &:last-child {
          text-align: right;
        }

        h5 {
          span {
            color: $gray;
            font-weight: 400;
          }
        }
      }
    }

    .table {
      tbody {
        border-bottom: 1px solid $gray-light;

        tr {
          &:first-child {
            td {
              padding-top: 20px;
            }
          }

          &:last-child {
            td {
              padding-bottom: 20px;
            }
          }

          td {
            padding: 10px;
            min-width: 170px;
            max-width: 150px;
            border-bottom: none !important;
            color: $font-light;

            [dir="rtl"] & {
              text-align: right;
            }

            &:nth-child(1) {
              background-color: transparent;
              min-width: 130px;

              a {
                img {
                  height: 80px;
                  width: 100px;
                  border-radius: 0;
                }
              }
            }

            h5 {
              margin-top: 10px;
              color: $black1;
            }
          }
        }
      }

      tfoot {
        tr {
          td {
            padding: 10px 15px;

            h4 {
              font-weight: 400;
              color: $black1;
            }
          }

          &.table-order {
            &:first-child {
              td {
                padding: 20px 15px 10px;
              }
            }

            &:nth-child(3) {
              td {
                padding: 10px 15px 20px;
              }
            }

            &:last-child {
              td {
                padding: 20px 15px;
              }
            }

            h5 {
              color: #212529;
              font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
              line-height: 1.2;
              font-weight: 400;
            }

            &:nth-child(n + 3) {
              border-bottom: 1px solid $gray-light;
            }
          }
        }
      }
    }
  }

  .order-success {
    padding: calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
    border-radius: 0;
    background-color: $inner-bg;

    h4 {
      font-weight: 700;
      text-transform: capitalize;
      font-size: 16px;
      color: $black1;
    }

    .order-details {
      margin-top: 0;

      li {
        display: flex;
        text-transform: capitalize;
        line-height: 1.6;
        font-size: 15px;
        margin-bottom: 3px;
        color: #7e7e7e;
      }
    }

    .payment-mode {
      p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 0;
        color: #7e7e7e;
        letter-spacing: 0.05rem;
      }
    }

    .delivery-sec {
      margin-bottom: -5px;
      margin-top: 20px;
      background-color: transparent;

      h3 {
        color: $black1;
        text-transform: capitalize;
        font-size: 18px;
        margin-bottom: 0;
        font-weight: 400;

        span {
          font-weight: 700;
          margin-left: 5px;

          [dir="rtl"] & {
            margin-left: 0;
            margin-right: 5px;
          }
        }
      }

      a {
        font-size: 16px;
        text-transform: capitalize;
        margin-top: 5px;
        display: block;
        font-weight: 600;
      }
    }
  }
}

.category-table {
  .table {
    tbody {
      tr {
        td {
          .category-icon {
            width: 35px;
            height: 35px;
            object-fit: contain;
            margin: 0 auto;

            img {
              @include pseudowh;
              object-fit: contain;
            }
          }
        }
      }
    }
  }
}

.cart-section {
  .count-down {
    margin-bottom: 5px;
    padding: 0;
    letter-spacing: 1.1px;
    @include flex_common;
    color: $black1;

    h5 {
      margin-right: calc(0px + (10 - 0) * ((100vw - 320px) / (1920 - 320)));
    }
  }

  .table {
    tbody {
      + {
        tbody {
          border-top: none;
        }
      }
    }
  }

  .cart-buttons {
    padding-top: 35px;

    > div {
      &:last-child {
        text-align: right;
        padding-right: 38px;
      }
    }
  }

  .cart-table {
    overflow: hidden;
    margin-bottom: 0;
    border: none;

    thead {
      tr {
        th {
          border-bottom-width: 1px;
          font-weight: bolder;
          color: $white;
          text-transform: uppercase;
          font-size: 15px;
          border-top: 0;
          border-bottom: 1px solid $light-blue !important;
          padding: 0.75rem 1.25rem;
          background-color: var(--theme-color);

          a {
            color: $white !important;
            font-size: 14px;
            letter-spacing: 0.5px;
            font-weight: 600;
            text-decoration: underline;
          }
        }
      }
    }
  }

  tbody {
    h2 {
      margin-bottom: 0;
    }

    tr {
      &.table-order {
        td {
          min-width: 150px;
        }

        &:last-child {
          border-bottom: 1px solid $gray-light;
        }
      }

      td {
        vertical-align: middle;
        color: $black1;
        border-top: 0;
        border-bottom: 1px solid $gray !important;
        min-width: 175px;

        a {
          color: $font-light;
          font-weight: 400;
          font-size: 14px;
          text-transform: capitalize;
          margin-bottom: 0;

          &.icon {
            border: 1px solid rgba(169, 169, 169, 0.5);
            padding: 10px 15px;
            border-radius: 3px;
          }

          img {
            height: 80px;
          }
        }

        p {
          color: #777777;
          font-weight: 400;
          font-size: 14px;
          text-transform: capitalize;
          margin-bottom: 0;
          line-height: 18px;

          img {
            height: 90px;
          }
        }

        h5 {
          color: #212529;
          font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
          line-height: 1.2;
          margin: 10px 0 0 0;
          font-weight: 400;
        }
      }
    }
  }

  tfoot {
    tr {
      th {
        padding-top: 35px;
        text-align: left;
      }

      td {
        text-align: left;
        border: none;
        padding: 10px 15px;

        h4 {
          font-size: calc(17px + (18 - 17) * ((100vw - 320px) / (1920 - 320)));
          line-height: 1.2;
          margin: 0;
          font-weight: 400;
        }
      }
    }
  }
}

.search-area {
  display: flex;
  align-items: center;

  @media (max-width: 575px) {
    display: block;
  }

  .input-group {
    width: 30%;

    @media (max-width: 1460px) {
      width: 40%;
    }

    @media (max-width: 767px) {
      width: 55%;
    }

    @media (max-width: 575px) {
      width: 100%;
    }
  }

  .filter-sec {
    margin-left: auto;

    @media (max-width: 575px) {
      margin-top: 12px;
    }

    [dir="rtl"] & {
      margin-left: unset;
      margin-right: auto;
    }
  }

  .form-select {
    padding: 8px 10px;
  }

  .btn-solid {
    padding: 9px 21px;
    margin-left: 14px;
  }
}

.export-sec {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid $light-gray;

  .form-control {
    padding: 6px 20px 6px 12px;
  }

  .input-group-text {
    margin-bottom: 0;
  }
}

.dropzone-wrapper {
  border: 2px dashed #4a5568;
  color: #4a5568;
  position: relative;
  height: 150px;

  &:hover,
  &.dragover {
    background: #ecf0f5;
  }

  .dropzone-desc {
    position: absolute;
    @include center(center);
    text-align: center;
    width: 100%;

    i {
      font-size: 27px;
    }
  }
}

.dropzone,
.dropzone:focus {
  position: absolute;
  outline: none !important;
  width: 100%;
  height: 150px;
  cursor: pointer;
  opacity: 0;
}

.preview-zone {
  text-align: center;
}

.preview-zone {
  .box {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
  }
}

.order-table {
  tbody {
    tr {
      td {
        .order-image {
          width: 60px;
          height: 60px;

          img {
            @include pseudowh;
            object-fit: contain;
          }
        }
      }
    }
  }
}

.best-selling-table {
  tbody {
    tr {
      td {
        padding: 16px;
        border-bottom: 1px solid $light-gray;

        .best-product-box {
          display: flex;
          align-items: center;
          gap: 10px;

          .product-image {
            width: 68px;
            height: 68px;
            background-color: $input-bg-color;
            @include flex_common;
            padding: 8px;
            border-radius: 0;

            img {
              @include pseudowh;
              object-fit: contain;
            }
          }

          .product-name {
            h5 {
              font-weight: 500;
              color: $title-color;
              margin-bottom: 5px;
            }

            h6 {
              font-size: 13px;
            }
          }
        }

        .product-detail-box {
          h5 {
            font-size: calc(14px + (15 - 14) * ((100vw - 320px) / (1920 - 320)));
            margin-top: 5px;
          }

          h6 {
            font-size: 13px;
            font-weight: 600;
            color: $grey-darker;
          }
        }
      }
    }
  }
}

.permissions-table {
  thead {
    tr {
      th {
        font-size: 16px;
        white-space: nowrap;
        border-right: 1px solid $light-gray;
        background-color: #f9f9f6;
        padding: 12px 15px;

        &:last-child {
          border-right: none;
        }
      }
    }
  }

  tbody {
    tr {
      td {
        border-right: 1px solid $light-gray;
        padding: 12px 15px;

        &:last-child {
          border-right: none;
        }
      }
    }
  }
}

.custom-role {
  .show-box {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;

    @media (max-width: 640px) {
      display: block;
    }

    span {
      text-transform: capitalize;
    }

    label {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      text-transform: capitalize;

      @media (max-width: 640px) {
        justify-content: center;
      }

      .form-select {
        display: inline-block;
        width: auto;
        margin: 0 8px;
        border: 1px solid #ced4da;
        padding: 8px 10px;
      }
    }

    .role-search {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;

      @media (max-width: 640px) {
        margin-top: 20px;
        justify-content: flex-start;
      }

      .form-label {
        white-space: nowrap;
        margin-right: 15px;

        [dir="rtl"] & {
          margin-right: 0;
          margin-left: 15px;
        }
      }

      .form-control {
        padding: 8px 10px;
        width: 230px;
        border-radius: 0;
        border-color: #eee;

        @media (max-width: 767px) {
          width: 100%;
        }
      }

      .input-error {
        .custom-select-box {
          display: flex;

          .form-control {
            border-color: #efefef;
            background-color: #f9f9f6 !important;
            width: 210px;
          }
        }
      }
    }

    > .row {
      > div {
        &:empty {
          display: none;
        }
      }
    }
  }
}

.filter-option-list {
  > .row {
    > div {
      padding-right: calc(var(--bs-gutter-x) * 0.5);
      padding-left: calc(var(--bs-gutter-x) * 0.5);
    }
  }

  .custom-select-box {
    height: auto;
    min-height: 52px;

    input {
      height: 50px;
      min-height: 32px;
      @include flex_common;
      background-color: #f9f9f6;
      font-size: calc(14px + 2 * (100vw - 320px) / 1600);
      border: 1px solid #efefef;
      padding-right: 70px;

      [dir="rtl"] & {
        padding-right: 20px;
        padding-left: 70px;
      }
    }
  }
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;

  @media (max-width: 767px) {
    display: block;
    text-align: center;
  }

  .pagination-box {
    padding-bottom: 0;
    padding-top: 0;
    margin: 0 auto;

    @media (max-width: 767px) {
      margin-top: 20px;
    }

    nav {
      .pagination {
        @media (max-width: 767px) {
          justify-content: center;
        }
      }
    }
  }
}

.custom-role-table {
  table-layout: fixed;
  border: none;

  &.table {
    border: none;

    thead {
      tr {
        th {
          font-size: calc(13px + (16 - 13) * ((100vw - 320px) / (1920 - 320)));
          background-color: #f9f9f6;
          text-align: center;
          min-width: 170px;
          border: none;
          padding: 12px 15px;
          background-color: #f3f3f3;
        }
      }
    }

    tbody {
      tr {
        td {
          border: none;
          text-align: center;
        }

        th,
        td {
          &:nth-child(3) {
            color: $primary-color;
          }

          &:nth-child(6) {
            font-weight: bolder;
          }

          &:last-child {
            ul {
              @include flex_common;
              flex-wrap: nowrap;
              gap: 15px;

              li {
                a {
                  display: block;
                }
              }
            }
          }
        }
      }
    }
  }
}

.pagination-primary {
  .page-item {
    .page-link {
      border: none;

      &:hover {
        background-color: transparent;
      }

      &.active {
        background-color: var(--theme-color);
        color: $white !important;
        border-color: transparent;
        border-radius: 0;
      }
    }
  }
}

.shop-logo {
  img {
    width: 60px;
    height: auto;
  }
}

.filter-arrow {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;

  svg {
    display: block;
    line-height: 14px;
    cursor: pointer;
    color: #878787;
    width: 16px;
    height: 16px;
  }
}

.table-del {
  position: absolute;
  left: 220px;
  top: 90px;
}

.refund-table {
  tr {
    td {
      &:nth-child(4) {
        width: 350px;
      }
    }
  }
}

.overflow-custom {
  border-bottom: 1px solid #eee;

  @media (max-width: 1199px) {
    overflow: auto;
  }

  .order-tab-content {
    border-bottom: none;
  }

  &::-webkit-scrollbar {
    height: 0 !important;
  }
}

.order-tab-content {
  display: flex;
  border-bottom: 1px solid #eee;
  align-items: center;
  gap: 13px;

  body.dark-only & {
    border-color: $dark-card-border;
  }

  li {
    position: relative;
    padding: 4px 13px 10px 13px;
    overflow: hidden;
    border-radius: 0;
    z-index: 0;
    white-space: nowrap;

    &.pending {
      a {
        span {
          color: rgb(183, 110, 0);
          background-color: rgba(255, 171, 0, 0.16);

          body.dark-only & {
            color: rgb(183, 110, 0);
            background-color: rgba(255, 171, 0, 0.16);
          }
        }
      }
    }

    &.completed {
      a {
        span {
          color: var(--theme-color);
          background-color: rgba(236, 138, 81, 0.16);

          body.dark-only & {
            color: var(--theme-color);
            background-color: rgba(236, 138, 81, 0.16);
          }
        }
      }
    }

    &.cancel {
      a {
        span {
          color: rgb(183, 29, 24);
          background-color: rgba(255, 97, 97, 0.1019607843);

          body.dark-only & {
            color: rgb(183, 29, 24);
            background-color: rgba(255, 97, 97, 0.1019607843);
          }
        }
      }
    }

    &.processing {
      a {
        span {
          color: var(--theme-color);
          background-color: rgba(236, 138, 81, 0.16);

          body.dark-only & {
            color: var(--theme-color);
            background-color: rgba(236, 138, 81, 0.16);
          }
        }
      }
    }

    &.shipped {
      a {
        span {
          color: rgba(160, 74, 255, 1);
          background-color: rgba(160, 74, 255, 0.1019607843);

          body.dark-only & {
            color: rgba(160, 74, 255, 1);
            background-color: rgba(160, 74, 255, 0.1019607843);
          }
        }
      }
    }

    &.out-delivery {
      a {
        span {
          color: rgba(13, 119, 164, 1);
          background-color: rgba(13, 119, 164, 0.1019607843);

          body.dark-only & {
            color: rgba(13, 119, 164, 1);
            background-color: rgba(13, 119, 164, 0.1019607843);
          }
        }
      }
    }

    &.active {
      &::after {
        width: 100%;
      }

      &.pending {
        a {
          span {
            color: white;
            background-color: rgba(255, 171, 0, 1);

            body.dark-only & {
              color: white;
              background-color: rgba(255, 171, 0, 1);
            }
          }
        }
      }

      &.completed {
        a {
          span {
            color: #fff;
            background-color: rgba(236, 138, 81, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(236, 138, 81, 1);
            }
          }
        }
      }

      &.cancel {
        a {
          span {
            color: #fff;
            background-color: rgba(255, 86, 48, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(255, 86, 48, 1);
            }
          }
        }
      }

      &.processing {
        a {
          span {
            color: #fff;
            background-color: rgba(236, 138, 81, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(236, 138, 81, 1);
            }
          }
        }
      }

      &.shipped {
        a {
          span {
            color: #fff;
            background-color: rgba(160, 74, 255, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(160, 74, 255, 1);
            }
          }
        }
      }

      &.out-delivery {
        a {
          span {
            color: #fff;
            background-color: rgba(13, 119, 164, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(13, 119, 164, 1);
            }
          }
        }
      }

      a {
        span {
          color: #e5e5e5;
          background-color: #464646;

          body.dark-only & {
            color: #e5e5e5 !important;
            background-color: #464646;
          }
        }
      }
    }

    &::after {
      @include pos;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--theme-color);
    }

    a {
      color: $title-color;
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 16px;
      text-transform: capitalize;
      white-space: nowrap;

      body.dark-only & {
        color: #ddd;
      }

      span {
        line-height: 0.9;
        border-radius: 0;
        font-size: 13px;
        padding-inline: 4px;
        font-weight: 500;
        height: 24px;
        @include flex_common;
        position: relative;
        overflow: hidden;
        z-index: 0;
        background-color: #e7e7e7;
        width: 24px;
        color: #252b2a;
        padding: 0;

        body.dark-only & {
          background-color: #283038;
          color: #777 !important;
        }
      }
    }
  }
}

.email-table {
  border: none;

  + .email-table {
    margin-top: 1.5rem;
  }

  body.dark-only & {
    border-color: $dark-card-border;
  }

  table > :not(:last-child) > :last-child > * {
    border-color: #ddd;
  }

  tr {
    &:last-child {
      td {
        border-bottom: unset;
      }
    }

    td {
      padding: 11px 14px;
      border-bottom: 1px solid #ddd;

      + td {
        border-left: 1px solid #ddd;
      }
    }

    th {
      padding: 8px 14px;
      background-color: #f8f8f8;
      color: #222;
      font-weight: 600;
      font-size: 17px;

      body.dark-only & {
        background-color: #0b141d;
      }

      + th {
        border-left: 1px solid #ddd;
      }
    }
  }
}

table {
  border: 1px solid rgba($grey-9, 0.3);

  tbody {
    tr {
      td {
        a {
          .eye {
            color: var(--theme-color);
          }

          .pencil {
            color: #a9a9a9;
          }

          .delete {
            color: $danger-color;
          }
        }
      }
    }
  }
}

// table {
//   tbody {
//     tr {
//       td {
//         a {
//           .ri-eye-line {
//             color: var(--theme-color);
//           }

//           .ri-pencil-line {
//             color: #a9a9a9;
//           }

//           .ri-delete-bin-line {
//             color: $danger-color;
//           }
//         }
//       }
//     }
//   }
// }
