/* Only the installed Android WebView; desktop and ordinary mobile browsers keep
   the existing controls. The native bottom navigation/window dock are untouched. */
body.android-workshop-compact #lotBack,
body.android-workshop-compact #lotQr,
body.android-workshop-compact [data-stock-qr-print]{display:none!important}
body.android-workshop-compact .deadline-legend{display:none!important}
body.android-workshop-compact #historyNav,
body.android-workshop-compact.android-workshop-native-menu #account #logout{display:none!important}
body.android-workshop-compact #back,
body.android-workshop-compact #orderHistoryBack,
body.android-workshop-compact [data-production-minimize],
body.android-workshop-compact [data-order-package-labels],
body.android-workshop-compact [data-order-certificate],
body.android-workshop-compact [data-certificate-signature],
body.android-workshop-compact [data-postfact-heat]{display:none!important}
body.android-workshop-compact #app:has(.job-mobile-overview)>.crm-page-heading{margin:2px 0;gap:6px}
body.android-workshop-compact #app:has(.job-mobile-overview)>.crm-page-heading h1{margin:3px 0;font-size:20px;line-height:1.2}
body.android-workshop-compact #app:has(.job-mobile-overview)>.production-window-tools{margin:0}
body.android-workshop-compact #app:has(.mobile-stock-list) .stock-filters{grid-template-columns:minmax(0,1fr)}
body.android-workshop-compact #app:has(.mobile-stock-list) .stock-filters input,
body.android-workshop-compact #app:has(.mobile-stock-list) .stock-filters select{width:100%;min-width:0}
body.android-workshop-compact .android-packing-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:7px;margin-top:8px}
body.android-workshop-compact .android-packing-actions>.packaging-photo{display:contents}
body.android-workshop-compact .android-packing-actions>.packaging-photo>p{display:none}
body.android-workshop-compact .android-packing-actions button[data-packaging-photo],
body.android-workshop-compact .android-packing-actions>.packing-complete{flex:1 1 0;min-width:0;min-height:46px;margin:0;padding:7px;font-size:13px;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere}
body.android-workshop-compact .android-packing-actions>p,
body.android-workshop-compact .android-packing-actions>.packaging-photo>small{flex-basis:100%;margin:0;font-size:12px}
/* Outrank the packaged017/018 WebView styles without replacing dock controls. */
html body.android-workshop-compact #productionSidebar .workspace-window-dock{max-height:44px!important;gap:4px!important}
html body.android-workshop-compact #productionSidebar .workspace-window-list{max-height:40px!important;min-width:0!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important}
html body.android-workshop-compact #productionSidebar .workspace-window-row{flex:0 0 154px!important;min-width:145px!important;max-width:160px!important;height:36px!important;margin:0!important}
html body.android-workshop-compact #productionSidebar .workspace-window-row>button{min-width:0!important;min-height:34px!important;padding:4px 6px!important;font-size:11px!important}
html body.android-workshop-compact #productionSidebar .workspace-window-label{min-width:0;overflow:hidden}
html body.android-workshop-compact #productionSidebar .workspace-window-close,
html body.android-workshop-compact #productionSidebar .workspace-window-close-all{flex:0 0 32px!important;min-width:32px!important;min-height:34px!important;padding:4px!important}
/* The native menu owns account/logout/draft actions. Keep their DOM handlers,
   but do not leave a duplicate account row beside the order search toolbar. */
html body.android-workshop-compact.android-workshop-native-menu>header #account{display:none!important}
html body.android-workshop-compact>header>b{display:none!important}
html body.android-workshop-compact.android-workshop-native-menu>header:not(:has([data-orders-toolbar])){display:none!important}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 8px!important}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header:has(#account:empty):not(:has([data-orders-toolbar])){display:none!important}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header #account{display:flex!important;position:static!important;box-sizing:border-box;align-items:center;flex-wrap:wrap;gap:4px;width:100%;min-width:0;max-width:100%;margin:0;padding:0;font-size:11px}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header:has([data-orders-toolbar]) #account{margin-top:4px}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header #account>span{min-width:0;overflow-wrap:anywhere}
html body.android-workshop-compact:not(.android-workshop-native-menu)>header #account button{min-height:32px!important;margin:0!important;padding:4px 6px!important;font-size:11px!important}
html body.android-workshop-compact>header:has([data-orders-toolbar]){display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 8px!important}
html body.android-workshop-compact>header [data-orders-toolbar]{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,122px)!important;align-items:end!important;gap:4px 6px!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;flex:none!important}
html body.android-workshop-compact>header [data-orders-toolbar]>.stock-mode-switch{grid-column:1/-1;grid-row:1;display:flex!important;gap:4px!important;width:100%!important;min-width:0!important;margin:0!important;padding:2px!important}
html body.android-workshop-compact>header [data-orders-toolbar]>.stock-mode-switch button{flex:1;min-width:0;min-height:32px!important;padding:5px 6px!important;font-size:11px!important;line-height:1.2;white-space:normal!important}
html body.android-workshop-compact>header [data-orders-toolbar]>.production-register-search{grid-column:1;grid-row:2}
html body.android-workshop-compact>header [data-orders-toolbar]>.orders-sort{grid-column:2;grid-row:2;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html body.android-workshop-compact>header [data-orders-toolbar]>.orders-sort label{display:block!important;width:100%!important;min-width:0!important;margin:0!important}
html body.android-workshop-compact>header [data-orders-toolbar]>.orders-sort label>b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body.android-workshop-compact>header [data-orders-toolbar]>.orders-sort select{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:34px!important;height:34px!important;margin:0!important;padding:4px!important;font-size:11px!important}
html body.android-workshop-compact>header [data-orders-toolbar]>button{grid-column:1/-1;justify-self:end;min-height:32px!important;margin:0!important;padding:5px 7px!important;font-size:11px!important}
html body.android-workshop-compact #app h1{font-size:20px!important;line-height:1.2!important;margin:3px 0!important}
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:4px 5px!important;margin:0 0 5px!important;padding:0!important}
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>.list-create-heading{display:contents!important}
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>.list-create-heading>.crm-page-heading,
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>h1{grid-column:1;grid-row:1;display:block!important;min-width:0!important;margin:0!important;padding:0!important}
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>.list-create-heading>button,
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>button{grid-column:2;grid-row:1;justify-self:end;box-sizing:border-box;max-width:125px;min-height:34px!important;margin:0!important;padding:4px 6px!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important}
html body.android-workshop-compact #app>.crm-page-heading:has(.production-register-search)>.production-register-search{grid-column:1/-1;grid-row:2}
html body.android-workshop-compact .production-register-search{display:flex!important;align-items:center!important;flex-wrap:wrap;box-sizing:border-box;flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;gap:3px 4px!important;margin:0!important;padding:0!important}
html body.android-workshop-compact .production-register-search label{flex:1 1 0!important;min-width:0!important;margin:0!important}
html body.android-workshop-compact .production-register-search input{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:34px!important;height:34px!important;margin:0!important;padding:5px 7px!important;font-size:14px!important}
html body.android-workshop-compact .production-register-search button{flex:0 0 32px;min-width:32px!important;min-height:34px!important;margin:0!important;padding:3px!important}
html body.android-workshop-compact .production-register-search small{flex-basis:100%;font-size:11px;line-height:1.2;white-space:normal}
html body.android-workshop-compact .production-register-search small:empty{display:none}

/* Installed-app queue only: one line, full date stays in the tooltip/label. */
body.android-workshop-compact .worker-queue-card.android-queue-line{grid-template-columns:38px minmax(0,1fr) 40px minmax(0,38px) max-content;gap:4px;font-size:11px!important}
body.android-workshop-compact .android-queue-line .android-queue-deadline{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:center}
body.android-workshop-compact .android-queue-deadline .deadline-badge{pointer-events:none}
body.android-workshop-compact .android-queue-line .mobile-length{font-size:10px;text-align:center}
