/* Scoped late override: V46's global table min-width must not clip the accountant dashboard on phones. */
@media (max-width: 900px) {
  .accounting-dashboard table.responsive,
  .accounting-dashboard .responsive tbody,
  .accounting-dashboard .responsive tr,
  .accounting-dashboard .responsive td,
  .accounting-dashboard .responsive th {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .accounting-dashboard table.responsive {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .accounting-dashboard .responsive tr {
    display: block;
    box-sizing: border-box;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .accounting-dashboard .responsive tr:first-child,
  .accounting-dashboard .responsive th {
    display: none;
  }

  .accounting-dashboard .responsive td {
    display: grid !important;
    grid-template-columns: minmax(92px, 42%) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    box-sizing: border-box;
    border: 0 !important;
    padding: 7px 0 !important;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .accounting-dashboard .responsive td::before {
    content: attr(data-label);
    min-width: 0;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .accounting-dashboard .responsive td:first-child {
    display: grid !important;
  }

  .accounting-dashboard .responsive .money,
  .accounting-dashboard .responsive td:last-child {
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .accounting-dashboard .responsive .btn,
  .accounting-dashboard .responsive form,
  .accounting-dashboard .responsive a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
