.customer-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.ord-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  body .module-sidebar .module-links {
    margin: 0;
    padding: 0 2px 6px;
    border-left: 0;
  }

  body .module-sidebar .module-links button {
    padding-inline: 0;
    min-height: 44px;
  }

  body .module-sidebar .nav-module > summary,
  body #theme-btn,
  body #workspace-trigger {
    min-height: 44px;
  }

  body .main.module-main > .header {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .header-actions {
    min-width: 0;
    max-width: 100%;
  }

  .management .mg-filters,
  #orders .ord-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .management .mg-filters label,
  .management .mg-filters .mg-channel,
  #orders .ord-filters label,
  #orders .ord-filters .ord-search {
    min-width: 0;
  }

  .management .mg-presets,
  .management .mg-filters .mg-channel,
  .management .mg-filters button[type="submit"],
  #orders .ord-search {
    grid-column: 1 / -1;
  }

  .management .mg-filters input[type="date"],
  #orders .ord-filters input[type="date"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding-inline: 6px;
  }

  :is(.management .mg-filters, #orders .ord-filters) input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
  }

  .management .mg-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .management .mg-presets button {
    min-height: 44px;
    padding-inline: 2px;
    white-space: normal;
  }

  .management .mg-chart {
    gap: 4px;
  }

  .management .mg-axis {
    min-width: 0;
    white-space: nowrap;
  }

  .management .mg-chart-dates {
    gap: 4px;
    margin-inline: 56px 4px;
  }

  #customers .customer-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #customers .customer-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
  }

  #customers .customer-table-wrap table {
    margin: 0;
  }

  #orders .ord-scroll-hint {
    display: block;
    margin: 0 0 8px;
    font-size: .75rem;
    color: var(--muted);
  }

  #orders .ord-table-wrap,
  #customers .customer-table-wrap {
    overscroll-behavior-x: contain;
  }

  #orders .ord-table-wrap td:nth-child(2) {
    width: 210px;
    overflow-wrap: anywhere;
  }

  #orders .ord-table-wrap td:nth-child(2) small {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  body .main.module-main {
    padding-inline: 12px;
  }

  .management .mg-heading {
    flex-wrap: wrap;
  }

  .management .mg-primary > strong {
    white-space: normal;
  }

  body #customers .card {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .management .mg-filters,
  #orders .ord-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body .main.module-main > .header .header-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  #shopee-settings :is(select, button),
  #shopee-feedback,
  #shopee-issues {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #shopee-settings select,
  #shopee-settings summary {
    min-height: 44px;
  }

  #shopee-settings select {
    font-size: 16px;
  }

  #shopee-settings summary {
    align-content: center;
  }

  #shopee-data {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 480px) {
  #integrations #shopee-settings {
    padding: 12px;
    gap: 14px;
  }

  #shopee-settings .integration-brand {
    align-items: flex-start;
  }

  #shopee-settings .integration-brand > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
