img {
  max-width: 100%;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.field-row > .field {
  min-width: 0;
}

.field__select {
  max-width: 100%;
}

.field__input,
.filter-search {
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .filter-bar {
    justify-content: flex-start;
  }

  .filter-chip {
    max-width: 300px;
  }

  .date-input {
    height: 38px;
  }
}

@media (max-width: 991.98px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select:not([multiple]),
  textarea:not([hidden]) {
    font-size: 16px;
  }

  .filter-bar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }

  .filter-bar__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-bar__chips > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .filter-search,
  .filter-chip {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .filter-bar__date-range {
    flex-wrap: wrap;
  }

  .date-input {
    flex: 1 1 140px;
    width: auto;
    min-width: 0;
    height: 44px;
  }

  .btn-view,
  .btn-edit,
  .btn-status,
  .btn-assign,
  .btn-respond,
  .btn-resend,
  .btn-add,
  .subnav__tab,
  .section-tabs__tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .approval-history__summary {
    padding: 14px 0;
  }

  .modal__close,
  .calendar__nav,
  .booking-calendar__nav {
    min-width: 40px;
    min-height: 40px;
  }

  .quantity-row__input {
    height: 40px;
  }

  .field__toggle,
  .pw-toggle {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .field__toggle {
    right: 4px;
  }
}

@supports (-webkit-touch-callout: none) {
  input[type="date"],
  input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    min-height: 44px;
  }

  input[type="date"]::-webkit-date-and-time-value,
  input[type="time"]::-webkit-date-and-time-value {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .filter-bar__date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 8px;
  }

  .filter-bar__date-label {
    grid-column: 1 / -1;
  }

  .modal__actions {
    flex-wrap: wrap;
  }

  .modal__actions > * {
    flex: 1 1 auto;
    padding-left: 16px;
    padding-right: 16px;
    white-space: nowrap;
  }

  .field-row {
    flex-direction: column;
    gap: 16px;
  }

  .field__select {
    padding-left: 12px;
    padding-right: 32px;
    background-position: right 12px center;
  }

  .detail-row {
    flex-direction: column;
    gap: 12px;
  }

  .table-actions {
    flex-wrap: wrap;
  }

  .table-actions > :not(.table-actions__count) {
    flex: 1 1 auto;
    text-align: center;
  }

  .table-actions__count {
    flex-basis: 100%;
  }
}

@media (max-width: 359.98px) {
  .filter-bar__date-range {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-bar__date-sep {
    justify-self: center;
  }
}
