/* Final shared UI pass loaded after module styles. */
:root {
  --ui-bg: #f6f8fb;
  --ui-surface: #ffffff;
  --ui-soft: #f8fafc;
  --ui-text: #111827;
  --ui-muted: #64748b;
  --ui-border: #e2e8f0;
  --ui-primary: #2563eb;
  --ui-primary-dark: #1d4ed8;
  --ui-danger: #dc2626;
  --ui-success: #059669;
  --ui-radius: 14px;
  --ui-radius-lg: 18px;
  --ui-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

body,
body.purchase-return-page {
  color: var(--ui-text);
  background: var(--ui-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[hidden],
#superadminNavBtn[hidden],
#navSuperadminBtn[hidden],
[data-superadmin-only][hidden],
[data-users-only][hidden],
[data-company-only][hidden] {
  display: none !important;
}

.main-page,
.page,
.claim-page,
.purchase-return-page .page-shell,
.customer-bank-page,
.supplier-bank-page {
  width: min(1680px, calc(100vw - 24px));
  max-width: 1680px;
  margin: 0 auto;
  padding: 22px;
}

.topbar,
.header-bar,
.hero-card,
.claim-hero,
.claim-edit-hero,
.purchase-return-page .premium-blue-hero,
.supplier-bank-page .hero-card,
.customer-bank-page .hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  color: var(--ui-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}

.purchase-return-page .premium-blue-hero::after {
  display: none;
}

.topbar h1,
.header-bar h1,
.hero-card h1,
.claim-title-wrap h1,
.claim-edit-hero h1,
.purchase-return-page h1,
.supplier-bank-page .hero-card h1,
.customer-bank-page .hero-card h1 {
  margin: 0;
  color: var(--ui-text);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}

.edit-page-shell .hero-card h1,
.supplier-payment-page .hero-card h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 900;
}

.edit-page-shell .hero-card .eyebrow,
.supplier-payment-page .hero-card .eyebrow {
  color: var(--ui-primary);
  font-weight: 900;
}

.edit-page-shell .hero-icon,
.supplier-payment-page .hero-icon {
  background: linear-gradient(135deg, #0f766e, var(--ui-primary));
}

.eyebrow,
.claim-edit-eyebrow,
.purchase-return-page .eyebrow,
.supplier-payment-page .eyebrow,
.supplier-bank-page .eyebrow,
.customer-bank-page .eyebrow {
  color: var(--ui-primary);
  letter-spacing: 0.08em;
}

.muted,
.small-muted,
.hero-muted,
.hero-subtitle,
.claim-title-wrap p,
.claim-edit-hero p,
.purchase-return-page .hero-subtitle,
.supplier-bank-page .hero-muted,
.customer-bank-page .hero-muted {
  color: var(--ui-muted) !important;
}

.card,
.panel,
.section-card,
.premium-card,
.claim-card,
.purchase-return-page .premium-card,
.supplier-bank-page .premium-card,
.customer-bank-page .card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}

.primary-btn,
.save-btn,
.login-btn,
.claim-btn.primary,
.supplier-bank-page .primary-btn,
.customer-bank-page .primary-btn,
.purchase-return-page .primary-btn,
.purchase-return-page .chip-btn.active,
.purchase-return-page .chip-btn[aria-pressed="true"] {
  color: #ffffff !important;
  background: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}

.primary-btn:hover,
.save-btn:hover,
.login-btn:hover,
.claim-btn.primary:hover,
.supplier-bank-page .primary-btn:hover,
.customer-bank-page .primary-btn:hover,
.purchase-return-page .primary-btn:hover {
  background: var(--ui-primary-dark) !important;
}

.secondary-btn,
.gray-btn,
.nav-btn,
.soft-btn,
.primary-soft-btn,
.claim-btn,
.purchase-return-page .secondary-btn,
.purchase-return-page .chip-btn,
.supplier-bank-page .secondary-btn,
.customer-bank-page .secondary-btn,
.purchase-return-page .icon-btn.ghost,
.claim-icon-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-weight: 800;
}

.danger-btn,
.delete-btn,
.claim-btn.danger,
.supplier-bank-page .danger-btn,
.customer-bank-page .danger-btn {
  color: #ffffff !important;
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
}

.success-btn {
  color: #ffffff !important;
  background: var(--ui-success) !important;
}

.success-action-btn,
.claim-record-actions .success-btn,
.records-header-actions .success-action-btn,
.bulk-actions .success-btn {
  color: #ffffff !important;
  background: var(--ui-success) !important;
  border-color: var(--ui-success) !important;
}

.bulk-actions .row-actions,
.claim-record-actions,
.records-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-actions .row-actions button,
.claim-record-actions button,
.records-header-actions button {
  height: 40px !important;
  min-height: 40px !important;
  min-width: 132px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  box-sizing: border-box;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
}

.records-header-actions .primary-btn,
.bulk-actions .primary-btn {
  min-width: 148px !important;
}

.claim-record-actions .secondary-btn,
.records-header-actions .secondary-btn,
.bulk-actions .secondary-btn {
  color: #334155 !important;
  background: #ffffff !important;
  border-color: var(--ui-border) !important;
}

.claim-record-actions .success-btn,
.records-header-actions .success-action-btn,
.bulk-actions .success-btn {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

#bulkPrintBtn,
#printSelectedBtn,
.claim-record-actions button[onclick="printSelectedClaimRecords()"] {
  color: #ffffff !important;
  background: var(--ui-success) !important;
  border-color: var(--ui-success) !important;
}

#markAiBtn,
#sendAiSelectedBtn,
.claim-record-actions button[onclick="sendSelectedClaimRecordsAi()"] {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.edit-btn,
.record-action-cell .edit-btn,
.record-action-cell .table-action-btn[data-action="edit"],
.record-action-cell .claim-btn.edit-btn,
.claim-row-actions .claim-btn.edit-btn {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.claim-record-actions button:hover,
.records-header-actions button:hover,
.bulk-actions .row-actions button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.status-pill,
.claim-status-pill,
.bank-pill,
.supplier-bank-page .status-pill,
.supplier-bank-page .bank-pill,
.discount-mode-pill,
.claim-edit-mini-badge {
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--ui-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea,
.claim-input,
.claim-select,
.purchase-return-page input,
.purchase-return-page select,
.purchase-return-page textarea {
  border-color: #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
}

.table-wrap,
.table-container,
.responsive-table,
.purchase-return-page .table-wrap,
.claim-table-wrap,
.customer-bank-page .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: none;
}

.claim-table-wrap {
  margin: 0 20px 20px;
  padding: 0;
}

table,
.claim-table,
.purchase-return-page table,
.customer-bank-page table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

thead,
.claim-table thead,
.purchase-return-page thead,
.customer-bank-page thead {
  background: #f8fafc;
  color: #334155;
}

th,
td,
.claim-table th,
.claim-table td,
.purchase-return-page th,
.purchase-return-page td,
.customer-bank-page th,
.customer-bank-page td {
  border-bottom: 1px solid #eef2f7;
  padding: 12px 13px;
  text-align: left;
  vertical-align: middle;
}

th,
.claim-table th,
.purchase-return-page th,
.customer-bank-page th {
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.claim-table td,
.claim-table td:first-child,
.claim-table td:last-child {
  background: #ffffff;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.metric-card,
.summary-tile,
.purchase-return-page .summary-tile,
.discount-mode-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: var(--ui-shadow);
}

body.customer-payment-record-page .dashboard-summary-grid,
body.supplier-payment-record-page .dashboard-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  body.customer-payment-record-page .dashboard-summary-grid,
  body.supplier-payment-record-page .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body .edit-page-shell .discount-mode-card.active .discount-mode-icon {
  color: #ffffff !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body .edit-page-shell .discount-mode-card.active .discount-mode-icon::before {
  content: "\2713" !important;
  display: block !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body .edit-page-shell .hero-card h1,
body .supplier-payment-page .hero-card h1 {
  color: #0f172a !important;
  text-shadow: none;
}

body .edit-page-shell .hero-card .eyebrow,
body .supplier-payment-page .hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.82) !important;
}

body .edit-page-shell .hero-card .hero-muted,
body .supplier-payment-page .hero-card .hero-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

body .back-action-btn,
body .edit-page-shell .back-action-btn,
body .supplier-payment-page .back-action-btn,
body .claim-page .back-action-btn {
  min-width: 90px;
  color: #ffffff !important;
  background: #0f172a !important;
  border-color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22) !important;
}

body .back-action-btn:hover,
body .edit-page-shell .back-action-btn:hover,
body .supplier-payment-page .back-action-btn:hover,
body .claim-page .back-action-btn:hover {
  background: #020617 !important;
  border-color: #020617 !important;
}

body .claim-page .claim-icon-back.back-action-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

@media (max-width: 760px) {
  body.customer-payment-record-page .dashboard-summary-grid,
  body.supplier-payment-record-page .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.customer-payment-record-page .dashboard-summary-grid,
  body.supplier-payment-record-page .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Wide listing grids: customer payment and supplier payment dashboards */
.main-page:has(#receiptTable) {
  width: min(1800px, calc(100vw - 12px));
  max-width: 1800px;
}

.main-page .table-card {
  width: 100%;
}

.main-page .table-card .table-container {
  overflow-x: hidden;
}

.main-page .table-card #receiptTable {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 11.5px;
}

.main-page .table-card #receiptTable th,
.main-page .table-card #receiptTable td {
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px 5px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.main-page .table-card #receiptTable th {
  font-size: 11px;
  line-height: 1.15;
}

.main-page .table-card #receiptTable td {
  line-height: 1.25;
}

.main-page .table-card #receiptTable .row-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.main-page .table-card #receiptTable .row-actions button {
  width: 100%;
  min-height: 24px;
  padding: 3px 2px;
  font-size: 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.main-page .table-card #receiptTable .row-actions .record-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 104px;
  max-width: 104px;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(13),
.supplier-payment-record-page .table-card #receiptTable th:nth-child(13),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(13) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
}

.main-page .table-card #receiptTable .status-badge,
.main-page .table-card #receiptTable .locked-check {
  max-width: 100%;
  padding: 4px 6px;
  font-size: 10px;
  white-space: normal;
  text-align: center;
}

.main-page .table-card #receiptTable th:nth-child(1),
.main-page .table-card #receiptTable td:nth-child(1),
.main-page .table-card #receiptTable th:nth-child(2),
.main-page .table-card #receiptTable td:nth-child(2) {
  width: 7%;
}

.main-page .table-card #receiptTable th:nth-child(3),
.main-page .table-card #receiptTable td:nth-child(3) {
  width: 13%;
}

.main-page .table-card #receiptTable th:nth-child(4),
.main-page .table-card #receiptTable td:nth-child(4),
.main-page .table-card #receiptTable th:nth-child(6),
.main-page .table-card #receiptTable td:nth-child(6),
.main-page .table-card #receiptTable th:nth-child(9),
.main-page .table-card #receiptTable td:nth-child(9),
.main-page .table-card #receiptTable th:nth-child(10),
.main-page .table-card #receiptTable td:nth-child(10) {
  width: 6%;
}

.main-page .table-card #receiptTable th:nth-child(5),
.main-page .table-card #receiptTable td:nth-child(5),
.main-page .table-card #receiptTable th:nth-child(7),
.main-page .table-card #receiptTable td:nth-child(7),
.main-page .table-card #receiptTable th:nth-child(8),
.main-page .table-card #receiptTable td:nth-child(8),
.main-page .table-card #receiptTable th:nth-child(11),
.main-page .table-card #receiptTable td:nth-child(11),
.main-page .table-card #receiptTable th:nth-child(12),
.main-page .table-card #receiptTable td:nth-child(12),
.main-page .table-card #receiptTable th:nth-child(13),
.main-page .table-card #receiptTable td:nth-child(13),
.main-page .table-card #receiptTable th:nth-child(14),
.main-page .table-card #receiptTable td:nth-child(14) {
  width: 6.5%;
}

.main-page .table-card #receiptTable th:nth-last-child(3),
.main-page .table-card #receiptTable td:nth-last-child(3) {
  width: 7%;
}

.main-page .table-card #receiptTable th:nth-last-child(2),
.main-page .table-card #receiptTable td:nth-last-child(2) {
  width: 6%;
}

.main-page .table-card #receiptTable th:last-child,
.main-page .table-card #receiptTable td:last-child {
  width: 34px;
  text-align: center;
}

.main-page .table-card #receiptTable input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(5),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(7),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(7),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(2),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(2),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(3),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(3),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(4),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(4),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(6),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(6),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(13) {
  text-align: center;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(8) {
  width: 90px;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(9),
.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(10) {
  width: 5%;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11) {
  width: 7%;
  min-width: 112px !important;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
  width: 6%;
  min-width: 96px !important;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(13) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
}

.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(14),
.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(14) {
  width: 64px;
  text-align: center;
}

.customer-payment-record-page .main-page .table-card #receiptTable .row-actions {
  justify-items: center;
}

.customer-payment-record-page .main-page .table-card #receiptTable .row-actions button {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 3px 2px;
  font-size: 9px;
}

.supplier-payment-record-page .table-card #receiptTable th,
.supplier-payment-record-page .table-card #receiptTable td {
  text-align: center;
  vertical-align: top;
  padding: 7px 5px;
  font-size: 11px;
  line-height: 1.22;
  overflow-wrap: break-word;
  word-break: normal;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(1),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(1) {
  width: 7%;
  text-align: left;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(2),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(2) {
  width: 7%;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(3),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(3) {
  width: 13%;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(4),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(4),
.supplier-payment-record-page .table-card #receiptTable th:nth-child(6),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(6) {
  width: 6%;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(5),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(5),
.supplier-payment-record-page .table-card #receiptTable th:nth-child(7),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(7),
.supplier-payment-record-page .table-card #receiptTable th:nth-child(10),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(10) {
  width: 6%;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(8),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(8) {
  width: 90px;
  text-align: center;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(9),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(9) {
  width: 5%;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(10),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(10) {
  width: 7%;
  min-width: 112px !important;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(11),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(11) {
  width: 6%;
  min-width: 96px !important;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(12),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(12) {
  width: 6%;
  min-width: 96px !important;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(13),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(13) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(14),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(14) {
  width: 64px;
  text-align: center;
}

.supplier-payment-record-page .table-card #receiptTable th:nth-child(15),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(15) {
  width: 32px;
  text-align: center;
}

.supplier-payment-record-page .supplier-payment-no {
  white-space: nowrap;
  overflow-wrap: normal;
}

.supplier-payment-record-page .supplier-record-list {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: center;
}

.supplier-payment-record-page .supplier-record-list .separator {
  color: #94a3b8;
  padding: 0 4px;
}

.supplier-payment-record-page .supplier-record-cn-list .record-line {
  display: block;
}

.supplier-payment-record-page .supplier-record-cn-list .record-line + .record-line {
  margin-top: 3px;
}

.supplier-payment-record-page .supplier-record-money,
.supplier-payment-record-page .table-card #receiptTable td:nth-child(5),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(7),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(10),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(11),
.supplier-payment-record-page .table-card #receiptTable td:nth-child(12) {
  text-align: center;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.customer-payment-record-page .table-card #receiptTable .net-highlight,
.supplier-payment-record-page .table-card #receiptTable .net-highlight,
.supplier-payment-record-page .supplier-record-balance strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 88px;
  max-width: none;
  padding: 2px 6px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
}

.customer-payment-record-page .table-card #receiptTable .net-highlight {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 2px 2px;
  letter-spacing: 0;
}

.supplier-payment-record-page .table-card #receiptTable td.supplier-record-net,
.supplier-payment-record-page .table-card #receiptTable tbody tr:nth-child(odd) td.supplier-record-net,
.supplier-payment-record-page .table-card #receiptTable tbody tr:nth-child(even) td.supplier-record-net,
.supplier-payment-record-page .table-card #receiptTable tbody tr:hover td.supplier-record-net {
  background: #fef3c7 !important;
}

.supplier-payment-record-page .table-card #receiptTable td:nth-child(8),
.supplier-payment-record-page .table-card #receiptTable td.supplier-record-net,
.supplier-payment-record-page .table-card #receiptTable td.supplier-record-balance {
  text-align: center;
}

.supplier-payment-record-page .table-card #receiptTable .row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.supplier-payment-record-page .table-card #receiptTable .row-actions button {
  width: auto;
  min-width: 38px;
  min-height: 24px;
  padding: 4px;
  font-size: 10px;
  line-height: 1;
}

.supplier-payment-record-page .table-card #receiptTable .row-actions .record-action-row button {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 3px 2px;
  font-size: 9px;
}

.supplier-payment-record-page .table-card #receiptTable .status-badge {
  padding: 3px 5px;
  font-size: 9.5px;
}

@media (max-width: 900px) {
  .main-page,
  .page,
  .claim-page,
  .purchase-return-page .page-shell,
  .customer-bank-page,
  .supplier-bank-page {
    padding: 14px;
  }

  .topbar,
  .header-bar,
  .hero-card,
  .claim-hero,
  .claim-edit-hero,
  .purchase-return-page .premium-blue-hero,
  .supplier-bank-page .hero-card,
  .customer-bank-page .hero-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .header-actions,
  .hero-actions,
  .claim-actions,
  .claim-edit-hero-actions,
  .records-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar h1,
  .header-bar h1,
  .hero-card h1,
  .claim-title-wrap h1,
  .claim-edit-hero h1,
  .purchase-return-page h1 {
    font-size: 23px;
  }
}

@media (max-width: 1280px) {
  .main-page .table-card .table-container {
    overflow-x: auto;
  }

  .main-page .table-card #receiptTable {
    min-width: 1280px;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(10) {
    min-width: 116px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(5) {
    min-width: 92px !important;
    width: 92px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(5) {
    min-width: 92px !important;
    width: 92px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 96px !important;
    width: 96px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(9) {
    min-width: 82px !important;
    width: 82px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(10) {
    min-width: 112px !important;
    width: 112px !important;
  }

  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 96px !important;
    width: 96px !important;
  }
}

.table-card .table-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-card .table-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-scroll-floating {
  position: fixed;
  bottom: 2px;
  z-index: 80;
  height: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 10px;
  background: #e2e8f0;
  border: 1px solid #94a3b8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.table-scroll-floating-inner {
  height: 1px;
}

.table-scroll-floating::-webkit-scrollbar {
  height: 18px;
}

.table-scroll-floating::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 10px;
  border: 4px solid #e2e8f0;
  box-shadow: none;
}

.table-scroll-floating::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

.table-scroll-floating::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

@media (max-width: 900px) {
  body.customer-payment-record-page,
  body.supplier-payment-record-page {
    overflow-x: hidden;
  }

  body.customer-payment-record-page .main-page,
  body.supplier-payment-record-page .main-page,
  .claim-page,
  .purchase-return-page .page-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.customer-payment-record-page .table-card,
  body.supplier-payment-record-page .table-card,
  .claim-card,
  .purchase-return-page .records-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .main-page .table-card .table-container {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .main-page .table-card #receiptTable {
    display: table !important;
    min-width: 1280px !important;
    width: 1280px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable,
  body.supplier-payment-record-page .main-page .table-card #receiptTable {
    min-width: 1680px !important;
    width: 1680px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th,
  body.customer-payment-record-page .main-page .table-card #receiptTable td,
  body.supplier-payment-record-page .main-page .table-card #receiptTable th,
  body.supplier-payment-record-page .main-page .table-card #receiptTable td {
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(1),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(1),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(1),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(1) {
    min-width: 180px !important;
    width: 180px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(2),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(2),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(2),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(2) {
    min-width: 145px !important;
    width: 145px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(3),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(3),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(3),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(3) {
    min-width: 220px !important;
    width: 220px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(4),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(4),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(6),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(6),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(4),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(4),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(6),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(6) {
    min-width: 130px !important;
    width: 130px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(5),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(7),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(7),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(7),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(7),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 115px !important;
    width: 115px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(9) {
    min-width: 100px !important;
    width: 100px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(13),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(13) {
    min-width: 112px !important;
    width: 112px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(14),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(14),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(14),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(14) {
    min-width: 80px !important;
    width: 80px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(15),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(15),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(15),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(15) {
    min-width: 44px !important;
    width: 44px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 96px !important;
    width: 96px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(9),
  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(9) {
    min-width: 82px !important;
    width: 82px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(10) {
    min-width: 112px !important;
    width: 112px !important;
  }

  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 96px !important;
    width: 96px !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(5) {
    min-width: 92px !important;
    width: 92px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }

  body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(5),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(5) {
    min-width: 92px !important;
    width: 92px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  .purchase-return-page .table-wrap,
  .claim-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .purchase-return-page .records-table {
    display: table !important;
    min-width: 1180px !important;
    width: 1180px !important;
    max-width: none !important;
  }

  .claim-table {
    display: table !important;
    min-width: 1120px !important;
    width: 1120px !important;
    max-width: none !important;
  }
}

.purchase-return-page .records-table th:nth-child(5),
.purchase-return-page .records-table td:nth-child(5),
.purchase-return-page .records-table th:nth-child(6),
.purchase-return-page .records-table td:nth-child(6) {
  width: 58px;
  min-width: 58px;
  text-align: center !important;
}

.purchase-return-page .records-table th:nth-child(7),
.purchase-return-page .records-table td:nth-child(7) {
  width: 76px;
  min-width: 76px;
  white-space: nowrap;
}

.purchase-return-page .records-table th:nth-child(8),
.purchase-return-page .records-table td:nth-child(8) {
  width: 112px;
  min-width: 112px;
  white-space: nowrap;
}

.purchase-return-page .records-table th:nth-child(10),
.purchase-return-page .records-table td:nth-child(10),
.purchase-return-page .records-table th:nth-child(11),
.purchase-return-page .records-table td:nth-child(11) {
  width: 92px;
  min-width: 92px;
  text-align: center !important;
}

.claim-table th:nth-child(5),
.claim-table td:nth-child(5) {
  width: 110px !important;
  min-width: 110px;
}

.claim-table th:nth-child(6),
.claim-table td:nth-child(6) {
  width: 128px !important;
  min-width: 128px;
  white-space: nowrap;
}

.claim-table .claim-action-col,
.claim-table td.record-action-cell {
  width: 150px !important;
  min-width: 150px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.source-pill.web {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.source-pill.sql {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.source-pill.hybrid {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fdba74;
}

body.customer-payment-record-page .main-page .table-card #receiptTable,
body.supplier-payment-record-page .main-page .table-card #receiptTable {
  min-width: 1480px !important;
}

body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(13),
body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(13),
body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(13) {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(14),
body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(14),
body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(14),
body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(14) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
}

body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(15),
body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(15),
body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(15),
body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(15) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

body.customer-payment-record-page .main-page .table-card #receiptTable th:nth-child(16),
body.customer-payment-record-page .main-page .table-card #receiptTable td:nth-child(16),
body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(16),
body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(16) {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.customer-payment-record-page .status-badge,
body.supplier-payment-record-page .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  max-width: 100%;
  white-space: nowrap;
}

.purchase-return-page .records-table {
  min-width: 1280px !important;
}

.purchase-return-page .records-card .table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.purchase-return-page .table-scroll-floating {
  bottom: 14px !important;
  z-index: 9999;
}

.purchase-return-page .records-card .records-table {
  min-width: 1480px !important;
  width: 1480px !important;
  max-width: none !important;
  table-layout: fixed;
  font-size: 11.5px;
}

.purchase-return-page .records-card .records-table th,
.purchase-return-page .records-card .records-table td {
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px 5px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.purchase-return-page .records-card .records-table th {
  font-size: 11px;
  line-height: 1.15;
}

.purchase-return-page .records-card .records-table td {
  line-height: 1.25;
}

.purchase-return-page .records-card .records-table th:nth-child(1),
.purchase-return-page .records-card .records-table td:nth-child(1),
.purchase-return-page .records-card .records-table th:nth-child(2),
.purchase-return-page .records-card .records-table td:nth-child(2) {
  width: 8% !important;
}

.purchase-return-page .records-card .records-table th:nth-child(3),
.purchase-return-page .records-card .records-table td:nth-child(3) {
  width: 15% !important;
}

.purchase-return-page .records-card .records-table th:nth-child(4),
.purchase-return-page .records-card .records-table td:nth-child(4) {
  width: 7% !important;
  text-align: center !important;
}

.purchase-return-page .records-card .records-table th:nth-child(5),
.purchase-return-page .records-card .records-table td:nth-child(5),
.purchase-return-page .records-card .records-table th:nth-child(6),
.purchase-return-page .records-card .records-table td:nth-child(6) {
  width: 4.5% !important;
}

.purchase-return-page .records-card .records-table th:nth-child(7),
.purchase-return-page .records-card .records-table td:nth-child(7),
.purchase-return-page .records-card .records-table th:nth-child(8),
.purchase-return-page .records-card .records-table td:nth-child(8),
.purchase-return-page .records-card .records-table th:nth-child(9),
.purchase-return-page .records-card .records-table td:nth-child(9),
.purchase-return-page .records-card .records-table th:nth-child(12),
.purchase-return-page .records-card .records-table td:nth-child(12) {
  width: 7% !important;
  text-align: center !important;
}

.purchase-return-page .records-card .records-table th:nth-child(10),
.purchase-return-page .records-card .records-table td:nth-child(10) {
  width: 12% !important;
  text-align: center !important;
}

.purchase-return-page .records-card .records-table th:nth-child(11),
.purchase-return-page .records-card .records-table td:nth-child(11) {
  width: 10% !important;
  text-align: center !important;
}

.purchase-return-page .records-card .records-table th:nth-child(13),
.purchase-return-page .records-card .records-table td:nth-child(13) {
  width: 4% !important;
  text-align: center !important;
}

.purchase-return-page .records-card .records-table .record-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 112px;
  max-width: 112px;
}

.purchase-return-page .records-card .records-table .table-action-btn {
  width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 3px 2px;
  font-size: 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.purchase-return-page .records-table th:nth-child(9),
.purchase-return-page .records-table td:nth-child(9) {
  width: 92px !important;
  min-width: 92px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.purchase-return-page .records-table th:nth-child(10),
.purchase-return-page .records-table td:nth-child(10) {
  width: 150px !important;
  min-width: 150px !important;
  text-align: center !important;
  white-space: normal !important;
}

.purchase-return-page .records-table th:nth-child(11),
.purchase-return-page .records-table td:nth-child(11) {
  width: 126px !important;
  min-width: 126px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.purchase-return-page .records-table th:nth-child(12),
.purchase-return-page .records-table td:nth-child(12) {
  width: 96px !important;
  min-width: 96px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.purchase-return-page .records-table th:nth-child(13),
.purchase-return-page .records-table td:nth-child(13) {
  width: 48px !important;
  min-width: 48px !important;
  text-align: center !important;
}

.claim-table {
  min-width: 1220px !important;
  width: 1220px !important;
}

.claim-table th:nth-child(7),
.claim-table td:nth-child(7) {
  width: 112px !important;
  min-width: 112px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.claim-table .claim-action-col,
.claim-table td.record-action-cell {
  width: 160px !important;
  min-width: 160px !important;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.settings-toggle input {
  appearance: none;
  width: 38px;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0;
  border: 0;
  margin: 0;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.18s ease;
  flex: 0 0 auto;
}

.settings-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.settings-toggle input:checked {
  background: #2563eb;
}

.settings-toggle input:checked::after {
  transform: translateX(16px);
}

.module-sql-toggle {
  margin-left: auto;
}

.records-header-actions .module-sql-toggle,
.bulk-actions .row-actions .module-sql-toggle,
.claim-record-actions .module-sql-toggle,
.toolbar .row-actions .module-sql-toggle,
.hero-actions .module-sql-toggle {
  margin-left: 0;
}

.bulk-actions .row-actions .settings-toggle,
.claim-record-actions .settings-toggle {
  height: 40px;
  min-height: 40px;
  min-width: 132px;
  padding: 0 14px;
  border-radius: 10px;
}

body.sql-accounting-source-hidden #summarySqlInvoices,
body.sql-accounting-source-hidden #summarySqlRecords {
  color: #94a3b8;
}

body.customer-payment-record-page.sql-accounting-source-hidden #receiptTable th:nth-child(13),
body.customer-payment-record-page.sql-accounting-source-hidden #receiptTable td:nth-child(13),
body.supplier-payment-record-page.sql-accounting-source-hidden #receiptTable th:nth-child(13),
body.supplier-payment-record-page.sql-accounting-source-hidden #receiptTable td:nth-child(13),
.purchase-return-page.sql-accounting-source-hidden .records-table th:nth-child(9),
.purchase-return-page.sql-accounting-source-hidden .records-table td:nth-child(9),
body.sql-accounting-source-hidden .claim-table th:nth-child(7),
body.sql-accounting-source-hidden .claim-table td:nth-child(7),
body.customer-invoice-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.customer-invoice-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.supplier-invoice-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.supplier-invoice-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.quotation-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.quotation-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.delivery-order-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.delivery-order-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.sale-order-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.sale-order-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.purchase-order-page.sql-accounting-source-hidden .table-card table th:nth-child(8),
body.purchase-order-page.sql-accounting-source-hidden .table-card table td:nth-child(8),
body.maintain-page.sql-accounting-source-hidden:not(.stock-maintain-page) .table-card table th:nth-child(6),
body.maintain-page.sql-accounting-source-hidden:not(.stock-maintain-page) .table-card table td:nth-child(6),
body.stock-maintain-page.sql-accounting-source-hidden .table-card table th:nth-child(7),
body.stock-maintain-page.sql-accounting-source-hidden .table-card table td:nth-child(7) {
  display: none !important;
}

@media (max-width: 1280px) {
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(8),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(9),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(9) {
    min-width: 82px !important;
    width: 82px !important;
  }

  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(10),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(10) {
    min-width: 112px !important;
    width: 112px !important;
  }

  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(11),
  body.supplier-payment-record-page .main-page .table-card #receiptTable th:nth-child(12),
  body.supplier-payment-record-page .main-page .table-card #receiptTable td:nth-child(12) {
    min-width: 96px !important;
    width: 96px !important;
  }
}
