/* Let the dashboard own vertical scrolling; the table stays inside its page. */
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap {
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  scrollbar-gutter: auto;
}

body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
}

body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th,
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td {
  box-sizing: border-box;
  padding-inline: 8px !important;
}

body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(1),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(1) { width: 5% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(2),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(2) { width: 11% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(3),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(3) { width: 8% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(4),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(4) { width: 11% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(5),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(5) { width: 12% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(6),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(6) { width: 7% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(7),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(7) { width: 8% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(8),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(8) { width: 4.5% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(9),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(9) { width: 5.5% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(10),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(10) { width: 6% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(11),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(11) { width: 9% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(12),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(12) { width: 8% !important; }
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table th:nth-child(13),
body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table td:nth-child(13) { width: 5% !important; }

body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table tbody td {
  height: 44px !important;
  padding-block: 4px !important;
}

#leads-pagination .leads-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--text2);
  font-size: 12px;
  white-space: nowrap;
}

#leads-pagination .leads-page-size select {
  width: auto;
  min-width: 72px;
  min-height: 40px;
  padding: 0 26px 0 10px;
}

@media (max-width: 1400px) {
  body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  body[data-current-tab="leads"] #app #tab-leads #leads-table-wrap .leads-data-table {
    width: 1460px !important;
    min-width: 1460px !important;
  }
}

@media (max-width: 680px) {
  #leads-pagination { justify-content: flex-start; }
  #leads-pagination .leads-page-size { width: 100%; margin-right: 0; }
}
