/* Shared Trip pages: restrained blue cards, compact records and consistent controls. */
.page-trip .site-header,.page-trip .site-header nav{justify-content:center}
.page-trip .home-footer{margin-bottom:24px}
.page-trip .trip-page{width:100%;max-width:none;margin:0 auto;min-width:0;text-align:center;padding:26px clamp(16px,3vw,36px) 30px}
.page-trip .sub-actions-wrap{max-width:960px;width:100%;margin:0 auto}
.page-trip .trip-page legend{letter-spacing:.03em}
.trip-back{display:flex;align-items:center;flex-wrap:wrap;gap:8px;text-align:left;margin-bottom:22px;font-size:13px}
.trip-back a{display:inline-flex;padding:5px 10px;border:1px solid #dce4ee;border-radius:8px;background:#f8fafc;text-decoration:none}
.page-trip .trip-table{border-collapse:separate;border-spacing:0;table-layout:fixed;margin:16px auto;min-width:0;max-width:100%;border:1px solid #dce4ee;border-radius:12px;box-shadow:0 4px 14px #213a6008;background:#fff;backdrop-filter:none}
.page-trip .trip-table th{padding:10px 9px;background:#edf3fa;color:#405773;font-size:13px;white-space:nowrap}
.page-trip .trip-table td{padding:10px 9px!important;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:1.55}
.page-trip .trip-table tbody tr:nth-child(even){background:#f8fafc}
.page-trip .trip-table tbody tr:hover{background:#eef5ff}
.page-trip .trip-table tbody tr.trip-sudden{background:#fff0f2}
.page-trip .trip-directory-table,.page-trip .trip-names-table{width:min(460px,100%)!important}
.trip-col-id{width:80px}
.trip-table-wrap{max-width:780px;margin:auto;overflow-x:auto;padding-bottom:5px}
.page-trip .trip-history-table{width:720px;min-width:720px}
.trip-history-table .trip-col-room{width:80px}
.trip-history-table .trip-col-name{width:240px}
.trip-history-table .trip-col-role{width:100px}
.trip-history-table .trip-col-state{width:75px}
.page-trip .trip-history-table td:nth-child(2),.page-trip .trip-names-table td:nth-child(2){text-align:left}
.page-trip .trip-comments-table{width:100%;min-width:620px}
.trip-comments-table .trip-col-room{width:80px}
.trip-comments-table .trip-col-author{width:140px}
.trip-comments-table .trip-col-state{width:64px}
.page-trip .trip-table .trip-comment{text-align:left;white-space:pre-wrap}
.trip-win{max-width:none;vertical-align:middle}
.trip-pager,.trip-capacity{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:16px 0}
.trip-pager a,.trip-pager strong,.trip-capacity a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:5px 10px;border:1px solid #dce4ee;border-radius:9px;background:#f8fafc;text-decoration:none;font-size:13px;font-weight:600;line-height:1.35}
.trip-pager [aria-current=page],.trip-capacity [aria-current=page]{color:#fff;background:#3569c8;border-color:#3569c8}
.trip-pager a:hover,.trip-capacity a:not([aria-current]):hover,.trip-back a:hover{background:#eaf1fc;border-color:#afc4e3}
.page-trip .trip-search{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;max-width:460px;margin:18px auto 0;padding:12px;border:1px solid #dce4ee;border-radius:12px;background:#f5f8fc}
.page-trip .trip-search label{display:block;flex:none;white-space:nowrap;font-size:13px}
.page-trip .trip-search input{flex:1;min-width:0;width:0;max-width:100%;height:36px;padding:6px 9px;font-size:14px}
.page-trip .trip-search button{flex:none;min-height:36px;padding:6px 12px;font-size:13px}
.trip-profile{max-width:680px;margin:0 auto 28px;padding:24px;border:1px solid #dbe6f3;border-radius:16px;background:linear-gradient(135deg,#f0f6ff,#fbfdff);text-align:left}
.trip-eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:#617b9e}
.trip-profile-heading h1{margin:4px 0 20px;font-size:clamp(19px,3vw,26px);letter-spacing:.02em;overflow-wrap:anywhere}
.trip-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.trip-profile-stats>div{min-width:0;padding:12px;background:#ffffffb3;border:1px solid #e1e9f3;border-radius:10px}
.trip-profile-stats dt,.trip-metrics dt{color:#64748b;font-size:12px;font-weight:500}
.trip-profile-stats dd{margin:4px 0 0;font-size:24px;font-weight:700;color:#294d7e;font-variant-numeric:tabular-nums}
.trip-profile-stats small{font-size:12px;font-weight:400;color:#64748b}
.trip-profile-actions{display:flex;flex-wrap:wrap;gap:10px}
.trip-profile-actions a{padding:8px 14px;border:1px solid #c4d5ec;border-radius:9px;background:#fff;text-decoration:none;font-size:13px;font-weight:600}
.trip-profile-actions a:first-child{background:#3569c8;border-color:#3569c8;color:#fff}
.trip-profile-actions a:hover{box-shadow:0 3px 10px #213a6014}
.trip-section-heading h2{font-size:15px;margin-bottom:4px}
.trip-section-heading p{font-size:12px;color:#64748b;margin-bottom:10px}
.trip-summary{display:grid;gap:16px;max-width:720px;margin:24px auto 0;text-align:left}
.trip-summary-card{padding:18px;border:1px solid #dce4ee;border-radius:14px;background:linear-gradient(180deg,#f7faff,#fff)}
.trip-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.trip-summary-heading h2{font-size:15px;margin:0;color:#294366}
.trip-score{padding:4px 10px;border-radius:7px;background:#eaf1fb;color:#345c91;font-size:12px;white-space:nowrap}
.trip-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:0}
.trip-metrics>div{min-width:0;padding:0 0 10px;border-bottom:1px solid #e6edf6}
.trip-metrics dd{margin:3px 0 0;color:#294d7e;font-size:20px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.trip-metrics small{margin-left:3px;font-size:12px;color:#64748b;font-weight:400}
.page-trip .trip-form-wrap{max-width:580px;margin:20px auto}
.page-trip .trip-edit-form{width:100%;text-align:left;padding:24px;border:1px solid #dce4ee;background:#f8fafce6;box-shadow:0 4px 14px #213a6008;border-radius:14px}
.page-trip .trip-form-note{min-width:0;max-width:100%;margin-bottom:18px;padding:12px;background:#edf3fa;border-color:#dce6f3;font-weight:500;overflow-wrap:anywhere}
.page-trip .trip-form-row,.page-trip .trip-form-row-wide{grid-template-columns:90px minmax(0,1fr);gap:12px;margin:7px 0}
.page-trip .trip-form-row label{font-weight:600}
.page-trip .trip-edit-form .trip-form-row input{width:100%;min-width:0;max-width:100%;min-height:38px;padding:8px 10px!important;font-size:14px;font-weight:400}
.page-trip .trip-form-radio-row{display:flex;align-items:center;gap:20px;margin-bottom:12px;padding:12px;border-color:#dce4ee}
.page-trip .trip-form-radio-row label{flex-direction:row;align-items:center;gap:8px;font-size:14px}
.page-trip .trip-form-radio-row input{width:16px;height:16px;min-height:0}
.page-trip .trip-form-actions{margin-top:18px;text-align:right}
.page-trip .trip-form-actions button,.page-trip .trip-search button{background:#3569c8;border-color:#3569c8;color:#fff;border-radius:9px}
.page-trip .trip-form-actions button{min-width:96px}
.page-trip .trip-form-actions button:hover,.page-trip .trip-search button:hover{background:#2858b0}
#tripFormStatus:empty{display:none}
#tripFormStatus:not(:empty){margin:14px 0 0;padding:10px 12px;border:1px solid #edc7c7;border-radius:9px;background:#fff3f2;color:#9b3030;font-size:13px;overflow-wrap:anywhere}
@media(max-width:600px){
 .page-trip .trip-page{padding:18px 12px 22px}
 .page-trip .trip-edit-form{padding:16px}
 .page-trip .trip-form-row,.page-trip .trip-form-row-wide{grid-template-columns:minmax(0,1fr);gap:5px}
 .page-trip .trip-form-row label{text-align:left}
 .page-trip .trip-search{padding:10px 8px;gap:6px}
 .page-trip .trip-search button{padding:6px 9px}
 .trip-profile{padding:16px}
 .trip-profile-stats{gap:7px}
 .trip-profile-stats>div{padding:10px 7px}
 .trip-profile-stats dd{font-size:21px}
 .trip-profile-actions{gap:8px}
 .trip-profile-actions a{padding:8px 10px}
 .trip-summary-card{padding:14px}
 .trip-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
