.tablePanel {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
}

.tableWrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.tableHeader {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tableHeaderTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.meta {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

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

.colOrderId {
  width: 18%;
}

.colItems {
  width: 10%;
}

.colTotal {
  width: 14%;
}

.colDate {
  width: 16%;
}

.colStep {
  width: 18%;
}

.colSource {
  width: 14%;
}

.colActions {
  width: 72px;
}

.th,
.td {
  padding: 10px 12px;
  text-align: start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  vertical-align: middle;
}

.th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.35);
}

.td {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.orderNumber {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.customerName {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.customerCell {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.subText {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
}

.dateCell {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
}

.dateTime {
  color: var(--text-primary);
}

.dateTimeSub {
  color: var(--text-secondary);
  font-size: 11px;
}

.sourceBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sourceOperator {
  color: var(--primary-dark, var(--primary));
  background: rgba(var(--primary-rgb) / 0.12);
}

.sourceWebsite {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.sourceApplication {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.12);
}

.stepBadge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter 0.2s;
}

.stepBadge:hover {
  filter: brightness(0.95);
}

.ordersFiltersRow {
  grid-column: span 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.filterOrderId {
  flex: 0 1 156px;
  min-width: 120px;
}

.filterCustomer {
  flex: 0 1 168px;
  min-width: 132px;
}

.filterDate {
  flex: 0 1 148px;
  min-width: 132px;
}

.filterCost {
  flex: 0 1 124px;
  min-width: 108px;
}

@media (max-width: 1280px) {
  .ordersFiltersRow {
    flex-wrap: wrap;
  }

  .filterOrderId,
  .filterCustomer,
  .filterDate,
  .filterCost {
    flex: 1 1 140px;
    max-width: none;
  }
}

.thActions {
  text-align: end;
  white-space: nowrap;
}

.tdActions {
  text-align: end;
  white-space: nowrap;
  padding-inline: 10px;
}

.rowActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
}

.actionBtn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.actionBtn:hover:not(:disabled) {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.actionBtnDanger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.actionBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.pagerBtns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pageBtn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.pageBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pageBtnActive {
  border-color: rgba(var(--primary-dark-rgb) / 0.35);
  color: var(--primary);
  background: rgba(var(--primary-dark-rgb) / 0.08);
}

.errorBanner {
  padding: 16px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
}
