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

.colName {
  width: 22%;
}

.colCell {
  width: 14%;
}

.colOrders {
  width: 12%;
}

.colTransactions {
  width: 14%;
}

.colDate {
  width: 12%;
}

.colActions {
  width: 206px;
}

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

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

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

.customerName[dir='rtl'] {
  font-weight: 400;
}

.nameAlignFa {
  text-align: right;
}

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

.filterCellNarrow {
  grid-column: span 2;
  max-width: 168px;
}

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

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

.rowActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  direction: ltr;
}

/* FA: عملیات column is on the physical left — pin controls to that edge. */
.tableFa .thActions,
.tableFa .tdActions {
  text-align: left;
  padding-left: 10px;
  padding-right: 10px;
}

.tableFa .rowActions {
  justify-content: flex-start;
}

.toggleInActions {
  margin-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 28px;
}

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

.inactiveRow {
  opacity: 0.55;
}

.statusDisabled {
  color: #b45309;
  font-size: 11px;
  font-weight: 600;
}

.pagination {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 38px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  box-sizing: border-box;
}

.pagination > div:first-child {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 38px;
  margin: 0;
  padding: 0;
  line-height: 38px;
  font-family: var(--font-ui);
  transform: translateY(2px);
}

.pagination > nav {
  grid-column: 2;
  justify-self: center;
  height: 38px;
  margin: 0;
  padding: 0;
}

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

.fab {
  position: fixed;
  inset-inline-end: 32px;
  inset-inline-start: auto;
  bottom: 32px;
  z-index: 110;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb) / 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb) / 0.45);
}

@media (max-width: 768px) {
  .fab {
    inset-inline-end: 20px;
    inset-inline-start: auto;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }
}
