.table,
.kv-grid-table {
  background: #fff;
  border: 1px solid var(--ay-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
}

.table > thead > tr > th,
.kv-grid-table > thead > tr > th {
  border-bottom: 1px solid var(--ay-line);
  border-top: 0;
  color: var(--ay-muted);
  background: var(--ay-surface-soft);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
}

.table > tbody > tr > td,
.kv-grid-table > tbody > tr > td {
  border-top: 1px solid var(--ay-line);
  vertical-align: middle;
  padding: 14px;
  color: var(--ay-ink);
}

.table-hover > tbody > tr:hover,
.kv-grid-table > tbody > tr:hover {
  background: #fbf8f4;
}

.table-responsive {
  border: 0;
  border-radius: 14px;
  background: #fff;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #b8bbb6 #f1f0ec;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f0ec;
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #b8bbb6;
  border-radius: 999px;
}

.admin-list-scroll,
.admin-list-scroll .grid-view,
.coupon-index .table-responsive {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  overflow-x: auto !important;
}

.admin-list-scroll .table,
.coupon-index .table-responsive .table {
  overflow: visible;
  margin-bottom: 0;
}

.coupon-index .coupon-list-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ay-line);
  border-radius: 14px;
  background: #fff;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8f948f #eef0ec;
}

.coupon-index .coupon-list-scroll::-webkit-scrollbar {
  height: 12px;
}

.coupon-index .coupon-list-scroll::-webkit-scrollbar-track {
  background: #eef0ec;
  border-radius: 999px;
  margin: 0 8px;
}

.coupon-index .coupon-list-scroll::-webkit-scrollbar-thumb {
  background: #8f948f;
  border-radius: 999px;
  border: 2px solid #eef0ec;
}

.coupon-index .coupon-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #6f756f;
}

.coupon-index .coupon-list-table {
  width: max-content;
  min-width: 1100px;
  max-width: none;
  border: 0 !important;
  border-radius: 0;
  overflow: visible;
  white-space: nowrap;
}

.coupon-index .coupon-list-table > thead > tr > th,
.coupon-index .coupon-list-table > tbody > tr > td {
  white-space: nowrap;
}

.pagination {
  margin: 16px 0 0;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 10px !important;
  margin: 0 3px;
  border-color: var(--ay-line);
  color: var(--ay-ink);
  min-width: 36px;
  text-align: center;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--ay-sage);
  border-color: var(--ay-sage);
  color: #fff;
}

.pagination > li > a:hover {
  background: var(--ay-sage-soft);
  border-color: var(--ay-peach-strong);
  color: var(--ay-sage);
}

.summary {
  color: var(--ay-muted);
  font-size: 13px;
}

.ay-status-cell {
  white-space: nowrap;
}

.ay-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.ay-status-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ay-status-toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #d8ddd3;
  transition: background 0.2s ease;
  flex: 0 0 auto;
}

.ay-status-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.ay-status-toggle-input:checked + .ay-status-toggle-track {
  background: var(--ay-sage);
}

.ay-status-toggle-input:checked + .ay-status-toggle-track::after {
  transform: translateX(20px);
}

.ay-status-toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ay-muted);
  min-width: 64px;
}

.ay-status-toggle-input:checked ~ .ay-status-toggle-text {
  color: var(--ay-sage);
}
