/* Карточки одного списка занимают одинаковую высоту с учётом содержимого. */
.list:has(> .item):not(.chat_messages):not(.cash_summary_list) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 35px 15px;
  align-items: stretch;
}
.list:has(> .item):not(.chat_messages):not(.cash_summary_list) > .item {
  width: auto;
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.list .item .head,
.list .item .archive_meta,
.list .item.delivery .shell {
  flex-wrap: wrap;
}
.list .item .head > *,
.list .item .foot > *,
.list .item .archive_meta > *,
.list .item.delivery .shell > * {
  min-width: 0;
}
.list .item .foot .hint {
  width: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.list.today_master .item .foot .amount {
  width: auto;
  flex: 1 1 0;
}
@media (max-width: 600px) {
  .list:has(> .item):not(.chat_messages):not(.cash_summary_list) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* Статус занимает место в потоке, даже если его название переносится. */
.list .item:has(> .status) {
  display: flex;
  flex-direction: column;
}
.list .item > .status {
  position: static;
  order: -1;
  width: calc(100% + 22px);
  margin: -11px -11px 10px;
  overflow-wrap: anywhere;
}
.list .item:has(> .status) > .head {
  padding-top: 0;
}
.list .item .archive_amount {
  white-space: normal;
}
