/**=====================
     Table CSS Start
==========================**/
.sm-width {
  width: 90px;
}

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

.tbl-logo-image {
  width: 50px;
  height: auto;
  object-fit: cover;
}

.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 38px 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;
        border-radius: 0 !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 {
      border-bottom: 1px solid #eee;

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

      td {
        border: none;
      }

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

        &:last-child {
          ul {
            display: flex;
            align-items: center;
            justify-content: center;
            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;
          }
        }
      }
    }
  }

  th {
    position: relative;
  }

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

    display: inline-flex;
    align-items: center; 
    margin-left: 2px;  
    position: relative;

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

.show-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;

  .selection-box {
    display: flex;
    align-items: center;
    gap: 8px;

    .form-control {
      width: auto;
      text-align: center;
    }

    label {
      display: inline-block;
      white-space: nowrap;
    }
  }

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

  label {
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;

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

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

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

    @media (max-width: 1290px) {
      // width: 100%;
      width: auto;
    }

    @media (max-width: 742px) {
      flex-wrap: wrap;
    }

    @media (max-width: 640px) {
      margin-top: 20px;
      display: flex;
      align-items: center;
    }

    .custom-dp-dropdown {
      .input-group {
        .form-control {
          opacity: 0;
          visibility: hidden;
        }
      }
    }

    .input-group {
      @media (max-width: 1366px) {
        width: 50%;
      }
    }

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

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

    .form-control {
      padding: 8px 10px;
      width: 230px;

      @media (max-width: 1315px) {
        // width: 140px;
        width: 210px;
      }
    }

    &.product-search {
      justify-content: unset;
      width: auto;

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

      @media (max-width: 640px) {
        margin-top: 0;
        justify-content: unset !important;
      }
    }

    .search-input {
      width: 100%;
      display: flex;
      gap: 15px;

      @media (max-width: 451px) {
        flex-wrap: wrap;
        gap: 6px;
      }

      .input-group {
        @media (max-width: 451px) {
          width: 100%;
        }
      }
    }
  }
}

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;

  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;

    body[class="dark-only"] & {
      color: #ddd;
    }

    a {
      i {
        font-size: 18px;
        color: #707070;
        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: 5px;

            img {
              object-fit: cover;
            }
          }

          .user-name {
            span {
              display: block;

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

              &:last-child {
                color: $theme-body-font-color;
              }
            }
          }
        }
      }
    }
  }
}

.all-package {
  thead {
    tr {
      th {
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        background-color: #f8f8f8;
        text-align: center;
        // text-align: start;
        min-width: 100px;
        padding: 10px !important;
        user-select: none;
        position: relative;

        &:last-child {
          text-align: center;
          width: 100px;
        }

        @media (max-width: 1800px) {
          width: 105px;
        }
      }
    }
  }

  .sm-width {
    width: 90px;
  }

  tbody {
    tr {
      &:last-child {
        border-bottom: unset;

        td {
          padding-bottom: 25px;
        }
      }

      td {
        text-align: center;
        // text-align: start;

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

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

        .table-image {
          width: 65px;
          height: 65px;
          margin: 0 auto;
          display: flex;
          align-items: center;
          justify-content: center;

          img {
            width: 100%;
            height: 100%;
            object-fit: contain;
          }
        }

        .form-switch {
          display: block;
        }

        &.order-cancle {
          span {
            background-color: rgba($color: #cf142b, $alpha: 0.2);
            color: #cf142b;
            padding: 5px 10px;
            border-radius: 5px;
            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: 5px;
            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: 5px;
            font-size: 12px;
            font-weight: 700;
            position: relative;
          }
        }

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

        &:last-child {
          ul {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 5px;

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

  tbody {
    tr {
      td {
        span {
          img {
            width: 70px;
          }
        }
      }
    }
  }
}

.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: 100px;

        &: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: 5px;
            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: 5px;
            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;
            display: flex;
            align-items: center;
            justify-content: center;
            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: 5px;
    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;
}

.bs-tooltip-bottom {
  left: 50% !important;
  transform: translate(-50%, 33px) !important;

  .tooltip-arrow {
    left: 50% !important;
    transform: translate(-50%, 0) !important;

    &::before {
      border-left-color: black !important;
    }
  }
}

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

  tbody {
    tr {
      font-size: 12px;

      td:first-child {
        width: 60px;

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

      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;
        }
      }
    }
  }
}

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

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

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

.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: 5px;
                }
              }
            }

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

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

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

          &.table-order {
            &:first-child {
              td {
                padding: 10px 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: 5px;
    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 {
              width: 100%;
              height: 100%;
              object-fit: contain;
            }
          }
        }
      }
    }
  }
}

.cart-section {
  .count-down {
    margin-bottom: 5px;
    padding: 0;
    letter-spacing: 1.1px;
    display: flex;
    align-items: center;
    justify-content: center;
    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;

  @include mq-max(sm) {
    display: block;
  }

  .input-group {
    width: 30%;

    @include mq-max(3xl) {
      width: 40%;
    }

    @include mq-max(md) {
      width: 55%;
    }

    @include mq-max(sm) {
      width: 100%;
    }
  }

  .filter-sec {
    margin-left: auto;

    @include mq-max(sm) {
      margin-top: 12px;
    }

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

  .form-select {
    padding: 8px 38px 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;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    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 {
            width: 100%;
            height: 100%;
            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: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            border-radius: 5px;

            img {
              width: 100%;
              height: 100%;
              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-bottom: 5px;
          }

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

.permissions-table {
  thead {
    tr {
      th {
        font-size: 16px;
        white-space: nowrap;
        border-right: 1px solid $light-gray;
        background-color: #f8f8f8;
        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;
        }
      }
    }
  }
}

.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;
  }
}

.table-search {
  display: flex;
  align-items: center;
  gap: 20px;
}

.datepicker-wrap {
  display: inline-flex;
  margin-left: auto;
}

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

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

  li {
    position: relative;
    padding: 4px 13px 10px 13px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    z-index: 0;
    cursor: pointer;

    &.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: rgb(34, 34, 34);
            background-color: rgba(255, 171, 0, 1);

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

      &.completed {
        a {
          span {
            color: #fff;
            background-color: rgba(13, 164, 135, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(13, 164, 135, 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(13, 164, 135, 1);

            body.dark-only & {
              color: #fff;
              background-color: rgba(13, 164, 135, 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;
        }
      }
    }

    &::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;

      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;
        color: #464646;
        background-color: #e5e5e5;
        width: 24px;
        padding: 0;

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

.email-table {
  border: 1px solid #eee;

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

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

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

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

      &:last-child {
        width: 100px;
      }
    }

    th {
      padding: 8px 14px;
      background-color: #f8f8f8;
      color: #222;
      font-weight: 600;
      font-size: calc(15px + (17 - 15) * ((100vw - 320px) / (1920 - 320)));

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

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

.table {
  border-color: #eee !important;
}