.mobile-nav-toggle,.mobile-permission-name{display:none}

/* iOS otherwise enlarges selected text without enlarging its card, which makes
   MMR numbers, urgency labels and process names overlap on iPad and iPhone. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

html.mobile-device{--mobile-header-height:calc(140px + env(safe-area-inset-top,0px));--mobile-safe-left:calc(28px + env(safe-area-inset-left,0px));--mobile-safe-right:calc(28px + env(safe-area-inset-right,0px))}
html.mobile-device,html.mobile-device body{width:1180px;min-width:1180px;max-width:1180px;overflow-x:hidden}
html.mobile-device body{display:block;background:#eef4f6}

html.mobile-device .sidebar{position:sticky;inset:0 auto auto 0;z-index:950;display:grid;grid-template-columns:330px minmax(0,1fr) 330px;align-items:center;gap:16px;width:1180px;height:var(--mobile-header-height);min-height:var(--mobile-header-height);padding:calc(18px + env(safe-area-inset-top,0px)) var(--mobile-safe-right) 18px var(--mobile-safe-left);box-sizing:border-box;overflow:visible;background:linear-gradient(100deg,#052531 0%,#082f3b 58%,#0b3540 100%);border-bottom:1px solid #224653;box-shadow:0 7px 26px #082b3942;color:#fff}
html.mobile-device .sidebar>.platform-logo{display:none}
html.mobile-device .sidebar>.nav-label,html.mobile-device .sidebar>.user,html.mobile-device .sidebar>.sidebar-sync-status{display:none}
html.mobile-device .sidebar>.crumb{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
html.mobile-device .sidebar .nex-primary{display:block;width:260px;height:86px;object-fit:contain;object-position:center;filter:brightness(0) invert(1)}
html.mobile-device .page-refresh-button{width:112px;height:112px;margin-top:0;border-color:#ffffff45;border-radius:24px;background:#ffffff16;color:#fff;opacity:.72;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html.mobile-device .page-refresh-button svg{width:58px;height:58px}
html.mobile-device .mobile-nav-toggle{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;gap:12px;width:330px;min-width:0;min-height:104px;padding:12px;border:0;border-radius:20px;background:linear-gradient(135deg,#e5f69a,#bdd85d);color:#153744;font:inherit;font-size:42px;font-weight:800;letter-spacing:.2px;text-align:center;cursor:pointer;box-shadow:0 12px 28px #00141d42,inset 0 1px 0 #ffffffad}
html.mobile-device .mobile-nav-toggle:hover,html.mobile-device .mobile-nav-toggle:focus-visible{background:linear-gradient(135deg,#eafb9f,#cce670);box-shadow:0 12px 30px #00141d4d,inset 0 1px 0 #fff;outline:0}
html.mobile-device .mobile-nav-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#173c48;color:#e2f198;font-size:34px;line-height:1;flex:0 0 48px}
html.mobile-device .mobile-nav-current{flex:0 0 auto;overflow:visible;white-space:nowrap}
html.mobile-device .mobile-nav-chevron{margin-left:0;color:#456126;font-size:32px;line-height:1;transition:transform .18s ease}
html.mobile-device body.mobile-nav-open .mobile-nav-chevron{transform:rotate(180deg)}
html.mobile-device .sidebar>.top-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0;margin:0}
html.mobile-device .mobile-primary-navigation{position:fixed;z-index:951;display:none;top:var(--mobile-header-height);right:var(--mobile-safe-right);left:var(--mobile-safe-left);width:auto;max-height:none;margin:0;padding:148px 18px 18px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:#fff;border:1px solid #d7e4e8;border-radius:0 0 22px 22px;box-shadow:0 32px 75px #061f2c52;scrollbar-width:thin;scrollbar-color:#a8c453 transparent;scroll-padding-block:148px 36px}
html.mobile-device .mobile-primary-navigation::-webkit-scrollbar{width:12px}
html.mobile-device .mobile-primary-navigation::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:12px;background:#a8c453;background-clip:padding-box}
html.mobile-device body.mobile-nav-open .mobile-primary-navigation{display:block}
html.mobile-device body.mobile-nav-open .sidebar>.user{position:fixed;z-index:952;top:calc(var(--mobile-header-height) + 18px);left:calc(46px + env(safe-area-inset-left,0px));display:flex;width:calc(1180px - 92px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:112px;margin:0;padding:18px 22px;gap:18px;align-items:center;border:1px solid #dbe7d0;border-radius:16px;background:linear-gradient(135deg,#f1f7e4,#f8faf4);box-shadow:0 5px 16px #17374512;color:#234856;cursor:pointer}
html.mobile-device body.mobile-nav-open .sidebar>.user:focus-visible{outline:4px solid #abc959;outline-offset:3px}
html.mobile-device body.mobile-nav-open .sidebar>.user .avatar{width:76px;height:76px;flex:0 0 76px;background:#dfeaca;color:#315260}
html.mobile-device body.mobile-nav-open .sidebar>.user strong{display:block;color:#173c49;font-size:31px;line-height:1.2}
html.mobile-device body.mobile-nav-open .sidebar>.user small{display:block;margin-top:7px;color:#70868f;font-size:24px;line-height:1.2}
html.mobile-device body.mobile-nav-open:before{content:"";position:fixed;z-index:900;inset:var(--mobile-header-height) 0 0;background:#09253052;backdrop-filter:blur(3px)}
html.mobile-device .mobile-primary-navigation>.nav-item,html.mobile-device .mobile-primary-navigation>div>.nav-item{display:flex;width:100%;min-height:118px;margin:0 0 8px;padding:23px 26px;gap:22px;border-radius:15px;background:#fff;color:#244d5c;text-align:left}
html.mobile-device .mobile-primary-navigation>.nav-item:hover,html.mobile-device .mobile-primary-navigation>div>.nav-item:hover{background:#f0f5e3}
html.mobile-device .mobile-primary-navigation>.nav-item.active,html.mobile-device .mobile-primary-navigation>.nav-item.selected,html.mobile-device .mobile-primary-navigation>div>.nav-item.active,html.mobile-device .mobile-primary-navigation>div>.nav-item.selected{background:#e7f0ce;color:#173f4d;box-shadow:inset 6px 0 0 #a7c94d}
html.mobile-device .mobile-primary-navigation .nav-item>span:first-child{display:inline-block!important;width:48px;color:#78949e;font-size:40px}
html.mobile-device .mobile-primary-navigation .nav-item>span:nth-child(2){display:block!important;min-width:0;flex:1;font-size:32px!important;line-height:1.3!important;white-space:nowrap}
html.mobile-device .mobile-primary-navigation .nav-item>svg{display:block;flex:0 0 48px;width:48px;height:48px;color:#78949e}
html.mobile-device .mobile-primary-navigation .nav-item>.mobile-menu-icon{display:block!important;width:48px!important;height:48px!important;min-width:48px;flex:0 0 48px!important;align-self:center;color:#78949e}
html.mobile-device .mobile-primary-navigation>.personal-nav-group>.personal-nav-parent{display:flex;width:100%;min-height:118px;margin:0 0 8px;padding:23px 26px;gap:22px;align-items:center;border-radius:15px;color:#244d5c}
html.mobile-device .mobile-primary-navigation>div{width:100%;margin:0;padding:0 0 10px 44px;box-sizing:border-box;border-left:3px solid #dce7ea}
html.mobile-device .mobile-primary-navigation>div[hidden],html.mobile-device .mobile-primary-navigation>.nav-item[hidden]{display:none!important}
html.mobile-device .mobile-primary-navigation .maintenance-child{min-height:108px;padding:20px 23px;font-size:32px!important;line-height:1.3!important}
html.mobile-device[lang=en] .mobile-primary-navigation .nav-item>span:nth-child(2){font-size:32px!important;letter-spacing:-.15px}
html.mobile-device[lang=en] .mobile-primary-navigation .maintenance-child{font-size:32px!important}

html.mobile-device .shell{width:1180px;min-width:1180px;margin:0}
html.mobile-device .topbar{position:relative;display:block;width:1180px;height:92px;min-height:92px;padding:0 28px;box-sizing:border-box;background:#fff}
html.mobile-device .top-divider,html.mobile-device .crumb>strong{display:none}
html.mobile-device .connection{display:none}
html.mobile-device .california-clock{display:none!important}
html.mobile-device #language{display:inline-flex;align-items:center;gap:10px;height:78px;min-height:78px;padding:0 12px!important;box-sizing:border-box;border:1px solid #ffffff24!important;border-radius:20px!important;background:#ffffff0f!important;color:#fff!important;font-size:26px;line-height:1.2;white-space:nowrap;overflow:visible}
html.mobile-device #language .language-flag{display:block;width:52px!important;height:34px!important;object-fit:contain!important;border-radius:4px;box-shadow:0 0 0 1px #ffffff4d;flex:0 0 52px}
html.mobile-device #kiosk-button,html.mobile-device #account-button{display:none!important}
html.mobile-device .task-notification-button{width:78px;height:78px;min-height:78px;padding:0;border:1px solid #ffffff36;border-radius:20px;background:#ffffff12;color:#fff}
html.mobile-device .task-notification-button .task-notification-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html.mobile-device .task-notification-button svg{width:44px;height:44px;stroke-width:2}
html.mobile-device .task-notification-button.has-unread{background:#ffffff16;color:#fff}
html.mobile-device .task-notification-badge{top:-9px;right:-9px;min-width:34px;height:34px;padding:0 8px;border-width:3px;border-color:#082f3b;border-radius:18px;font-size:18px}
html.mobile-device #account-button{display:grid;place-items:center;min-width:72px;min-height:72px;padding:8px 18px;border:1px solid #ffffff2b;background:#ffffff0d;color:#fff;border-radius:16px;overflow:visible}
html.mobile-device #account-button.avatar-only{width:72px;height:72px;padding:5px;border-radius:50%}
html.mobile-device #account-button .login-avatar{display:block;width:60px;height:60px;object-fit:cover;border-radius:50%}
html.mobile-device .header-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-self:stretch;width:100%;height:92px;padding:0;gap:0}
html.mobile-device .header-metrics .metric{display:flex!important;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:82px;padding:0 12px!important;border-left:1px solid #e2e9ec!important;border-radius:0;text-align:center;box-sizing:border-box}
html.mobile-device .header-metrics .metric:first-child{border-left:0!important}
html.mobile-device .header-metrics .metric-label{display:block!important;min-width:0;font-size:23px!important;line-height:1.2;white-space:nowrap!important}
html.mobile-device .header-metrics .metric-number{display:block!important;font-size:37px!important;line-height:1;font-variant-numeric:tabular-nums}
html.mobile-device[lang=en] .header-metrics .metric{gap:8px;padding:0 6px!important}
html.mobile-device[lang=en] .header-metrics .metric-label{font-size:19px!important}
html.mobile-device[lang=en] .header-metrics .metric:nth-child(2) .metric-label{font-size:19px!important;letter-spacing:-.2px}

html.mobile-device main{width:1180px;min-width:1180px;max-width:1180px;margin:0;padding:28px 22px 36px;box-sizing:border-box;overflow:visible}
html.mobile-device .board-section,html.mobile-device .catalog-table-wrap,html.mobile-device #tasks-section,html.mobile-device .factory-only{max-width:100%}
html.mobile-device #board.board.week{overflow:hidden}
html.mobile-device #board .card-order-summary{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center}
html.mobile-device #board .card-process-label{justify-self:end;max-width:100%;overflow:hidden}
html.mobile-device #board .card-process-name{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
html.mobile-device #catalog-table{min-width:970px}
html.mobile-device #catalog-table .order-inline{display:flex;align-items:center;flex-wrap:nowrap;gap:9px;min-width:0}
html.mobile-device #catalog-table .order-inline-summary{display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:7px;min-width:0;white-space:nowrap}
html.mobile-device #catalog-table .order-inline-summary .catalog-number,html.mobile-device #catalog-table .order-inline-summary .material-state,html.mobile-device #catalog-table .order-inline-summary .inline-meta{flex-shrink:0}
html.mobile-device #catalog-table .shared-order-note{display:flex;align-items:center;flex:1 1 auto;grid-column:auto;grid-row:auto;min-width:100px;overflow:hidden}
html.mobile-device #catalog-table .shared-order-note input{min-width:40px}
html.mobile-device #catalog-table .catalog-actions{flex:0 0 110px;margin-left:0}
html.mobile-device #catalog-table .order-progress{grid-template-columns:repeat(3,minmax(0,1fr)) 110px;gap:15px}
html.mobile-device[lang=en] #catalog-table .material-state{width:132px;flex-basis:132px}
html.mobile-device[lang=en] #catalog-table .material-state select{width:132px!important;min-width:132px!important;max-width:132px!important;font-size:10px!important}
html.mobile-device #tasks-section .task-column{overflow:hidden}
html.mobile-device dialog{max-width:calc(100vw - 40px)}
html.mobile-device #context-menu,html.mobile-device .task-context-menu{max-width:calc(100vw - 24px);max-height:72vh;overflow:auto}

html.mobile-device .task-notification-control{position:relative}html.mobile-device .task-notification-menu{top:calc(100% + 22px);right:0;width:720px;max-height:850px;border-width:2px;border-radius:24px;box-shadow:0 35px 80px #061f2c66}html.mobile-device .task-notification-head{padding:30px 32px 24px;gap:24px}html.mobile-device .task-notification-head strong{font-size:32px}html.mobile-device .task-notification-head span{font-size:23px}html.mobile-device .task-notification-head>b{padding:8px 15px;border-radius:18px;font-size:21px}html.mobile-device .task-notification-list{max-height:620px}html.mobile-device .task-notification-item{grid-template-columns:22px minmax(0,1fr) 32px;gap:20px;padding:25px 30px}html.mobile-device .task-notification-item>i{width:12px;height:12px}html.mobile-device .task-notification-item.is-unread>i{width:22px;height:22px;box-shadow:0 0 0 6px #fdecef}html.mobile-device .task-notification-item strong{font-size:29px;line-height:1.4}html.mobile-device .task-notification-item small{margin-top:8px;font-size:23px}html.mobile-device .task-notification-item em{margin-right:12px;padding:3px 9px;border-radius:7px;font-size:20px}html.mobile-device .task-notification-item>svg{width:32px;height:32px}html.mobile-device .task-notification-empty{padding:58px 30px;font-size:26px}html.mobile-device .task-notification-all{padding:23px 32px;font-size:27px}html.mobile-device .task-notification-all span{font-size:34px}

/* Phone pages stay on one fitted horizontal canvas. Navigation owns its own
   viewport so reopening it cannot inherit a short page height or stale scroll. */
html.mobile-device body.mobile-nav-open{overflow:hidden}
html.mobile-device .mobile-primary-navigation{top:var(--mobile-header-height);right:var(--mobile-safe-right);bottom:0;left:var(--mobile-safe-left);height:auto;min-height:0;max-height:none;box-sizing:border-box;padding-bottom:max(36px,env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
html.mobile-device main{padding-right:30px;padding-left:30px}
html.mobile-device main>section,html.mobile-device :is(.board-section,.catalog-table-wrap,#tasks-section,.factory-only,.warehouse-board,.warehouse-panel,.task-column){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
html.mobile-device :is(#board.board.week,#board .schedule-grid,#board .schedule-grid.with-weekend){box-sizing:border-box;width:100%;max-width:100%;min-width:0}
html.mobile-device #tasks-section .task-column{overflow:hidden}
html.mobile-device #tasks-section :is(.task-card,.task-grid-head),html.mobile-device[lang=en] #tasks-section :is(.task-card,.task-grid-head){box-sizing:border-box;width:100%;min-width:0;grid-template-columns:34px minmax(118px,160px) 82px 76px 100px minmax(135px,1fr) minmax(135px,1fr) 138px;gap:7px;padding-left:11px;padding-right:11px}
html.mobile-device #tasks-section .task-row-actions{gap:3px}html.mobile-device #tasks-section .task-action{padding-inline:5px;font-size:10px}
html.mobile-device :is(#factory-costs-section,#suppliers-section){box-sizing:border-box;width:1676px!important;min-width:1676px!important;max-width:none!important;zoom:.66826}html.mobile-device :is(#factory-costs-section,#suppliers-section) :is(.cost-page,.supplier-page){width:100%;min-width:0}html.mobile-device #suppliers-section .materials-panel{overflow:hidden}html.mobile-device #suppliers-section :is(.materials-head,.material-row){min-width:0}
