/**=====================
     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 18px !important;
        background-color: #f8f8f8 !important;
        color: #556370;
        font-size: 14px;
        font-weight: 600;

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

      border-bottom: 1px solid #e9ecef;
    }
  }

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

.orders-table {
  min-width: 980px;

  thead {
    tr {
      th {
        background-color: #e9eef4 !important;
        font-weight: 700;
        padding: 16px 18px !important;
        color: #3f4a57;
        position: sticky;
        top: 0;
        z-index: 2;
        text-transform: none;
        letter-spacing: 0.2px;
      }
    }
  }

  tbody {
    tr {
      td {
        padding: 16px 18px;
        border-bottom: 1px solid #edf0f4;
      }

      &:nth-child(odd) {
        td {
          background-color: #fbfcfd;
        }
      }

      &:nth-child(even) {
        td {
          background-color: #f7f9fb;
        }
      }

      &:hover {
        td {
          background-color: #eef4ff;
        }
      }
    }
  }

  .orders-th-left {
    text-align: left !important;
  }

  .orders-th-center {
    text-align: center !important;
  }

  .orders-th-right {
    text-align: right !important;
  }

  .orders-td-left {
    text-align: left !important;
  }

  .orders-td-center {
    text-align: center !important;
  }

  .orders-td-right {
    text-align: right !important;
  }

  .orders-col-total {
    font-weight: 700;
    color: #2b3642;
  }

  td[data-key="action"] {
    text-align: center;
  }

  .order-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .order-id {
    font-weight: 700;
    color: #1f2937;
  }

  .order-subtext {
    font-size: 12px;
    color: #8a94a4;
  }

  .order-customer-name {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
    font-weight: 600;
  }

  .payment-summary {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .payment-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.4px;

    &.cod {
      color: #6c757d;
      background-color: rgba(108, 117, 125, 0.18);
    }

    &.card {
      color: #4b5563;
      background-color: rgba(75, 85, 99, 0.12);
    }
  }

  .payment-mode-text {
    font-size: 10px;
    font-weight: 600;
  }

  .tracking-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
  }

  .order-tracking-number {
    color: #111827;
    font-weight: 600;
  }

  .orders-copy-btn {
    height: 28px;
    padding: 0;
    border-radius: 6px;
    border-color: #e2e8f0 !important;
    background-color: #f8fafc !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
  }

  .orders-copy-btn span {
    font-size: 13px;
    line-height: 1;
  }

  .orders-copy-btn svg {
    width: 14px;
    height: 14px;
    color: currentColor;
  }

  .orders-copy-btn:hover {
    background-color: #eef2f6 !important;
    color: #1f2937;
  }

  .copy-tooltip {
    position: absolute;
    top: -24px;
    right: 0;
    background-color: #1f2937;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
  }

  .copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
  }

  .custom-ul {
    gap: 8px;
  }

  .custom-ul a,
  .custom-ul button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #667085;
    transition: all 0.2s ease;
  }

  .custom-ul a:hover,
  .custom-ul button:hover {
    background-color: #eef2f6;
    color: #1f2937;
  }

  .custom-ul a svg,
  .custom-ul button svg,
  .custom-ul a i,
  .custom-ul button i {
    color: #111827;
  }

  [class^="status-"] {
    span {
      color: #64748b;
      background-color: rgba(148, 163, 184, 0.18);
    }
  }

  .status-pending span {
    color: #d97a00;
    background-color: rgba(217, 122, 0, 0.14);
  }

  .status-delivered span {
    color: #2f8733;
    background-color: rgba(47, 135, 51, 0.14);
  }

  .status-cancelled span,
  .status-cancel span {
    color: #d9534f;
    background-color: rgba(217, 83, 79, 0.12);
  }
}

.orders-page {
  .card-bottom {
    padding-top: 18px;
    color: #9aa5b1;
  }

  .card-bottom .page-link {
    font-size: 12px;
    color: #9aa5b1;
  }
}

.products-page {
  .title-header h5 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
  }

  .title-header {
    margin-bottom: 10px;
  }

  .show-box {
    margin-bottom: 10px;
  }

  .products-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .products-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 600;

    svg {
      width: 14px;
      height: 14px;
    }
  }

  .products-header-actions .btn-light-bg {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    font-weight: 500;
  }

  .products-header-actions .btn-light-bg svg {
    width: 14px;
    height: 14px;
  }

  .products-bulk-select {
    min-width: 170px;
  }

  .products-header-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .products-view-toggle {
    display: inline-flex;
    gap: 8px;
  }

  .products-market-select {
    min-width: 140px;
  }

  .products-filters {
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 12px;
  }

  .products-filters-basic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
  }

  .products-filters-advanced {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }

  .products-filter-field {
    min-width: 160px;
  }

  .products-filter-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
  }

  .products-advanced-toggle {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .products-filters .form-control,
  .products-filters .form-select,
  .products-filters .custom-select-box,
  .products-bulk-select .form-select {
    height: 36px;
  }

  .products-bulk-card .card-body {
    padding: 14px 16px;
  }

  .products-inline-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .products-inline-filters {
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  .btn-ghost-dark {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 600;
  }

  .btn-ghost-reset {
    background: transparent;
    border: none;
    color: #6b7280;
    text-decoration: underline;
    padding-left: 0;
  }

  .products-inline-actions {
    display: inline-flex;
    gap: 10px;
    align-items: flex-end;
  }

  .products-inline-actions .form-select {
    min-width: 140px;
    color: #111827;
  }

  .products-apply-btn {
    background-color: #111827;
    border-color: #111827;
    color: #fff;
  }

  .products-apply-btn:hover {
    opacity: 0.9;
  }

  .product-status {
    padding: 6px 8px;
    border-radius: 999px;
    background-color: #f3f4f6;
    gap: 8px;
    min-height: auto;
  }

  .product-status .status-filter-btn {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background-color: transparent;
  }

  .product-status .status-filter-btn.active {
    background-color: #111827;
    color: #fff !important;
  }

  .product-status .status-filter-btn.status-published.active {
    background-color: rgba(31, 138, 76, 0.15);
    color: #1f8a4c !important;
  }

  .product-status .status-filter-btn.status-drafts.active {
    background-color: rgba(107, 114, 128, 0.16);
    color: #6b7280 !important;
  }

  .product-status .status-filter-btn.status-trashed.active {
    background-color: rgba(209, 67, 67, 0.15);
    color: #d14343 !important;
  }

  .Published-strong {
    color: #1f8a4c;
  }

  .Drafts-strong {
    color: #6b7280;
  }

  .Trashed-strong {
    color: #d14343;
  }

  .table-responsive {
    overflow-x: auto;
  }

  .pagination .page-link {
    padding: 6px 12px;
    font-weight: 600;
  }

  .pagination .page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
  }

  @media (max-width: 991px) {
    .products-filters-basic {
      grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .products-filters-advanced {
      grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
  }

  @media (max-width: 767px) {

    .products-filters-basic,
    .products-filters-advanced {
      grid-template-columns: 1fr;
    }

    .products-header-actions {
      flex-direction: column;
      align-items: stretch;
    }
  }
}

.products-table {
  min-width: 980px;

  thead {
    tr {
      th {
        background-color: #e9eef4 !important;
        font-weight: 700;
        padding: 12px 16px !important;
        color: #3f4a57;
        text-transform: none;
      }
    }
  }

  tbody {
    tr {
      td {
        padding: 12px 16px;
        border-bottom: 1px solid #edf0f4;
      }

      &:nth-child(odd) td {
        background-color: #fbfcfd;
      }

      &:nth-child(even) td {
        background-color: #f7f9fb;
      }

      &:hover td {
        background-color: #eef4ff;
      }
    }
  }

  .tbl-image {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px;
    background-color: #f3f4f6;
    object-fit: cover !important;
  }

  .product-name-text {
    display: block;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  .product-name-subtext {
    display: block;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  /* SKU cell layout */
  .product-sku-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }


  .product-sku-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #475569;
    font-size: 17px;
  }

  .product-sku-copy {
    width:fit-content;
    height: 26px;

    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    /* important fixes */
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;

    line-height: 1 !important;
    box-shadow: none !important;
  }

  /* hover */
  .product-sku-copy:hover {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
  }

  /* icon */
  .product-sku-copy svg,
  .product-sku-copy i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #111827 !important;
  }

  /* VERY IMPORTANT: remove injected symbols like "!" */
  .product-sku-copy::before,
  .product-sku-copy::after {
    content: none !important;
  }


  .copy-tooltip {
    position: absolute;
    top: -24px;
    right: 0;
    background-color: #1f2937;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
  }

  .copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
  }

  .product-price-input {
    max-width: 110px;
    text-align: right;
    padding: 4px 8px;
  }

  td[data-key="inlinePrice"] {
    text-align: right;
  }

  .product-stock-select {
    max-width: 130px;
    padding: 4px 8px;
  }

  .product-stock-select.in_stock {
    color: #1f8a4c;
    border-color: rgba(31, 138, 76, 0.25);
    background-color: rgba(31, 138, 76, 0.08);
  }

  .product-stock-select.out_of_stock {
    color: #d14343;
    border-color: rgba(209, 67, 67, 0.25);
    background-color: rgba(209, 67, 67, 0.08);
  }

  .product-quality {
    width: 120px;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
  }

  .product-quality span {
    display: block;
    height: 100%;
    background-color: #22c55e;
  }

  .product-quality.mid span {
    background-color: #f59e0b;
  }

  .product-quality.low span {
    background-color: #ef4444;
  }

  .product-replace-image {
    display: inline-flex;
    align-items: center;
  }

  .product-image-input {
    display: none;
  }

  .product-image-btn {
    width:fit-content;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }

  .product-image-btn:hover {
    background-color: #f3f4f6;
  }

  .product-image-btn svg {
    width: 15px;
    height: 15px;
    color: #111827;
  }
}

.products-table-compact tbody td {
  padding: 8px 12px;
}

.products-actions-dropdown details {
  position: relative;
}

.products-actions-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.products-actions-dropdown summary svg {
  color: #111827;
}

.products-actions-dropdown summary::-webkit-details-marker {
  display: none;
}

.products-actions-menu {
  position: absolute;
  right: 0;
  top: 28px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.products-actions-menu a,
.products-actions-menu button,
.products-actions-menu .btn-outline {
  padding: 6px 8px;
  border-radius: 6px;
  color: #111827;
  background: transparent;
  border: none;
  text-align: left;
}

.products-actions-menu a:hover,
.products-actions-menu button:hover,
.products-actions-menu .btn-outline:hover {
  background-color: #f3f4f6;
}

.products-actions-menu .text-danger {
  color: #111827 !important;
}

.products-actions-menu .btn-outline {
  width: 100%;
}

.products-table-compact .product-name-subtext {
  display: none;
}

.orders-page {
  .title-header h5 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
  }

  .orders-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 600;

    svg {
      width: 14px;
      height: 14px;
    }
  }

  .table-responsive {
    overflow-x: auto;
  }

  .orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }

  .orders-toolbar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn svg {
      width: 14px;
      height: 14px;
    }
  }

  .orders-filters {
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 12px;
  }

  .orders-filters-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
  }

  .orders-filters-advanced {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 10px;
  }

  .orders-filter-field {
    min-width: 220px;
  }

  .orders-filter-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
  }

  .calender-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .calender-box .calender {
    min-width: 150px;
  }

  .calender-box .calender-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
  }

  .orders-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .orders-filters .form-control,
  .orders-filters .form-select,
  .orders-filters .btn,
  .orders-filters .calender input {
    height: 40px;
  }

  .orders-bulk-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .orders-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn svg {
      width: 14px;
      height: 14px;
    }
  }

  .orders-toolbar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-right: 6px;
    font-weight: 600;
  }

  .orders-toolbar-group.secondary .btn {
    border-color: #d1d5db;
    color: #6b7280;
  }

  .orders-toolbar-group.secondary .btn span {
    font-weight: 500;
    color: #6b7280;
  }

  .orders-toolbar-group.critical .btn {
    border-color: rgba(220, 38, 38, 0.4);
    color: #b91c1c;
  }

  .orders-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .orders-actions-icons {
    display: flex;
    gap: 8px;
  }

  .orders-actions-dropdown {
    display: none;
    position: relative;

    summary {
      list-style: none;
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
    }

    summary::-webkit-details-marker {
      display: none;
    }
  }

  .orders-actions-menu {
    position: absolute;
    right: 0;
    top: 28px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    min-width: 140px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;

    a {
      padding: 6px 8px;
      border-radius: 6px;
      color: #1f2937;
    }

    a:hover {
      background-color: #f3f4f6;
    }
  }

  .order-tab-content {
    border-bottom: 1px solid #e5e7eb;
    gap: 10px;
    padding-bottom: 4px;

    li {
      padding: 6px 10px;
      border-radius: 8px;
    }

    li.active {
      background-color: #f8fafc;
      box-shadow: inset 0 -2px 0 var(--theme-color);
    }

    li a {
      font-size: 14px;
      font-weight: 600;
      color: #1f2937;
      gap: 6px;
    }

    li a span {
      border-radius: 999px;
      height: 20px;
      min-width: 22px;
      padding: 0 8px;
      font-size: 11px;
      font-weight: 600;
      background-color: rgba(148, 163, 184, 0.18);
      color: #64748b;
    }

    li.active a span,
    li.processing a span,
    li.shipped a span,
    li.out-delivery a span,
    li.confirmed a span,
    li.trash a span {
      background-color: rgba(148, 163, 184, 0.18);
      color: #64748b;
    }

    li.pending a span {
      color: #d97a00;
      background-color: rgba(217, 122, 0, 0.14);
    }

    li.completed a span {
      color: #2f8733;
      background-color: rgba(47, 135, 51, 0.14);
    }

    li.cancel a span {
      color: #d9534f;
      background-color: rgba(217, 83, 79, 0.12);
    }

    li.active.pending a span {
      color: #d97a00;
      background-color: rgba(217, 122, 0, 0.14);
    }

    li.active.completed a span {
      color: #2f8733;
      background-color: rgba(47, 135, 51, 0.14);
    }

    li.active.cancel a span {
      color: #d9534f;
      background-color: rgba(217, 83, 79, 0.12);
    }
  }

  @media (max-width: 991px) {
    .orders-toolbar {
      flex-direction: column;
      align-items: stretch;
    }

    .orders-filters-basic {
      flex-direction: column;
      align-items: stretch;
    }

    .orders-filters-advanced {
      grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
  }

  @media (max-width: 767px) {
    .orders-filters-advanced {
      grid-template-columns: 1fr;
    }

    .orders-actions-icons {
      display: none;
    }

    .orders-actions-dropdown {
      display: inline-flex;
    }
  }
}

.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: static;
  height: auto;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;

  svg {
    display: block;
    line-height: 14px;
    cursor: pointer;
    color: #9aa5b1;
    width: 12px;
    height: 12px;
  }
}

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

.product-status {
  border: 1px solid #efefef;
  background-color: #f9f9f6 !important;
  font-size: calc(14px + 2 * (100vw - 320px) / 1600);
  color: #898989;
  padding: 10px;
  border-radius: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 50px;
  margin-top: 20px;

  .status-filter-btn {
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;

    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }

    &.active {
      background-color: var(--theme-color);
      color: #fff !important;

      strong {
        color: #fff !important;
      }
    }
  }
}

.Published-strong {
  color: #2f8733;
}

.Drafts-strong {
  color: #ff5724;
}

.Trashed-strong {
  color: #cf142b;
}