/* On Hold module (design §7b): matrix hotel × arrival date. Hotel and TOT stay fixed; dates scroll. */
.kx-onhold-matrix th,
.kx-onhold-matrix td {
    text-align: center;
    white-space: nowrap;
}

.kx-onhold-matrix tbody th {
    text-align: left;
}

.kx-onhold-matrix .kx-onhold-fix {
    position: sticky;
    left: 0;
    z-index: var(--kx-z-raise);
    min-width: 220px;
    background: var(--kx-surface);
}

.kx-onhold-matrix .kx-onhold-fix-2 {
    position: sticky;
    left: 220px;
    z-index: var(--kx-z-raise);
    min-width: 48px;
    background: var(--kx-surface);
    font-weight: 600;
}

.kx-onhold-indent {
    padding-left: 32px;
    font-weight: 400;
    color: var(--kx-text-muted);
}

.kx-onhold-plane {
    color: var(--kx-primary);
}

.kx-onhold-charter {
    background: var(--kx-surface-alt);
}

.kx-onhold-num {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-width: 28px;
}

.kx-onhold-num:hover,
.kx-onhold-num:focus-visible {
    text-decoration: underline;
}

.kx-onhold-cell.is-warning {
    background: var(--kx-warning-bg);
    color: var(--kx-warning);
}

.kx-onhold-cell.is-danger {
    background: var(--kx-danger-bg);
    color: var(--kx-danger);
}

.kx-onhold-total td,
.kx-onhold-total th {
    font-weight: 600;
}

.kx-onhold-group th {
    text-align: left;
    background: var(--kx-surface-alt);
}

.kx-onhold-late {
    color: var(--kx-danger);
    font-weight: 600;
}

.kx-onhold-soon {
    color: var(--kx-warning);
    font-weight: 600;
}

.kx-onhold-confirm-row input {
    width: 14ch;
}

.kx-onhold-hotel th {
    font-weight: 600;
}

.kx-onhold-cat td {
    font-weight: 400;
}
.kx-onhold-file-cancel .kx-onhold-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
}

/* A10: the batch email preview: fields on the left, the letter on the right (fits 1366×768). */
.kx-onhold-mail {
    display: grid;
    grid-template-columns: minmax(320px, 440px) 1fr;
    gap: 16px;
    align-items: start;
}

.kx-onhold-mail-frame {
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 360px;
    border: 1px solid var(--kx-border);
    background: var(--kx-surface);
}

/* 0.9.51: the email preview under the sending plan, and the cards after it, keep the gap between cards. */
.kx-content > .kx-card + .kx-onhold-mail,
.kx-content > .kx-onhold-mail + .kx-card {
    margin-top: var(--kx-space-4);
}

.kx-onhold-mail.is-read-only {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .kx-onhold-mail {
        grid-template-columns: 1fr;
    }
}

/* A11: the rooms of a live batch summary scroll inside the card; Start and Cancel stay in the header. */
.kx-onhold-review-rooms {
    max-height: 320px;
    overflow-y: auto;
}

/* B3: the On Hold rate card above the hotel search results stands out. */
.kx-onhold-search {
    border-left: 4px solid var(--kx-primary);
}

/* 0.9.45 (point 4): the filters of the matrix (Dashboard and Holds) fit one line at 1366 with State and Room. */
form.kx-filter-bar[id^="kx-oh-"] {
    column-gap: var(--kx-space-2);
}

/* 0.9.46 (F1): the «On Hold rooms» card has a header as low as the other cards', and on the Dashboard the gap below
   of the cards of the grid (as Availability). */
.kx-onhold-rooms {
    margin-bottom: 1rem;
}

.kx-onhold-rooms .kx-card-header h2,
.kx-onhold-rooms .kx-card-header p {
    margin: 0;
}

/* 0.9.50: the batch page (UI-1.0). A preview of new names, and the list of the Discard modal. */
.kx-onhold-new-name {
    color: var(--kx-success);
    font-weight: 600;
}

.kx-onhold-discard-list {
    margin: var(--kx-space-2) 0 0;
    padding-left: var(--kx-space-6);
}

/* 0.9.55 (2c.19): «Goes out: Now · At» of the first email; the segment never shrinks beside its time. */
.kx-oh-first-when .kx-segment {
    flex: none;
}

/* 0.9.70 (D3): «Find GTH» next to the title of On Hold, apart from the filter bar. */
.kx-oh-gth-find {
    display: inline-flex;
    align-items: center;
    gap: var(--kx-space-2);
}
