@media screen and (max-width: 768px) {
  #app-main table.mobile-list-cards {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  #app-main table.mobile-list-cards thead {
    display: none;
  }

  #app-main table.mobile-list-cards tbody,
  #app-main table.mobile-list-cards tr,
  #app-main table.mobile-list-cards td {
    display: block;
    width: 100%;
  }

  #app-main table.mobile-list-cards tbody {
    display: grid;
    gap: 12px;
  }

  #app-main table.mobile-list-cards tr {
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-slate-900) 5%, transparent);
  }

  #app-main table.mobile-list-cards td {
    border: 0 !important;
    padding: 6px 0 !important;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #app-main table.mobile-list-cards td::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 4px;
    font-size: var(--font-size-caption, 12px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  /* Improve mobile action legibility and tap comfort in dense list cards. */
  #app-main table.mobile-list-cards td .inline-flex,
  #app-main table.mobile-list-cards td button,
  #app-main table.mobile-list-cards td .btn {
    min-height: var(--control-height-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    padding: 8px 10px;
  }

  #app-main table.mobile-list-cards td:last-child > * {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
