/* IML Travel — styles for travel-specific screens. Everything else comes from
   the shared facility-console stylesheets (theme, layout, components). */
.trip-row{grid-template-columns:92px 1.8fr 170px 110px 160px}
.emp-row{grid-template-columns:1.6fr 1.2fr 170px 170px}
.money{font-family:var(--mono);font-size:12.5px;color:var(--text);white-space:nowrap}
.sub-cell.mine{color:var(--red-tx,var(--red));font-weight:600}
.frow3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.mono{font-family:var(--mono)}

/* itinerary */
.segs{display:flex;flex-direction:column;gap:8px}
.seg{display:flex;align-items:flex-start;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.seg.clickable{cursor:pointer}
.seg.clickable:hover{border-color:var(--line-strong)}
.seg-ico{flex:none;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);font-size:15px}
.seg-main{flex:1;min-width:0}
.seg-total{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:8px;font-size:13px}
.seg-total label{color:var(--text-muted)}
.seg-total input{width:130px;border:1px solid var(--line-strong);border-radius:8px;padding:6px 9px;font-family:var(--mono)}

/* flight search */
.modal.wide.fl-modal{max-width:880px}
.fl-form{display:grid;grid-template-columns:80px 80px 1fr 1fr 1fr auto;gap:10px;align-items:end}
.fl-form #fl-from,.fl-form #fl-to{text-transform:uppercase;font-family:var(--mono)}
.fl-go button{width:100%}
.fl-steps{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--text-faint);margin:2px 0 14px;flex-wrap:wrap}
.fl-steps .on{color:var(--accent-ink);font-weight:600}
.fl-steps .done{color:var(--text-muted)}
.fl-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.fl-sorts{display:flex;gap:4px;margin-left:auto;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:3px}
.fl-sort{border:none;background:none;padding:5px 12px;border-radius:6px;font-size:12px;font-weight:600;color:var(--text-muted);cursor:pointer}
.fl-sort.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.fl-list{display:flex;flex-direction:column;gap:8px}
.fl-opt{display:grid;grid-template-columns:1.3fr 1.1fr 130px auto;gap:12px;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.fl-times{font-weight:600;font-size:14px}
.fl-when{display:flex;align-items:center;gap:12px}
.fl-end{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.fl-end b{font-size:15px}
.fl-end small{color:var(--text-muted);font-size:11.5px;white-space:nowrap}
.fl-lbl{font-size:10px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;color:var(--text-faint)}
.fl-arrow{color:var(--text-faint)}
.fl-plus{font-size:10px;color:var(--amber-tx);margin-left:2px}
.fl-route{font-size:13px}
.fl-price{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.fl-price .pill{padding:1px 8px;font-size:10.5px}
.fl-loading{display:flex;align-items:center;gap:10px;padding:24px 4px;color:var(--text-muted);font-size:13px}
.btn .spin{display:inline-block;vertical-align:-2px;margin-right:6px;width:12px;height:12px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite}
.fl-loading .spin{width:14px;height:14px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:sp .7s linear infinite}
.fl-check{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:2px}
/* Explanations on hover (or keyboard focus): Best / Cheapest / Fastest tags and the sort buttons. */
.has-tip{position:relative;cursor:help}
.fl-sort.has-tip{cursor:pointer}
.has-tip::after{content:attr(data-tip);position:absolute;right:0;bottom:calc(100% + 8px);width:max-content;max-width:260px;white-space:normal;text-align:left;
  background:var(--ink);color:#fff;font-size:12px;font-weight:500;line-height:1.45;letter-spacing:0;text-transform:none;padding:8px 10px;border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,.3);opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .12s,transform .12s;z-index:30}
.has-tip.tip-below::after{bottom:auto;top:calc(100% + 8px);transform:translateY(-4px)}
.has-tip:hover::after,.has-tip:focus-visible::after{opacity:1;transform:none}
[data-theme="dark"] .has-tip::after{background:#2A3A55;border:1px solid var(--line-strong)}
.fl-slots{display:grid;gap:8px;margin-bottom:16px}
.fl-slot{position:relative}
.fl-slot.filled .seg{padding-right:64px}
/* A square in the app's own red tints (the same ones the "Rejected" pill uses), so it reads as "remove" without shouting. */
.fl-x{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:8px;display:grid;place-items:center;font-size:24px;line-height:1;font-weight:600;color:var(--red-tx);background:var(--red-bg);border:1px solid color-mix(in srgb,var(--red) 40%,transparent);cursor:pointer;transition:background .12s,color .12s}
.fl-x:hover{background:var(--red);color:#fff;border-color:var(--red)}
.fl-slot.empty{display:flex;align-items:center;gap:12px;border:2px dashed var(--line-strong);border-radius:9px;padding:12px 14px;color:var(--text-muted);font-size:13px}
.fl-slot.empty>div{display:flex;flex-direction:column}
.fl-slot.empty b{color:var(--text-muted);font-size:13.5px}
.fl-slot.empty.active{border-color:var(--accent);background:var(--accent-bg);color:var(--accent-ink)}
.fl-slot.empty.active b{color:var(--accent-ink)}
.fl-slot-ico{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;border:1px dashed currentColor;opacity:.8}
.fl-party{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:14px}
.fl-party-head{display:flex;flex-direction:column;gap:2px;font-size:13px;margin-bottom:8px}
.fl-party-head span{color:var(--text-muted);font-size:12px}
.fl-party-chips{display:flex;flex-wrap:wrap;gap:6px}
.fl-party-chip{border:1px solid var(--line-strong);border-radius:20px;padding:4px 11px;font-size:12.5px;font-weight:600;color:var(--text-muted);background:var(--surface)}
.fl-party-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.fl-stale{display:flex;align-items:center;gap:12px;justify-content:center;padding:22px;color:var(--text-muted);font-size:13px}

/* calendar */
.cal-item.teal{background:var(--teal-bg)}.cal-item.teal .d{background:var(--teal)}
/* Keep the seven days equal; a long flight label truncates instead of widening its column. */
.cal-dow,.cal-weeks{grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-cell{min-width:0}
.cal-flight{grid-template-columns:80px 1fr}

/* traveler summary on a trip */
.trav-card{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:12px 14px}
.trav-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}

/* notes */
.notes{display:flex;flex-direction:column;gap:8px}
.note{background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:9px 12px}
.note.q{border-color:var(--amber)}
.note-h{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted)}
.note-h b{color:var(--text)}
.note-x{margin-left:auto;background:none;border:none;color:var(--text-faint);font-size:16px;cursor:pointer;line-height:1}
.note-b{font-size:13px;line-height:1.55;margin-top:3px;white-space:pre-wrap}
.note-new{display:flex;gap:8px;align-items:flex-end;margin-top:10px}
.note-new .txtin{flex:1;min-height:56px}

/* hotel search */
.ht-tabs{margin:0 0 14px;display:inline-flex}
.ht-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}
.ht-list{display:flex;flex-direction:column;gap:10px}
.ht-card{display:grid;grid-template-columns:104px minmax(0,1fr) 150px;gap:14px;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.ht-img{width:104px;height:78px;border-radius:8px;object-fit:cover;display:block;background:var(--surface)}
.ht-noimg{display:grid;place-items:center;font-size:28px;border:1px solid var(--line)}
.ht-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.ht-name{font-weight:600;font-size:14px}
.ht-muted{color:var(--text-faint)}
.ht-amen{font-size:11.5px;color:var(--text-faint)}
.ht-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.ht-price .money{font-size:15px;font-weight:600}
.ht-price .btn{margin-top:6px}
.fl-party-chip small{font-weight:500;opacity:.8}
/* where to look: airport (default), venue, or a custom address */
.ht-locs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.ht-loc{border:1px solid var(--line-strong);background:var(--surface);color:var(--text-muted);border-radius:8px;padding:7px 12px;font-size:12.5px;font-weight:600}
.ht-loc:hover{color:var(--text)}
.ht-loc.on{background:var(--accent-bg);border-color:var(--accent);color:var(--accent-ink)}
.ht-form input[readonly]{background:var(--surface-2);color:var(--text-muted)}
/* who needs a room: a list with a checkbox on the left */
.hp-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hp-row{display:grid;grid-template-columns:28px minmax(0,1.6fr) minmax(0,1fr) 60px 110px;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}
.hp-row:last-child{border-bottom:none}
.hp-row:hover{background:var(--surface-2)}
.hp-row.on{background:color-mix(in srgb,var(--accent) 7%,transparent)}
.hp-row input{width:16px;height:16px;accent-color:var(--accent);margin:0;cursor:pointer}
.hp-head{background:var(--surface-2);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);font-weight:600}
.hp-head .hp-name{text-transform:none;letter-spacing:0;font-size:12.5px;color:var(--text)}
.hp-name{font-weight:600}
.hp-dept,.hp-air{color:var(--text-muted)}
.hp-note .pill{font-size:10.5px;padding:2px 8px}
@media(max-width:720px){.hp-row{grid-template-columns:28px minmax(0,1fr) auto}.hp-dept,.hp-air{display:none}}
@media(max-width:720px){
  .ht-form{grid-template-columns:1fr 1fr}
  .ht-form .field:first-child{grid-column:1 / -1}
  .ht-card{grid-template-columns:80px minmax(0,1fr)}
  .ht-img{width:80px;height:64px}
  .ht-price{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}
}

/* group trips */
.grp-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;background:var(--accent-bg);color:var(--accent-ink);border-radius:20px;padding:1px 8px;margin-right:6px;cursor:pointer;white-space:nowrap}
.grp-chip:hover{filter:brightness(.95)}
.g-pickbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.g-pickbar .searchbox{flex:1;min-width:180px}
.g-pickbar select{border:1px solid var(--line-strong);border-radius:8px;padding:7px 10px;background:var(--surface)}
.g-pick{max-height:280px;overflow-y:auto;border:1px solid var(--line);border-radius:9px}
.g-row{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--line);cursor:pointer;font-size:13px}
.g-row:last-child{border-bottom:none}
.g-row:hover{background:var(--surface-2)}
.g-row input{width:16px;height:16px;accent-color:var(--accent);flex:none}
.g-row span:nth-child(2){flex:1;display:flex;flex-direction:column}
.g-row small{color:var(--text-muted);font-size:11.5px}
.g-air{font-family:var(--mono);font-size:12px;color:var(--text-muted)}
.g-origin{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin-bottom:8px}
.g-origin>div{display:flex;flex-direction:column;font-size:13px;min-width:0}
.g-origin span{color:var(--text-muted)}
.g-origin small{color:var(--text-faint);font-size:11.5px}
.g-origin.g-local{background:var(--teal-bg);border-color:color-mix(in srgb,var(--teal) 35%,var(--line))}
.g-member{grid-template-columns:92px 1.4fr 60px 1.6fr 150px}
.g-row-open{grid-template-columns:1.8fr 100px 160px 80px}
@media(max-width:720px){.g-row-open,.g-member{grid-template-columns:minmax(0,1fr)}}
.g-suggests{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.g-suggest{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--accent-bg);border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:10px;padding:10px 14px;font-size:13px}
.modal .g-suggest{margin-bottom:14px}
.g-suggest-ico{font-size:18px}
.g-hidden{font-size:12px;color:var(--text-muted)}
.g-hidden a{color:var(--accent-ink);font-weight:600;cursor:pointer}
.g-suggest-tx{flex:1;min-width:220px;color:var(--text)}
.g-suggest .actionbar{margin:0}
.g-confs{display:flex;flex-direction:column;gap:6px}
.g-conf{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:center;font-size:13px}
.g-conf input{border:1px solid var(--line-strong);border-radius:8px;padding:7px 10px;background:var(--surface)}

/* employee sign-in, inside the employee form */
.signin-toggle{display:flex;align-items:center;gap:9px;font-weight:500;font-size:13px;margin-bottom:12px}
.signin-toggle input{width:16px;height:16px;accent-color:var(--accent)}
.signin-on{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:13px}

/* loyalty programs */
.loy-row{display:grid;grid-template-columns:130px 1fr 1fr 28px;gap:8px;align-items:center;margin-bottom:8px}
.loy-row input,.loy-row select{border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;min-width:0}

@media(max-width:720px){
  .trip-row,.emp-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .frow3{grid-template-columns:1fr}
  .loy-row{grid-template-columns:1fr 28px}
  .loy-row input{grid-column:1}
  .trav-card{flex-direction:column}
  .trav-side{align-items:flex-start;flex-direction:row}
  .note-new{flex-direction:column;align-items:stretch}
  .fl-form{grid-template-columns:1fr 1fr}
  .fl-opt{grid-template-columns:1fr auto}
  .fl-route{grid-column:1}
  .fl-price{grid-column:2;grid-row:1}
  .fl-opt .btn{grid-column:1 / -1}
}/* Booked flights: read-only slots and who is on them. */
.fl-slot.booked .seg{border-color:var(--green);padding-right:100px}
.fl-slot .fb-pill{position:absolute;top:50%;right:14px;transform:translateY(-50%)}
.fb-people{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:12px}
.fb-person{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 110px;gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--line);font-size:13px}
.fb-person:last-child{border-bottom:none}
.fb-person .money{text-align:right}
.fb-head{background:var(--surface-2);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}
.fb-head span:last-child{text-align:right}

/* Preferred airline: its best flights above the full list (coordinators only). */
.fl-pref{border:1px solid var(--pref-blue);border-radius:12px;padding:10px 12px 4px;margin-bottom:12px;background:var(--pref-blue-bg)}
.fl-pref-h{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--text);margin-bottom:8px}
.fl-pref .hint{margin:0 0 8px}

/* Airport and airline pickers (js/autocomplete.js) */
.ac-list{position:fixed;z-index:300;max-width:min(460px,calc(100vw - 24px));background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 14px 40px rgba(16,32,64,.18);padding:5px;overflow:hidden}
.ac-list[hidden]{display:none}
.ac-opt{display:flex;align-items:baseline;gap:10px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13px;color:var(--text)}
.ac-opt b{font-family:var(--mono);font-size:13px;min-width:34px;color:var(--accent-ink)}
.ac-opt span{color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-opt.on,.ac-opt:hover{background:var(--accent-bg)}
[data-theme="dark"] .ac-list{background:#141B32;box-shadow:0 14px 40px rgba(0,0,0,.5)}

/* A hotel the traveler asked for (trip page card and list flag). */
.hotel-req{display:flex;align-items:center;gap:12px;border:1px solid var(--amber);background:var(--amber-bg);border-radius:12px;padding:12px 14px;margin:4px 0 6px}
.hotel-req>div{flex:1;min-width:0}
.hotel-req b{color:var(--text)}
.hotel-req-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);font-size:16px;flex:none}
.hotel-flag{background:var(--amber-bg)!important;color:var(--amber-tx)!important}

/* Itinerary email panel: address and subject to copy, and the card as it will look. */
.itin-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:var(--surface-2)}
.itin-k{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);width:62px;flex:none}
.itin-v{flex:1;min-width:0;font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itin-frame{margin-top:14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#EEF2F8}
.itin-frame iframe{display:block;width:100%;height:760px;border:0}

/* Export: which trips to include */
.exp-opts{display:flex;flex-direction:column;gap:8px}
.exp-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--surface-2)}
.exp-opt.on{border-color:var(--accent);background:var(--accent-bg)}
.exp-opt input{width:18px;height:18px;accent-color:var(--accent);flex:none;margin:0;pointer-events:none}
.exp-opt>span:first-of-type{flex:1;min-width:0}
.exp-opt b{display:block;font-size:14px}
.exp-opt small{display:block;font-size:12px;color:var(--text-muted);margin-top:1px}
.exp-ct{font-size:12px;color:var(--text-muted);white-space:nowrap;font-family:var(--mono)}
.pick-row{grid-template-columns:92px minmax(0,1fr) auto}

/* Group page: each person under their departure airport, with the flights they have */
.g-origin.g-origin-full{flex-direction:column;align-items:stretch;gap:8px}
.g-origin-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.g-origin-head>div{display:flex;flex-direction:column;font-size:13px;min-width:0}
.g-people{display:flex;flex-direction:column;border-top:1px solid var(--line);padding-top:6px}
.g-person{display:flex;align-items:center;gap:12px;padding:6px 8px;border-radius:8px;font-size:13px;cursor:pointer}
.g-person:hover{background:var(--surface)}
.g-pname{width:160px;flex:none;font-weight:600;color:var(--text)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-pwhat{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.g-fl{color:var(--text-muted);font-family:var(--mono);font-size:12px}
/* Group flight search: who it books for */
.g-booking-for{border:1px solid var(--accent);background:var(--accent-bg);border-radius:12px;padding:10px 12px;margin-bottom:14px;font-size:13px}
.g-booking-for>div:first-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.g-bf-k{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-ink);margin-right:4px}
.g-bf-name{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:2px 10px;font-weight:600}
.g-bf-skip{margin-top:6px;color:var(--text-muted);font-size:12.5px}
@media(max-width:720px){.g-person{flex-direction:column;align-items:flex-start;gap:2px}.g-pname{width:auto}}
.g-origin.g-origin-full>.g-origin-head{flex-direction:row;align-items:center;text-align:left}
/* Others in the group: their flights, and the same flight marked in the results */
.g-bf-mates{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.g-bf-mate{display:grid;grid-template-columns:150px 120px minmax(0,1fr);gap:10px;align-items:center;font-size:12.5px;padding:3px 6px;border-radius:6px}
.g-bf-mate.same{background:var(--surface)}
.g-bf-mate span{color:var(--text-muted)}
.fl-opt.fl-same{border-color:var(--teal);box-shadow:inset 3px 0 0 var(--teal)}
.fl-same-pill{white-space:nowrap}
@media(max-width:720px){.g-bf-mate{grid-template-columns:1fr}}
/* A flight on a traveler's preferred airline: blue in both themes (a shared group flight shows green too) */
:root{--pref-blue:#1F6FEB;--pref-blue-bg:#E9F1FE;--pref-blue-tx:#1554C4}
[data-theme="dark"]{--pref-blue:#6C8CFF;--pref-blue-bg:rgba(108,140,255,.16);--pref-blue-tx:#A9BCFF}
.fl-opt.fl-prefer{border-color:var(--pref-blue);box-shadow:inset 3px 0 0 var(--pref-blue)}
.fl-opt.fl-prefer.fl-same{border-color:var(--teal);box-shadow:inset 3px 0 0 var(--teal),inset 6px 0 0 var(--pref-blue)}
.fl-pref-pill{white-space:nowrap;background:var(--pref-blue-bg)!important;color:var(--pref-blue-tx)!important}

/* Group icon (GROUP_ICON in js/constants.js) and the neutral group tag */
.ico-group{width:1.1em;height:1.1em;vertical-align:-.18em;flex:none;display:inline-block}
.grp-chip{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--line-strong);gap:5px!important}
.grp-chip .ico-group{color:var(--text-muted)}
.grp-chip:hover{border-color:var(--text-muted)}
.mh h2 .ico-group,.primary-cell .ico-group{color:var(--text-muted);margin-right:2px}
.g-suggest-ico .ico-group{width:20px;height:20px;vertical-align:middle}
.rolehint .ico-group{color:var(--text-muted)}
.grp-chip.hotel-flag{background:var(--amber-bg)!important;color:var(--amber-tx)!important;border-color:transparent}
/* Hotel window opened right after booking flights */
.after-flights{display:flex;align-items:center;gap:10px;border:1px solid var(--green);background:var(--green-bg);color:var(--text);border-radius:12px;padding:10px 14px;margin-bottom:14px;font-size:13.5px}
.after-flights>span{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700;flex:none}

/* Hotel map (Leaflet) */
.ht-map{height:340px;border-radius:14px;border:1px solid var(--line);margin:4px 0 14px;overflow:hidden;z-index:0;background:var(--surface-2)}
.map-pin{transform:translate(-50%,-115%);white-space:nowrap;font:700 12px/1 var(--sans);padding:6px 9px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.28);border:2px solid #fff;color:#fff;position:relative}
.map-pin::after{content:'';position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);border:6px solid transparent;border-top-color:inherit;border-bottom:0}
.pin-air{background:#334155;border-color:#334155}
.pin-air::after{border-top-color:#334155}
.pin-venue{background:#E11D48;border-color:#E11D48}
.pin-venue::after{border-top-color:#E11D48}
.pin-chosen{background:#16A34A;border-color:#16A34A;font-size:12.5px}
.pin-chosen::after{border-top-color:#16A34A}
.map-dot{width:14px;height:14px;border-radius:50%;background:#64748B;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35);transform:translate(-50%,-50%);cursor:pointer}
.map-dot.faded{opacity:.45}
.map-pop{display:flex;flex-direction:column;gap:4px;font:13px var(--sans);min-width:170px}
.map-pop span{color:#5B6A85}
.map-pop .btn{align-self:flex-start;margin-top:4px}
.map-pop i{color:#16A34A;font-style:normal;font-weight:700}
.leaflet-container{font-family:var(--sans)}
[data-theme="dark"] .ht-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6)}
/* The chosen hotel's label hangs below its spot, so it never covers the venue pin above a nearby spot. */
.pin-chosen{transform:translate(-50%,16%)}
.pin-chosen::after{bottom:auto;top:-7px;border-top:0;border-bottom:6px solid #16A34A;border-left-color:transparent;border-right-color:transparent}
/* Hotels of a traveler's preferred brand: blue, like preferred-airline flights, and listed first */
.ht-card.ht-prefer{border-color:var(--pref-blue);box-shadow:inset 3px 0 0 var(--pref-blue)}
.map-dot.pref{background:var(--pref-blue)}

/* In progress */
.prog-row{grid-template-columns:92px minmax(0,1.6fr) 150px minmax(0,1.2fr) 100px}
.prog-ico{display:grid;place-items:center;width:34px;height:26px;border-radius:7px;background:var(--surface-2);border:1px solid var(--line);color:var(--text-muted)}
.prog-left{display:flex;flex-wrap:wrap;gap:5px}
@container page (max-width:820px){.prog-row{grid-template-columns:84px minmax(0,1fr) auto}.prog-row>.date{display:none}.prog-row>.prog-left{grid-column:2/-1}}

/* Itinerary email confirmation page */
.itin-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:12px;background:var(--surface)}
.itin-card.done{border-color:var(--green)}
.itin-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.itin-chips{display:flex;gap:5px;flex-wrap:wrap}
.itin-sec{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);margin:12px 0 6px}
.itin-people{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.itin-person{display:grid;grid-template-columns:22px minmax(0,1fr) auto minmax(0,1.2fr);gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer;background:var(--surface-2)}
.itin-person:last-child{border-bottom:none}
.itin-person input{width:16px;height:16px;accent-color:var(--accent);margin:0}
.itin-pname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itin-pmail{color:var(--text-muted);font-family:var(--mono);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itin-add{display:flex;gap:8px;margin-top:8px}
.itin-add input{flex:1;min-width:0;border:1px solid var(--line-strong);border-radius:10px;padding:7px 10px;background:var(--surface);color:var(--text)}
.itin-subject{font-weight:600;font-size:13.5px}
.itin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.itin-sent{margin-top:10px;color:var(--green-tx);background:var(--green-bg);border-radius:10px;padding:8px 12px;font-size:13px;font-weight:600}
.after-flights .btn{margin-left:auto;flex:none}
@media(max-width:720px){.itin-person{grid-template-columns:22px minmax(0,1fr) auto}.itin-pmail{grid-column:2/-1}}

/* Itineraries to send */
.due-panel{border-color:var(--accent)!important}
.due-panel .ph .pill{margin-left:2px}
.due-row{grid-template-columns:92px minmax(0,1.8fr) 150px 140px}
@container page (max-width:820px){.due-row{grid-template-columns:84px minmax(0,1fr) auto}.due-row>.date{display:none}}
.itin-person.no-mail{opacity:.75;cursor:default}.itin-person.no-mail .itin-pmail{color:var(--amber-tx);font-family:var(--sans)}

/* Group page: hotel per person, and the group form's hotel question */
.g-photel{display:flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.g-photel .g-fl{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-hflip{font-size:11.5px;color:var(--text-muted);text-decoration:underline;text-underline-offset:2px;padding:2px 4px;border-radius:6px}
.g-hflip:hover{color:var(--text);background:var(--surface)}
.g-origin-btns{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.g-hotel-q{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:12px;background:var(--surface-2);cursor:pointer}
.g-hotel-q input{width:18px;height:18px;margin-top:2px;accent-color:var(--accent);flex:none}
.g-hotel-q b{display:block;font-size:13.5px}
.g-hotel-q small{display:block;font-size:12px;color:var(--text-muted)}
@media(max-width:720px){.g-photel{margin-left:0}}

/* Export: who */
.exp-who-tabs{margin-top:2px}
.exp-who-bar{display:flex;align-items:center;gap:10px;margin:10px 0 8px}
.exp-who-bar .searchbox{flex:1}
.exp-who-bar .searchbox input{width:100%}
.exp-who-list{display:flex;flex-direction:column;max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:10px}
.exp-who-row{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}
.exp-who-row:last-child{border-bottom:none}
.exp-who-row:hover{background:var(--surface-2)}
.exp-who-row input{width:16px;height:16px;margin:0;accent-color:var(--accent);pointer-events:none}
.exp-who-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exp-who-sub{color:var(--text-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Hotel map with a details panel beside it */
.ht-mapwrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;margin:4px 0 14px;align-items:stretch}
.ht-mapwrap .ht-map{margin:0;height:420px}
.ht-detail{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow-y:auto;max-height:420px;display:flex;flex-direction:column}
.ht-detail-empty{flex:1;display:grid;place-items:center;text-align:center;color:var(--text-muted);font-size:13px;padding:24px;gap:8px}
.ht-detail-empty span{font-size:26px}
.ht-dhead{position:relative}
.ht-dphoto{display:block;width:100%;height:150px;object-fit:cover;background:var(--surface-2)}
.ht-dx{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:16px;display:grid;place-items:center}
.ht-dhead:not(:has(img)) .ht-dx{position:static;margin:8px 8px 0 auto;background:var(--surface-2);color:var(--text-muted)}
.ht-dbody{padding:12px 14px 14px}
.ht-dname{font-weight:700;font-size:15px;line-height:1.3}
.ht-ddesc{font-size:12.5px;color:var(--text-muted);margin:8px 0 0;line-height:1.5}
.ht-dgrid{margin-top:10px;border-top:1px solid var(--line);padding-top:6px}
.ht-drow{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:4px 0}
.ht-drow span{color:var(--text-muted)}
.ht-drow b{text-align:right;font-weight:600}
.ht-dsec{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);margin:12px 0 6px}
.ht-dchips{display:flex;flex-wrap:wrap;gap:5px}
.ht-dchips span{font-size:11.5px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.ht-dacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.ht-card.clickable{cursor:pointer}
.ht-card.focused{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-bg),inset 3px 0 0 var(--accent)}
.pin-focus{background:#1F2937;border-color:#fff;font-size:12px}
.pin-focus::after{border-top-color:#1F2937}
@media(max-width:900px){.ht-mapwrap{grid-template-columns:minmax(0,1fr)}.ht-mapwrap .ht-map{height:300px}.ht-detail{max-height:none}}

/* Flight tracker and live status (js/views/tracking.js) */
.tk-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}
.tk-list{display:flex;flex-direction:column;gap:10px;position:sticky;top:120px}
.tk-list .searchbox input{width:100%}
.tk-people{display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow-y:auto}
.tk-person{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer}
.tk-person:hover{border-color:var(--line-strong)}
.tk-person.on{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.tk-pname{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.tk-pnext{font-size:12.5px;font-family:var(--mono)}
.tk-pdept{font-size:12px;color:var(--text-muted)}
.tk-detail{min-width:0}
.tk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.tk-head h2{font-size:20px}
.lv-trip{margin-bottom:18px}
.lv-trip-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.lv-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:14px 16px;margin-bottom:10px;box-shadow:var(--shadow)}
.lv-card.lv-enroute{border-color:var(--teal)}.lv-card.lv-delayed{border-color:var(--amber)}.lv-card.lv-cancelled,.lv-card.lv-diverted{border-color:var(--red)}
.lv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.lv-head b{font-size:14.5px;display:block}
.lv-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:10px;margin:12px 0 6px}
.lv-end{display:flex;flex-direction:column;gap:1px;min-width:0}.lv-end.r{text-align:right;align-items:flex-end}
.lv-end b{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1}
.lv-time{font-size:16px;font-weight:700;margin-top:4px}
.lv-sched{font-size:12px;color:var(--text-muted);text-decoration:line-through}
.lv-meta{font-size:12px;color:var(--text-muted)}
.lv-plane{color:var(--accent);font-size:18px;padding-top:6px}
.lv-bar{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin:6px 0}
.lv-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--teal),var(--accent));border-radius:999px}
.lv-foot{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12.5px}
.lv-foot .hint{margin:0 0 0 auto}
.lv-late{color:var(--red-tx);font-weight:700}.lv-early{color:var(--green-tx);font-weight:700}
.pp-tracker{padding-top:18px;padding-bottom:40px}
@media(max-width:900px){.tk-layout{grid-template-columns:minmax(0,1fr)}.tk-list{position:static}.tk-people{max-height:260px}}
/* Flight tracker: a flight in the air on a map (js/views/tracking.js). */
.lv-card.lv-clickable{cursor:pointer}
.lv-mapbtn{margin-left:4px}
.lv-mapbox{margin-top:12px;display:flex;flex-direction:column;gap:8px;cursor:default}
.lv-map{height:340px;border-radius:12px;border:1px solid var(--line);overflow:hidden;z-index:0}
.lv-facts{display:flex;flex-wrap:wrap;gap:8px}
.lv-facts span{display:flex;flex-direction:column;font-size:11.5px;color:var(--text-muted);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:7px 11px}
.lv-facts b{font-size:14px;color:var(--text)}
.lv-plane-ico{width:30px;height:30px;color:#1F6FEB;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));transition:transform .6s ease}
@media(max-width:720px){.lv-map{height:260px}}

/* Employee form: managers as chips, with a list to add another. */
.mgr-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mgr-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 6px 5px 11px;border-radius:999px;background:var(--accent-bg);color:var(--accent-ink);font-size:13px;font-weight:600;line-height:1}
.mgr-chip .doc-x{position:static;width:18px;height:18px;font-size:12px;box-shadow:none}
.mgr-chips select{flex:1;min-width:170px}

/* Live flight status shown beside booked flights across the app (js/live.js). */
.live-pill{margin-left:6px;vertical-align:middle}
.sub-cell.live-line{color:var(--text);font-weight:500}
.bp-was{opacity:.55;font-size:.8em;margin-left:4px}
.bp-live{box-shadow:0 0 0 1px rgba(31,111,235,.25)}
.seg-lookup{margin:-4px 0 12px}
.seg-legs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}

/* Trip form: details for a traveler who is not an employee. */
.guest-box{border-left:3px solid var(--accent);padding:4px 0 2px 14px;margin:4px 0 14px}
.guest-box .hint{margin-bottom:10px}
.guest-box[hidden]{display:none}
.grp-chip.guest-chip{cursor:default}
.portal .pp-only{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:14px;cursor:pointer}
/* A checkbox inside a form field keeps its own size instead of stretching like the text boxes. */
.field .fl-check input[type="checkbox"]{width:auto;flex:none;margin:0}
.field .fl-check{text-transform:none;letter-spacing:0;font-weight:500;font-size:13.5px;color:var(--text)}

.field .guest-btn{margin-top:8px;align-self:flex-start}

.guest-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
/* Trip form: the Traveler field shows the employee list and a Customer traveler button, or a note while a customer is entered. */
.field .guest-note{display:none;padding:9px 0;font-weight:600}
.field.as-guest select,.field.as-guest .guest-btn,.field.as-guest .pk{display:none}
.field.as-guest .guest-note{display:block}

/* Events: the coordinator list, who-can-come choice, and portal cards */
.ev-row{grid-template-columns:1.8fr 170px 150px 110px 150px}
@media(max-width:720px){.ev-row{grid-template-columns:minmax(0,1fr)}}
.ev-aud{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.ev-aud label{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface-2);cursor:pointer}
.ev-aud label:has(input:checked){border-color:var(--accent);background:var(--accent-bg)}
.ev-aud input{width:18px;height:18px;margin-top:2px;accent-color:var(--accent);flex:none}
.ev-aud b{display:block;font-size:13.5px}.ev-aud small{display:block;font-size:12px;color:var(--text-muted)}
@media(max-width:560px){.ev-aud{grid-template-columns:1fr}}
.ev-card{cursor:default}
.ev-card .pp-card-body{gap:8px}
.ev-purpose{font-size:14px;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ev-deadline{font-size:12.5px;font-weight:600;color:var(--amber-tx)}
.ev-going{font-size:13.5px;font-weight:600;color:var(--green-tx)}
.ev-acts{display:flex;gap:8px;flex-wrap:wrap}

/* Calendar: filters in a sidebar, and hovering a trip lights up the rest of it */
.cal-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start}
.cal-main{min-width:0}
.cal-side{margin:0;padding:14px 14px 6px;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
.cal-side-h{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.cal-side-h b{font-size:14px}
.cal-side-h .grp{font-size:12px;color:var(--text-muted)}
.cal-side-h{list-style:none;cursor:default}.cal-side-h::-webkit-details-marker{display:none}
.cal-clearall{display:block;margin:0 0 8px}
.cal-fg{border-top:1px solid var(--line);padding:10px 0 8px}
.cal-fh{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-bottom:6px}
.cal-fx{background:none;border:0;color:var(--accent-ink);font-size:12px;font-weight:600;cursor:pointer;padding:0;text-transform:none;letter-spacing:0}
.cal-fx:hover{text-decoration:underline}
.cal-f{display:flex;align-items:center;gap:8px;padding:4px 6px;margin:0 -6px;border-radius:7px;font-size:13px;cursor:pointer}
.cal-f:hover{background:var(--surface-2)}
.cal-f input{width:15px;height:15px;accent-color:var(--accent);flex:none;margin:0}
.cal-f span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-f em{font-style:normal;font-size:11.5px;color:var(--text-muted);font-variant-numeric:tabular-nums}
.cal-f.none span,.cal-f.none em{opacity:.5}
.cal-side .cal-who{width:100%;max-width:none}
.cal-weeks.cal-hovering .cal-item{opacity:.35;transition:opacity .12s}
.cal-weeks.cal-hovering .cal-item.cal-kin{opacity:.75}
.cal-weeks.cal-hovering .cal-item.cal-link{opacity:1;outline:2px solid var(--accent);outline-offset:-1px;filter:none}
.cal-weeks.cal-hovering .cal-more.cal-link{color:var(--accent-ink);font-weight:700}
@media(min-width:901px){.cal-side-h{pointer-events:none}}
@media(max-width:900px){.cal-layout{grid-template-columns:minmax(0,1fr);gap:10px}.cal-side{position:static;max-height:none;padding:10px 14px}.cal-side-h{cursor:pointer;margin:0}.cal-side-h::after{content:"▾";margin-left:auto;color:var(--text-muted)}.cal-side[open] .cal-side-h{margin-bottom:6px}.cal-side[open] .cal-side-h::after{content:"▴"}}
#app details.cal-side.panel{margin:0}

/* Event pictures: the form's picker, the banner on the event and sign-up windows */
.ev-pic{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ev-pic-frame{width:180px;height:96px;border-radius:12px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line)}
.ev-pic-img{width:100%;height:100%;object-fit:cover;display:block}
.ev-pic-acts{display:flex;gap:8px;flex-wrap:wrap}
.ev-pic-acts label.btn{cursor:pointer}
.ev-banner{position:relative;height:170px;overflow:hidden;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.ev-photo{object-fit:cover}

/* Travel stats */
.filters.st-filters{align-items:flex-end;gap:12px;margin-bottom:18px}
.st-f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-muted)}
.st-f select{min-width:180px}
.st-filters .sp{flex:1}
@media (max-width:640px){.filters.st-filters .sp{display:none}.filters.st-filters>.hint{grid-column:1/-1}}
.st-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
@media (max-width:900px){.st-grid{grid-template-columns:1fr}}
.st-list{padding:8px 0}
.st-row{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) auto;align-items:center;gap:12px;padding:7px 18px;font-size:13px}
.st-row:hover,.st-row:focus-visible{background:var(--surface-2);outline:none}
.st-lbl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.st-track{height:8px;border-radius:4px;background:var(--surface-2)}
.st-row:hover .st-track{background:var(--line)}
.st-fill{display:block;height:100%;border-radius:0 4px 4px 0;background:var(--accent)}
.st-fig{font-size:12px;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.st-cols{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:26px 18px 12px;height:220px;box-sizing:border-box}
.st-col{position:relative;display:flex;flex-direction:column;min-width:0;outline:none}
.st-colarea{position:relative;flex:1;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}
.st-colbar{display:block;width:min(70%,34px);border-radius:4px 4px 0 0;background:var(--accent)}
.st-col:hover .st-colarea,.st-col:focus-visible .st-colarea{background:var(--surface-2);border-radius:6px 6px 0 0}
.st-peak{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:11.5px;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.st-collbl{text-align:center;font-size:11.5px;color:var(--text-muted);padding-top:6px;white-space:nowrap;overflow:hidden}
.st-row[data-tip]:hover::after,.st-row[data-tip]:focus-visible::after,.st-col[data-tip]:hover::after,.st-col[data-tip]:focus-visible::after{
  content:attr(data-tip);position:absolute;z-index:5;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);white-space:nowrap;
  background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;padding:6px 10px;font-size:12px;pointer-events:none}
.st-col:first-child[data-tip]:hover::after,.st-col:first-child[data-tip]:focus-visible::after{left:0;transform:none}
.st-col:last-child[data-tip]:hover::after,.st-col:last-child[data-tip]:focus-visible::after{left:auto;right:0;transform:none}
.st-table{padding:4px 0}
.st-tr{display:grid;grid-template-columns:minmax(0,1.6fr) 70px 70px 110px minmax(0,1.4fr);gap:12px;align-items:center;padding:10px 18px;border-top:1px solid var(--line);font-size:13px}
.st-tr:first-child{border-top:0}
.st-th{font-size:11.5px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.st-tr.clickable{cursor:pointer}
.st-tr.clickable:hover{background:var(--surface-2)}
@media (max-width:640px){.st-grid{grid-template-columns:1fr}.st-f select{min-width:0;width:100%}.st-f{flex:1 1 140px}
  .st-tr{grid-template-columns:minmax(0,1fr) 44px 50px 80px}.st-tr>span:last-child{display:none}
  .st-cols{padding:24px 8px 10px}.st-collbl{font-size:10px}}

/* Searchable traveler picker on the trip form */
.pk{position:relative}
.pk-in{width:100%;box-sizing:border-box}
.pk-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:var(--shadow);padding:4px}
.pk-opt{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:7px;cursor:pointer}
.pk-opt.hi{background:var(--surface-2)}
.pk-opt.on .pk-name::after{content:" ✓";color:var(--accent)}
.pk-name{font-size:13.5px;color:var(--text)}
.pk-sub{font-size:12px;color:var(--text-muted)}
.pk-none,.pk-more{padding:10px;font-size:12.5px;color:var(--text-muted)}

/* Completed trips are gray, so they stand apart from booked (teal) trips */
.cal-item.slate{background:var(--slate-bg)}.cal-item.slate .d{background:var(--slate)}
.cal-trip-chip.slate{background:var(--slate-bg);color:var(--slate-tx)}
@media (max-width:720px){.cal-item.slate{background:var(--slate)}.cal-item.teal{background:var(--teal)}}
