/* PRIME BUS owner-only vehicle manifest composer. Isolated from customer/driver pages. */
.trip-ops-panel{margin:0 0 20px;padding:0;overflow:hidden;border:1px solid #cfe2d5}
.trip-ops-title{list-style:none;padding:19px 21px;cursor:pointer;display:flex;flex-direction:column;gap:5px;position:relative}
.trip-ops-title::-webkit-details-marker{display:none}
.trip-ops-title strong{font-size:17px;color:#15533b}
.trip-ops-title span{font-size:12px;color:#61816a}
.trip-ops-title::after{content:'⌄';color:#1b7654;font-size:24px;position:absolute;right:20px;top:17px}
.trip-ops-panel[open]>.trip-ops-title::after{content:'⌃'}
.trip-ops-body{padding:18px 21px 22px;border-top:1px solid #d8e7db}
.trip-ops-body .intro{font-size:13px;line-height:1.55}
.trip-ops-body h3{color:#174e3a;margin:0 0 12px;font-size:17px}
.trip-ops-drivers{margin:16px 0}
.trip-ops-drivers>details{border:1px solid #d9e7dc;background:#f7faf7;border-radius:13px}
.trip-ops-drivers>details>summary{cursor:pointer;padding:16px;display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center;color:#16523a}
.trip-ops-drivers>details>summary span{font-size:12px;color:#6a846f}
.trip-ops-inner{padding:12px 16px 17px;border-top:1px solid #d9e7dc}
.trip-form{max-width:850px}
.trip-form>.btn{margin-top:12px}
.trip-form .label{font-size:11px}
.trip-form input,.trip-form select{min-height:47px;font-size:14px}
.trip-ops-new{padding:20px 0;border-top:1px solid #e0ebe3}
.trip-ops-list{border-top:1px solid #e0ebe3;padding:19px 0}
.trip-ops-list-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.trip-ops-list-title .btn{font-size:12px;padding:10px}
.trip-driver-list{margin-top:15px;display:grid;gap:9px}
.trip-driver-row,.trip-manifest-card,.trip-manifest-item{display:flex;justify-content:space-between;align-items:center;gap:11px;padding:14px;border:1px solid #dbe8de;border-radius:12px;background:#fff}
.trip-driver-row>div:first-child,.trip-manifest-card>div:first-child,.trip-manifest-item>div:first-child{min-width:0}
.trip-driver-row strong,.trip-manifest-card strong,.trip-manifest-item strong{font-size:13px;overflow-wrap:anywhere}
.trip-driver-row p,.trip-manifest-card p,.trip-manifest-item p{margin:4px 0 0;line-height:1.4}
.trip-driver-actions{display:flex;gap:7px;flex-wrap:wrap}
.trip-driver-actions .btn,.trip-manifest-item .btn,.trip-manifest-card .btn{font-size:12px;padding:9px 11px;min-height:41px}
.trip-driver-secret{padding:16px;background:#fff5dc;border:1px solid #e3c983;border-radius:13px;margin:15px 0}
.trip-driver-secret strong{font-size:14px;color:#654c22}
.trip-driver-secret pre{background:#fff;border-radius:9px;border:1px solid #eadac1;padding:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px;color:#654c22;user-select:all}
.trip-driver-secret .btn{font-size:12px;padding:10px;margin:7px 5px 0 0}
.trip-manifest-card{margin:8px 0}
.trip-manifest-detail{background:#f9fcf9;border:1px solid #d6e5da;border-radius:15px;padding:18px;margin:18px 0}
.trip-manifest-detail h3{margin:0 0 8px}
.trip-manifest-detail #tripManifestStats{font-size:13px;color:#216e4d;font-weight:800;padding:11px 12px;border-radius:11px;background:#eaf5ec;margin:10px 0}
#tripManifestDriverWrap{padding:10px 0}
#tripManifestDriverWrap .btn{font-size:12px;margin-top:8px}
#tripAddParcel{padding:11px 0;margin-top:12px}
.trip-pb-row{display:flex;align-items:stretch;gap:8px}
.trip-pb-row input{min-width:0;flex:1}
.trip-pb-row .btn{font-size:13px;padding:10px 15px}
.trip-main-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}
.trip-main-actions .btn{font-size:12px;padding:10px 12px}
.trip-manifest-items{display:grid;gap:8px}
.trip-manifest-item{padding:12px}
.trip-manifest-detail h4{margin:20px 0 10px;font-size:14px;color:#19583f}
.trip-event{padding:9px 12px;background:white;border:1px solid #e1e9e2;border-radius:9px;font-size:12px}
#tripOpsMessage:not(:empty){padding:12px;background:#edf6ed;border-radius:10px;line-height:1.4}
#tripOpsMessage.error{color:#983d26;background:#fff0eb}
.trip-print-sheet{display:none}
.trip-qr-label{border:1px solid #222;padding:12px;display:flex;align-items:center;gap:12px;break-inside:avoid}
.trip-qr-image svg{width:140px;height:140px}
.trip-qr-label strong{font:800 14px ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.trip-qr-label p{font-size:12px;margin:7px 0}
@media(max-width:680px){
 .trip-ops-body{padding:14px}
 .trip-ops-title{padding:15px}
 .trip-driver-row,.trip-manifest-card{align-items:flex-start;flex-direction:column}
 .trip-pb-row{flex-direction:column}
 .trip-ops-panel .row{grid-template-columns:1fr}
 .trip-main-actions .btn{width:100%}
 .trip-driver-actions{width:100%}
}
@media print{
 body:has(.trip-print-sheet:not(:empty)) *{visibility:hidden!important}
 .trip-print-sheet:not(:empty),.trip-print-sheet:not(:empty) *{visibility:visible!important}
 .trip-print-sheet:not(:empty){
  display:grid!important;
  position:absolute;top:0;left:0;right:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;padding:10mm;background:white!important;color:black!important
 }
 .trip-print-sheet:not(:empty)>h2,.trip-print-sheet:not(:empty)>p{grid-column:1/-1;margin:0}
 .trip-qr-label{border:1px solid black!important}
}
