/* Mobile ledger cards — keep every daily figure fully visible without horizontal scrolling. */
@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
  }

  .ledger-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  .ledger-table thead {
    display: none;
  }

  .ledger-table tbody {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .ledger-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    width: 100%;
    padding: 13px 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: linear-gradient(145deg,#0b202b,#081720);
    box-shadow: 0 3px 0 #020a0f;
  }

  .ledger-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left !important;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .ledger-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #f4f8f7;
    font-size: .93rem;
    font-weight: 800;
  }

  .ledger-table td:nth-child(2)::before,
  .ledger-table td:nth-child(3)::before,
  .ledger-table td:nth-child(4)::before {
    display: block;
    margin-bottom: 5px;
    color: #708991;
    font: 700 .54rem/1.2 monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .ledger-table td:nth-child(2)::before { content: "Start"; }
  .ledger-table td:nth-child(3)::before { content: "P/L"; }
  .ledger-table td:nth-child(4)::before { content: "End"; }

  .ledger-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 390px) {
  .ledger-table tr {
    gap: 9px 5px;
    padding: 12px 10px 13px;
  }

  .ledger-table td {
    font-size: .74rem;
  }

  .ledger-table td:first-child {
    font-size: .88rem;
  }
}
