/* Compact phone workspaces. Desktop tables and the scanner keep their own layouts. */
.inventory-phone-panel-navigation{display:none}

.inventory-phone-location-move{display:none}
@media(max-width:700px){
 .inventory-shell .inventory-content:not(:has(#inventory-batch)){padding:10px 12px calc(24px + env(safe-area-inset-bottom))!important}
 .inventory-mobile-head{gap:6px 8px;min-height:46px;margin-bottom:12px;align-items:center;flex-wrap:wrap}
 .inventory-mobile-head>a:first-child{display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;font-size:18px!important}
 .inventory-mobile-product-name{font-size:12px;font-weight:600;letter-spacing:0;color:inherit}
 .inventory-mobile-head .demo-mobile-note{display:flex;align-items:center;gap:4px 12px;flex:0 0 100%;box-sizing:border-box;flex-wrap:wrap;padding:5px 8px;margin:0;background:#fff9df;border:1px solid #e4cc72;border-radius:7px;color:#685214;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:0;white-space:normal}
 .inventory-mobile-head .demo-mobile-note strong{font-size:11px;font-weight:700}
 .inventory-phone-navigation{display:flex;gap:14px;align-items:center;flex:none}
 .inventory-phone-reader,.inventory-phone-menu-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px!important;margin:0;padding:8px 12px!important;font-size:14px!important;white-space:nowrap;background:white;border:1px solid var(--border);color:var(--action-ink);border-radius:12px}
 .inventory-phone-reader svg,.inventory-phone-menu-button svg{width:22px;height:22px;flex:none}
 .inventory-shell .inventory-phone-reader,#dialog .inventory-phone-reader{min-height:36px!important;padding:3px 10px!important;box-sizing:border-box;background:var(--blue,#315bda);border-color:var(--blue,#315bda);color:#fff}
 .inventory-shell .inventory-phone-reader:hover,#dialog .inventory-phone-reader:hover{background:var(--heading,#2646a6);border-color:var(--heading,#2646a6);color:#fff}
 .inventory-phone-reader svg{width:28px;height:28px}
 .inventory-phone-menu-button{width:44px;padding:8px!important;background:transparent;border:0;box-shadow:none}
 .inventory-phone-menu-button:hover{background:var(--action-soft,#eef3ff);border:0}
 .inventory-phone-menu-button svg{width:26px;height:26px}
 .inventory-phone-panel-navigation{display:flex;align-items:center;grid-column:2;grid-row:1}
 #dialog.inventory-dialog .dialoghead{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px!important;min-height:64px}
 #dialog.inventory-dialog .dialoghead h2{font-size:18px;line-height:1.4;flex:1;min-width:0;margin:0}
 #dialog.inventory-dialog .dialoghead>.inventory-panel-back{order:-2;flex-basis:100%;min-height:36px;padding:0;text-align:left}
 #dialog.inventory-dialog .dialoghead>[data-action=close]{order:3;margin:0;padding:8px 12px;min-height:44px;font-size:14px}
 #dialog.inventory-dialog .dialoghead>[data-mode-toolbar]{display:none!important}
 .inventory-content:not(:has(#inventory-batch))>.heading,.inventory-content:not(:has(#inventory-batch)) #inventory-business>.heading,.inventory-content #inventory-workflows>.heading{align-items:center;gap:8px;margin:4px 0 14px;flex-wrap:wrap}
 .inventory-content:not(:has(#inventory-batch)) h1{font-size:22px;line-height:1.35;margin:0}
 .inventory-content:not(:has(#inventory-batch)) h2{font-size:18px;line-height:1.45}
 .inventory-content:not(:has(#inventory-batch)) .heading>.row{gap:6px;flex-wrap:wrap}
 .inventory-content:not(:has(#inventory-batch)) input[type=search]{width:100%;min-width:0;max-width:100%;margin:0}
 .inventory-content[data-inventory-page=stock]>.inventory-stock-mode-actions{justify-content:flex-end;min-height:0;margin:0 0 4px;padding:0}
 .inventory-content[data-inventory-page=stock]>.inventory-stock-mode-actions [data-mode-toolbar]{display:none!important}
 .inventory-content[data-inventory-page=stock] .inventory-inline-undo{font-size:12px!important;min-height:32px!important;padding:2px 4px!important;border:0;background:transparent;max-width:100%}
 .inventory-content[data-inventory-page=stock] .inventory-inline-undo:disabled{display:none}
 .inventory-content[data-inventory-page=stock] .inventory-stock-toolbar:empty,.inventory-stock-utility:empty,.inventory-content[data-inventory-page=stock] .inventory-stock-status:empty{display:none}
 .inventory-content[data-inventory-page=stock] .inventory-stock-toolbar{margin:0;padding:0;min-height:0}
 .inventory-content[data-inventory-page=stock] .inventory-stock-utility{display:none}
 .inventory-content[data-inventory-page=stock] .inventory-filter-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 8px}
 .inventory-content[data-inventory-page=stock] .inventory-search-group{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important;width:100%;margin:0}
 .inventory-content[data-inventory-page=stock] .inventory-search-group #inventory-location-switches{grid-column:1;min-width:0;width:100%}
 .inventory-content[data-inventory-page=stock] .inventory-search-group .inventory-add-product-control{grid-column:2;min-width:0;padding:8px 10px;font-size:13px}
 .inventory-content[data-inventory-page=stock] .inventory-search-group #inventory-search{grid-column:1/-1;order:unset;min-height:44px;font-size:16px}
 .inventory-content[data-inventory-page=stock] .inventory-stock-filter-tabs{width:100%;display:flex!important;margin:0!important}
 .inventory-content[data-inventory-page=stock] .inventory-stock-filter-tabs button{flex:1;min-width:0;min-height:40px!important;padding:6px;font-size:13px}
 .inventory-content[data-inventory-page=stock] #inventory-location-switches .inventory-location-filter-bar{margin:0;gap:0}
 .inventory-content[data-inventory-page=stock] .inventory-list-meta{margin:10px 0 8px;padding:0;gap:8px;justify-content:space-between;font-size:12px}
 .inventory-list-meta select{min-height:36px!important;padding:4px 24px 4px 8px!important;font-size:14px!important;width:auto}
 .inventory-list-meta [data-column-auto]{display:none!important}
 .inventory-phone-fold{border:0;margin:0;min-width:0}
 .inventory-phone-fold>summary{display:flex;align-items:center;gap:6px;min-height:40px;list-style:none;cursor:pointer;color:var(--action-ink);font-size:14px;font-weight:600}
 .inventory-phone-fold>summary::-webkit-details-marker,.inventory-phone-product>summary::-webkit-details-marker,.inventory-phone-transfer>summary::-webkit-details-marker{display:none}
 .inventory-phone-fold>summary:after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px auto;flex:none}
 .inventory-phone-fold[open]>summary:after{transform:rotate(225deg);margin-bottom:0}
 .inventory-phone-fold-body{padding:4px 0 12px;min-width:0}
 .inventory-phone-fold-body .inventory-stock-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0}
 .inventory-phone-fold-body .inventory-stock-filters>label,.inventory-phone-fold-body .inventory-stock-filters>.registrant-filter{width:100%!important;min-width:0;max-width:100%!important;flex:none!important}
 .inventory-phone-fold-body select{width:100%;min-width:0;margin:4px 0 0}
 .inventory-phone-sort{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:12px}
 .inventory-phone-sort select{flex:1;max-width:75%;margin:0}
 .inventory-phone-fold-body>.check{min-height:44px;margin:0;font-size:14px}
 .inventory-phone-more-actions .inventory-phone-fold-body>*{flex:1;min-width:0}
 .inventory-mobile-stock{display:block!important;border-top:1px solid var(--border)}
 .inventory-mobile-stock>.card{padding:0!important;margin:0!important;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
 .inventory-mobile-stock>.card.is-selected{background:var(--action-soft)}
 .inventory-mobile-stock>.inventory-mobile-group{margin:0!important;padding:9px 2px 3px!important;min-height:0;gap:6px;font-size:12px;background:transparent}
 .inventory-mobile-stock>.inventory-mobile-group span{font-size:11px}
 .inventory-phone-product>summary{list-style:none;display:flex;gap:10px;align-items:center;padding:12px 2px;min-height:72px;cursor:pointer}
 .inventory-phone-product-summary>.inventory-photo,.inventory-phone-product-summary>.inventory-photo-placeholder{width:36px!important;height:36px!important;min-width:36px;border-radius:8px;font-size:16px}
 .inventory-phone-product-title{display:block;min-width:0;flex:1}
 .inventory-phone-product-title strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere;color:var(--ink)}
 .inventory-phone-product-title small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
 .inventory-phone-product-total{font-size:18px;font-weight:700;white-space:nowrap;color:var(--action-ink);flex:none}
 .inventory-phone-product-summary>svg,.inventory-phone-row-toggle>svg,.inventory-phone-transfer>summary>svg{width:16px;height:16px;flex:none;color:var(--muted);transition:transform .15s}
 .inventory-phone-product[open]>summary>svg,.inventory-phone-transfer[open]>summary>svg{transform:rotate(90deg)}
 .inventory-phone-product[open]>summary{padding-bottom:8px}
 .inventory-phone-product-body{padding:0 2px 12px}
 .inventory-phone-product-body .inventory-mobile-quantity{margin:0 0 4px;min-height:40px}
 .inventory-phone-product-body .inventory-mobile-quantity>.small{font-size:13px}
 .inventory-phone-product-body .inventory-mobile-places{margin:0;font-size:14px}
 .inventory-phone-product-body .inventory-mobile-places button{display:block;min-height:40px!important;text-align:left;white-space:normal;max-width:100%;font-size:14px}
 .inventory-phone-product-body .inventory-mobile-actions{margin-top:8px;gap:8px}
 .inventory-phone-product-body .inventory-mobile-actions button{min-height:44px!important;font-size:14px}
 .inventory-phone-product-body .inventory-place-line{gap:10px;min-height:36px;align-items:center;font-size:14px}
 .inventory-mobile-selection{min-height:44px;margin:0;padding:8px 2px;display:flex;align-items:center;gap:8px}
 /* One disclosure implementation for history, business and member lists. */
 .inventory-content table[data-phone-table],#dialog table[data-phone-table]{display:block!important;min-width:0!important;width:100%;table-layout:auto}
 table[data-phone-table] thead{display:none!important}
 table[data-phone-table] tbody{display:block!important;width:100%}
 table[data-phone-table] tr[data-phone-row]{display:block!important;padding:0!important;margin:0;border-bottom:1px solid var(--border);width:100%}
 table[data-phone-table] tr[data-phone-row]>td{display:none!important;grid-column:auto!important;width:auto!important;min-width:0;padding:8px 10px!important;border:0;white-space:normal!important;overflow-wrap:anywhere}
 table[data-phone-table] tr[data-phone-row]>td.inventory-phone-row-head{display:block!important;padding:0!important}
 table[data-phone-table] tr[data-phone-row]>td:before{display:none!important}
 table[data-phone-table] tr[data-phone-open=true]>td:not(.inventory-phone-row-head){display:grid!important;grid-template-columns:minmax(76px,28%) minmax(0,1fr);gap:8px;align-items:start}
 table[data-phone-table] tr[data-phone-open=true]>td:not(.inventory-phone-row-head):before{display:block!important;content:attr(data-label) attr(data-phone-label);font-size:12px;color:var(--muted);line-height:1.6}
 table[data-phone-table] tr[data-phone-open=true]>td:not(.inventory-phone-row-head)>*{grid-column:2;min-width:0;max-width:100%}
 table[data-phone-table] tr[data-phone-open=true]>td:not(.inventory-phone-row-head):has(input[type=checkbox]){align-items:center}
 .inventory-phone-row-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:72px!important;padding:12px 2px!important;border:0!important;border-radius:0;background:transparent!important;text-align:left;color:var(--ink);font-size:15px!important}
 .inventory-phone-row-toggle>span{flex:1;min-width:0}
 .inventory-phone-row-toggle strong{display:block;line-height:1.45;overflow-wrap:anywhere}
 .inventory-phone-row-toggle small{display:block;margin-top:3px;line-height:1.5;font-size:12px;color:var(--muted);font-weight:400;overflow-wrap:anywhere}
 .inventory-phone-row-toggle>b{font-size:17px;white-space:nowrap;flex:none;color:var(--action-ink)}
 [data-phone-open=true] .inventory-phone-row-toggle>svg{transform:rotate(90deg)}
 .inventory-history-table-wrap:has([data-phone-table]),.inventory-business-table-wrap:has([data-phone-table]),.inventory-admin-table-wrap:has([data-phone-table]){overflow:visible!important;border:0!important;min-width:0}
 .inventory-history-toolbar{display:flex!important;flex-direction:column;align-items:stretch!important;gap:4px;margin-bottom:8px}
 .inventory-history-search-label{width:100%;min-width:0!important;margin:0}
 .inventory-history-toolbar .inventory-phone-fold-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .inventory-history-toolbar .inventory-phone-fold-body>*{min-width:0!important;width:100%;max-width:100%;margin:0}
 .inventory-history-toolbar select{min-width:0!important;max-width:100%}
 .inventory-content[data-inventory-page=history]>.heading .inventory-inline-undo{font-size:12px;min-height:36px}
 .inventory-history-pagination,.inventory-pagination{margin:12px 0 0;gap:8px;font-size:13px}
 .inventory-transfer-card{padding:0!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;background:transparent}
 .inventory-phone-transfer>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:14px 2px;list-style:none;cursor:pointer}
 .inventory-phone-transfer>summary>strong{font-size:15px;line-height:1.5}
 .inventory-phone-transfer>summary>small{font-size:12px;color:var(--muted)}
 .inventory-phone-transfer>summary>svg{grid-column:2;grid-row:1/3}
 .inventory-phone-transfer>div{padding:0 2px 12px}
 .inventory-phone-transfer .inventory-transfer-title{display:none}
 .inventory-phone-transfer .inventory-balance-row{gap:8px;flex-wrap:wrap;align-items:flex-start}
 .inventory-phone-transfer .inventory-balance-row>span{overflow-wrap:anywhere}
 .inventory-settings-workspace{gap:8px}
 .inventory-settings-detail{padding:12px!important;border-radius:14px}
 .inventory-settings-detail>header{margin-bottom:8px}
 .inventory-setting-row{padding:10px 0!important;min-height:52px;gap:10px}
 .inventory-setting-row>div:first-child{min-width:0}
 .inventory-setting-row>div:first-child>span{font-size:14px;overflow-wrap:anywhere}
 .inventory-setting-row .inventory-setting-action{min-height:44px;display:inline-flex;align-items:center;font-size:14px;white-space:nowrap}
 .inventory-settings-mobile-category{font-size:13px}
 .inventory-settings-mobile-category select{flex:1;max-width:80%;min-width:0!important}
 .inventory-phone-fold .inventory-detail-info-row.inventory-mode-hidden{display:grid!important}
 #dialog .inventory-detail-summary{padding:12px}
 #dialog .inventory-detail-balances{margin-top:12px}
 #dialog .inventory-detail-info-row{grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:8px;padding:8px 0;font-size:14px}
 #dialog .inventory-detail-info-row>div{min-width:0;overflow-wrap:anywhere}
 #dialog .inventory-detail-info-row button{max-width:100%;white-space:normal}
 #dialog .inventory-detail-history{margin-top:16px}
 #dialog .inventory-detail-scroll+.form-save-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
 #dialog .inventory-detail-scroll+.form-save-actions>[data-inv=operation-choices]{flex:1;min-height:44px;font-size:14px}
 #dialog .inventory-detail-scroll+.form-save-actions>.inventory-inline-undo{flex:1;min-height:44px;font-size:12px}
 #dialog .inventory-detail-scroll+.form-save-actions>.inventory-phone-fold{flex-basis:100%}
 #dialog .inventory-detail-scroll+.form-save-actions>.inventory-phone-fold:not([open])>summary{min-height:32px;justify-content:center;font-size:12px}
 #dialog .inventory-detail-scroll+.form-save-actions>.inventory-phone-fold:not([open])>summary:after{margin-left:6px}
 #dialog .inventory-detail-scroll+.form-save-actions .inventory-phone-fold-body{display:flex;justify-content:space-between;gap:8px}
 .inventory-content:not(:has(#inventory-batch)) .inventory-business-list-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
 .inventory-content:not(:has(#inventory-batch)) .inventory-business-list-toolbar>input{flex-basis:100%}
 .inventory-content:not(:has(#inventory-batch)) .inventory-business-list-toolbar .segmented-control{max-width:100%;overflow:auto;flex-wrap:nowrap}
 .inventory-content:not(:has(#inventory-batch)) .inventory-business-analysis-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .inventory-business-analysis-filter>label{min-width:0!important;width:auto;max-width:100%;font-size:13px}
 .inventory-content .inventory-workflow-section{padding:12px;margin-bottom:12px}
 .inventory-stocktake-session{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:12px 0!important}
 .inventory-stocktake-session>strong{font-size:15px;grid-column:1/-1}
 .inventory-stocktake-session>span{font-size:12px;min-width:0;overflow-wrap:anywhere}
 .inventory-stocktake-session>span:nth-child(2){grid-column:1/-1}
 .inventory-mobile-menu{gap:6px}
 .inventory-mobile-menu>button{padding:10px;min-height:48px;font-size:14px;text-align:left}
 .inventory-mobile-menu-account{margin-top:12px;padding-top:12px}
 .inventory-mobile-menu-account button,.inventory-mobile-menu-account select{max-width:100%;min-width:0}
 .inventory-panel-scroll,.work-form-scroll{overscroll-behavior:contain}
 summary:focus-visible,.inventory-phone-row-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:8px}
 .inventory-content[data-inventory-page=stock] .inventory-stock-layout{display:block;row-gap:0}
 .inventory-content[data-inventory-page=stock] #inventory-stock-results{display:block}
 .inventory-content[data-inventory-page=stock] .inventory-list-meta{grid-row:auto;grid-column:auto;margin:4px 0 8px}
 .inventory-phone-list-tools{display:flex;flex-wrap:wrap;gap:0 16px;margin:0 0 4px}
 .inventory-phone-list-tools>.inventory-phone-fold{display:block;flex:1;width:auto;margin:0!important}
 .inventory-phone-list-tools>.inventory-phone-fold[open]{flex-basis:100%;width:100%}
 .inventory-phone-list-tools>.inventory-phone-fold>summary{min-height:40px}
 .inventory-phone-product,.inventory-phone-transfer{margin:0!important;padding:0;border:0;background:transparent}
 .inventory-phone-product-body>.inventory-product-link{display:flex;gap:0;margin:0;font-size:14px}
 .inventory-phone-product-body>.inventory-product-link>.inventory-photo,.inventory-phone-product-body>.inventory-product-link>.inventory-photo-placeholder{display:none}
 .inventory-phone-product-body>.inventory-product-link small{display:none}
 #dialog .inventory-detail-scroll+.form-save-actions>.inventory-inline-undo:disabled{display:none}
 table[data-phone-table] tr[data-phone-row]>td:first-child{position:static!important;max-width:none!important;min-width:0!important;background:transparent}
 table[data-phone-table] td[data-label=""],table[data-phone-table] td[data-phone-label=""]{justify-content:start!important}
 .inventory-content table[data-phone-table] tr[data-phone-open=true]:not([data-phone-extra=true])>td[data-phone-supplemental],#dialog table[data-phone-table] tr[data-phone-open=true]:not([data-phone-extra=true])>td[data-phone-supplemental]{display:none!important}
 .inventory-content table[data-phone-table] tr[data-phone-open=true]>td.inventory-phone-row-extra,#dialog table[data-phone-table] tr[data-phone-open=true]>td.inventory-phone-row-extra{display:block!important;padding:4px 10px 8px!important}
 table[data-phone-table] tr>td.inventory-phone-row-extra:before{display:none!important}
 .inventory-phone-row-extra button{min-height:40px!important;padding:6px 0;font-size:13px!important}
 .inventory-content[data-inventory-page=history]>.heading .inventory-inline-undo:disabled{display:none}
 .inventory-history-toolbar .inventory-phone-fold-body>a{min-height:44px;display:flex;align-items:center;grid-column:1/-1}
 #dialog.inventory-dialog.task-surface-dialog:has(>[data-business-owner],>form.inventory-form,>.inventory-detail-scroll){height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;inset:auto 0 0!important;margin:0!important}
 #dialog.inventory-dialog>[data-business-owner]{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
 #dialog.inventory-dialog>[data-business-owner]>form.inventory-form,#dialog.inventory-dialog>form.inventory-form{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
 #dialog.inventory-dialog .inventory-form>.work-form-scroll{flex:1 1 0;min-height:0;overflow:auto;padding:0 12px 16px;scroll-padding:12px}
 #dialog.inventory-dialog .inventory-form>.form-save-actions{position:static;flex:0 0 auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border);min-height:64px;margin:0}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>button{flex:1;min-height:44px;font-size:15px;padding:8px 12px}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>[role=status]{flex-basis:100%;font-size:12px;margin:0;line-height:1.35;text-align:left}
 #dialog.inventory-dialog .inventory-form .work-form-step{padding:12px!important;margin:0 0 12px}
 #dialog.inventory-dialog .inventory-form label{min-width:0;max-width:100%}
 #dialog.inventory-dialog .inventory-form input:not([type=checkbox]):not([type=radio]),#dialog.inventory-dialog .inventory-form select,#dialog.inventory-dialog .inventory-form textarea{max-width:100%}
 #dialog.inventory-dialog .inventory-business-table td[data-label="単価（任意・円）"]{min-width:0}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>[role=status]{min-width:100%;max-width:none;width:100%;flex:0 0 100%;order:-1}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>button{white-space:nowrap}
 .inventory-product-fields>[data-mobile-fold]{grid-column:1/-1;align-self:start;width:100%;margin:0!important}
 .inventory-product-fields>[data-mobile-fold]>.inventory-phone-fold-body{display:flex;flex-direction:column;gap:12px}
 .inventory-product-fields>[data-mobile-fold] label{margin:0;font-size:14px}
 .inventory-product-fields>[data-mobile-fold] .inventory-field-row{display:flex;flex-direction:column;gap:6px;align-items:stretch}
 #dialog .inventory-phone-fold .inventory-business-optional.inventory-mode-hidden{display:block!important}
 #dialog .inventory-phone-fold>.inventory-phone-fold-body>.inventory-business-optional{margin:0!important}
 .inventory-product-fields>.inventory-product-barcode>.row{display:flex;flex-wrap:wrap;gap:8px}
 .inventory-product-fields>.inventory-product-barcode input{flex:1 1 100%;min-width:0}
 .inventory-product-fields>.inventory-product-barcode button{flex:1;min-width:0;white-space:nowrap;padding:8px;font-size:14px}
 .inventory-setting-row{padding:4px 0!important;min-height:52px}
 .inventory-location-tree-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;min-height:48px}
 .inventory-location-drag-handle{display:none!important}
 .inventory-location-tree-name{gap:5px;min-width:0}
 .inventory-location-tree-name strong{font-size:14px}
 .inventory-location-site-toggle{min-width:40px;width:40px;min-height:44px!important;padding:8px!important}
 .inventory-location-tree-node.level-site{padding:0 8px}
 .inventory-phone-location-actions{margin:0!important}
 .inventory-phone-location-actions>summary{min-height:44px;font-size:12px;font-weight:400;gap:8px;padding:0 2px}
 .inventory-phone-location-actions[open]{grid-column:1/-1}
 .inventory-phone-location-actions[open]>summary{justify-content:flex-end}
 .inventory-phone-location-actions[open]>summary:after{margin-left:4px}
 .inventory-phone-location-actions .inventory-location-tree-actions{display:flex;flex-wrap:wrap;gap:4px 8px;justify-content:flex-start}
 .inventory-phone-location-actions .inventory-location-tree-actions button{min-height:44px;padding:6px 8px;font-size:13px}
 .inventory-phone-location-move{display:inline-flex;align-items:center;justify-content:center}
 .inventory-location-tree-children{margin-left:4px!important;padding-left:8px!important;gap:0!important}
 .inventory-location-name-input{min-width:0;width:100%;font-size:16px}
 .inventory-location-tree-add{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
 .inventory-location-tree-add>input{flex:1 1 100%;width:100%;min-width:0}
 .inventory-location-tree-add>.inventory-location-add-context{flex-basis:100%}
 .inventory-location-header-action,.inventory-location-header-edit,.inventory-location-header-cancel{min-height:44px!important}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>.inventory-inline-undo:disabled{display:none}
 #dialog.inventory-dialog .inventory-form>.form-save-actions>.inventory-inline-undo:not(:disabled){flex:0 0 100%;order:2;min-height:32px;padding:2px 6px;font-size:13px}
 #dialog .inventory-schema-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:8px 10px;min-height:64px}
 #dialog .inventory-schema-header{display:none}
 #dialog .inventory-schema-standard>span:last-child{display:none}
 #dialog .inventory-schema-name-cell,#dialog .inventory-schema-line>input[name=field_label]{grid-column:1;grid-row:1;min-width:0;max-width:100%}
 #dialog .inventory-schema-name-cell .inventory-schema-name-trigger{min-height:32px!important;font-size:15px!important;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
 #dialog .inventory-schema-line>.inventory-schema-kind{grid-column:1;grid-row:2;font-size:12px;min-height:18px;margin:0}
 #dialog .inventory-schema-line>.inventory-field-visibility{grid-column:2;grid-row:1/3;min-height:44px;align-self:center;font-size:13px}
 #dialog .inventory-schema-line>.inventory-choice-field{grid-column:1;grid-row:2;min-width:0;margin:4px 0 0}
 #dialog .inventory-schema-line>.inventory-choice-field .inventory-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 #dialog .inventory-schema-line>.inventory-choice-field button{min-height:40px;padding:6px;font-size:13px}
 #dialog .inventory-schema-row .inventory-schema-line>.inventory-field-visibility{grid-row:1;align-self:start}
 #dialog .inventory-schema-row .inventory-schema-line>[data-inv=field-remove]{grid-column:2;grid-row:2;min-height:44px}
 #dialog .inventory-schema-options{padding:0 10px 12px}
 #dialog .inventory-schema-options>label{display:block;font-size:14px}
 #dialog .inventory-schema-options textarea{margin-top:6px;font-size:16px}
 #dialog .inventory-schema-removed{gap:8px;padding:8px 10px;font-size:13px}
 .inventory-content:not(:has(#inventory-batch))>.inventory-mobile-head{position:sticky;top:0;z-index:35;padding:6px 0;background:var(--bg,#f5f7fb);margin-top:-6px}
 #dialog.inventory-dialog.task-surface-dialog:has(>[data-business-owner],>form.inventory-form,>.inventory-detail-scroll){height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;max-height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;bottom:var(--inventory-phone-keyboard-bottom,0px)!important}
 #dialog.inventory-dialog:has(.inventory-mobile-menu){max-height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;bottom:var(--inventory-phone-keyboard-bottom,0px)!important}
 #dialog:has(.support-panel)>.dialoghead{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 #dialog:has(.support-panel)>.dialoghead h2{flex:1;min-width:0;font-size:18px}
 #dialog:has(.support-panel)>.dialoghead>[data-action=close]{order:3;margin:0;min-height:44px;padding:8px 12px}
 .inventory-phone-more-actions .inventory-bulk-mode{display:block!important;width:100%;margin:0}
 .inventory-phone-more-actions .inventory-bulk-mode>button{width:100%;min-height:44px;white-space:normal}
 .inventory-content[data-inventory-page=stock] .inventory-stock-status:has(.inventory-bulk-selection-count){display:block!important;margin:8px 0 12px;padding:10px;background:#fff;border:1px solid var(--border);border-radius:12px}
 .inventory-stock-status:has(.inventory-bulk-selection-count) .inventory-stock-actions{display:flex;flex-wrap:wrap;gap:6px}
 .inventory-stock-status:has(.inventory-bulk-selection-count) .inventory-stock-actions>button{min-height:40px;font-size:13px;flex:1 1 auto}
 .inventory-stock-status:has(.inventory-bulk-selection-count) .inventory-bulk-selection-count{flex-basis:100%;font-size:14px;order:-1}
 .inventory-stock-status:has(.inventory-bulk-selection-count) .inventory-stock-operations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
 .inventory-stock-status:has(.inventory-bulk-selection-count) .inventory-stock-operations>button{padding:6px 2px;min-height:44px;font-size:13px;min-width:0}
 .inventory-mobile-stock>.card:has(.inventory-mobile-selection){position:relative}
 .inventory-mobile-stock>.card>.inventory-mobile-selection{position:absolute;left:0;top:12px;min-height:44px;width:34px;padding:0;font-size:0;z-index:1;justify-content:flex-start}
 .inventory-mobile-stock>.card>.inventory-mobile-selection input{width:20px;height:20px;margin:0}
 .inventory-mobile-stock>.card:has(.inventory-mobile-selection) .inventory-phone-product-summary{padding-left:34px}
 .inventory-mobile-stock>.card:has(.inventory-mobile-selection) .inventory-phone-product-summary>svg{display:none}
 .inventory-mobile-stock>.inventory-mobile-group{padding:6px 2px 0!important;line-height:18px}
 .inventory-phone-more-actions .inventory-phone-fold-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .inventory-phone-more-actions .inventory-bulk-mode{grid-column:1/-1}
 .inventory-phone-more-actions .inventory-phone-fold-body>button,.inventory-phone-more-actions .inventory-phone-fold-body>a{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;font-size:13px}
 .inventory-content[data-inventory-page=stock]:has(.inventory-phone-bulk-footer){padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
 .inventory-stock-status .inventory-stock-operations.inventory-phone-bulk-footer{position:fixed;bottom:0;left:0;right:0;z-index:36;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border);width:auto}
 .inventory-phone-bulk-footer>.inventory-bulk-selection-count{grid-column:1/4;grid-row:1;align-self:center;order:0!important;font-size:14px}
 .inventory-phone-bulk-footer>[data-inv=bulk-toggle]{grid-column:4;grid-row:1;min-height:32px!important;padding:3px!important;font-size:11px!important;white-space:normal}
 .inventory-phone-bulk-footer>[data-inv=stock-operation]{grid-row:2;min-height:44px!important}
 .inventory-stocktake-table .inventory-workflow-table tr[data-phone-count]{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:4px 10px;padding:10px;margin:0;min-width:0}
 .inventory-stocktake-table tr[data-phone-count]>td:first-child{grid-column:1;grid-row:1;padding:0;min-width:0}
 .inventory-stocktake-table tr[data-phone-count]>td:first-child>strong{font-size:15px;line-height:1.45;display:block}
 .inventory-stocktake-table tr[data-phone-count]>td:first-child>small{display:none}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3){grid-column:2;grid-row:1;padding:0}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3):before{font-size:11px;margin-bottom:4px}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3) input{width:78px;max-width:100%;min-height:44px;font-size:18px;padding:8px}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(5){grid-column:1/-1;grid-row:2;padding:0;font-size:12px}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(5):before{display:none}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(2),.inventory-stocktake-table tr[data-phone-count]>td:nth-child(4){display:none}
 .inventory-stocktake-table tr[data-phone-count-open=true]>td:nth-child(2),.inventory-stocktake-table tr[data-phone-count-open=true]>td:nth-child(4){display:block;grid-row:3;padding:6px 0 0;font-size:14px}
 .inventory-stocktake-table tr[data-phone-count-open=true]>td:first-child>small{display:block;font-size:12px}
 .inventory-phone-count-detail{font-size:12px!important;min-height:36px!important;padding:4px 0!important;margin:0;text-align:left}
 .inventory-stocktake-progress{gap:6px;margin:8px 0;font-size:13px}
 .inventory-stocktake-footer{position:sticky;bottom:0;background:white;padding:10px 0 calc(10px + env(safe-area-inset-bottom));gap:8px;z-index:20}
 .inventory-stocktake-footer>span{font-size:12px}
 .inventory-stocktake-footer>.primary{min-height:44px;width:100%;font-size:15px}
 .inventory-content .inventory-stocktake-table{max-height:none!important;overflow:visible!important;border:0;background:transparent}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3){display:flex;flex-wrap:wrap;gap:4px;align-content:start;align-items:center;min-width:0}
 .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3):before{flex-basis:100%;margin:0}
 .inventory-shell .inventory-stocktake-table tr[data-phone-count]>td:nth-child(3) input[type=number]{width:78px!important;min-width:0!important;max-width:78px!important;flex:0 0 78px;margin:0}
 .inventory-content .inventory-business-analysis-filter>label,.inventory-content .inventory-business-analysis-filter>.inventory-business-choice-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0!important;margin:0;font-size:13px;line-height:1.4}
 .inventory-content .inventory-business-analysis-filter>label>input{display:block;width:100%!important;min-width:0!important;max-width:100%;margin:0;min-height:44px;padding:8px;font-size:16px}
 .inventory-content .inventory-business-analysis-filter .inventory-location-picker{width:100%!important;max-width:100%;min-width:0}
 .inventory-content .inventory-business-analysis-filter>.inventory-business-choice-field>span{display:block}
 .inventory-content .inventory-business-analysis-filter>button{grid-column:1/-1;min-height:44px;font-size:14px}
 #dialog.inventory-guidance-dialog.task-surface-dialog[open],#dialog.task-surface-dialog:has(.support-chat-page){height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;max-height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;inset:auto 0 var(--inventory-phone-keyboard-bottom,0px)!important;margin:0!important}
 #dialog.inventory-guidance-dialog .inventory-guidance-home{padding:0 4px 12px;flex:1;min-height:0}
 #dialog.inventory-guidance-dialog .inventory-guidance-home>p{margin:4px 0 12px;font-size:13px}
 .inventory-guidance-topics{gap:6px}
 .inventory-guidance-topics>button{min-height:52px!important;padding:10px 12px;gap:10px}
 .inventory-guidance-topics strong{font-size:14px;line-height:1.45}
 .inventory-guidance-topics small{display:none}
 #dialog .inventory-guidance-question{padding:10px 4px calc(4px + env(safe-area-inset-bottom));gap:8px}
 #dialog .inventory-guidance-question>label{font-size:14px;gap:6px}
 #dialog .inventory-guidance-question textarea{min-height:64px;height:72px;max-height:120px;resize:vertical;font-size:16px;margin:0}
 #dialog .inventory-guidance-question-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
 #dialog .inventory-guidance-question-actions>button{min-height:44px;font-size:14px;padding:8px 12px}
 .inventory-phone-question-notice{flex:1;min-width:0;margin:0!important}
 .inventory-phone-question-notice>summary{font-size:12px;font-weight:400;min-height:36px;gap:4px}
 .inventory-phone-question-notice[open]{flex:1 1 100%;order:2}
 .inventory-phone-question-notice .inventory-phone-fold-body{padding:0 0 8px;max-height:150px;overflow:auto;font-size:12px;line-height:1.6}
 #dialog .inventory-phone-question-notice small,#dialog .inventory-phone-question-notice p.small{display:block;margin:0;font-size:12px;line-height:1.6}
 #dialog .support-chat-page{padding:0 4px 8px;gap:10px;overflow:hidden}
 #dialog .support-chat-page [role=log]{overflow:auto;min-height:0;flex:1}
 #dialog .support-chat-page [data-support-topics]{max-height:30dvh;overflow:auto;flex:none}
 #dialog .support-chat-page form{align-items:end;flex:none;gap:6px}
 #dialog .support-chat-page form label{font-size:14px}
 #dialog .support-chat-page form textarea{min-height:64px;height:64px;font-size:16px;margin-bottom:0}
 #dialog .support-chat-page form button{min-height:44px;padding:8px 12px;font-size:14px}
 #dialog .support-chat-page>.inventory-phone-question-notice{flex:0 0 auto}
 #dialog .support-message{padding:10px;font-size:14px;overflow-wrap:anywhere}
 #dialog .support-guide-launch{min-height:44px;max-width:100%;font-size:14px;white-space:normal;text-align:left}
 #dialog .inventory-phone-question-warning{display:block;flex:none;font-size:11px;line-height:1.45;margin:0;color:var(--muted)}
}
@media(prefers-reduced-motion:reduce){
.inventory-phone-product-summary>svg,.inventory-phone-row-toggle>svg{transition:none}
}
@media(max-width:360px){
 .inventory-shell .inventory-phone-reader,#dialog .inventory-phone-reader{padding:3px 6px!important;gap:4px}
 .inventory-phone-list-tools{gap:0 10px}
 .inventory-phone-list-tools>details>summary{font-size:13px}
 .inventory-content .inventory-business-analysis-filter>label:has(input[type=date]){grid-column:1/-1;display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:8px}
}
@media(max-width:700px){
 #dialog.task-surface-dialog[open]:has(.support-chat-page){display:flex!important;flex-direction:column;overflow:hidden}
 #dialog:has(.support-chat-page)>.dialoghead{flex:none}
 #dialog:has(.support-chat-page)>.dialoghead>button.link:first-child{order:-2;flex:0 0 100%;min-height:32px;padding:0;font-size:14px;text-align:left}
 #dialog .support-chat-page>[data-support-error]:empty{display:none}
 #dialog .support-chat-page>[data-support-insights][hidden]{display:none!important}
 #dialog .support-chat-page>[data-support-insights]{flex:none;font-size:12px}
}
@media(max-width:360px){
 #dialog .inventory-business-table:not([data-phone-table]) tr{grid-template-columns:minmax(0,1fr)}
 #dialog .inventory-business-edit-table td[data-label="数量"]>.row{display:flex;flex-wrap:nowrap;gap:6px}
 #dialog .inventory-business-edit-table td[data-label="数量"] input{flex:1 1 0;min-width:0!important;width:auto!important}
}
@media(max-width:700px){
 #dialog.inventory-dialog.task-surface-dialog:has(>form.inventory-quick-form){height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;max-height:calc(var(--inventory-phone-viewport-height,100dvh) - 12px)!important;inset:auto 0 var(--inventory-phone-keyboard-bottom,0px)!important;margin:0!important}
 #dialog .inventory-quick-form details.inventory-cart-advanced.inventory-mode-hidden,#dialog .inventory-quick-form details.inventory-operation-add-advanced.inventory-mode-hidden{display:block!important}
 #dialog .inventory-quick-form .inventory-phone-fold .inventory-operation-note.inventory-mode-hidden,#dialog .inventory-quick-form .inventory-phone-fold .inventory-operation-work-history.inventory-mode-hidden{display:block!important}
 #dialog .inventory-quick-form .inventory-phone-fold{margin:8px 0 0}
 #dialog .inventory-quick-form .inventory-phone-fold .inventory-operation-note{padding:8px 10px!important;margin:0!important}
 #dialog .inventory-quick-form .inventory-phone-fold .inventory-operation-note label{display:flex;flex-direction:column;align-items:stretch;gap:6px}
 #dialog .inventory-quick-form .inventory-phone-fold .inventory-operation-note textarea{width:100%;min-height:44px;font-size:16px}
 #dialog .inventory-quick-form .form-save-actions .inventory-inline-undo:disabled{display:none}
}
