/* Selan v55 - wrap long declaration section headings on phones. */
@media (max-width: 767px) {
  .staff-declarations-view [data-declaration-detail] div.flex.items-center:has(> h4) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-items: flex-start !important;
  }

  .staff-declarations-view [data-declaration-detail] div.flex.items-center:has(> h4) > svg {
    flex: 0 0 auto !important;
    margin-top: 2px !important;
  }

  .staff-declarations-view [data-declaration-detail] h4 {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 0% !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }

  .staff-declarations-view [data-declaration-detail] div:has(> .packing-review-table-wrap) > div.flex.items-center.justify-between {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .staff-declarations-view [data-declaration-detail] div:has(> .packing-review-table-wrap) > div.flex.items-center.justify-between > div,
  .staff-declarations-view [data-declaration-detail] div:has(> .packing-review-table-wrap) > div.flex.items-center.justify-between > span {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
