.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive td {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  vertical-align: middle;
}

.table-dropdown{
    position: absolute;
}

@media (max-width: 767.98px) {
    h1 {
      font-size: 20px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  @media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
      font-size: 25px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  @media (min-width: 992px) and (max-width: 1199.98px) {
    h1 {
      font-size: 30px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  @media (min-width: 1200px) and (max-width: 1399.98px) {
    h1 {
      font-size: 35px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  @media (min-width: 1400px) {
    h1 {
      font-size: 40px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }


.pagination{
    justify-content: center;
  }

.pagination .page-item .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
  }

  .pagination .page-item .page-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
  }

  .pagination .page-item.active .page-link {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--bright-blue);
  }

  .pagination .page-item.disabled .page-link {
    background-color: var(--bright-blue);
    border-color: var(--bright-blue);
    color: var(--dark-color);
  }

  .pagination .page-item.disabled .page-link:hover {
    background-color: var(--bright-blue);
    border-color: var(--bright-blue);
    color: var(--dark-color);
  }


  .merchant-dashboard-image {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border: 2px solid white;
    padding: 2px;
    background-color: white;
  }


  .fixed-layout-table {
    table-layout: fixed;
    width: 100%;
}


.fixed-layout-table {
    border-bottom: 2px solid white;
    padding-bottom: 20px;
    width: 100%;
}

.fixed-layout-table td {
    width: 25%;
}

/* Fixed actions column styles for dynamic UI tables */
.table-responsive {
    position: relative;
}

/* Target actions column by class */
.table th.actions-column,
.table td.actions-column {
    position: sticky !important;
    right: 0 !important;
    background-color: #fff !important;
    z-index: 1 !important;
    white-space: nowrap;
    min-width: 120px;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.table thead th.actions-column {
    z-index: 2 !important;
    background-color: #f8f9fa !important;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.table tbody td.actions-column {
    background-color: #fff !important;
    z-index: 1 !important;
}

.table tbody tr:hover td.actions-column {
    background-color: #f8f9fa !important;
    z-index: 1 !important;
}

.table tbody tr:nth-child(even) td.actions-column {
    background-color: #fff !important;
    z-index: 1 !important;
}

.table tbody tr:nth-child(even):hover td.actions-column {
    background-color: #f8f9fa !important;
    z-index: 1 !important;
}

/* Fallback: Target last column in table (usually actions) */
.table thead tr th:last-child,
.table tbody tr td:last-child {
    position: sticky;
    right: 0;
    z-index: 1 !important;
    white-space: nowrap;
    min-width: 120px;
    background-color: #fff !important;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.table thead tr th:last-child {
    z-index: 2 !important;
    background-color: #f8f9fa !important;
}

.table tbody tr td:last-child {
    background-color: #fff !important;
    z-index: 1 !important;
}

.table tbody tr:hover td:last-child {
    background-color: #f8f9fa !important;
    z-index: 1 !important;
}

.table tbody tr:nth-child(even) td:last-child {
    background-color: #fff !important;
    z-index: 1 !important;
}

.table tbody tr:nth-child(even):hover td:last-child {
    background-color: #f8f9fa !important;
    z-index: 1 !important;
}

/* Ensure proper shadow for visual separation */
.table th.actions-column::after,
.table td.actions-column::after,
.table thead tr th:last-child::after,
.table tbody tr td:last-child::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
    pointer-events: none;
}

/* Ensure sticky columns have proper z-index */
.table th.actions-column,
.table td.actions-column {
    z-index: 1 !important;
}

/* Mobile responsive styles for actions column */
@media (max-width: 767.98px) {
    /* Hide desktop actions column on mobile */
    .table th.actions-column-desktop,
    .table td.actions-column-desktop {
        display: none !important;
    }

    /* Show mobile actions column on mobile */
    .table th.actions-column-mobile,
    .table td.actions-column-mobile {
        display: table-cell !important;
        position: sticky !important;
        right: 0 !important;
        z-index: 1 !important;
        background-color: #fff !important;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    }
}

/* Desktop: Show desktop actions, hide mobile actions */
@media (min-width: 768px) {
    .table th.actions-column-desktop,
    .table td.actions-column-desktop {
        display: table-cell !important;
    }
    .table th.actions-column-mobile,
    .table td.actions-column-mobile {
        display: none !important;
    }
}
