#mobileWorkspace { display: none; }
.mobileSettingsOption { display: none; }
.mobile-operations .mobileSettingsOption:not(.hidden) { display: block; }
body.mobile-operations { overflow-x: hidden; }
.mobile-operations .shell { display: flex; flex-direction: column; gap: 10px; padding-bottom: 80px; }
.mobile-operations .shell > .tabs, .mobile-operations .shell > [data-panel], .mobile-operations .shell > #printerStatusPanel { display: none !important; }
.mobile-operations #mobileWorkspace { display: block; order: 1; min-width: 0; }
.mobile-operations .shell > header { order: 0; margin: 0; min-height: 46px; padding: 0; flex-direction: row; align-items: center; }
.mobile-operations header .eyebrow, .mobile-operations #currentUser,
.mobile-operations #printerStatusPanel, .mobile-operations #mobileScannerButton,
.mobile-operations #mobileDesktopButton { display: none !important; }
.mobile-operations header h1 { font-size: 20px; margin: 0; }
.mobile-operations header > div:first-child { flex: 1; min-width: 0; }
.mobile-operations header .userbar { flex: 0 0 auto; }
.mobile-operations #settingsMenuButton { width: 44px; min-width: 44px; height: 44px; padding: 0; font-size: 24px; }
.mobile-operations header .userbar { width: auto; display: flex; }
.mobile-operations .settingsMenuButton { min-height: 42px; padding: 8px 12px; }
.mobile-operations .settingsMenu { z-index: 60; }
#mobileWorkspace button, #mobileWorkspace input, #mobileWorkspace select { min-height: 44px; border-radius: 6px; font-size: 15px; }
#mobileWorkspace button:active { transform: translateY(1px); filter: brightness(.85); }
#mobileWorkspace button:focus-visible, #mobileWorkspace summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobilePrimary { display: flex; gap: 8px; }
.mobileScanPrimary { flex: 1; font-size: 18px !important; font-weight: 700; min-height: 54px !important; }
.mobileBack { flex: 0 0 46px; }
.mobileFeedback { color: var(--muted); min-height: 20px; font-size: 13px; padding: 5px 0; overflow-wrap: anywhere; }
.mobileCatalogTabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.mobileCatalogTabs .active, .mobileBottomNav .active { background: var(--accent); color: var(--on-accent, white); }
.mobileSearchOptions { border-bottom: 1px solid var(--line); padding: 6px 0; }
.mobileSearchOptions summary, .mobileRecordDetails summary { min-height: 42px; padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--muted); }
#mobileWorkspace label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
#mobileWorkspace input, #mobileWorkspace select { width: 100%; min-width: 0; }
.mobileFormActions, .mobileRecordActions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mobileDimensionFilters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 8px; }
.mobileResultRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line); border-radius: 0 !important; padding: 11px 4px; }
.mobileResultRow > span:first-child { min-width: 0; }
.mobileResultRow strong { display: block; overflow-wrap: anywhere; line-height: 1.3; font-size: 15px; }
.mobileResultRow small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.mobileBottomNav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 5px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); z-index: 40; }
.mobileBottomNav button { flex: 1; min-width: 0; padding: 10px 4px; font-size: 13px !important; }
body.mobile-preview-mode .mobileBottomNav { max-width: 420px; margin: auto; }
.mobileRecord h2 { font-size: 22px; line-height: 1.25; margin: 6px 0; overflow-wrap: anywhere; }
.mobileType { font-size: 12px; color: var(--muted); margin: 6px 0; }
.mobileBarcode { font-family: monospace; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; margin: 6px 0; }
.mobileRecordLocation { font-size: 14px; padding: 8px 0; margin: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mobileRecordImage { max-width: 100%; height: 110px; object-fit: contain; display: block; margin: 6px auto; }
.mobileQuantity { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 8px; }
.mobileQuantity input { text-align: center; font-weight: 700; font-size: 18px !important; }
.mobileRequestPrimary { width: 100%; margin-top: 10px; min-height: 50px !important; font-weight: 700; }
.mobileRecordDetails dl { margin: 0; }
.mobileRecordDetails dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobileRecordDetails dd { margin: 0; overflow-wrap: anywhere; }
#mobilePrintForm { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobileRequestRow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobileRequestRow strong { overflow-wrap: anywhere; font-size: 15px; }
.mobileRequestRow small { color: var(--muted); }
.mobileRequestSelection { border-bottom: 1px solid var(--line); padding: 8px 0 12px; }
#mobileWorkspace .mobileRequestSelection label,
#mobileWorkspace .mobileRequestCheck { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
#mobileWorkspace input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; margin: 0; accent-color: var(--accent); }
#mobileRequestCount { color: var(--muted); font-size: 13px; }
.mobileMapAddress { margin: 6px 0; overflow-wrap: anywhere; }
.mobileMapAddress span { display: block; color: var(--muted); font-size: 12px; }
.mobileMapAddress strong { display: block; font-size: 16px; line-height: 1.3; }
.mobileMapAddress[data-location-level="2"] strong { font-size: 20px; }
.mobileMore { width: 100%; margin: 10px 0; }
.mobileMore[hidden] { display: none !important; }
.mobile-operations.mobile-map-view .shell > [data-panel=storageLocations] { display: block !important; order: 2; }
.mobile-map-view [data-panel=storageLocations] > :not(.locationBuilderPanel),
.mobile-map-view .locationBuilderPanel > :not(.toolbar):not(.layoutWorkspace),
.mobile-map-view .locationBuilderPanel > .toolbar > :not(#layoutResetViewButton):not(.layoutZoomLabel) { display: none !important; }
.mobile-map-view .locationBuilderPanel { padding: 0; border: 0; background: transparent; }
.mobile-map-view .layoutWorkspace { display: block; }
.mobile-map-view #locationLayoutCanvas { width: 100%; height: 350px; min-height: 0; overflow: hidden; }
.mobile-map-view #locationLayoutMiniMap { display: none; }
.mobile-map-view .layoutZoomLabel { display: flex; gap: 8px; }
.mobile-operations .toast { bottom: 82px; left: 14px; right: 14px; z-index: 70; }

/* Full-version panels are reused only after checking the shared role policy. */
.mobile-operations .shell > [data-panel].mobile-active-panel:not(.permissionHidden) { display: flex !important; flex-direction: column; order: 2; min-width: 0; gap: 12px; }
.mobile-operations .mobile-active-panel > * { min-width: 0; max-width: 100%; }
.mobile-operations .mobile-active-panel .toolbar { flex-wrap: wrap; }
.mobile-operations .mobile-active-panel button { min-height: 44px; white-space: normal; }
.mobile-operations .mobile-active-panel input:not([type=checkbox]),
.mobile-operations .mobile-active-panel select { min-width: 0; max-width: 100%; }
.mobile-operations .mobile-form-only > :not(form) { display: none !important; }
.mobile-operations #rolePermissionsPanel { display: none !important; }
.mobile-operations #backupClientsPanel { display: none !important; }
