/* The new app entry stays below the existing main theme control. */
html body>header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'brand theme' 'brand idmaker' 'project project'!important;column-gap:12px!important;row-gap:6px!important}
html body>header>.brand-lockup{grid-area:brand!important;min-width:0!important}
html body>header>#awpThemeToggle{grid-area:theme!important;justify-self:end!important;margin:0!important;min-height:32px!important;height:32px!important;padding:6px 10px!important;font-size:11px!important}
html body>header>#awpIdMakerButton{grid-area:idmaker!important;justify-self:end!important;box-sizing:border-box;min-height:32px;height:32px;padding:6px 10px;margin:0;border:1px solid #91baca;border-radius:8px;background:#0f627f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:11px;white-space:nowrap}
html body>header>#projectHeaderInfo{grid-area:project!important;width:100%!important;margin:0!important}
html body>header>#awpIdMakerButton[hidden]{display:none!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog) button.awp-form-theme-button{flex:none;box-sizing:border-box;min-height:34px!important;height:34px!important;padding:7px 11px!important;margin:0!important;border:1px solid #7198ae!important;border-radius:7px!important;background:#e6f0f7!important;color:#17334c!important;-webkit-text-fill-color:#17334c!important;font:600 12px/18px Arial,sans-serif!important;white-space:nowrap}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog) button.awp-form-theme-button:active{background:#bfdce8!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog) button.awp-form-theme-button{box-shadow:none!important;text-shadow:none!important}
html body #awpIdDialog .id-head h2{background:transparent!important;padding:0!important;margin:0!important;border:0!important}
#awpIdDialog .id-head{flex-wrap:wrap}#awpIdDialog .id-head h2{flex:1;min-width:160px}
#awpIdDialog #idManualTools{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#awpIdDialog #idManualTools[hidden]{display:none!important}
#awpIdDialog #idManualTools label{flex:1;min-width:160px}
html body #awpIdDialog select{width:100%;min-width:0;padding:8px;border:1px solid #a5bdcf;border-radius:6px;background:#fff!important;color:#17334c!important;-webkit-text-fill-color:#17334c!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark']{--rev-bg:#102536;--rev-ink:#edf5fc;--rev-field:#1b3448;--rev-line:#7995a9;background:#102536!important;color:#edf5fc!important;color-scheme:dark!important}
html body #awpIdDialog[data-form-theme='dark'] :is(details,.id-image-preview),html body #sobatPhotoDialog[data-form-theme='dark'] :is(.sp-head,.sp-tools,.sp-edit,.sp-report-fields,.sp-photo-sources){background:#172f42!important;border-color:#6e8ca3!important;color:#edf5fc!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] :is(h2,p,label,summary,strong,span){color:#edf5fc!important;-webkit-text-fill-color:#edf5fc!important}
html body :is(#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] h2{background:#172f42!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] :is(input,textarea,select,option){background:#1b3448!important;color:#edf5fc!important;-webkit-text-fill-color:#edf5fc!important;border-color:#7995a9!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] :is(input,textarea)::placeholder{color:#b8cbd9!important;opacity:1!important}
html body :is(#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] .report-creator{--rev-ink:#edf5fc;--rev-field:#1b3448;--rev-line:#7995a9;background:#172f42!important;border-color:#7995a9!important;color:#edf5fc!important}
html body :is(#awpIdDialog,#awpPdfActions,#sobatPhotoDialog)[data-form-theme='dark'] button.awp-form-theme-button{background:#274a61!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #sobatPhotoDialog[data-form-theme='dark'] .sp-sheet :is(p,span,strong){color:#17334c!important;-webkit-text-fill-color:#17334c!important}
@media(max-width:600px){html body>header{column-gap:6px!important;padding:9px 10px!important}html body>header>#awpThemeToggle,html body>header>#awpIdMakerButton{max-width:126px!important;height:32px!important;font-size:10px!important;padding:6px 8px!important}}
@media(max-width:380px){html body>header>#awpThemeToggle,html body>header>#awpIdMakerButton{max-width:114px!important;font-size:9px!important;padding:6px!important}}
