/* iPad layout — rate-calendar (Jordan 11 Nov 2026, iPad Pro 12.9" landscape 1366 × 1024).
   Every rule starts with html.ed-touch. */

/* ── Rate Calculator: Recent prices fits the page (Jordan 11 Nov 2026: "adjust the recent prices
   box to fit the page"). The long From / To addresses wrap onto two lines at most, and the
   cells are a little narrower, so the table never scrolls sideways. ── */
html.ed-touch .ed-rate-history .fi-ta-content { overflow-x: hidden; }
html.ed-touch .ed-rate-history .fi-ta-table { table-layout: auto; width: 100%; }
html.ed-touch .ed-rate-history .fi-ta-header-cell:not(:first-of-type),
html.ed-touch .ed-rate-history .fi-ta-cell:not(:first-of-type) .fi-ta-text { padding-left: 0.5rem; padding-right: 0.5rem; }
html.ed-touch .ed-rate-history .fi-ta-cell .fi-ta-text-item,
html.ed-touch .ed-rate-history .fi-ta-cell .fi-ta-text-item-label { white-space: normal; }
html.ed-touch .ed-rate-history .fi-table-cell-pickup .fi-ta-text-item-label,
html.ed-touch .ed-rate-history .fi-table-cell-destination .fi-ta-text-item-label {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    overflow-wrap: anywhere;
}
/* Short values stay on one line. */
html.ed-touch .ed-rate-history :is(.fi-table-cell-created-at, .fi-table-cell-distance-km, .fi-table-cell-discount-percent, .fi-table-cell-card, .fi-table-cell-total) .fi-ta-text-item-label { white-space: nowrap; }

/* ── Calendars: every day tile the same size (Jordan 11 Nov 2026: "day tiles should not be
   resized" — a long entry like "Bentley PSV" or "6328 with shane…" stretched its column/row).
   Seven equal columns that never grow; each tile a fixed height; one line per entry with "…";
   the page already shows 4 entries then "+N more", which fits the fixed height. ── */
html.ed-touch .fi-main div:has(> [wire\:click^="openDayModal"]) {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    grid-auto-rows: auto;
}
html.ed-touch .fi-main [wire\:click^="openDayModal"] {
    min-width: 0;
    height: 136px;
    min-height: 136px !important;
    overflow: hidden;
}
html.ed-touch .fi-main [wire\:click^="openDayModal"] > div {
    flex: none;
    min-width: 0;
    max-width: 100%;
}
/* "+N more" in ink, not light grey (house rule). */
html.ed-touch .fi-main [wire\:click^="openDayModal"] > div:last-child:not([title]):not(:first-child) { color: #111827 !important; }
