.crm-pipeline-jumps {
  display: none;
}

@media screen and (max-width: 680px) {
  .crm-shell-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 114px), 1fr));
    overflow: visible;
    padding: 8px;
  }

  .crm-shell-tabs .crm-tab {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 7px 5px;
    text-align: center;
    white-space: normal;
  }

  .crm-responsive .page-header,
  .crm-responsive .card-heading,
  .overview-responsive .card-heading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .crm-responsive .card-heading .badge {
    white-space: normal;
  }

  .crm-responsive .button,
  .overview-responsive .button {
    min-height: 44px;
  }

  .crm-responsive .toolbar > label,
  .crm-responsive .form-grid > *,
  .overview-responsive .overview-term-form > div {
    min-width: 0;
  }

  .crm-responsive .form-grid,
  .crm-responsive .crm-workspace-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  }

  .crm-responsive .crm-workspace-grid > .card {
    align-self: start;
  }

  .crm-responsive .crm-workspace-filters,
  .crm-responsive .crm-period-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
  }

  .crm-workspace-filters .crm-filter-search,
  .crm-workspace-filters .crm-period-filters,
  .crm-workspace-filters .crm-period-error,
  .crm-workspace-filters .crm-workspace-details,
  .crm-period-filters .actions {
    grid-column: 1 / -1;
  }

  .crm-period-filters .actions > * {
    flex: 1 1 auto;
  }

  .crm-pipeline-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  .crm-pipeline-jumps .button {
    flex: 1 1 130px;
    justify-content: space-between;
    padding-inline: 9px;
    text-align: start;
  }

  .crm-responsive .crm-pipeline {
    scroll-snap-type: x proximity;
  }

  .crm-responsive .crm-pipeline-column {
    flex-basis: min(84%, 280px);
    scroll-snap-align: start;
    scroll-margin-top: 76px;
  }

  .crm-responsive .crm-pipeline-column:target {
    border-color: var(--blue);
  }

  .crm-pipeline-item select {
    margin-bottom: 6px;
  }

  .crm-responsive .crm-records {
    min-width: 590px;
  }

  .crm-responsive .crm-report-leads {
    min-width: 440px;
  }

  .crm-responsive .crm-commission-summary {
    min-width: 810px;
  }

  .crm-records thead tr:first-child > .table-row-number + *,
  .crm-records tbody > tr > .table-row-number + * {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 112px;
    max-width: 144px;
    border-right: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .crm-records tbody > tr > .table-row-number + * {
    background: white;
  }

  .crm-records tbody > tr:hover > .table-row-number + * {
    background: #f9fbfc;
  }

  .crm-report-table td a {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
  }

  .crm-responsive-detail dd {
    margin-inline-start: 0;
    overflow-wrap: anywhere;
  }

  .overview-responsive .card-heading .toolbar {
    margin-bottom: 0;
  }

  .overview-responsive .overview-term-form > div {
    flex: 1 1 220px;
  }
}

@media screen and (max-width: 400px) {
  .crm-responsive .crm-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-responsive .crm-workspace-filters label[data-crm-period-field="day"],
  .crm-responsive .crm-workspace-filters label[data-crm-period-field="month"],
  .crm-responsive .crm-workspace-filters label[data-crm-period-field="week"] {
    grid-column: 1 / -1;
  }

  .crm-responsive .crm-kpis,
  .overview-responsive .overview-kpis {
    gap: 8px;
  }

  .crm-responsive .crm-kpi,
  .overview-responsive .overview-kpi {
    padding: 10px;
  }

  .crm-responsive .crm-kpi-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .overview-responsive .overview-money strong {
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: normal;
  }
}
