/* AVTOTRIP V126: owner/customer/admin workflow */
html body #ownerFilters84 .av126-old-message-filter{display:none!important}
html body #ownerFilters84 .av126-message-filter{display:grid!important;gap:8px;min-width:0;flex:1 1 260px}
html body #ownerCars>.vehicle.av126-message-filtered{display:none!important}
html body #ownerCars>.vehicle .vehicle-actions.av126-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;justify-content:stretch!important;overflow-x:auto;padding-bottom:3px}
html body #ownerCars>.vehicle .av126-action-group{display:contents!important}
html body #ownerCars>.vehicle .av126-client-messages{order:1}
html body #ownerCars>.vehicle .av126-admin-messages{order:2}
html body #ownerCars>.vehicle :is(.av62-edit,.av126-edit-published){order:3}
html body #ownerCars>.vehicle .av70-submit{order:4}
html body #ownerCars>.vehicle .delete-vehicle{order:5}
html body #ownerCars>.vehicle .vehicle-actions.av126-actions>*{min-width:0;min-height:44px;margin:0!important;width:auto!important;box-sizing:border-box;text-align:center}
html body #ownerCars>.vehicle .vehicle-actions.av126-actions>.av126-action-group{min-width:0!important}
html body #ownerCars>.vehicle .vehicle-actions.av126-actions .av126-action-group>*{min-width:0;min-height:44px;margin:0!important;width:auto!important;box-sizing:border-box;text-align:center;white-space:normal}
html body #ownerCars .av126-legacy-admin-chat{display:none!important}
.av126-client-messages.av126-unread,.av126-admin-messages.av126-unread{position:relative;box-shadow:0 0 0 2px #f3b629!important}
.av126-client-messages.av126-unread:after,.av126-admin-messages.av126-unread:after{content:attr(data-badge);position:absolute;right:-5px;top:-9px;min-width:20px;height:20px;border-radius:12px;padding:0 5px;background:#c72b50;color:#fff;font-size:12px;line-height:20px}
.av126-dialog{width:min(980px,calc(100vw - 32px));max-height:88dvh;border:0;border-radius:18px;padding:0;color:#172b4d;background:#fff;box-shadow:0 24px 70px #071b2f66}
.av126-dialog::backdrop{background:#071827aa}
.av126-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #d5e2ee}
.av126-dialog>header h2{margin:0;font-size:24px}
.av126-close{border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:inherit}
.av126-chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:480px;max-height:calc(88dvh - 75px)}
.av126-thread-list{overflow:auto;padding:14px;border-right:1px solid #d5e2ee}
.av126-thread{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;margin:0 0 8px;border:1px solid #cbdbe8;border-radius:10px;background:#f4f8fc;color:#172b4d;text-align:left;cursor:pointer}
.av126-thread.active{border-color:#1677e8;background:#eaf4ff}
.av126-thread small{color:#6b7a90}
.av126-thread-pane{display:flex;flex-direction:column;min-width:0;padding:18px;overflow:hidden}
.av126-admin-pane{display:flex;flex-direction:column;min-height:480px;padding:18px;box-sizing:border-box}
.av126-thread-pane h3{margin:0 0 12px}
.av126-log{flex:1;min-height:260px;overflow:auto;padding:8px;background:#f7fafc;border-radius:12px}
.av126-bubble{max-width:78%;margin:8px 0;padding:10px 12px;border-radius:12px;background:#eaf4ff}
.av126-bubble.mine{margin-left:auto;background:#d9f2e3}
.av126-bubble small{color:#6b7a90}.av126-bubble p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.av126-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:12px}.av126-compose textarea{min-height:70px;resize:vertical}
.av126-error{color:#b42318;white-space:pre-wrap}
.av126-booking-tools{display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(150px,1fr) minmax(180px,1fr) auto;align-items:end;gap:10px;padding:14px 0 20px}
.av126-booking-tools input,.av126-booking-tools select,.av126-field :is(input,select,textarea),.av126-note-form textarea{width:100%;min-height:46px;border:1px solid #cbdbe8;border-radius:10px;padding:10px 12px;background:#fff;color:#172b4d;box-sizing:border-box;font:inherit}
.av126-dispute-form,.av126-dispute-detail{display:grid;gap:16px;padding:20px;overflow:auto;max-height:calc(88dvh - 76px)}
.av126-field{display:grid;gap:7px}.av126-field textarea{min-height:90px;resize:vertical}
.av126-dispute-summary,.av126-dispute-history{padding:14px;border:1px solid #d5e2ee;border-radius:12px}.av126-dispute-summary p{white-space:pre-wrap}
.av126-dispute-history{display:grid;gap:8px}.av126-dispute-history article{white-space:pre-wrap;padding:10px;background:#f4f8fc;border-radius:8px}
.av126-note-form,.av126-resolution-form{display:grid;gap:10px}.av126-resolution-form{grid-template-columns:1fr 1fr}.av126-resolution-form .av126-error,.av126-resolution-form>button{grid-column:1/-1}
html body #clientContent .trip-card.av126-pending{border:2px solid #e3a008!important;background:#fff8d7!important;box-shadow:0 0 0 3px #f6c34422!important}
html body #clientContent .trip-card.av126-booked{border:2px solid #35a66f!important;background:#effbf4!important;box-shadow:0 0 0 3px #35a66f1c!important}
html body #clientContent .trip-card.av126-rejected{border:2px solid #d64545!important;background:#fff0f0!important;box-shadow:0 0 0 3px #d645451c!important}
html:is([data-theme=premium],[data-theme=dark]) body #clientContent .trip-card.av126-pending{background:#3c351c!important;color:#eef5fc!important}
html:is([data-theme=premium],[data-theme=dark]) body #clientContent .trip-card.av126-booked{background:#163b31!important;color:#eef5fc!important}
html:is([data-theme=premium],[data-theme=dark]) body #clientContent .trip-card.av126-rejected{background:#49262b!important;color:#eef5fc!important}
html:is([data-theme=premium],[data-theme=dark]) body .av126-dialog{background:#182b3d;color:#eef5fc}html:is([data-theme=premium],[data-theme=dark]) body .av126-thread{background:#1f3549;color:#eef5fc;border-color:#456076}html:is([data-theme=premium],[data-theme=dark]) body .av126-thread.active{background:#294b65}html:is([data-theme=premium],[data-theme=dark]) body .av126-log,html:is([data-theme=premium],[data-theme=dark]) body .av126-dispute-history article{background:#102538}html:is([data-theme=premium],[data-theme=dark]) body .av126-field :is(input,select,textarea),html:is([data-theme=premium],[data-theme=dark]) body .av126-note-form textarea{background:#102538;color:#eef5fc;border-color:#456076}
@media(max-width:780px){.av126-chat-layout{grid-template-columns:1fr;max-height:none}.av126-thread-list{max-height:190px;border-right:0;border-bottom:1px solid #d5e2ee}.av126-booking-tools{grid-template-columns:1fr 1fr}.av126-booking-tools strong,.av126-booking-tools select{grid-column:1/-1}.av126-resolution-form{grid-template-columns:1fr}}
