/* After the sale (ops/ops.js): the version picker, bookings, Money, and their
   calendar chips. On top of base.css and app.css. */
.ops-pick .row { align-items: flex-start; cursor: pointer; }
.ops-pick .row input { margin-top: 4px; }
.ops-pick .row .chip { flex: none; }
.ops-book td .sub, #view[data-r="money"] td .sub { margin-left: 0; white-space: normal; }
.ops-book td:first-child { min-width: 180px; }
/* app.css gives the Trips list's tables a fixed 880px grid; these two cards sit in a trip's narrower column. */
#view[data-r="trips"] .card.flush.ops-book > table, #view[data-r="trips"] .card.flush.ops-people > table { table-layout: auto; min-width: 0; }
.ops-people td .chip, .ops-book td .chip { white-space: normal; text-align: left; margin: 2px 0; }
.ops-book tr.click { cursor: pointer; }
.ops-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; align-items: center; }
.ops-pay input, .ops-pay select { min-width: 0; }
.ops-pay .btn { grid-column: 1 / -1; justify-self: start; }
.ops-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
/* a traveller's passport rule (B3.5): what it says, its source, guidance only */
.ops-rule { margin: -4px 0 4px; background: var(--tile); border-radius: 10px; padding: 9px 12px; color: var(--ink-2); line-height: 1.45; }
.ops-rule b { color: var(--crit); font-weight: 600; }
.ops-rule a { color: var(--brand-text); }
.form .field em.fine { font-style: normal; margin-top: 4px; display: block; }
.ops-final header { margin-bottom: 0; }
.ev-book { background: var(--brand-tint); color: var(--brand-text); }
.ev-supplier { background: var(--warn-bg); color: var(--warn); }
.ev-visa { background: var(--tile); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
#view[data-r="money"] td.late { color: var(--crit); font-weight: 600; }

/* Connections (ops/connect.js): three cards; one with its guide open takes the whole row. */
.cx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 24px; }
.cx-card:has(.cx-guide) { grid-column: 1 / -1; }
.cx-acts { margin-top: 14px; flex-wrap: wrap; align-items: center; }
.cx-guide { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.cx-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cx-head b { font-size: 15px; }
.cx-head span { flex: 1; }
.cx-first { margin: 0; background: var(--tile); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--ink); }
.cx-steps { margin: 0; padding: 0; list-style: none; counter-reset: cx; display: flex; flex-direction: column; gap: 10px; }
.cx-steps > li { counter-increment: cx; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 50px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.cx-steps > li::before { content: counter(cx); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.cx-steps > li.cx-bad { border-color: var(--crit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 14%, transparent); }
.cx-steps > li.cx-bad::before { background: var(--crit); color: #fff; }
.cx-t { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cx-steps ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink); }
.cx-copy span { flex: none; font-weight: 600; }
.cx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cx-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.cx-field input { font-family: var(--mono); font-size: 13px; font-weight: 400; min-width: 0; }
.cx-err { font-style: normal; font-weight: 400; color: var(--crit); }
.cx-err:empty { display: none; }
.cx-fail { grid-column: 1 / -1; background: var(--crit-bg); color: var(--crit); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.cx-form .stack { grid-column: 1 / -1; }
.cx-note { background: var(--brand-tint); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 12px; }
.cx-note p { margin: 0; }
@media (max-width: 1180px) { .cx-cards { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cx-form { grid-template-columns: 1fr; } .cx-steps > li { padding-left: 44px; } }
.cx-card header p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the status chip keeps its place: the name and account line shrink, not the chip */
.cx-card > header .grow { min-width: 0; }
.cx-card > header > .chip { flex: none; }
/* rooms and passengers (B3.6): the room number, a room's type, note and beds */
.rm-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tile); color: var(--ink-2); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.rm-room { gap: 8px; flex-wrap: wrap; align-items: center; }
.rm-room select { width: auto; flex: none; }
.rm-room input { flex: 1; min-width: 140px; }
.rm-over { color: var(--crit); font-weight: 600; }
/* the bookings table spans its card on wide screens, with or without the cost
   column (B4.1): .stack (base.css, a flex column) is meant for phones here */
@media (min-width: 761px) { .ops-book table.stack { display: table; } }
