.mobile-menu,.mobile-nav-backdrop,.mobile-preview-notice,.mobile-tools-toggle,.mobile-zoom-controls{display:none}
html.mobile-order-page .mobile-menu,html.mobile-order-page .mobile-nav-backdrop,html.mobile-order-page .mobile-preview-notice{display:none}html.mobile-order-page .mobile-preview-notice{position:fixed;right:10px;bottom:3px;z-index:41;font-size:10px;line-height:15px;color:#8a6b53;pointer-events:none}
@media(max-width:600px){
html.mobile-order-page,html.mobile-order-page body,html.mobile-order-page #root,html.mobile-order-page .portal-workbench-shell,html.mobile-order-page .shadcn-data-table-viewport{touch-action:pan-x pan-y pinch-zoom}
html.mobile-order-page,html.mobile-order-page body,html.mobile-order-page #root{width:100%;min-width:0!important;max-width:100%;margin:0;overflow-x:hidden}html.mobile-order-page body{background:#f5f6f8!important;-webkit-text-size-adjust:100%}
html.mobile-order-page .portal-workbench-shell{display:block!important;min-width:0!important;width:100%!important;min-height:100dvh!important;background:#f5f6f8!important}
html.mobile-order-page .portal-workbench-shell>aside{position:fixed!important;inset:0 auto 0 0;z-index:70!important;width:250px!important;height:100dvh!important;transform:translateX(-100%);transition:transform .18s ease;background:#18181b!important;visibility:hidden}
html.mobile-order-page.mobile-nav-open .portal-workbench-shell>aside{transform:none;visibility:visible}html.mobile-order-page .mobile-nav-backdrop{position:fixed;inset:0;z-index:69;border:0;background:#18181b65;width:100%;height:100dvh}html.mobile-order-page.mobile-nav-open .mobile-nav-backdrop{display:block}
html.mobile-order-page.mobile-nav-open .mobile-nav-backdrop{left:250px;width:calc(100% - 250px)}
html.mobile-order-page .portal-workbench-shell>aside>div:first-child{height:58px!important}html.mobile-order-page .portal-workbench-shell>aside button{min-height:44px!important}html.mobile-order-page .portal-sidebar-link{height:45px!important;font-size:14px!important}html.mobile-order-page .portal-sidebar-link>span:first-child{height:44px!important}html.mobile-order-page .portal-workbench-shell>aside nav section>div{margin-top:10px;margin-bottom:6px}
html.mobile-order-page .portal-header{position:relative!important;height:auto!important;min-height:82px;background:#fff!important;border-bottom:1px solid #e4e4e7!important;z-index:40!important}
html.mobile-order-page .portal-header>div{display:flex!important;position:relative;min-height:82px;align-items:flex-start!important;padding:9px 12px 27px!important;gap:8px!important}
html.mobile-order-page .mobile-menu{display:grid;place-items:center;flex:none;width:40px;height:42px;border:1px solid #e4e4e7;border-radius:5px;background:#fff;color:#18181b}
html.mobile-order-page .portal-header-title{font-size:21px!important;line-height:42px!important;height:42px!important;letter-spacing:-.4px}html.mobile-order-page .portal-header-title:after{bottom:2px!important;height:3px!important}
html.mobile-order-page .portal-header>div>div:last-child{min-height:42px!important;gap:3px!important}html.mobile-order-page .portal-header>div>div:last-child>span:first-child:not([aria-hidden]){position:absolute;left:61px;bottom:10px;font-size:10px!important}html.mobile-order-page .portal-header>div>div:last-child>span[aria-hidden]{display:none!important}
html.mobile-order-page .portal-header .account-dock-settings-trigger{min-width:40px!important;min-height:42px!important}html.mobile-order-page .portal-header .account-dock{padding:0!important}
html.mobile-order-page .portal-workbench-main{padding:0!important;width:100%!important}html.mobile-order-page .supplier-orders-workbench{padding:0!important;min-width:0!important}
html.mobile-order-page .supplier-orders-workbench .toolbar-container{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:visible!important;background:#fff!important}
html.mobile-order-page .supplier-orders-workbench .toolbar-left{display:flex!important;flex-wrap:wrap!important;width:100%!important;flex:initial!important;overflow:visible!important;gap:8px!important;padding:10px 12px!important}
html.mobile-order-page .supplier-tabs{width:100%!important;overflow:hidden}html.mobile-order-page .supplier-tabs button{height:36px!important;min-height:36px!important;font-size:12px!important}html.mobile-order-page .supplier-navigator-groups{flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%}html.mobile-order-page .supplier-navigator-favorites{flex-wrap:nowrap!important}html.mobile-order-page .supplier-navigator-common{flex:none!important}html.mobile-order-page .supplier-tabs section{padding:0!important;border:0!important}
html.mobile-order-page .supplier-orders-search,html.mobile-order-page .supplier-order-search,html.mobile-order-page .toolbar-left form{width:100%!important;max-width:none!important;flex:1 0 100%!important;height:42px!important;min-height:42px!important}html.mobile-order-page .toolbar-left input[type=search],html.mobile-order-page .toolbar-left input{width:100%!important;height:42px!important;font-size:14px!important;line-height:22px!important}html.mobile-order-page .toolbar-left form button{height:40px!important;min-height:40px!important;min-width:40px!important}
html.mobile-order-page .supplier-orders-workbench .toolbar-right{display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:nowrap!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;padding:8px 12px!important;gap:7px!important;border-top:1px solid #f0f0f1!important;scrollbar-width:none}html.mobile-order-page .toolbar-right>*{flex-shrink:0!important}html.mobile-order-page .toolbar-right button{height:36px!important;min-height:36px!important;white-space:nowrap!important;font-size:12px!important;padding:0 10px!important}
html.mobile-order-page .supplier-orders-workbench .toolbar-container:after{content:'左右滑动查看全部字段';display:block;padding:7px 12px;font-size:10px;color:#85858c;border-top:1px solid #eeeef0;background:#f8f8f9}
html.mobile-order-page .shadcn-data-table{margin:0!important;max-width:100%!important}html.mobile-order-page .shadcn-data-table-viewport{border-left:0!important;border-right:0!important;border-radius:0!important;overscroll-behavior-x:contain;scrollbar-width:thin!important;scrollbar-color:#c4c4c7 #f5f5f6!important}
html.mobile-order-page .shadcn-data-table-viewport th{height:40px!important;font-size:13px!important;padding:6px 8px!important;background:#f0eee8!important;color:#3f3f46!important}html.mobile-order-page .shadcn-data-table-viewport th button{font-size:13px!important;min-height:28px}html.mobile-order-page .shadcn-data-table-viewport tr[data-summary-row]{top:40px!important}html.mobile-order-page .shadcn-data-table-viewport tr[data-summary-row] td{height:27px!important;font-size:12px!important;background:#f7f5ef!important}
html.mobile-order-page .shadcn-data-table-viewport tr.fast-table-row{height:auto!important}html.mobile-order-page .shadcn-data-table-viewport tr.fast-table-row td{font-size:13px!important;line-height:21px!important;min-height:52px!important;padding:10px 8px!important;vertical-align:top!important;border-bottom:1px solid #e7e7e9!important}html.mobile-order-page .shadcn-data-table-viewport tr.fast-table-row:nth-child(even){background:#fafafa!important}html.mobile-order-page .shadcn-data-table-viewport tr.fast-table-row[data-state=selected]{background:#fff3ea!important}
html.mobile-order-page .shadcn-data-table-viewport td span,html.mobile-order-page .shadcn-data-table-viewport td div{font-size:13px!important;line-height:21px!important}html.mobile-order-page .shadcn-data-table-viewport td button{font-size:12px!important;min-height:32px!important}html.mobile-order-page .shadcn-data-table-viewport td input,html.mobile-order-page .shadcn-data-table-viewport td textarea{min-height:44px!important;font-size:16px!important;line-height:22px!important;padding:8px!important}html.mobile-order-page .shadcn-data-table-viewport [role=checkbox]{width:19px!important;height:19px!important;margin-top:2px}
html.mobile-order-page nav[aria-label='表格分页']{min-height:54px!important;height:auto!important;padding:7px 10px 18px!important;gap:7px!important;background:#fff!important;flex-wrap:wrap!important;font-size:12px!important}html.mobile-order-page nav[aria-label='表格分页'] button{min-height:34px!important;min-width:34px!important}html.mobile-order-page nav[aria-label='表格分页'] span{white-space:nowrap!important}
html.mobile-order-page [role=dialog]{max-width:calc(100vw - 20px)!important;max-height:85dvh!important;overflow:auto!important;font-size:14px}html.mobile-order-page .supplier-navigator-all-popover{width:calc(100vw - 20px)!important}html.mobile-order-page .supplier-navigator-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.mobile-order-page .supplier-navigator-all-grid button{min-height:42px!important}
html.mobile-order-page .mobile-preview-notice{right:10px;bottom:1px;font-size:9px}
/* Keep every existing toolbar action in view, including the column manager. */
html.mobile-order-page body .supplier-orders-workbench .toolbar-right{display:grid!important;grid-template-columns:1fr 1fr;overflow:visible!important;padding:8px 12px!important;gap:6px!important}
html.mobile-order-page body .supplier-orders-workbench .toolbar-right>button,html.mobile-order-page body .supplier-orders-workbench .toolbar-right>div{width:100%!important;height:36px!important;min-width:0!important;justify-content:center!important}
html.mobile-order-page body .supplier-orders-workbench .toolbar-right>div button{width:100%!important;justify-content:center!important}
html.mobile-order-page body .supplier-orders-workbench .toolbar-left search{width:100%!important;min-width:0!important;flex:1 0 100%!important;height:42px!important}
html.mobile-order-page body .supplier-orders-workbench .toolbar-left search input{height:42px!important;font-size:14px!important}
html.mobile-order-page body .supplier-orders-workbench .toolbar-left search button{height:42px!important;min-width:65px!important;font-size:13px!important}
html.mobile-order-page .portal-header .account-dock-header>span{display:none!important}html.mobile-order-page .portal-header .account-dock-header>button{width:40px!important;height:42px!important}html.mobile-order-page .portal-header .account-dock-header>button>svg{width:19px!important;height:19px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container search{height:42px!important;min-height:42px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container search input,html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container search button{height:42px!important;min-height:42px!important;font-size:14px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container .supplier-tabs button{height:36px!important;min-height:36px!important}
html.mobile-order-page [role=dialog] .rdp-months{flex-direction:column!important}html.mobile-order-page [role=dialog] li label{min-height:38px!important}
html.mobile-order-page nav[aria-label='表格分页']>div:first-child{width:100%!important}html.mobile-order-page nav[aria-label='表格分页']>div:last-child{width:100%!important;justify-content:space-between!important}
}@media(prefers-reduced-motion:reduce){html.mobile-order-page .portal-workbench-shell>aside{transition:none!important}}

/* Revision 2: reserve the screen for the table; disclose existing tools on demand. */
html.mobile-order-page .mobile-tools-toggle{display:none}
html.mobile-order-page .mobile-zoom-controls{display:none}
@media(max-width:600px){
html.mobile-order-page body{zoom:var(--mobile-scale,1);width:calc(100vw / var(--mobile-scale,1))!important;max-width:none!important}
html.mobile-order-page #root .portal-workbench-shell{min-height:calc(100dvh / var(--mobile-scale,1))!important}
html.mobile-order-page #root .portal-workbench-shell>aside{height:calc(100dvh / var(--mobile-scale,1))!important}
html.mobile-order-page.mobile-nav-open .mobile-nav-backdrop{width:calc(100vw / var(--mobile-scale,1) - 250px);height:calc(100dvh / var(--mobile-scale,1))}
html.mobile-order-page #root .portal-header{height:50px!important;min-height:50px!important}
html.mobile-order-page #root .portal-header>div{height:50px!important;min-height:50px!important;align-items:center!important;padding:3px 8px!important;gap:6px!important}
html.mobile-order-page .mobile-menu{width:36px;height:42px;border:0}
html.mobile-order-page #root .portal-header-title{font-size:20px!important;line-height:42px!important;height:42px!important}
html.mobile-order-page .mobile-tools-toggle{display:flex;align-items:center;justify-content:center;gap:3px;flex:none;height:40px;padding:0 8px;font-size:14px;background:white;border:1px solid #e4e4e7;border-radius:4px;color:#52525b;cursor:pointer}
html.mobile-order-page .mobile-tools-toggle[aria-expanded=true]{color:#d14900;border-color:#efc5ac;background:#fff6ef}html.mobile-order-page .mobile-tools-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
html.mobile-order-page .mobile-tools-toggle[data-filtered=true]{color:#d14900;border-color:#efc5ac}
html.mobile-order-page .mobile-preview-notice[data-state=error]{color:#be123c;border-color:#fecdd3;background:#fff1f2}
html.mobile-order-page .mobile-preview-notice[data-state=draft],html.mobile-order-page .mobile-preview-notice[data-state=saving]{color:#a16207;border-color:#fde68a;background:#fffbeb}
html.mobile-order-page #root .portal-header>div>div:last-child>span{display:none!important}
html.mobile-order-page #root .portal-header .account-dock-header>button{width:36px!important;height:42px!important}
html.mobile-order-page .mobile-preview-notice{display:inline-block;position:static;margin-left:6px;font-size:10px;line-height:18px;padding:0 4px;color:#8a6b53;border:1px solid #eddfd5;border-radius:3px;white-space:nowrap}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container{border:0!important;border-radius:0!important}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-left{gap:7px!important;padding:6px 8px!important}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-container:after{display:none!important}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-left search{order:-1}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container search input,html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table .toolbar-container search button{font-size:16px!important;line-height:24px!important}
html.mobile-order-page #root .supplier-orders-workbench .supplier-tabs,html.mobile-order-page #root .supplier-orders-workbench .toolbar-right{display:none!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .supplier-tabs{display:block!important;width:100%!important;overflow:hidden}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .toolbar-right{display:grid!important;grid-template-columns:1fr 1fr;width:100%!important;gap:6px!important;padding:4px 8px 8px!important;border-bottom:1px solid #e4e4e7!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .toolbar-right>button,html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .toolbar-right>div{width:100%!important;height:38px!important;min-width:0!important;justify-content:center!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .toolbar-right button{height:38px!important;min-height:38px!important;font-size:13px!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench .toolbar-right .mobile-zoom-controls{display:flex!important;grid-column:1/-1;align-items:center;gap:6px;border-top:1px solid #eeeef0;padding-top:5px;height:44px!important}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-right .mobile-zoom-controls>span{margin-right:auto;font-size:13px;color:#52525b}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-right .mobile-zoom-controls button{width:44px!important;min-width:44px!important;flex:none;border:1px solid #e4e4e7;border-radius:4px;background:#fff;color:#3f3f46;cursor:pointer}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-right .mobile-zoom-controls button:disabled{opacity:.35;cursor:default}
html.mobile-order-page #root .supplier-orders-workbench .toolbar-right .mobile-zoom-controls .mobile-zoom-reset{width:66px!important;font-variant-numeric:tabular-nums;color:#d14900}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport th{height:40px!important;font-size:15px!important;padding:5px 8px!important;line-height:24px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport th button{font-size:15px!important;min-height:30px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport tr.fast-table-row td{font-size:16px!important;line-height:25px!important;min-height:58px!important;padding:10px 8px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport td span,html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport td div{font-size:16px!important;line-height:25px!important;max-height:none!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport td button{font-size:14px!important;line-height:24px!important;min-height:38px!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport button[role=checkbox]{width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important}
html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport td input,html.mobile-order-page #root .supplier-orders-workbench .shadcn-data-table-viewport td textarea{min-height:48px!important;font-size:16px!important;line-height:25px!important;padding:8px!important}
html.mobile-order-page #root nav[aria-label='表格分页']{height:46px!important;min-height:46px!important;padding:4px 8px!important;gap:6px!important;flex-wrap:nowrap!important;font-size:12px!important}
html.mobile-order-page #root nav[aria-label='表格分页']>div:first-child{flex:none!important;width:auto!important}
html.mobile-order-page #root nav[aria-label='表格分页']>div:first-child>span:nth-child(2){display:none!important}
html.mobile-order-page #root nav[aria-label='表格分页']>div:last-child{min-width:0!important;flex:1!important;justify-content:flex-end!important;gap:5px!important;width:auto!important}
html.mobile-order-page #root nav[aria-label='表格分页'] button{min-height:34px!important;min-width:30px!important}
html.mobile-order-page #root nav[aria-label='表格分页'] [role=combobox]{width:90px!important;font-size:12px!important}
html.mobile-order-page.mobile-tools-open #root nav[aria-label='表格分页']{height:auto!important;flex-wrap:wrap!important}
html.mobile-order-page.mobile-tools-open #root nav[aria-label='表格分页']>div:first-child{width:100%!important}
html.mobile-order-page.mobile-tools-open #root nav[aria-label='表格分页']>div:first-child>span:nth-child(2){display:block!important}
}

/* Footer stays readable while the order workspace is zoomed. */
@media(max-width:600px){
html.mobile-order-page .mobile-preview-notice:empty,html.mobile-order-page .mobile-tools-toggle[hidden]{display:none!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页']{zoom:calc(1 / var(--mobile-scale,1));width:100%!important;display:grid!important;grid-template-columns:minmax(166px,1fr) auto 32px 32px;align-items:center!important;gap:4px!important;height:46px!important;min-height:46px!important;padding:4px 8px!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页']>.mobile-zoom-controls{display:flex!important;align-items:center;justify-content:flex-start!important;gap:3px!important;grid-column:1;grid-row:1;width:auto!important;min-width:0!important}
html.mobile-order-page #root .supplier-orders-workbench .mobile-zoom-controls>span{font-size:12px!important;color:#52525b;margin-right:3px}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页'] .mobile-zoom-controls button{height:34px!important;min-height:34px!important;min-width:28px!important;width:28px!important;padding:0!important;border:1px solid #e4e4e7;border-radius:4px;background:#fff;color:#3f3f46;cursor:pointer}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页'] .mobile-zoom-controls .mobile-zoom-reset{width:44px!important;font-size:12px!important;color:#d14900;font-variant-numeric:tabular-nums}
html.mobile-order-page #root .supplier-orders-workbench .mobile-zoom-controls button:disabled{opacity:.35;cursor:default}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页']>div:nth-child(2){display:none!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页']>div:last-child{display:contents!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页']>div:last-child>span{grid-column:2;grid-row:1;font-size:11px!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页'] [aria-label='上一页']{grid-column:3;grid-row:1;width:32px!important;padding:0!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页'] [aria-label='下一页']{grid-column:4;grid-row:1;width:32px!important;padding:0!important}
html.mobile-order-page #root .supplier-orders-workbench nav[aria-label='表格分页'] [aria-label='每页条数']{display:none!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench nav[aria-label='表格分页']{height:auto!important;row-gap:6px!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench nav[aria-label='表格分页']>div:nth-child(2){display:flex!important;grid-row:2;grid-column:1;min-width:0!important;width:auto!important;gap:4px!important}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench nav[aria-label='表格分页']>div:nth-child(2)>span:nth-child(2){font-size:10px!important;white-space:normal!important;max-height:28px;overflow:hidden}
html.mobile-order-page.mobile-tools-open #root .supplier-orders-workbench nav[aria-label='表格分页'] [aria-label='每页条数']{display:flex!important;grid-row:2;grid-column:2/-1;width:100%!important}
}
