/* ========== Base, no CSS variables ========== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}
html,
body {
  height: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  color: #0f172a;
  line-height: 1.6;
}

/* ========== Layout ========== */
.xl-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(255, 255, 255);
}
.main-conatner {
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .main-conatner {
    padding: 0 16px;
  }
}

/* ========== Header ========== */
.xl-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e9ee;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xl-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.xl-logo {
  width: 120px;
  height: auto;
}
@media (min-width: 900px) {
  .xl-logo {
    width: 140px;
  }
}
.xl-nav {
  display: none;
  gap: 12px;
  flex: 1;
}
@media (min-width: 600px) {
  .xl-nav {
    display: flex;
  }
}
.xl-nav__item {
  text-decoration: none;
  color: #000000;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.xl-nav__item:hover {
  color: #1f6feb;
  background: rgba(31, 111, 235, 0.06);
}
.xl-search {
  display: flex;
  align-items: center;
}
.xl-search__btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 150ms ease;
}
.xl-search__btn:focus {
  outline: 3px solid rgba(31, 111, 235, 0.16);
}
.xl-search__btn:hover {
  background: rgba(31, 111, 235, 0.06);
}
.xl-search__icon {
  fill: #64748b;
  width: 20px;
  height: 20px;
}
.xl-search__btn:hover .xl-search__icon {
  fill: #1f6feb;
}
.xl-lang {
  position: relative;
  display: flex;
  align-items: center;
}
.xl-lang__select {
  appearance: none;
  background: transparent;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 8px 30px 8px 10px;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
}
.xl-lang__icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
  fill: #64748b;
}

/* ========== Main blocks ========== */
.xl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.dashboad-img {
  background-color: #ffffff;
}
.xl-banner {
  width: 100%;
  padding: 60px 50px;
  background-color: #ffffff;
}
@media (max-width: 425px) {
  .xl-banner {
    padding: 30px 0;
  }
}
.xl-descriptions {
  font-size: 24px;
  line-height: 1.9;
  color: #000;
  max-width: 100ch;
  margin: 24px 0;
  text-align: justify;
}

@media (max-width: 425px) {
  .xl-descriptions {
    font-size: 16px;
  }
}

/* ========== Orders/Payments Cards ========== */
.table-box-s1 {
  width: 100%;
  margin: 40px 0px;
}
.xt-card,
.xt-card2 {
  margin-top: 24px;
  padding: 0 75px;
}
.last-tr-mt {
  border: none;
}
@media (max-width: 768px) {
  .xt-card,
  .xt-card2 {
    padding: 0 16px;
  }
}
.xt-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
}
.xt-heading {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0;
}

/* Layout */
.xt-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Make the span feel like a button (without altering the img) */
.xt-search-trigger {
  cursor: pointer;
  outline: none;
}
.xt-search-trigger:focus {
  outline: 2px solid #1183d6;
  outline-offset: 2px;
}

/* Collapsible search */
#xt-search-region[hidden] {
  display: none;
}
#xt-search-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
#xt-search-input {
  width: 0;
  opacity: 0;
  padding: 6px 8px;
  transition: width 160ms ease, opacity 120ms ease;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#xt-search-region.open #xt-search-input {
  width: 180px;
  opacity: 1;
  border-radius: 20px;
  padding: 6px 14px;
}
.a-tag-xt {
  color: black;
  text-decoration: underline;
}

/* Screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 425px) {
  .xt-heading {
    font-size: 24px;
  }
}
.xt-rupee {
  margin-left: 10px;
  font-weight: 500;
}
.xt-rupee .xt-amount {
  letter-spacing: 0.4px;
}
.xt-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.xt-pdf-icon {
  padding: 6px;
  border: 1px solid #939191;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s ease;
  cursor: pointer;
}
.xt-pdf-icon:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.xt-icon-img {
  width: 25px;
  transition: filter 0.3s ease;
}
.xt-pdf-icon:hover .xt-icon-img {
  filter: brightness(0) invert(1);
}

/* ========== Make New Payment ========== */
.mt-wrap {
  max-width: 1120px;
  margin: 40px auto;
  padding: 24px 70px 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: #fff;
}
.mt-title {
  text-align: center;
  font-weight: 600;
  font-size: 28px;
  margin: 20px 0 36px;
  letter-spacing: 0.2px;
}
.mt-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 20px;
}
.mt-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 980px) {
  .mt-grid {
    grid-template-columns: 1fr;
  }
  .mt-wrap {
    padding: 0px;
  }
}
.mt-list {
  list-style: none;
}
.mt-item {
  margin: 10px 0;
}
.mt-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #3b3b3b;
}
.mt-check input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #bdbdbd;
  border-radius: 4px;
  display: grid;
  place-content: center;
  background: #fff;
}
.mt-check input[type="checkbox"]:checked {
  background: #e9ecef;
  border-color: #9aa0a6;
}
.mt-check input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 16px;
  color: #777;
  line-height: 1;
}
.mt-other {
  position: relative;
}
.mt-input,
.xt-name-input {
  border: none;
  border-bottom: 1px solid rgb(45, 44, 44);
  outline: none;
  padding: 6px 4px;
  font-size: 16px;
  transition: border-color 0.3s ease, border-width 0.3s ease;
}

.mt-input:focus,
.xt-name-input:focus {
  border-bottom: 2px solid #000000; /* focus pe highlight */
}

.mt-dots {
  display: none;
}
@media (max-width: 520px) {
  .mt-check {
    font-size: 16px;
  }
  .mt-wrap {
    padding: 0px;
  }
}
.mt-right {
  display: flex;
  justify-content: center;
}
.mt-card {
  width: 100%;
  max-width: 400px;
  background: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 26px 26px 20px;
  border: 1px solid #eee;
}
.mt-card-title {
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
  background: #f2f2f2;
}
.mt-table {
  width: 100%;
  background: #f2f2f2;
}
.mt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 12px 0;
  font-size: 14px;
  color: #515151;
  background: #f2f2f2;
}
.mt-head {
  font-weight: 600;
  color: #222;
  border-top: 2px solid #000;
  border-bottom: 1px solid #dcdcdc;
  margin-bottom: 4px;
  padding-top: 12px;
  background: #f2f2f2;
}
.mt-sep {
  border-top: 1.5px solid #dcdcdc;
  margin: 8px 0;
  background: #f2f2f2;
}
.mt-hr {
  border-top: 2px solid #000;
  margin: 8px 0 0;
  background: #f2f2f2;
}
.mt-total {
  font-weight: 700;
  color: #111;
  padding: 14px 0 6px;
  background: #f2f2f2;
}
.mt-right-align {
  text-align: right;
  background: #f2f2f2;
}
.mt-terms {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4b4b4b;
  margin: 16px 0 14px;
  background: #f2f2f2;
}
.payments-mt {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  background: #f2f2f2;
}
.mt-terms input[type="radio"] {
  accent-color: #111;
}
.mt-pay {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  margin-top: 6px;
  padding: 6px 28px;
  border-radius: 24px;
  border: 1px solid rgb(218, 216, 216);
  background: #ffffff;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 12px 4px 0 -6px rgba(0, 0, 0, 0.3);
}

.mt-pay:active {
  transform: translateY(1px);
  box-shadow: 12px 4px 0 -6px rgba(0, 0, 0, 0.3);
}

.mt-razor {
  width: 70px;
  letter-spacing: 0.2px;
  background-size: cover;
  background-color: white;
}

.mt-pay .mt-razor {
  background-color: transparent; /* transparent rakhna zaroori hai */
  height: 10px; /* size adjust */
}

/* ========== Affiliate Partner Form ========== */
.mt-wraps {
  width: 64%;
  margin: 40px auto;
  padding: 24px 200px 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: #fff;
}
@media (max-width: 900px) {
  .mt-wraps {
    padding: 24px 10px 60px;
    width: 100%;
  }
}
@media (max-width: 425px) {
  .mt-wraps {
    padding: 16px 12px 56px;
    margin: 20px auto;
    width: 100%;
  }
}
.xt-sub-box {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}
.xt-sub-box2 {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin: 10px 0px 60px 0px;
}
@media (max-width: 768px) {
  .xt-sub-box2 {
    flex-direction: column;
    gap: 10px;
  }
}
.xt-child-box {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 768px) {
  .xt-child-box {
    width: 100%;
  }
}
.xt-name-input {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 2px 6px;
  border-bottom: 2px solid #747272;
  font-size: 14px;
  outline: none;
  color: #313030;
  margin-bottom: 18px;
}
.sx-actions {
  flex-direction: row;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.sx-btn {
  
    width: 220px;
    border: 1px solid rgba(216, 215, 215, 0.82);
    outline: none;
    cursor: pointer;
    padding: 12px 14px;
    background: #f4f5f7;
    color: #0f172a;
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 12px 4px 0 -6px rgba(0, 0, 0, 0.3);
    transition: transform 0.06s 
ease, background 0.2s 
ease, color 0.2s 
ease;
}
.sx-btn:hover {
  background: #000;
  color: #fff;
}
.sx-btn:focus-visible {
  outline: 2px solid #9aa1aa22;
  outline-offset: 2px;
}
@media (max-width: 425px) {
  .sx-actions {
    gap: 12px;
  }
  .sx-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 18px;
  }
}

/* ========== Footer ========== */
.xl-footer {
  background-color: #808080;
  color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  margin: 16px 0 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}
.xl-footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .xl-footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .xl-footer-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.xl-footer-col ul {
  list-style: none;
  padding: 0;
}
.xl-footer-about p {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 16px;
}
.xl-footer-about hr {
  border: 0;
  border-top: 1px solid #aaa;
  margin: 10px 0;
}
.xl-footer-title {
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid #ffffff;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 20px;
}
.xl-footer-col li {
  margin: 6px 0;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.xl-footer-col li:hover {
  color: #c0c0c0;
  text-decoration: underline;
}
.xl-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  filter: brightness(0) invert(1);
}
.xl-footer-social img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.3s;
}
.xl-footer-social img:hover {
  transform: scale(1.05);
}
.copywrite {
  text-align: center;
  font-size: 14px;
  margin: 10px 0 20px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.copywrite-img {
  vertical-align: middle;
}

/* Tablet: 600px–768px */
@media only screen and (min-width: 600px) and (max-width: 768px) {
  .main-conatner {
    padding: 0 24px;
  } /* tighter than ≥768px, looser than mobile */
  .xl-nav {
    display: flex;
  } /* show nav starting at 600px */
  .xl-header {
    padding: 12px 20px;
  } /* slight breathing room */
  .xl-banner {
    padding: 48px 32px;
  } /* scale banner spacing for tablets */
  .xt-card,
  .xt-card2 {
    padding: 0 32px;
  } /* reduce from 75px desktop side padding */
  .xt-heading {
    font-size: 26px;
  } /* step between 24px (mobile) and 28px (desktop) */
  .mt-grid {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  } /* narrower card column */
  .mt-card {
    max-width: 360px;
  }
  .xl-footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } /* 2 cols on tablets */
}

/* ========== My Table CSS (mybusiness.css) ========== */
:root {
  --mt-bg: #ffffff;
  --mt-surface: #f7f7f7;
  --mt-text: #1f1f1f;
  --mt-subtext: #6b6b6b;
  --mt-border: #e6e6e6;
  --mt-row-hover: #fafafa;
  --mt-selected: #eef6ff;
  --mt-cell-px: 24px;
  --mt-cell-py: 16px;
  --mt-head-py: 16px;
  --mt-scroll-h: 420px;
  --mt-minw: 1100px; /* overall table minimum width for horizontal scroll */
  --mt-cell-minw: 180px; /* per-cell minimum width */
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font: 14px/1.45 ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  color: #1f1f1f;
  background: #ffffff;
}

.table-mt-wrap {
  padding: 28px 24px 40px;
  width: 90%;                        /* same visual width */
  max-width: 90%;
  margin: auto;
}

.table-mt-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 18px;
}


/* Search sits inline just left of the search icon */
.table-mt-search {
  height: 45px;
  position: static; /* was absolute */
  display: none; /* toggled open */
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #191919;
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-right: 8px; /* space before the icon button */
}
.table-mt-search--open {
  display: flex;
}
.table-mt-search input {
  border: none;
  outline: none;
  min-width: 240px;
  font: inherit;
}
.table-mt-muted {
  color: #6b6b6b;
}

.table-mt-iconbtn {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}


.table-mt-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}
.xt-icon-img {
  width: 25px;
  transition: filter 0.3s ease;
}
.xt-pdf-icon:hover .xt-icon-img {
  filter: brightness(0) invert(1);
}
.table-mt-icon--search::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 1px;
  top: 1px;
  border-radius: 50%;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 -1px #000;
  transform: translate(2px, 2px);
}
.table-mt-icon--plus::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: #000;
  clip-path: polygon(
    45% 0,
    55% 0,
    55% 45%,
    100% 45%,
    100% 55%,
    55% 55%,
    55% 100%,
    45% 100%,
    45% 55%,
    0 55%,
    0 45%,
    45% 45%
  );
}
.table-mt-icon--filter::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #000;
  clip-path: polygon(15% 0, 85% 0, 65% 40%, 65% 100%, 35% 100%, 35% 40%);
}
.table-mt-icon--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #000;
  clip-path: polygon(
    0 0,
    45% 0,
    45% 45%,
    0 45%,
    0 0,
    55% 0,
    100% 0,
    100% 45%,
    55% 45%,
    55% 0,
    0 55%,
    45% 55%,
    45% 100%,
    0 100%,
    0 55%,
    55% 55%,
    100% 55%,
    100% 100%,
    55% 100%,
    55% 55%
  );
}

/* Scrollable table wrapper */
.table-mt-table-wrap {
   height: var(--mt-scroll-h);       /* pehle: max-height */
  overflow-x: auto;                  /* left-right scroll jab zarurat ho */
  overflow-y: auto;                  /* vertical scroll as-is */
  width: 100%;                       
}

table.table-mt-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1100px;
}
/* .table-mt-table th,
      .table-mt-table td {
        min-width: 180px;
      }  */
/* default wider cells */

/* Column width controls */
.table-mt-col-idx,
.col-idx {
  width: 60px;
  min-width: 60px;
}
.table-mt-col-radio,
.col-select {
  width: 20px;
  min-width: 20px;
  text-align: center;
}
.col-timestamp {
  width: 180px;
  min-width: 180px;
  
}
.col-product {
  width: 200px;
  min-width: 200px;
}
.col-title {
  width: 180px;
  min-width: 180px;
}
.col-serial {
  width: 180px;
  min-width: 180px;
}
.col-customer {
  width: 180px;
  min-width: 180px;
}
.col-city {
  width: 180px;
  min-width: 180px;
}
.col-total {
  width: 180px;
  min-width: 180px;
}
.col-timestamp-value {
  width: 180px;
  min-width: 275px;
}



.table-mt-table thead th {
  position: sticky;
  top: 0;
  background: #fafafa;
  z-index: 2;
  font-size: 18px;
  text-align: left;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  border-top: 2px solid black;
  border-bottom: 2px solid rgb(16, 16, 16);
  padding: 16px 24px;
  


}
.table-mt-table tbody td {
  padding: 16px 24px;
  border-top: 1px solid black;
  vertical-align: middle;
  color: #222;
}
/* .table-mt-table tbody tr:hover {
  background: #ffffff;
} */
.table-mt-table tbody tr.table-mt-is-selected {
  background: #eceef0;
}

.table-mt-col-idx {
  /* kept for compatibility; now 60px via rules above */
}
.table-mt-col-radio {
  /* kept for compatibility; now 60px via rules above */
}

/* Master radio (circular) */
.table-mt-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #fff;
  display: inline-block;
  position: relative;
  cursor: pointer;
  outline: none;
}
.table-mt-radio:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #000;
}
.table-mt-radio:focus-visible {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.35);
}

/* Row checkbox (square) */
.table-mt-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #fff;
  position: relative;
  cursor: pointer;
  outline: none;
}
.table-mt-check:checked::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: #000;
  border-radius: 50%;
}
.table-mt-check:focus-visible {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.35);
}

.table-mt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: none;
  font-weight: 700;
}

/* Pager */
.table-mt-pager {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  margin-top: 60px;
}
.table-mt-page {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #e6e6e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.table-mt-page:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.table-mt-page--active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Optional nice scrollbars */
.table-mt-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.table-mt-table-wrap::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 10px;
}
.table-mt-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #c8c8c8;
}
/* Toolbar: wrap + fluid gaps */
/* Toolbar */
.table-mt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-bottom: 14px;
   flex-wrap: wrap;            /* allow wrapping */
  gap: clamp(8px, 2vw, 14px); /* fluid spacing */
}
.table-mt-toolbar-xt{
  display: flex;
  flex-direction: row;
  gap: 20px;
}
/* Icon buttons: fluid touch size */
.table-mt-iconbtn {
  width: clamp(40px, 6vw, 50px);   /* was: 50px */
  height: clamp(40px, 6vw, 50px);  /* was: 50px */
  flex: 0 0 auto;                  /* don't stretch awkwardly */
}

/* Icons inside buttons: scale a bit on small screens */
.xt-icon-img {
  width: clamp(18px, 4vw, 25px);   /* was: 25px */
}

/* Search pill: fluid width + can grow/shrink */
.table-mt-search {
  /* display toggling aapke JS/CSS class se hi rahega */
  width: clamp(220px, 50vw, 400px);
}
.download-img-xt{
  width: 30px;
  cursor: pointer;
}

/* OUTER: vertical visible, horizontal hidden */
.table-viewport{
  position: relative;
  overflow-y: auto;      /* vertical native dikhega */
  overflow-x: hidden;    /* horizontal native hide */
  width: 100%;
}

/* INNER: horizontal overflow yahan rahega, vertical lock */
.table-scroller{
  overflow-x: auto;      /* content horizontally scrollable */
  overflow-y: hidden;    /* vertical scroll yahan band */
}

/* WebKit me sirf horizontal native bar hide */
.table-scroller::-webkit-scrollbar:horizontal{ height: 0; background: transparent; }
.table-scroller::-webkit-scrollbar:vertical{ width: 12px; }  /* safety: agar kabhi dikhe */

/* Firefox me inner scroller ka bar hide (yahan sirf horizontal hi hota hai) */
.table-scroller{
  scrollbar-width: none;         /* FF: inner ka bar hide */
}
.table-viewport{
  scrollbar-width: auto;         /* FF: outer ka vertical visible */
  -ms-overflow-style: auto;      /* Legacy Edge/IE vertical visible */
}

/* Bottom custom track + thumb */
.custom-scrollbar-x{
  position: sticky;      /* viewport ke bottom ke saath chipka rahe */
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  pointer-events: auto;
  z-index: 10;           /* table ke upar rahe */
}
.custom-thumb-x{
  position: absolute;
  top: 2px;
  left: 0;
  height: 6px;
  width: 80px;           /* JS me override */
  background: #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

/* Table min-width to force horizontal overflow */
.table-mt-table{ min-width: 1100px; border-collapse: separate; }


/* Input should fill the pill on small widths */


/* Tablet and down: spread items; search comes on its own row if space tight */
@media (width <= 768px) {
  .table-mt-toolbar {
    justify-content: space-between; /* better use of row space */
  }
  .table-mt-search {
    order: -1;          /* search first row */
    flex: 1 1 100%;     /* take a full row when wrapping */
    width: 100%;
  }
   .table-mt-wrap {
    padding: 4px 6px ;
  }

}

/* Small phones: tighten gaps and sizes a bit more */
@media (width <= 480px) {
  .table-mt-toolbar {
    gap: clamp(6px, 2vw, 10px);
  }
  .table-mt-wrap {
    padding: 4px 6px ;
  }
  .table-mt-iconbtn {
    width: clamp(38px, 8vw, 46px);
    height: clamp(38px, 8vw, 46px);
  }
  .xt-icon-img {
    width: clamp(16px, 5vw, 22px);
  }

}
