@media screen and (max-width: 900px) {
  #cs-root {
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #cs-root .topbar,
  #cs-root .topbar .topbar-main {
    max-width: 100%;
    min-width: 0;
  }

  #cs-root .topbar .cs-toolbar-line {
    flex-wrap: wrap !important;
    min-width: 0;
    max-width: 100%;
    gap: 6px;
    overflow: visible !important;
  }

  #cs-root .topbar .cs-toolbar-line .topbar-left,
  #cs-root .topbar .cs-toolbar-line .topbar-right {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    flex-wrap: wrap !important;
  }

  #cs-root .topbar .cs-toolbar-line .cs-session-controls {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap !important;
    gap: 4px;
  }

  #cs-root .topbar .cs-toolbar-line .date-row {
    display: flex;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  #cs-root .topbar .cs-toolbar-line [data-cs="agent-select"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  #cs-root .topbar .cs-toolbar-line .topbar-date-filter {
    flex: 1 1 100% !important;
  }
}

@media screen and (max-width: 760px) {
  #delivery-root :is(.dc-head, .dc-toolbar) {
    flex-wrap: wrap;
    gap: 10px;
  }

  #delivery-root :is(.dc-toolbar > div, .dc-more-label, #dc-search, .dc-card, .dc-table-wrap) {
    min-width: 0;
    max-width: 100%;
  }

  #delivery-root .dc-toolbar > div {
    flex: 1 1 100%;
  }

  #delivery-root .dc-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #delivery-root #dc-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #delivery-root #dc-filter-form label {
    min-width: 0;
  }

  #delivery-root #dc-filter-form label:first-child {
    grid-column: 1 / -1;
  }

  #delivery-root :is(button, select, input),
  #pw-root :is(button, select, input:not([type=checkbox])) {
    min-height: 44px;
  }

  #delivery-root .dc-table-wrap,
  #pw-root .pw-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  #pw-root .pw-search {
    flex-wrap: wrap;
  }

  #pw-root .pw-search input {
    flex: 1 1 100%;
  }

  #pw-root .pw-date-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pw-root .pw-filter-footer {
    flex-wrap: wrap;
  }

  #pw-root .pw-filter-footer p {
    max-width: 100%;
  }
}

@media screen and (max-width: 380px) {
  #pw-root .pw-date-range,
  #delivery-root #dc-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
