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

/* ── Shared: both lists fit the screen width, no lateral scroll ─────────────
   Fixed table layout: the columns share the width set here and the text
   wraps inside them, so the table is never wider than its card. Long text
   wraps on whole words; a very long word (a long ref) breaks only if it
   cannot fit. */
html.ed-touch .fi-resource-office-tasks .fi-ta-table,
html.ed-touch .fi-resource-booking-requests .fi-ta-table {
    table-layout: fixed;
    width: 100%;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    min-width: 0;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text > div,
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text .max-w-max,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text > div,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text .max-w-max {
    max-width: 100%;
    min-width: 0;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text-item,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text-item {
    min-width: 0;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text-item-label,
html.ed-touch .fi-resource-office-tasks .fi-ta-table td .fi-ta-text p,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text-item-label,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text p {
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 0;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-ta-header-cell,
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-ta-header-cell {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
/* Header labels stay ink and may wrap to two lines instead of being cut. */
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-ta-header-cell > span,
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-ta-header-cell > span {
    white-space: normal;
}
/* Row buttons: one under the other in a narrow right column, always in sight. */
html.ed-touch .fi-resource-office-tasks .fi-ta-actions-cell .fi-ta-actions,
html.ed-touch .fi-resource-booking-requests .fi-ta-actions-cell .fi-ta-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
}
html.ed-touch .fi-resource-office-tasks .fi-ta-actions-cell .fi-ta-actions .fi-link {
    white-space: nowrap;
}
/* Longer portal labels ("Accept cancellation", "Open the booking") wrap on words. */
html.ed-touch .fi-resource-booking-requests .fi-ta-actions-cell .fi-ta-actions .fi-link {
    white-space: normal;
    text-align: end;
}
html.ed-touch .fi-resource-booking-requests .fi-ta-actions-cell .fi-ta-actions .fi-link-label,
html.ed-touch .fi-resource-booking-requests .fi-ta-actions-cell .fi-ta-actions .fi-link > span {
    font-size: 0.8125rem;
}
html.ed-touch .fi-resource-booking-requests .fi-ta-actions-cell .fi-ta-actions .fi-link svg {
    flex-shrink: 0;
}

/* ── Office Tasks (Jordan 11 Nov 2026: "realigned, and calibrated to fit iPad
   dimensions in one page") ─────────────────────────────────────────────────
   Status is hidden: the list is open work only. Details takes the free width. */
html.ed-touch .fi-resource-office-tasks .fi-ta-table .fi-ta-selection-cell { width: 44px; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-table-header-cell-type { width: 128px; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-table-header-cell-title { width: 22%; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-table-header-cell-subject-label { width: 18%; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-table-header-cell-assigned-to-name { width: 96px; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-table-header-cell-created-at { width: 108px; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table th.fi-ta-actions-header-cell { width: 108px; }
html.ed-touch .fi-resource-office-tasks .fi-ta-table .fi-table-header-cell-status,
html.ed-touch .fi-resource-office-tasks .fi-ta-table .fi-table-cell-status {
    display: none;
}
/* The type badge may wrap ("Overnight claim") rather than run into Title. */
html.ed-touch .fi-resource-office-tasks .fi-ta-table td.fi-table-cell-type .fi-badge,
html.ed-touch .fi-resource-office-tasks .fi-ta-table td.fi-table-cell-type .fi-badge .truncate {
    white-space: normal;
    overflow: visible;
    text-align: start;
}

/* ── Portal Requests (Jordan 11 Nov 2026: "resized to fit full screen
   without horizontal scroll") ────────────────────────────────────────────
   From (the source badge), Quote and Received are hidden on the iPad; the
   request page still shows them, and the list stays newest first. Text is a
   step smaller. Pickup and Dropoff take the free width, three lines each, then "…". */
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-header-cell-origin,
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-cell-origin,
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-header-cell-quoted-price,
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-cell-quoted-price,
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-header-cell-received-at,
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-table-cell-received-at {
    display: none;
}
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text-item-label,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-ta-text p {
    font-size: 0.8125rem;
    line-height: 1.25rem;
}
html.ed-touch .fi-resource-booking-requests .fi-ta-table .fi-ta-selection-cell { width: 44px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-ref { width: 128px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-status { width: 88px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-client-name { width: 116px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-pickup-datetime { width: 104px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-passenger-count { width: 44px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-vehicle-type { width: 84px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-table-header-cell-open-amendments { width: 84px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table th.fi-ta-actions-header-cell { width: 116px; }
html.ed-touch .fi-resource-booking-requests .fi-ta-table td.fi-table-cell-pickup-location .fi-ta-text-item-label,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td.fi-table-cell-dropoff-location .fi-ta-text-item-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
/* Badges (vehicle, "CANCEL REQUESTED", status) wrap inside their column, never cut. */
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-badge {
    max-width: 100%;
}
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-badge,
html.ed-touch .fi-resource-booking-requests .fi-ta-table td .fi-badge .truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}
