/* Trip details and day-of-trip operation: shared across all account shells. */
.trip-detail-page,.operation-page{width:100%;max-width:1280px;margin-inline:auto}
.trip-detail-page :is(.panel,.detail-layout,.detail-overview-main,.detail-body,aside),
.operation-page :is(.panel,.section-heading>div,[data-operation-panel],.operation-person){min-width:0}
:is(.trip-detail-page,.operation-page) :is(h1,h2,h3,p,strong,small,summary){overflow-wrap:anywhere}
:is(.trip-detail-page,.operation-page) .page-heading>div{min-width:0}
:is(.trip-detail-page,.operation-page) .page-heading>.button{flex-shrink:0;white-space:normal}
.trip-detail-page .detail-overview{grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:24px;margin-bottom:24px}
.trip-detail-page .detail-overview-main{grid-column:1;grid-row:1;display:grid;align-content:start;gap:20px}
.trip-detail-page .detail-overview .panel{margin:0}
.trip-detail-page .detail-overview>aside{grid-column:2;grid-row:1 / span 2;position:sticky;top:20px;display:grid;gap:14px;min-width:0}
.trip-detail-page .trip-summary .section-heading{flex-wrap:wrap}
.trip-detail-page .trip-facts{gap:22px;grid-template-columns:repeat(2,minmax(0,1fr))}
.trip-detail-page .trip-facts>div{min-width:0}
.trip-detail-page .trip-description-disclosure>summary{flex-wrap:wrap;align-items:center}
.trip-detail-page .trip-description-disclosure>summary span{font-size:12px;text-align:left}
.trip-detail-page .detail-body{grid-column:1;grid-row:2;container-type:inline-size;display:grid;gap:24px}
.trip-detail-page .detail-body>.panel{margin:0}
.trip-detail-page .admin-tab-list{flex-wrap:wrap;overflow:visible;gap:4px}
.trip-detail-page .admin-tab{white-space:normal;min-height:44px;text-align:left;justify-content:space-between}
.trip-detail-page .admin-seat-layout{align-items:start;grid-template-columns:minmax(0,1fr);gap:20px}
.trip-detail-page .admin-seat-map{margin:0 auto 18px}
.trip-detail-page .seat-passenger-card{margin-top:0}
.trip-detail-page .confirmed-passenger>div{min-width:0}
.trip-detail-page .confirmed-passenger .badge{flex-shrink:0}
.trip-detail-page .timeline-point{grid-template-columns:33px minmax(0,1fr)}
.trip-detail-page .timeline-stop-heading{flex-wrap:wrap;align-items:center}
.trip-detail-page .timeline-stop-heading h3{flex:1 1 220px}
.trip-detail-page .detail-attendance>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:17px;font-weight:600;min-height:44px}
.trip-detail-page .attendance-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.trip-detail-page .attendance-row>div{grid-column:1/-1;min-width:0}
.trip-detail-page .attendance-row .badge{white-space:normal;margin-top:6px}
.trip-detail-page .reservation-item>div{min-width:0}
.trip-detail-page .reservation-item .inline-actions{flex:1 1 210px;justify-content:flex-end}.trip-detail-page .reservation-item{flex-wrap:wrap}
.trip-detail-page .operation-entry>.button{flex-shrink:0}
.operation-page .operation-next{align-items:flex-start;padding:22px 24px}
.operation-page .operation-next>div{min-width:0}
.operation-page .operation-next>strong{flex-shrink:0;padding:8px 12px;border-radius:8px;background:#f5effb;font-size:13px;color:#79559b}
.operation-page .operation-next h2{font-size:20px;line-height:1.4}
.operation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.operation-toolbar .operation-tabs{margin:0;gap:6px;flex-wrap:nowrap;min-width:0}
.operation-toolbar .operation-tabs>.button{white-space:nowrap;min-height:46px}
.operation-toolbar>[data-refresh]{flex-shrink:0;min-height:44px}
.operation-call-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.operation-call-top .operation-leg{margin:0;flex-wrap:nowrap}
.operation-page .operation-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.operation-help{margin:0!important;font-size:13px}
.operation-help>summary{min-height:32px;line-height:1.8}
.operation-help p{margin:8px 0}
.operation-page .operation-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0 20px}
.operation-page .operation-totals>div{padding:14px 12px;border-radius:10px;min-width:0}
.operation-page .operation-totals strong{font-size:24px;line-height:1.2}
.operation-page .operation-search{margin-bottom:16px}
.operation-page .operation-search .d-field{margin:0}
.operation-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;align-items:start}
.operation-page .operation-person{padding:20px;border:1px solid #e9dff2;border-radius:12px;background:#fefcff}
.operation-page .operation-person .section-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
.operation-page .operation-person .badge{white-space:normal}
.operation-page .operation-person .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
@media(min-width:1101px){.operation-roster:has(>.operation-person:only-child) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
.operation-page .operation-person .d-field{margin-bottom:14px}
.operation-page .operation-person-footer{flex-wrap:wrap;align-items:center}
.operation-page .operation-person-footer small{flex:1 1 160px;font-size:12px;line-height:1.6}
.operation-page .operation-person-footer>.button{min-height:44px}
.operation-page .operation-person summary{min-height:32px;line-height:1.7}
.operation-page .operation-incidents{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start}
.operation-page .operation-incidents .panel{margin:0}
.operation-page .operation-incidents .section-heading{align-items:flex-start;flex-wrap:wrap}
.operation-dialog .dialog-heading{align-items:flex-start}
.operation-dialog .icon-button{min-width:44px;min-height:44px}
.operation-dialog .d-field{margin-bottom:0}
.operation-dialog :is(h2,h3,p,strong){overflow-wrap:anywhere}
.operation-dialog button{min-height:44px}
@media(max-width:1100px){
 .trip-detail-page .detail-overview{grid-template-columns:minmax(0,1fr)}
 .trip-detail-page .detail-overview-main,.trip-detail-page .detail-overview>aside,.trip-detail-page .detail-body{grid-column:auto;grid-row:auto}
 .trip-detail-page .detail-overview>aside{position:static}
 .trip-detail-page .admin-seat-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .trip-detail-page .attendance-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .trip-detail-page .attendance-row>div{grid-column:1/-1}
 .operation-toolbar{flex-wrap:wrap}
}
@media(max-width:900px){.trip-detail-page .admin-seat-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .sidebar{padding:16px 16px 0}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .sidebar nav{margin-top:12px;padding-bottom:10px;scrollbar-width:none}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .sidebar nav::-webkit-scrollbar{display:none}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .dashboard-greeting{display:none}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .dashboard-topbar{gap:12px;min-height:60px;height:auto;padding:8px 0}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .environment-badge{line-height:1.5;max-width:210px;margin-right:auto}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .notification-bell{width:40px;height:40px}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .mobile-signout{min-height:44px}
 .dashboard:has(:is(.trip-detail-page,.operation-page)) .dashboard-main{padding-inline:16px}
 :is(.trip-detail-page,.operation-page) .page-heading{margin-bottom:20px}
 :is(.trip-detail-page,.operation-page) .page-heading h1{font-size:26px;line-height:1.3}
 :is(.trip-detail-page,.operation-page) .page-heading>.button{width:100%;margin-top:14px}
 :is(.trip-detail-page,.operation-page) .panel{padding:18px;border-radius:12px}
 .trip-detail-page .detail-overview,.trip-detail-page .detail-body{gap:18px;margin-bottom:18px}
 .trip-detail-page .detail-overview-main{gap:18px}
 .trip-detail-page .trip-facts{gap:18px 14px}
 .trip-detail-page .trip-facts strong{font-size:13px}
 .trip-detail-page .admin-tab-list{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
 .trip-detail-page .admin-tab{border-radius:8px;border:1px solid #ece3f3;padding:10px 12px}
 .trip-detail-page .admin-tab.active{background:#f2e9fb;border-color:#cbb1e2}
 .trip-detail-page .admin-seat-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .trip-detail-page .seat-passenger-card{padding:14px}
 .trip-detail-page .timeline-point{gap:10px;padding-bottom:24px}
 .trip-detail-page .timeline-stop-heading{gap:8px}
 .trip-detail-page .timeline-stop-heading h3{font-size:17px;flex-basis:100%;line-height:1.5}
 .trip-detail-page .timeline-point p{font-size:13px}
 .trip-detail-page .detail-attendance>summary{font-size:16px}
 .trip-detail-page .attendance-row{grid-template-columns:minmax(0,1fr)}
 .trip-detail-page .attendance-row>div{grid-column:auto}
 .trip-detail-page .attendance-row .button{width:100%;min-height:44px}
 .trip-detail-page .inline-actions{display:grid;grid-template-columns:1fr;gap:8px}
 .trip-detail-page .inline-actions .button{width:100%;min-height:44px}
 .trip-detail-page .package-option{gap:8px}
 .trip-detail-page .package-option>span{font-size:14px}
 .operation-page .operation-next{gap:12px;flex-direction:column;margin-bottom:18px}
 .operation-page .operation-next h2{font-size:18px}
 .operation-page .operation-next p{font-size:13px;line-height:1.6}
 .operation-page .operation-next>strong{align-self:flex-start;padding:6px 10px}
 .operation-toolbar{position:sticky;top:0;z-index:5;background:#f8f7fb;padding:10px 0;gap:4px;margin-bottom:8px}
 .operation-toolbar .operation-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .operation-toolbar .operation-tabs>.button{padding:10px 5px;font-size:12px;white-space:normal;line-height:1.5}
 .operation-toolbar>[data-refresh]{margin-left:auto;min-height:36px;font-size:12px;padding:6px 0}
 .operation-call-top{flex-wrap:wrap;gap:12px;margin-bottom:18px}
 .operation-call-top .operation-leg{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .operation-call-top>[data-scan]{width:100%}
 .operation-page .operation-filters{grid-template-columns:minmax(0,1fr);gap:0}
 .operation-page .operation-filters .d-field{margin-bottom:14px}
 .operation-page .operation-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:18px}
 .operation-page .operation-totals>div{padding:12px 8px}
 .operation-page .operation-totals small{font-size:11px;line-height:1.4}
 .operation-page .operation-totals strong{font-size:22px}
 .operation-page .operation-person{padding:14px}
 .operation-page .operation-person-footer{gap:8px}
 .operation-page .operation-person-footer small{flex:auto}
 .operation-page .operation-person-footer>.button{width:100%}
 .operation-page .operation-roster{gap:12px}
 .operation-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:18px}
 .operation-dialog .dialog-heading h2{font-size:20px;line-height:1.4}
 .operation-dialog .dialog-heading{gap:8px}
 .operation-dialog .d-field :is(input,select,textarea){font-size:16px}
}
@media(prefers-reduced-motion:no-preference){
 :is(.trip-detail-page,.operation-page) .button{transition:background .15s,border-color .15s}
}
/* The map uses its available column width, not the width of the whole screen. */
@container(min-width:650px){
 .trip-detail-page .admin-seat-layout{grid-template-columns:minmax(240px,280px) minmax(0,1fr);gap:20px}
}

/* One-tap attendance with explicit text, saved selection and secondary corrections. */
.presence-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.presence-quick .presence-choice{min-height:48px;white-space:normal;gap:8px;padding:10px;justify-content:center}
.presence-quick [data-presence=present]{color:#206343;border-color:#a0cbb6}
.presence-quick [data-presence=absent]{color:#a02f47;border-color:#e0a8b4}
.presence-quick [data-presence=present][aria-pressed=true]{background:#206343;color:white;border-color:#206343}
.presence-quick [data-presence=absent][aria-pressed=true]{background:#a02f47;color:white;border-color:#a02f47}
.presence-choice:focus-visible{outline:3px solid #9b6cc5;outline-offset:3px}
.presence-more{margin:12px 0;font-size:13px}
.presence-more>summary{min-height:44px;cursor:pointer;line-height:1.6;padding:10px 0}
.presence-more[open]>summary{margin-bottom:10px}
.trip-detail-page .attendance-row>.presence-quick,.trip-detail-page .attendance-row>.presence-more{grid-column:1/-1;width:100%}
.trip-detail-page .attendance-row>[data-presence-label]{justify-self:start}

/* Assigned guides focus on the itinerary and roster, without a sales sidebar. */
.trip-detail-page .detail-overview.detail-overview-guide{grid-template-columns:minmax(0,1fr)}

.operation-call-top .operation-leg{display:flex;flex-wrap:wrap}.operation-call-top .operation-leg>.button{flex:1;min-width:76px}

/* Point ordering: the handle owns touch gestures; the rest of each card scrolls normally. */
.point-order-heading{flex-wrap:wrap;gap:12px}.point-order-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.point-order-controls .button{min-width:44px;min-height:44px;padding:8px}.point-drag-handle{touch-action:none;cursor:grab;user-select:none;font-size:21px}.point-drag-handle:active{cursor:grabbing}.point-editor.point-dragging{opacity:.65;border-style:dashed}.point-editor.point-drop-before{box-shadow:0 -4px 0 #7943bf}.point-editor.point-drop-after{box-shadow:0 4px 0 #7943bf}
.booking-policies{display:grid;gap:10px;margin:18px 0}
.booking-policy{padding:13px 15px;border:1px solid;border-radius:10px}
.booking-policy.policy-cancellation{background:#fff9ef;border-color:#efdbb7;color:#805d2e}
.booking-policy.policy-transfer{background:#f8f4fc;border-color:#e6dcef;color:#78588d}
.booking-policy>strong{display:block;font-size:13px;font-weight:600}
.booking-policy p{font-size:13px;line-height:1.6;margin:5px 0 0}
