/* Native dialog top layer keeps the completion flow above cards, menus and tracking banners. */
#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog{position:fixed!important;inset:var(--szm-completion-top,0px) 0 auto!important;width:100vw!important;max-width:none!important;height:var(--szm-completion-height,100dvh)!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;overflow:hidden!important;background:#f4f7fb!important;color:#17344e;z-index:20000!important}
.szm-driver-completion-dialog::backdrop{background:#142a45aa}
.szm-driver-completion-layout{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.szm-driver-completion-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:#fff;border-bottom:1px solid #d8e2ed}
.szm-driver-completion-header>div{min-width:0}.szm-driver-completion-header h2{font-size:21px!important;line-height:1.3!important;margin:0!important;outline:none}.szm-driver-completion-header p{font-size:14px!important;line-height:1.4!important;margin:5px 0 0!important;overflow-wrap:anywhere}
#szm-brand-typography .staff-app .szm-driver-completion-header>button{flex:0 0 44px!important;width:44px!important;min-height:44px!important;padding:0!important;font-size:28px!important}
.szm-driver-completion-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));scroll-padding:16px}
#szm-brand-typography .staff-app .szm-driver-completion-body .szm-driver-note-editor{margin:0 0 20px!important;padding:16px!important;width:100%!important;box-sizing:border-box;max-width:none!important}
#szm-brand-typography .staff-app .szm-driver-completion-body textarea{width:100%!important;min-height:150px!important;box-sizing:border-box;font-size:16px!important;line-height:1.5!important;resize:vertical}
.szm-driver-completion-reason{display:grid;gap:7px;font-weight:700}.szm-driver-completion-reason select{width:100%;min-height:48px;font-size:16px;padding:10px;box-sizing:border-box}.szm-driver-completion-body p{line-height:1.5!important;font-size:14px!important}
.szm-driver-completion-footer{display:grid;gap:8px;background:#fff;border-top:1px solid #cbd9e6;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-shadow:0 -4px 14px #17345012}
.szm-driver-completion-footer p{margin:0!important;font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere}.szm-driver-completion-footer [role=alert]{color:#a32038}
#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog .szm-driver-completion-layout .szm-driver-completion-footer>button{width:100%!important;margin:0!important;box-sizing:border-box!important;min-height:44px!important;white-space:normal!important;justify-content:center!important;border-radius:12px!important;padding:10px 12px!important;font-size:16px!important;line-height:1.3!important;display:flex!important;align-items:center!important;gap:8px!important}
#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog .szm-driver-completion-layout .szm-driver-completion-footer>.szm-driver-completion-submit{min-height:56px!important;background:#08745b!important;color:#fff!important;border:2px solid #08745b!important;font-weight:700!important}
#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog .szm-driver-completion-layout .szm-driver-completion-footer>.szm-driver-completion-submit:disabled{background:#637b75!important;border-color:#637b75!important;opacity:.75!important}
#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog .szm-driver-completion-layout .szm-driver-completion-footer>.szm-driver-completion-cancel{background:#f0f4f8!important;color:#26435c!important;border:1px solid #cbd8e5!important}
@media(max-height:500px){.szm-driver-completion-header{padding-top:8px;padding-bottom:8px}.szm-driver-completion-header p{display:none}.szm-driver-completion-footer{padding-top:6px;padding-bottom:6px;gap:5px}#szm-brand-typography .staff-app dialog.szm-driver-completion-dialog .szm-driver-completion-layout .szm-driver-completion-footer>.szm-driver-completion-submit{min-height:48px!important}}
