/* Editor is attached to body, outside the register table. */
html body dialog#vc-vehicle-editor{
 position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;
 width:min(780px,calc(100vw - 32px))!important;min-width:0!important;max-width:calc(100vw - 32px)!important;
 height:fit-content!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;
 padding:22px!important;border:1px solid #c3d5df!important;border-radius:14px!important;
 background:white!important;color:#193b50!important;box-shadow:0 20px 70px #193b5040!important;
 font-family:Arial,sans-serif!important;font-size:14px!important;line-height:1.4!important;
}
html body dialog#vc-vehicle-editor:not([open]){display:none!important}
#vc-vehicle-editor::backdrop{background:rgba(18,43,62,.3)}
#vc-vehicle-editor .vc-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #e1e9ef}
#vc-vehicle-editor .vc-editor-heading h2{font-size:21px!important;line-height:1.25!important;margin:0!important}
#vc-vehicle-editor .vc-editor-close{background:#edf3f6!important;color:#254d63!important;border:1px solid #c6d7e1!important;border-radius:7px!important;padding:8px 13px!important;min-height:36px!important;cursor:pointer}
#vc-vehicle-editor .vc-editor-content{position:static!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important}
#vc-vehicle-editor .vc-editor-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 20px!important;width:100%!important;margin:0!important;padding:0!important}
#vc-vehicle-editor .vc-editor-form label{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:4px!important;line-height:1.3!important;font-size:13px!important;font-weight:700!important;color:#284c60!important;padding:0!important;margin:0!important;min-width:0!important}
#vc-vehicle-editor .vc-editor-form input,#vc-vehicle-editor .vc-editor-form select{
 width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;margin:0!important;padding:9px 11px!important;box-sizing:border-box!important;
 border:1px solid #bed0dc!important;border-radius:7px!important;background:#fff!important;color:#193b50!important;font:inherit!important;font-weight:400!important;line-height:normal!important;
}
#vc-vehicle-editor .vehicle-edit-actions,#vc-vehicle-editor .vehicle-edit-actions-four{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:16px 0 0!important;margin:18px 0 0!important;border-top:1px solid #e1e9ef!important}
#vc-vehicle-editor .vehicle-edit-actions>button,#vc-vehicle-editor .vehicle-edit-actions>form,#vc-vehicle-editor .vehicle-edit-actions form button{width:auto!important;min-width:0!important;max-width:100%!important;min-height:40px!important;margin:0!important;flex:0 1 auto!important}
#vc-vehicle-editor .vehicle-edit-actions button{padding:10px 16px!important;border-radius:7px!important;font-size:13px!important;cursor:pointer}
#vc-vehicle-editor .vehicle-save-action{background:#008477!important;color:#fff!important;border:1px solid #008477!important}
#vc-vehicle-editor .archive-vehicle-button{background:#fff6df!important;color:#845800!important;border:1px solid #dfbc69!important}
@media(max-width:600px){
 html body dialog#vc-vehicle-editor{padding:16px!important;width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important}
 #vc-vehicle-editor .vc-editor-form{grid-template-columns:1fr!important;gap:12px!important}
 #vc-vehicle-editor .vc-editor-heading h2{font-size:18px!important}
}
/* Keep add-form labels close too. */
.vehicle-connect-app .vc-workspace .vehicle-add-form label{gap:4px!important;justify-content:flex-start!important;margin:0!important}
.vehicle-connect-app .vc-workspace .vehicle-add-form label input,.vehicle-connect-app .vc-workspace .vehicle-add-form label select{margin-top:0!important;margin-bottom:0!important}

#vc-vehicle-editor .vc-editor-cancel{background:#edf3f6!important;color:#254d63!important;border:1px solid #c6d7e1!important;border-radius:7px!important;cursor:pointer}
