/* Sales › Lead Sources (#leadsources). Colours come from styles.css's tokens, so light and dark both work. */
[data-page="leadsources"] .page-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.ls-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ls-kpis .kpi b { font-size: 32px; }
#ls-body { display: grid; gap: 18px; min-width: 0; margin-top: 18px; }
.ls-tbl td { vertical-align: top; }
.ls-tbl td small { display: block; font-size: 11.5px; margin-top: 2px; }
.ls-name { min-width: 160px; }
.ls-name > a { font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: none; }
.ls-act { min-width: 150px; text-align: right; }
.ls-count { margin: 6px 20px 8px; }
#ls-unsourced .panel-head { gap: 10px; }
.ls-form { display: grid; gap: 6px; text-align: left; min-width: 240px; }
.ls-form input { font: 13px var(--font); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 36px; width: 100%; }
.ls-form .msg { margin: 0; }
@media (max-width: 1250px) { .ls-lg { display: none; } }
@media (max-width: 1100px) { .ls-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ls-md { display: none; } }
@media (max-width: 760px) {
  .ls-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-kpis .kpi b { font-size: 24px; }
  .ls-count { margin: 6px 14px 8px; }
  .ls-tbl th:first-child, .ls-tbl td:first-child { padding-left: 14px; }
  .ls-tbl th, .ls-tbl td { padding-left: 8px; padding-right: 8px; }
  .ls-name { min-width: 110px; }
  .ls-form { min-width: 0; }
  #ls-unsourced .search { width: 100%; }
  #ls-unsourced .search input { min-width: 0; width: 100%; }
}
