/* 门店共享账号：今天的工作、快捷录单、订单查询，三个入口共用一个开放工作面。 */
.store-shell{
 display:flex;flex-direction:column;height:100dvh;min-height:100dvh;min-width:0;overflow:hidden;
 background:var(--bg);--store-header:76px;
}
.store-shell>.store-topbar{
 position:relative;z-index:20;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(250px,1fr);
 align-items:center;gap:18px;min-height:var(--store-header);flex:none;
 padding:13px 30px;background:var(--surface);border-bottom:1px solid var(--line);
}
.store-topbar .brand{padding:0;margin:0;gap:9px;min-width:0}
.store-topbar .brand b,.store-topbar .brand strong{font-size:21px}
.store-topbar .brand small{font-size:11px;margin-top:2px}
.store-topbar .brand-mark{height:31px;width:28px}
.store-topnav{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}
.store-topnav>.btn,.store-topnav>button{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;
 padding:8px 16px;border:0;border-radius:5px;color:var(--muted);background:transparent;
 font-size:var(--text-secondary);font-weight:500;white-space:nowrap;
}
.store-topnav>.btn:hover,.store-topnav>button:hover{color:var(--text);background:#e9eae8}
.store-topnav>.btn.active,.store-topnav>button.active,.store-topnav>[aria-current=page],.store-topnav>.primary{color:var(--text);background:var(--yellow)}
.store-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;flex-wrap:nowrap}
.store-top-actions .role-field{min-width:0;max-width:165px}
.store-top-actions .role-field select{max-width:165px}
.store-top-actions .btn.icon-only{flex:none}
.store-content{
 flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
 padding:21px 30px 24px;
}
.store-content>*{max-width:1540px;margin-left:auto;margin-right:auto}
.store-content>.workspace-foot{padding-top:4px}
.store-content.page-workbench>.workspace-foot{display:none}
.store-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}
.store-page-head h1{font-size:var(--text-title);font-weight:500;line-height:1.3}
.store-page-head p{margin-top:4px;font-size:var(--text-secondary);color:var(--muted)}
.store-page-head>.row-actions{align-self:center;flex:none}
.store-personnel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 13px}
.store-personnel>span,.store-personnel>.hint{margin-right:3px;font-size:var(--text-help);color:var(--muted)}
.store-person-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 10px;border:1px solid var(--line-strong);border-radius:6px;background:transparent;font-size:var(--text-help);line-height:1.35;white-space:nowrap}
.store-person-chip b,.store-person-chip strong{font-weight:500;color:var(--text);font-size:var(--text-secondary)}
.store-person-chip span,.store-person-chip small{color:var(--muted);font-size:11px}
.store-person-chip .avatar{height:23px;width:23px;font-size:10px}
.store-person-chip .user-avatar{height:25px;width:25px;font-size:11px}
.store-person-chip>div{min-width:0}
.store-person-chip>div>small{display:block;margin-top:1px}
.store-day-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0 0 14px;padding:0 0 11px;border-bottom:1px solid var(--line-strong)}
.store-day-band>.metric{padding:0 22px 0 0;margin:0;border-right:1px solid var(--line-strong)}
.store-day-band>.metric:last-child{border-right:0;padding-right:0}
.store-day-band .metric-value{font-size:34px;font-weight:400;line-height:1.2;margin:5px 0 5px}
.store-day-band .metric-note{font-size:11px;min-height:17px}
.store-home-grid{display:grid;grid-template-columns:minmax(310px,.94fr) minmax(400px,1.12fr);gap:18px;align-items:stretch}
.store-home-grid>.panel{display:flex;flex-direction:column;margin:0;min-height:0}
.store-home-grid>.panel>.panel-head{flex:none;padding-top:14px;padding-bottom:12px}
.store-home-grid>.panel>.panel-body{flex:1;min-height:0}
.store-ledger{height:auto;min-height:clamp(360px,calc(100dvh - 395px),590px)}
.store-ledger>.panel-body{display:flex;flex-direction:column;padding:0}
.store-ledger>.panel-body>.table-wrap{min-height:0;max-height:none;flex:none;overflow:visible;scrollbar-gutter:auto}
.store-ledger table{table-layout:fixed}
.store-ledger th,.store-ledger td{padding:9px 12px;white-space:normal;overflow-wrap:break-word}
.store-ledger th{padding-top:8px;padding-bottom:8px}
.store-ledger th:first-child,.store-ledger td:first-child{width:35%;padding-left:19px;color:var(--text)}
.store-ledger th:nth-child(2),.store-ledger td:nth-child(2){width:17%;text-align:right;white-space:nowrap}
.store-ledger th:nth-child(3),.store-ledger td:nth-child(3){width:18%;text-align:right;white-space:nowrap}
.store-ledger th:last-child,.store-ledger td:last-child{width:30%;padding-right:19px;text-align:right;white-space:nowrap}
.store-ledger td:last-child{color:var(--text);font-family:var(--font-number)}
.store-ledger tfoot td{border-top:1px solid var(--line-strong);background:#f4f4f2;color:var(--text);font-weight:500}
.store-day-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex:none;padding:10px 19px;border-top:1px solid var(--line);font-size:var(--text-help)}
.store-day-total strong{font-family:var(--font-number);font-size:22px;font-weight:400;letter-spacing:-.4px;line-height:1.3}
.store-category-note{padding:0 19px 9px!important;margin:0!important;font-size:11px;line-height:1.6;flex:none}
.store-ledger>.panel-body>.row-actions{flex:none;padding:3px 12px 4px}
.store-today-close,.store-close-status{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;padding:11px 19px;background:var(--surface-soft);border-top:1px solid var(--line)}
.store-today-close>div,.store-close-status>div{min-width:0}
.store-today-close b,.store-close-status b{font-size:var(--text-secondary);font-weight:500}
.store-today-close p,.store-close-status p{font-size:var(--text-help);color:var(--muted);margin-top:3px;line-height:1.6}
.store-today-close .btn,.store-close-status .btn{flex:none}
.store-goals{height:clamp(360px,calc(100dvh - 395px),590px)}
.store-goals>.panel-body{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;overflow-y:auto;overscroll-behavior:contain}
.store-goal-mobile{display:none}
.store-goal-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;flex:none;padding:0 0 10px;border-bottom:1px solid var(--line)}
.store-goal-summary>div{min-width:0}
.store-goal-summary>div+div{padding-left:20px;border-left:1px solid var(--line)}
.store-goal-summary h3,.store-goal-summary>div>span:first-child{display:block;font-size:var(--text-help);font-weight:400;color:var(--muted);line-height:1.5;margin-bottom:2px}
.store-goal-summary strong,.store-goal-summary .goal-value{font-family:var(--font-number);font-size:26px;font-weight:400;letter-spacing:-.7px;line-height:1.2;color:var(--text)}
.store-goal-summary strong small{font-size:var(--text-help);letter-spacing:0;color:var(--muted)}
.store-goal-summary p,.store-goal-summary .goal-meta{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.5}
.store-goal-summary .progress{margin-top:8px;height:4px}
.store-goal-summary .store-goal-cell>b,.store-goal-summary .store-goal-cell>small{display:none}
.store-goal-summary .store-goal-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:5px}
.store-goal-summary .store-goal-cell>.progress{margin-top:0}
.store-goal-summary .store-goal-cell>.hint{font-size:11px;line-height:1.4;white-space:nowrap}
.store-goal-summary>div:first-child .progress>span,.store-goal-summary>div:first-child .progress>.bar{background:var(--yellow)}
.store-goal-table{flex:1;min-height:180px;overflow-y:auto;overscroll-behavior:contain;font-size:var(--text-help)}
.store-goals .table-wrap{min-height:0;max-height:none;overflow:visible;scrollbar-gutter:auto}
.store-goal-table table{table-layout:fixed;font-size:var(--text-help)}
.store-goal-table th{font-size:11px;padding:6px 9px;background:var(--surface)}
.store-goal-table td{padding:4px 9px;white-space:normal;line-height:1.45;overflow-wrap:anywhere}
.store-goal-table th:first-child,.store-goal-table td:first-child{width:30%;padding-left:0;color:var(--text)}
.store-goal-table th:nth-child(2),.store-goal-table td:nth-child(2){width:35%}
.store-goal-table th:last-child,.store-goal-table td:last-child{width:35%;padding-right:0}
.store-goal-table td strong,.store-goal-table td b{font-family:var(--font-number);font-size:var(--text-secondary);font-weight:500;color:var(--text)}
.store-goal-table td small{font-size:10px;line-height:1.45;margin-top:2px}
.store-goal-table .progress{height:3px;max-width:150px;margin-top:6px}
.store-goal-table .store-goal-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;align-items:baseline}
.store-goal-table .store-goal-cell>b{grid-column:1;grid-row:1}
.store-goal-table .store-goal-cell>small{grid-column:1/-1;grid-row:2;margin-top:0}
.store-goal-table .store-goal-cell>.progress{display:none}
.store-goal-table .store-goal-cell>.hint{grid-column:2;grid-row:1;font-size:10px;line-height:1.4;white-space:nowrap}
.store-goals details{flex:none;border-top:1px solid var(--line);padding-top:9px;padding-bottom:0}
.store-goals details>summary{font-size:var(--text-help);padding-bottom:3px}
.store-goals details .table-wrap{min-height:0;max-height:260px;overflow:auto;margin-top:8px}
.store-goals details table{table-layout:fixed;font-size:11px}
.store-goals details td,.store-goals details th{padding:8px;white-space:normal;overflow-wrap:anywhere}
.store-goals details td:first-child,.store-goals details th:first-child{padding-left:0}
.store-goals details td:last-child,.store-goals details th:last-child{padding-right:0}
.store-goals>.panel-body>.hint{flex:none;font-size:11px;line-height:1.6}

/* 两个真实录单入口；最近订单承接查看，不把录单表单提前铺满首页。 */
.store-entry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 20px}
.store-entry-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-height:213px;width:100%;padding:26px 28px;background:var(--surface);border:1px solid transparent;border-radius:var(--radius);text-align:left;color:var(--text);transition:background var(--motion),border-color var(--motion)}
.store-entry-option:hover{background:#f8f7f0;border-color:var(--line-strong)}
.store-entry-option.manual{background:var(--yellow-soft)}
.store-entry-option.manual:hover{background:#FAEFCC;border-color:#dfcf93}
.store-entry-option>svg,.store-entry-option>.ui-icon{width:25px;height:25px;color:var(--text)}
.store-entry-option h2,.store-entry-option strong,.store-entry-option b{font-size:21px;font-weight:500;line-height:1.45}
.store-entry-option p{font-size:var(--text-secondary);color:var(--muted);line-height:1.75;max-width:400px}
.store-entry-option>span:last-child{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-secondary);font-weight:500;margin-top:auto}
.store-entry-option>span:last-child svg{width:16px;height:16px}
.store-entry-symbol{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px}
.store-entry-option .store-entry-path{font-size:var(--text-help);color:var(--muted)}
.store-entry-option>strong:last-child{display:flex;align-items:center;gap:7px;font-size:var(--text-secondary);font-weight:500;margin-top:auto}
.store-entry-recent{margin-bottom:0}
.store-entry-recent>.panel-body{padding:0}
.store-entry-recent .table-wrap{max-height:280px;scrollbar-gutter:auto}
.store-entry-recent td{padding-top:15px;padding-bottom:15px}
.store-content.page-orders .table-wrap{max-height:calc(100dvh - 300px)}

/* 一笔订单在居中编辑窗内完成；商品、实际收款和固定核对动作同时可达。 */
.drawer.is-order-editor{
 inset:50% auto auto 50%;width:min(1100px,calc(100vw - 48px));height:min(790px,90dvh);max-height:90dvh;
 border-radius:14px;overflow:hidden;transform:translate(-50%,-50%);box-shadow:var(--shadow-raised);
 animation:confirm-in 170ms var(--ease);
}
.drawer.is-order-editor>.drawer-head{padding:17px 23px 14px}
.drawer.is-order-editor>.drawer-head h2{font-size:23px;font-weight:500}
.drawer.is-order-editor>.drawer-body{overflow:hidden;padding:18px 23px}
.store-order-editor{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:22px;height:100%;min-height:0}
.store-order-catalog{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.store-order-catalog>.panel{background:transparent;border-radius:0;margin-bottom:19px}
.store-order-catalog>.panel>.panel-head{padding:0 0 11px}
.store-order-catalog>.panel>.panel-body{padding:0}
.store-order-basics{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:17px}
.store-order-basics>h3,.store-order-products>h3{font-size:15px;font-weight:500;margin-bottom:10px}
.store-order-products>.hint{font-size:11px;line-height:1.65;margin-top:11px}
.store-order-basics .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.store-order-basics .tabs{margin-bottom:12px}
.store-order-basics .field{font-size:var(--text-help)}
.store-order-basics details{padding-bottom:0}
.store-order-catalog .category-tabs{gap:5px;margin-bottom:12px;padding-bottom:11px}
.store-order-catalog .category-tabs>.btn{flex:0 1 auto;padding:7px 9px;min-height:35px;font-size:11px}
.store-order-catalog .sku-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.store-order-catalog .sku-card{min-height:102px;padding:12px;background:#f0f1ed}
.store-order-catalog .sku-card:hover,.store-order-catalog .sku-card.selected{background:var(--yellow-soft);box-shadow:inset 0 0 0 1px #e3d291}
.store-order-catalog .sku-card b{font-size:var(--text-secondary)}
.store-order-catalog .sku-card>span{font-size:16px}
.store-order-editor>.order-cart,.store-order-editor>.cart-ticket{position:static;min-height:0;height:100%;max-height:none;margin:0;box-shadow:none;background:#f0f1ed;border-radius:9px}
.store-order-editor .order-cart>.panel-head,.store-order-editor .cart-ticket>header{padding:13px 15px 11px}
.store-order-editor .order-cart>.panel-head h2,.store-order-editor .cart-ticket h2{font-size:16px}
.store-order-editor .order-cart>.cart-body,.store-order-editor .order-cart>.panel-body,.store-order-editor .cart-ticket>.cart-body{min-height:0;max-height:none;overflow-y:auto;padding:11px 15px}
.store-order-editor .order-cart>.cart-footer{background:#f0f1ed;padding:9px 15px}
.store-order-editor .cart-line{padding:11px 0;gap:7px 9px}
.store-order-editor .cart-line input{min-height:36px;height:36px}
.store-order-editor .cart-line>.field{font-size:11px}
.store-order-editor .cart-line>div:first-child b{font-size:13px}
.store-order-editor .cart-ticket .empty{padding:35px 10px}
.store-order-editor .order-cart>.statusbar{font-size:10px;padding:8px 15px}
.store-order-editor .entry-checkout-mobile{display:none}
.drawer.is-order-editor>.drawer-foot{align-items:center;flex-wrap:nowrap;padding:13px 23px;background:var(--surface);min-height:74px}
.store-order-total{display:flex;align-items:baseline;gap:12px;min-width:0;margin-right:auto;font-size:var(--text-help);color:var(--muted)}
.store-order-total strong{font-family:var(--font-number);font-size:27px;font-weight:400;letter-spacing:-.7px;color:var(--text);white-space:nowrap}
.store-order-total small{font-size:var(--text-help)}
.drawer.is-order-editor>.drawer-foot>.btn{min-height:40px}
.drawer.is-order-editor>.drawer-foot>.row-actions{flex:none;flex-wrap:nowrap;gap:8px}
.drawer.is-order-editor>.drawer-foot>.row-actions>.btn{min-height:40px}

@media(min-width:1600px){
 .store-shell>.store-topbar{padding-left:40px;padding-right:40px}
 .store-content{padding:24px 40px 28px}
 .store-home-grid{grid-template-columns:minmax(380px,1fr) minmax(450px,1.1fr);gap:22px}
 .store-ledger{min-height:clamp(390px,calc(100dvh - 405px),640px)}
 .store-goals{height:clamp(390px,calc(100dvh - 405px),640px)}
 .store-day-band .metric-value{font-size:40px}
 .store-goal-table td{padding-top:6px;padding-bottom:6px}
}
@media(max-width:1180px){
 .store-shell>.store-topbar{grid-template-columns:minmax(155px,1fr) auto minmax(190px,1fr);gap:12px;padding-left:23px;padding-right:23px}
 .store-topnav>.btn,.store-topnav>button{padding-left:12px;padding-right:12px}
 .store-top-actions{gap:8px}
 .store-top-actions .local-indicator{display:none}
 .store-content{padding-left:23px;padding-right:23px}
 .store-home-grid{grid-template-columns:minmax(300px,.88fr) minmax(360px,1.12fr);gap:15px}
 .store-order-editor{grid-template-columns:minmax(0,1fr) 310px;gap:17px}
 .store-order-basics .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-order-catalog .sku-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:960px){
 .store-shell>.store-topbar{grid-template-columns:1fr auto;gap:10px 14px;padding:12px 20px 10px}
 .store-topbar .brand{grid-column:1;grid-row:1}
 .store-top-actions{grid-column:2;grid-row:1}
 .store-topnav{grid-column:1/-1;grid-row:2;justify-self:stretch}
 .store-topnav>.btn,.store-topnav>button{flex:1;min-height:39px}
 .store-top-actions .local-indicator{display:inline-flex}
 .store-content{padding:18px 20px 24px}
 .store-home-grid{grid-template-columns:minmax(270px,.85fr) minmax(320px,1.15fr);gap:14px}
 .store-ledger{min-height:clamp(410px,calc(100dvh - 358px),590px)}
 .store-goals{height:clamp(410px,calc(100dvh - 358px),590px)}
 .store-home-grid>.panel>.panel-head{padding-left:16px;padding-right:16px}
 .store-home-grid>.panel>.panel-head h2{font-size:16px}
 .store-goals>.panel-body{padding-left:16px;padding-right:16px}
 .store-goal-summary{gap:12px}
 .store-goal-summary>div+div{padding-left:12px}
 .store-goal-summary strong,.store-goal-summary .goal-value{font-size:23px}
 .store-goal-table td{padding-left:7px;padding-right:7px}
 .drawer.is-order-editor>.drawer-body{overflow-y:auto}
 .store-order-editor{grid-template-columns:1fr;height:auto}
 .store-order-catalog{overflow:visible;padding-right:0}
 .store-order-basics .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-order-catalog .sku-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-order-editor>.order-cart,.store-order-editor>.cart-ticket{min-height:200px;max-height:none;height:auto}
 .store-order-editor .order-cart>.cart-body,.store-order-editor .cart-ticket>.cart-body{max-height:none;overflow:visible}
}
@media(max-width:740px){
 .store-shell>.store-topbar{padding:10px 15px 9px;gap:9px 10px}
 .store-topbar .brand b,.store-topbar .brand strong{font-size:19px}
 .store-topbar .brand small{font-size:10px}
 .store-topbar .brand-mark{width:23px;height:28px}
 .store-top-actions{gap:6px}
 .store-top-actions .local-indicator{display:none}
 .store-top-actions .role-field{max-width:128px}
 .store-top-actions .role-field select{max-width:128px;height:34px;min-height:34px;padding-left:7px;padding-right:7px;font-size:11px}
 .store-top-actions .btn.icon-only{width:38px;height:38px;min-height:38px}
 .store-top-actions>.btn{width:38px;min-width:38px;height:38px;min-height:38px;padding:7px}
 .store-topnav{gap:2px;padding:3px;border-radius:7px}
 .store-topnav>.btn,.store-topnav>button{min-height:44px;padding:8px 4px;gap:5px;font-size:13px}
 .store-topnav svg{width:16px;height:16px}
 .store-content{padding:17px 15px 24px}
 .store-content .bottom-nav,.store-content+.bottom-nav,.store-shell .bottom-nav{display:none!important}
 .store-page-head{margin-bottom:10px;gap:10px;flex-wrap:wrap}
 .store-page-head h1{font-size:27px}
 .store-page-head p{font-size:13px;line-height:1.65}
 .store-page-head>.row-actions{align-self:flex-start;flex:1 0 100%;width:100%;gap:7px}
 .store-page-head>.row-actions>.field{flex:1;min-width:100px}
 .store-page-head>.row-actions>.btn{min-height:44px;font-size:12px;padding-left:9px;padding-right:9px}
 .store-personnel{gap:6px;margin-top:10px;margin-bottom:16px}
 .store-personnel>span,.store-personnel>.hint{flex:1 0 100%;font-size:12px}
 .store-person-chip{min-height:33px;padding:6px 9px;gap:6px}
 .store-person-chip b,.store-person-chip strong{font-size:13px}
 .store-day-band{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 19px;margin-bottom:16px;padding-bottom:16px}
 .store-day-band>.metric{padding-right:19px}
 .store-day-band>.metric:nth-child(2){border-right:0;padding-right:0}
 .store-day-band .metric-label{font-size:12px}
 .store-day-band .metric-value{font-size:29px;margin-top:5px}
 .store-day-band .metric-note{font-size:11px;line-height:1.5}
 .store-home-grid{grid-template-columns:minmax(0,1fr);gap:15px}
 .store-ledger,.store-goals{height:auto;min-height:0;max-height:none}
 .store-goal-mobile{display:block;margin:0 0 15px;padding:12px 16px;background:var(--surface);border-radius:var(--radius)}
 .store-goal-mobile>.store-goal-summary{padding:0;border-bottom:0;gap:13px}
 .store-goal-mobile .store-goal-summary>div+div{padding-left:13px}
 .store-goal-mobile .store-goal-summary>div>span:first-child{font-size:12px;line-height:1.5;margin-bottom:2px}
 .store-goal-mobile .store-goal-summary strong{font-size:24px;line-height:1.15;white-space:nowrap}
 .store-goal-mobile .store-goal-summary .goal-meta{font-size:10.5px;line-height:1.4;margin-top:2px}
 .store-goal-mobile .store-goal-summary .store-goal-cell{margin-top:4px;gap:6px}
 .store-goal-mobile .store-goal-summary .store-goal-cell>.hint{font-size:10px;line-height:1.4}
 .store-goals .store-goal-summary{display:none}
 .store-home-grid>.panel>.panel-head{padding:15px 16px 12px;align-items:center}
 .store-home-grid>.panel>.panel-head h2{font-size:18px}
 .store-home-grid>.panel>.panel-head>.hint{font-size:11px}
 .store-ledger>.panel-body>.table-wrap{max-height:none;overflow:visible}
 .store-ledger th,.store-ledger td{padding:12px 9px;font-size:13px}
 .store-ledger th{font-size:11px}
 .store-ledger th:first-child,.store-ledger td:first-child{padding-left:16px}
 .store-ledger th:last-child,.store-ledger td:last-child{padding-right:16px}
 .store-day-total{padding-left:16px;padding-right:16px}
 .store-category-note{padding-left:16px!important;padding-right:16px!important;font-size:12px;line-height:1.6}
 .store-today-close,.store-close-status{padding:14px 16px;align-items:flex-start;gap:10px}
 .store-today-close b,.store-close-status b{font-size:14px}
 .store-today-close p,.store-close-status p{font-size:12px}
 .store-today-close .btn,.store-close-status .btn{min-height:44px;font-size:13px;padding-left:10px;padding-right:10px}
 .store-goals>.panel-body{overflow:visible;padding:0 16px 17px;gap:12px}
 .store-goal-summary{gap:14px;padding-bottom:14px}
 .store-goal-summary>div+div{padding-left:14px}
 .store-goal-summary strong,.store-goal-summary .goal-value{font-size:25px}
 .store-goal-summary p,.store-goal-summary .goal-meta{font-size:11px}
 .store-goals .table-wrap{min-height:0;max-height:none;overflow:visible}
 .store-goal-table{min-height:0;overflow:visible}
 .store-goal-table th{font-size:11px;padding:9px 6px}
 .store-goal-table th:first-child,.store-goal-table td:first-child{width:30%}
 .store-goal-table th:nth-child(2),.store-goal-table td:nth-child(2),.store-goal-table th:last-child,.store-goal-table td:last-child{width:35%}
 .store-goal-table td{font-size:12px;padding:11px 6px;line-height:1.6}
 .store-goal-table td strong,.store-goal-table td b{font-size:13px;white-space:normal}
 .store-goal-table td small{font-size:10px;line-height:1.6}
 .store-goals details>summary{min-height:44px;display:flex;align-items:center;font-size:13px;padding:5px 0}
 .store-goals details .table-wrap{max-height:310px;overflow:auto}
 .store-entry-options{grid-template-columns:1fr;gap:13px;margin:18px 0 18px}
 .store-entry-option{min-height:187px;padding:22px;gap:10px}
 .store-entry-option h2,.store-entry-option strong,.store-entry-option b{font-size:22px}
 .store-entry-option p{font-size:14px}
 .store-entry-option>span:last-child{font-size:14px;margin-top:5px}
 .store-entry-recent .table-wrap{max-height:none}
 .store-entry-recent td{font-size:12px;white-space:normal;padding:13px 10px}
 .store-entry-recent td:first-child{padding-left:16px}
 .store-entry-recent td:last-child{padding-right:16px}
 .store-entry-recent td .btn{min-height:44px;font-size:13px}
 .drawer.is-order-editor{inset:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;transform:none;animation:store-editor-slide 170ms var(--ease)}
 .drawer.is-order-editor>.drawer-head{padding:14px 16px 12px;gap:10px}
 .drawer.is-order-editor>.drawer-head h2{font-size:22px}
 .drawer.is-order-editor>.drawer-head .btn{width:44px;height:44px;min-width:44px;min-height:44px}
 .drawer.is-order-editor>.drawer-head p{font-size:12px}
 .drawer.is-order-editor>.drawer-body{padding:16px;overflow-y:auto}
 .store-order-editor{gap:17px}
 .store-order-basics .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .store-order-basics .field{font-size:13px}
 .store-order-basics .field input,.store-order-basics .field select{min-height:44px;font-size:16px}
 .store-order-basics .tabs>.btn{flex:1;min-height:44px;font-size:14px}
 .store-order-basics details>summary{min-height:44px;font-size:13px}
 .store-order-catalog .category-tabs{gap:6px;margin-bottom:13px;padding-bottom:13px}
 .store-order-catalog .category-tabs>.btn{flex:1 1 calc(33.333% - 6px);min-height:44px;padding:8px 5px;font-size:12px}
 .store-order-catalog .sku-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .store-order-catalog .sku-card{min-height:113px;padding:13px}
 .store-order-catalog .sku-card b{font-size:14px}
 .store-order-catalog .sku-card>span{font-size:18px}
 .store-order-editor .order-cart>.panel-head,.store-order-editor .cart-ticket>header{padding:14px 16px 12px}
 .store-order-editor .order-cart>.panel-head h2,.store-order-editor .cart-ticket h2{font-size:18px}
 .store-order-editor .order-cart>.cart-body,.store-order-editor .cart-ticket>.cart-body{padding:12px 16px}
 .store-order-editor .cart-line{padding:13px 0;gap:9px}
 .store-order-editor .cart-line>div:first-child b{font-size:14px}
 .store-order-editor .cart-line>.field{font-size:12px}
 .store-order-editor .cart-line input{height:44px;min-height:44px;font-size:16px}
 .store-order-editor .cart-line>.btn{height:38px;min-height:38px;padding:7px}
 .drawer.is-order-editor>.drawer-foot{padding:11px 16px calc(11px + env(safe-area-inset-bottom));min-height:76px;gap:8px}
 .drawer.is-order-editor>.drawer-foot>.btn{flex:0 0 auto;min-height:44px;font-size:13px;padding-left:11px;padding-right:11px}
 .drawer.is-order-editor>.drawer-foot>.row-actions{gap:7px}
 .drawer.is-order-editor>.drawer-foot>.row-actions>.btn{flex:none;min-height:44px;font-size:13px;padding-left:10px;padding-right:10px}
 .drawer.is-order-editor>.drawer-foot>.row-actions>.btn.secondary{max-width:115px;white-space:normal;font-size:12px;line-height:1.5;padding-left:8px;padding-right:8px}
 .store-order-total{flex:1;display:block;font-size:11px;line-height:1.4;margin-right:0}
 .store-order-total strong{display:block;font-size:25px;line-height:1.3}
 .store-order-total small{font-size:11px}
}
@media(max-width:375px){
 .store-topbar .brand small{display:none}
 .store-topbar .brand b,.store-topbar .brand strong{font-size:18px}
 .store-top-actions .role-field,.store-top-actions .role-field select{max-width:120px}
 .store-topnav>.btn,.store-topnav>button{font-size:12px;gap:3px}
 .store-day-band .metric-value{font-size:26px}
 .store-ledger td{font-size:12px}
 .store-goal-summary strong,.store-goal-summary .goal-value{font-size:23px}
 .drawer.is-order-editor>.drawer-foot{padding-left:12px;padding-right:12px}
 .drawer.is-order-editor>.drawer-foot>.btn{font-size:12px;padding-left:8px;padding-right:8px}
 .drawer.is-order-editor>.drawer-foot>.row-actions>.btn{font-size:12px;padding-left:8px;padding-right:8px}
 .drawer.is-order-editor>.drawer-foot>.row-actions>.btn.secondary{max-width:92px}
}
@media(prefers-reduced-motion:reduce){.store-shell *,.drawer.is-order-editor{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
 .store-shell{height:auto;overflow:visible;background:#FFF}
 .store-topbar,.store-entry-options,.store-today-close>.btn,.store-close-status>.btn{display:none!important}
 .store-content{overflow:visible;padding:0}
 .store-ledger,.store-goals{height:auto}
 .store-home-grid{display:block}
 .store-goals>.panel-body,.store-goals .table-wrap,.store-ledger .table-wrap{overflow:visible;max-height:none}
}

/* 本次会员事实常驻；携友人数在基础首排，派生卡数与说明同排。 */
.store-order-basics>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.store-member-behavior{margin-top:10px}
.store-member-behavior h4{margin:0 0 6px;font-size:var(--text-help);font-weight:500;color:var(--muted)}
.store-order-basics .store-member-behavior-grid{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.2fr);gap:8px;align-items:end}
.store-derived-note{margin:0;align-self:center;font-size:var(--text-help);line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.store-member-behavior .store-derived-count output{display:flex;align-items:center;min-height:34px;height:34px;padding:5px 8px}
.store-order-catalog .category-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;flex-wrap:nowrap}
.store-order-catalog .category-tabs>.btn{min-width:0;padding:7px 2px;white-space:nowrap;font-size:11px}
.cart-line-excluded{display:block;color:var(--muted);font-size:var(--text-help);line-height:1.45}
@media(max-width:960px){
 .store-order-basics>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-order-basics .store-member-behavior-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-derived-note{grid-column:1/-1}
}
@media(max-width:740px){
 .store-member-behavior{margin-top:12px}
 .store-member-behavior h4{font-size:13px}
 .store-order-basics .store-member-behavior-grid{gap:8px}
 .store-member-behavior .store-derived-count output{height:44px;min-height:44px;font-size:16px}
 .store-derived-note{font-size:12px}
 .store-order-catalog .category-tabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:6px}
 .store-order-catalog .category-tabs>.btn{flex:0 0 auto;min-height:44px;padding:8px 10px;font-size:12px}
}

/* 销售项目来自后台配置；类别与分组固定，项目和票据各自滚动。 */
.drawer.is-order-editor>.drawer-body{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}
.drawer.is-order-editor>.drawer-body>.statusbar{flex:none;margin:0;font-size:12px}
.store-order-editor{--store-cart-columns:minmax(0,1fr) 48px 86px 28px;--store-compact-gap:6px;flex:1;height:auto;min-height:0;grid-template-columns:minmax(0,1fr) 360px;gap:18px}
.store-editor-mobile-tabs{display:none}
.store-order-catalog{display:flex;flex-direction:column;overflow:hidden;padding-right:0}
.store-order-basics{flex:none;margin:0 0 10px;padding:0 0 10px;max-height:218px;overflow:auto}
.store-basics-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.store-basics-head>h3{font-size:15px;font-weight:500;line-height:1.5}
.store-basics-head>.tabs{margin:0;flex:none}
.store-basics-head>.tabs>.btn{min-height:34px;padding:6px 11px;font-size:12px}
.store-order-basics .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.store-order-basics .field{font-size:11px;gap:4px}
.store-order-basics .field input,.store-order-basics .field select{min-height:37px;padding:7px 8px;font-size:12px}
.store-order-basics details{margin-top:8px;padding-top:0}
.store-order-basics details>summary{padding:4px 0;font-size:11px;min-height:24px}
.store-order-basics details .form-grid{margin-top:5px}
.store-order-products{display:flex;flex-direction:column;flex:1;min-height:0}
.store-products-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px;flex:none}
.store-products-head>h3{font-size:15px;font-weight:500}
.store-products-head>span{font-size:11px;color:var(--muted);white-space:nowrap}
.store-order-catalog .category-tabs{flex:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 0 8px;padding:0;border:0}
.store-order-catalog .category-tabs>.btn{min-width:0;min-height:34px;font-size:12px;padding:6px 3px;white-space:nowrap}
.store-catalog-toolbar{flex:none;margin-bottom:8px}
.store-catalog-search{display:block}
.store-catalog-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.store-catalog-search>div{display:flex;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:7px;padding:0 10px;background:var(--white)}
.store-catalog-search>div:focus-within{border-color:var(--text);box-shadow:0 0 0 3px rgb(247 217 104 / 35%)}
.store-catalog-search>div>.ui-icon{flex:none;color:var(--muted)}
.store-catalog-search input{height:36px;min-height:36px;border:0;background:transparent;padding:6px 0;font-size:13px;box-shadow:none!important}
.store-catalog-search input:focus{outline:none}
.store-catalog-search input::-webkit-search-cancel-button{display:none}
.store-catalog-search>.btn,.store-catalog-search>div>.btn{height:29px;min-height:29px;min-width:29px;padding:5px;flex:none}
.store-catalog-groups{display:flex;align-items:center;gap:5px;flex:none;overflow-x:auto;overscroll-behavior:contain;padding:0 0 8px;scrollbar-width:thin;max-width:100%}
.store-catalog-groups>.btn{display:flex;align-items:center;gap:7px;flex:none;min-height:31px;padding:5px 9px;border:1px solid transparent;background:transparent;font-size:12px;color:var(--muted)}
.store-catalog-groups>.btn:hover{background:var(--surface-soft);color:var(--text)}
.store-catalog-groups>.btn.active{background:var(--surface-soft);border-color:var(--line-strong);color:var(--text);font-weight:500}
.store-catalog-groups>.btn>small{font-family:var(--font-number);font-size:10px;color:var(--muted)}
.store-catalog-results{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 2px 0;scrollbar-gutter:stable}
.store-order-catalog .sku-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.store-order-catalog .sku-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:5px;min-width:0;min-height:50px;padding:7px 8px;border-radius:7px;background:#f0f1ed;color:var(--text);text-align:left;box-shadow:none}
.store-order-catalog .sku-card:hover{background:var(--yellow-soft);box-shadow:inset 0 0 0 1px #e3d291}
.store-order-catalog .sku-card:active{background:#FAEFCC}
.store-order-catalog .sku-card.selected{background:var(--yellow-soft);box-shadow:inset 0 0 0 1px #e3d291}
.store-order-catalog .sku-card>.sku-card-label{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;width:auto}
.store-order-catalog .sku-card .sku-card-label>b{font-size:12px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.store-order-catalog .sku-card .sku-card-label>small{font-size:10px;line-height:1.4;color:var(--muted)}
.store-order-catalog .sku-card>.sku-card-state{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex:none;width:auto;font-size:11px}
.store-order-catalog .sku-card .sku-card-state>small{font-size:10px;line-height:1.4;color:var(--text);font-family:var(--font-number)}
.store-order-catalog .sku-card:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.store-order-products>.store-catalog-hint{flex:none;margin:7px 0 0;font-size:10px;line-height:1.55;color:var(--muted)}
.store-order-editor>.cart-ticket{display:flex;flex-direction:column;height:auto;overflow:hidden}
.store-order-editor .cart-ticket>header{flex:none;padding:11px 12px 9px;border-bottom:1px solid var(--line-strong)}
.store-order-editor .cart-ticket h2{display:flex;align-items:baseline;gap:8px;font-weight:500}
.store-order-editor .cart-ticket h2>span{font-family:var(--font-number);font-size:11px;font-weight:400;color:var(--muted)}
.store-order-editor .cart-ticket>header .hint{font-size:11px;margin-top:3px}
.store-ticket-note{font-size:10px;color:var(--muted);margin-top:6px}
.store-order-editor .cart-ticket>.cart-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:7px 12px 10px}
.store-order-editor .cart-column-head,.store-order-editor .cart-line{display:grid;grid-template-columns:var(--store-cart-columns);gap:var(--store-compact-gap);align-items:center}
.store-order-editor .cart-column-head{position:sticky;top:-7px;z-index:1;padding:6px 0;background:#f0f1ed;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line-strong)}
.store-order-editor .cart-column-head>span:nth-child(2),.store-order-editor .cart-column-head>span:nth-child(3){text-align:center}
.store-order-editor .cart-line{padding:6px 0;min-height:46px}
.store-order-editor .cart-line>div:first-child{grid-column:1;grid-row:1;padding-right:0;min-width:0}
.store-order-editor .cart-line-name>b{display:block;font-size:12px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}
.store-order-editor .cart-line>.field{grid-row:1;gap:0;min-width:0;margin:0}
.store-order-editor .cart-line>.field:nth-of-type(1){grid-column:2}
.store-order-editor .cart-line>.field:nth-of-type(2){grid-column:3}
.store-order-editor .cart-line>.btn{grid-column:4;grid-row:1;justify-self:end;min-height:28px;height:28px;width:28px;padding:5px}
.store-order-editor .cart-line input{min-height:34px;height:34px;font-size:12px;padding:5px 6px;font-variant-numeric:tabular-nums}
.store-order-editor .cart-line-quantity input{text-align:center;padding:5px 2px}
.store-order-editor .cart-line-amount input{text-align:right}
.store-order-editor .cart-line input[readonly]{background:var(--surface-soft);color:var(--muted);border-color:transparent;cursor:default}
.store-order-editor .cart-line input[type=number]{appearance:textfield;-moz-appearance:textfield}
.store-order-editor .cart-line input::-webkit-inner-spin-button,.store-order-editor .cart-line input::-webkit-outer-spin-button{appearance:none;margin:0}
.store-order-editor .cart-line .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes store-editor-slide{from{transform:translateX(25px)}to{transform:translateX(0)}}
.store-order-editor .cart-line.amount-pending input[data-line$=':amount']{border-color:#a48b3c;background:#FFFCF1}
.cart-line-warning{grid-column:1/-1;grid-row:2;font-size:11px;color:var(--bad);line-height:1.6}
.store-order-editor .cart-line-member{display:flex;align-items:center;gap:5px;min-width:0;padding:2px 0 0}
.store-order-editor .cart-line-member>.field{display:block;flex:1;min-width:0;margin:0}
.store-order-editor .cart-line-member input{width:100%;min-width:0;min-height:28px;height:28px;font-size:12px;padding:3px 4px;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.store-order-editor .cart-line-member>small{flex:none;color:var(--muted);font-size:10px;line-height:1.4}
.store-order-editor .cart-line.has-member{padding-top:6px;padding-bottom:6px}
.store-order-editor .cart-line.has-member>.cart-line-warning{grid-row:3}
.store-member-grade>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px}
.store-member-grade output{font-size:14px;font-weight:600}
.store-member-grade small{color:var(--muted);font-size:11px;line-height:1.5}
.store-draft-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.store-draft-notice b{font-size:13px;font-weight:600}
.store-draft-notice p{margin:5px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.store-draft-notice>.btn{flex:none}
@media(max-width:740px){.store-draft-notice{align-items:flex-start;flex-direction:column;gap:10px}.store-draft-notice>.btn{min-height:44px}.drawer-foot .row-actions{flex-wrap:wrap}}
.store-pending-phones{font-size:11px;color:var(--warn);white-space:nowrap}
@media(max-width:740px){.store-order-editor .cart-line.has-member>.cart-line-name{display:contents}.store-order-editor .cart-line.has-member .cart-line-name>b{grid-column:1;grid-row:1}.store-order-editor .cart-line-member{grid-column:1/-1;grid-row:2;padding-top:3px}.store-order-editor .cart-line-member input{min-height:44px;height:44px;font-size:16px}.store-order-editor .cart-line-member>small{font-size:12px}.store-member-grade>div{min-height:44px}.store-member-grade .btn{min-height:44px}}
.store-derived-summary{display:inline-flex;gap:4px;margin-left:7px;color:var(--muted);font-size:11px}
.store-derived-count output{display:block;min-height:37px;padding:8px;background:var(--surface-soft);border-radius:6px;font-family:var(--font-number);font-size:12px}
.store-derived-count small{font-size:10px;line-height:1.5;color:var(--muted)}
.store-join-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;color:var(--muted);font-size:11px}
.store-join-summary output{color:var(--text);font-family:var(--font-number);font-size:12px}
.mobile-cart-back{display:none}
.store-pending-total{font-size:11px;color:var(--warn);white-space:nowrap}

@media(min-width:961px) and (max-width:1180px){
 .store-order-editor{--store-cart-columns:minmax(0,1fr) 42px 78px 26px;grid-template-columns:minmax(0,1fr) 320px;gap:14px}
 .store-order-basics .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .store-order-catalog .category-tabs>.btn{font-size:11px;padding:6px 1px}
}
@media(max-width:960px){
 .drawer.is-order-editor>.drawer-body{overflow:hidden}
 .store-editor-mobile-tabs{display:flex;flex:none;gap:7px;border-bottom:1px solid var(--line);padding-bottom:10px}
 .store-editor-mobile-tabs>.btn{flex:1;min-height:38px;font-size:13px}
 .store-editor-mobile-tabs>.btn span{font-family:var(--font-number);margin-left:4px}
 .store-order-editor{display:flex;flex-direction:column;height:auto;min-height:0;gap:0}
 .store-order-editor[data-catalog-panel=products]>.cart-ticket{display:none}
 .store-order-editor[data-catalog-panel=cart]>.store-order-catalog{display:none}
 .store-order-editor>.store-order-catalog,.store-order-editor>.cart-ticket{flex:1;min-height:0;max-height:none;height:auto;overflow:hidden}
 .store-order-basics{max-height:205px}
 .store-order-basics .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .store-order-catalog .sku-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .store-order-editor .cart-ticket>.cart-body{overflow-y:auto;max-height:none}
 .store-order-editor .cart-ticket .cart-line{max-width:570px}
 .mobile-cart-back{display:inline-flex}
}
@media(max-width:740px){
 .drawer.is-order-editor>.drawer-body{padding:12px 16px;gap:9px}
 .store-editor-mobile-tabs{padding-bottom:8px}
 .store-editor-mobile-tabs>.btn{min-height:44px;font-size:14px}
 .store-order-basics{margin-bottom:10px;padding-bottom:10px;max-height:223px}
 .store-basics-head{gap:8px;margin-bottom:8px}
 .store-basics-head>h3{font-size:13px}
 .store-basics-head>.tabs>.btn{flex:none;min-height:38px;font-size:12px;padding:7px 10px}
 .store-order-basics .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}
 .store-order-basics .field{font-size:12px;gap:3px}
 .store-order-basics .field input,.store-order-basics .field select{min-height:44px;padding:8px;font-size:16px}
 .store-order-basics details{margin-top:6px}
 .store-order-basics details>summary{font-size:12px;min-height:35px;padding:7px 0}
 .store-products-head{margin-bottom:7px}
 .store-products-head>h3{font-size:13px}
 .store-products-head>span{font-size:11px}
 .store-order-catalog .category-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;margin-bottom:8px;padding:0 0 2px;scrollbar-width:thin}
 .store-order-catalog .category-tabs>.btn{flex:none;min-height:44px;padding:7px 10px;font-size:12px}
 .store-catalog-toolbar{margin-bottom:5px}
 .store-catalog-search input{min-height:44px;height:44px;font-size:16px}
 .store-catalog-search>div>.btn{min-height:35px;height:35px;min-width:35px}
 .store-catalog-groups{gap:4px;padding-bottom:6px}
 .store-catalog-groups>.btn{min-height:40px;padding:7px 10px;font-size:13px}
 .store-catalog-groups>.btn>small{font-size:11px}
 .store-catalog-results{min-height:75px;padding-right:4px}
 .store-order-catalog .sku-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .store-order-catalog .sku-card{min-height:54px;padding:7px 8px}
 .store-order-catalog .sku-card .sku-card-label>b{font-size:13px}
 .store-order-catalog .sku-card .sku-card-label>small{font-size:11px}
 .store-order-catalog .sku-card .sku-card-state>small{font-size:11px}
 .store-order-products>.store-catalog-hint{font-size:10px;margin-top:5px}
 .store-order-editor .cart-ticket>header{padding:13px 15px 11px}
 .store-order-editor .cart-ticket h2{font-size:18px}
 .store-order-editor .cart-ticket h2>span{font-size:12px}
 .store-ticket-note{font-size:12px}
 .store-order-editor{--store-cart-columns:minmax(0,1fr) 44px 83px 36px}
 .store-order-editor .cart-column-head{font-size:11px}
 .store-order-editor .cart-line>div:first-child b{font-size:13px}
 .store-order-editor .cart-line input{height:44px;min-height:44px;font-size:16px}
 .store-order-editor .cart-line>.btn{min-height:44px;height:44px;width:36px;padding:8px}
 .store-derived-count output{min-height:44px;font-size:16px}
 .store-order-total{position:relative}
 .store-order-total .store-pending-total{font-size:11px;color:var(--warn);display:block;line-height:1.3}
}
@media(max-height:700px) and (min-width:961px){
 .drawer.is-order-editor>.drawer-head{padding-top:12px;padding-bottom:10px}
 .drawer.is-order-editor>.drawer-body{padding-top:12px;padding-bottom:12px}
 .store-order-basics{margin-bottom:9px;padding-bottom:9px;max-height:185px}
 .store-products-head{margin-bottom:6px}
 .store-order-catalog .category-tabs{margin-bottom:7px}
 .store-order-catalog .sku-card{min-height:46px;padding:6px 8px}
 .drawer.is-order-editor>.drawer-foot{padding-top:10px;padding-bottom:10px;min-height:65px}
}
@media(max-width:420px){
 .store-order-catalog .sku-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-order-editor{--store-cart-columns:minmax(0,1fr) 40px 76px 32px;--store-compact-gap:5px}
 .store-order-editor .cart-line>.btn{width:32px}
}

/* 核对以销售事实为主，实收和确认动作留在独立底栏。 */
.drawer.is-order-confirmation{width:min(850px,calc(100vw - 48px));max-height:90dvh}
.drawer.is-order-confirmation>.drawer-body{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden;padding:16px 23px}
.order-confirm-meta{flex:none;display:flex;justify-content:space-between;align-items:start;gap:16px;font-size:13px}
.order-confirm-meta>div{display:flex;flex-wrap:wrap;gap:4px 12px;min-width:0;overflow-wrap:anywhere}
.order-confirm-meta>div:last-child{justify-content:flex-end}
.order-confirm-meta span{color:var(--muted)}
.order-confirm-meta b{font-weight:500;color:var(--text)}
.order-confirm-lines{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.order-confirm-lines>.table-wrap{max-height:none;overflow:visible}
.order-confirm-lines table{table-layout:fixed;font-size:13px}
.order-confirm-lines th,.order-confirm-lines td{padding:7px 12px}
.order-confirm-lines th:first-child,.order-confirm-lines td:first-child{padding-left:0;white-space:normal;overflow-wrap:anywhere}
.order-confirm-lines th:nth-child(2),.order-confirm-lines td:nth-child(2){width:54px;text-align:center}
.order-confirm-lines th:last-child,.order-confirm-lines td:last-child{width:110px;text-align:right;padding-right:0}
.order-confirm-lines td{height:44px}
.order-confirm-lines .order-confirm-line-detail{margin-top:2px;line-height:1.4;font-size:11px}
.order-confirm-line-detail>span{display:inline-block;margin-left:12px}
.drawer-body>.order-confirm-behavior{flex:none;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.drawer-body>.order-no-sales-note{flex:none;margin:4px 0;padding:16px 0;font-size:14px;color:var(--text)}
.drawer.is-order-confirmation>.drawer-foot{flex:none;justify-content:space-between;align-items:center;gap:12px}
.order-confirm-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.order-confirm-total>span{font-size:12px;color:var(--muted)}
.order-confirm-total>strong{font-family:var(--font-number);font-variant-numeric:tabular-nums;font-weight:500;font-size:22px;color:var(--text)}
.order-allocation{border-top:1px solid var(--line);margin-top:10px;padding-top:9px}
.order-allocation>summary{font-size:13px;min-height:30px;display:list-item;cursor:pointer}
.order-allocation .hint{font-size:12px;line-height:1.5;margin:7px 0}
.order-allocation h4{font-size:13px;font-weight:500;margin:9px 0 4px}
.allocation-person-row{display:grid;grid-template-columns:minmax(110px,1fr) 128px repeat(3,minmax(62px,.58fr)) 40px;gap:8px;align-items:end;padding:9px 0;border-bottom:1px solid var(--line)}
.allocation-person-row:not(:has(input[type=number])){grid-template-columns:minmax(110px,1fr) 128px 40px}
.allocation-person-row .field{margin:0;gap:3px;font-size:12px}
.allocation-person-row .field input,.allocation-person-row .field select{min-height:34px;height:34px;padding:5px 7px;font-size:13px}
.allocation-check{display:flex;gap:6px;align-items:center;min-height:34px;font-size:12px;cursor:pointer}
.allocation-check input{width:16px;height:16px;margin:0;flex:none}
.allocation-person-row>.btn{min-height:34px;padding:5px 0;font-size:12px}
.allocation-add{display:flex;align-items:end;gap:8px;margin:8px 0}
.allocation-add .field{flex:1;margin:0}
.allocation-add .field select{min-height:34px;height:34px;font-size:13px;padding:5px 7px}
.allocation-add>.btn{min-height:34px;height:34px;font-size:12px}
.allocation-totals{font-size:12px;color:var(--muted);margin:8px 0}
.allocation-sales{margin-top:10px}
.allocation-sales>summary{font-size:12px;cursor:pointer;min-height:30px}
.allocation-owner-row{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.allocation-owner-row b{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.allocation-owner-row small{font-size:11px;display:inline-block;margin-left:8px;color:var(--muted)}
.allocation-owner-row .field{margin:0}
.allocation-owner-row select{min-height:34px;height:34px;font-size:13px;padding:5px 7px}
.allocation-error{font-size:12px;line-height:1.5;color:var(--warn);margin:8px 0}
.store-order-basics:has(.order-allocation[open]){max-height:min(340px,42dvh)}

/* 本版经营视图围绕数量与实收，明细在一处逐层展开。 */
.lite-result-band{display:grid;grid-template-columns:minmax(0,1.45fr) repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.lite-stat{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px 19px;background:var(--surface);border-radius:13px}
.lite-stat h2{margin:0;font-size:var(--text-secondary);font-weight:500;line-height:1.5;color:var(--muted)}
.lite-stat-value{display:flex;align-items:baseline;gap:6px;min-height:43px;min-width:0}
.lite-stat-value>strong{font-family:var(--font-number);font-size:30px;line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.7px;overflow-wrap:anywhere}
.lite-stat-unit{font-family:var(--font);font-size:var(--text-help);font-weight:400;color:var(--muted)}
.lite-stat p{margin:auto 0 0;font-size:var(--text-help);line-height:1.6;color:var(--muted)}
.lite-stat-revenue{background:var(--accent);color:var(--surface)}
.lite-stat-revenue h2,.lite-stat-revenue p{color:var(--surface);opacity:.85}
.lite-stat-revenue .lite-stat-value>strong{font-size:34px}
.lite-stat-value>.lite-stat-unknown,.lite-stat-revenue .lite-stat-value>.lite-stat-unknown{font-size:17px;letter-spacing:0}
.lite-stat-secondary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;font-size:var(--text-help);color:var(--muted);line-height:1.5}
.lite-stat-secondary>b{font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}
.lite-stat-card-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lite-stat-card-pair>div>span{display:block;font-size:var(--text-help);color:var(--muted);margin-bottom:4px}
.lite-stat-card-pair>div>div{display:flex;align-items:baseline;gap:4px;min-width:0}
.lite-stat-card-pair strong{font-family:var(--font-number);font-size:24px;font-weight:500;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.lite-stat-card-pair .lite-stat-unknown{font-size:var(--text-secondary)}
.lite-data-grid{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.8fr);gap:18px}
.lite-data-grid>.panel{min-width:0}
.lite-data-grid .panel-head{flex-wrap:wrap;gap:8px}
.lite-data-grid .panel-head .tabs{gap:3px;flex-wrap:wrap}
.lite-data-grid .panel-body{overflow:hidden}
.lite-goal-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.45fr);align-items:center;gap:12px 24px;margin:0 0 18px;padding:14px 19px;background:var(--yellow-soft);border-radius:8px;font-size:var(--text-secondary)}
.lite-goal-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 18px}
.lite-goal-summary>b{font-weight:500}.lite-goal-summary>span{font-size:var(--text-help);color:var(--muted)}
.lite-goal-progress{display:flex;flex-direction:column;gap:6px;font-size:var(--text-help)}
.lite-goal-progress>span{display:flex;justify-content:space-between;gap:8px}.lite-goal-progress strong{font-family:var(--font-number);font-size:var(--text-body);font-variant-numeric:tabular-nums;font-weight:600}
.lite-goal-progress progress{appearance:none;display:block;width:100%;height:8px;border:0;border-radius:4px;overflow:hidden;background:var(--line);color:var(--accent)}
.lite-goal-progress progress::-webkit-progress-bar{background:var(--line);border-radius:4px}.lite-goal-progress progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.lite-goal-progress progress::-moz-progress-bar{background:var(--accent);border-radius:4px}
.lite-goal-empty{padding:0 0 14px;font-size:var(--text-help);color:var(--muted)}
.lite-income-list{display:flex;flex-direction:column;gap:14px}
.lite-income-row>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:var(--text-secondary);line-height:1.5}
.lite-income-row strong{font-family:var(--font-number);font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.lite-income-track{height:5px;margin-top:5px;border-radius:4px;overflow:hidden;background:var(--surface-soft)}
.lite-income-track>span{display:block;height:100%;background:var(--accent);border-radius:inherit}
.lite-income-note{margin:14px 0 0;font-size:var(--text-help)}
.lite-cutoff,.lite-fact-boundary{margin-top:12px}
.report-menu{white-space:nowrap;flex-shrink:0}
@media(max-width:720px){.report-menu .report-label{display:none}.report-menu{min-width:44px;gap:3px}.report-menu .report-count{white-space:nowrap}}
#lite-target-form details{margin:12px 0;padding:0;border:0}
#lite-target-form details>summary{padding:8px 0;min-height:36px;font-weight:500;cursor:pointer}
#lite-target-form .form-grid{margin-top:8px}
.leader-data-mode .table-wrap{max-height:calc(100dvh - 310px)}
@media(max-width:900px){.lite-data-grid{grid-template-columns:1fr}.lite-result-band{grid-template-columns:repeat(2,minmax(0,1fr))}.lite-goal-strip{grid-template-columns:1fr}.lite-goal-progress{max-width:none}}
@media(max-width:700px){.lite-result-band{margin-bottom:14px;gap:10px}.lite-stat{padding:14px 16px;gap:8px}.lite-stat-revenue{grid-column:1/-1}.lite-stat:last-child{grid-column:1/-1}.lite-stat h2{font-size:var(--text-body)}.lite-stat p,.lite-stat-secondary,.lite-stat-unit,.lite-stat-card-pair>div>span{font-size:var(--text-secondary)}.lite-stat:last-child .lite-stat-card-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.lite-goal-strip{font-size:var(--text-secondary);gap:10px;padding:14px 16px}.lite-goal-summary>span,.lite-goal-progress,.lite-goal-empty{font-size:var(--text-secondary)}.lite-data-grid{gap:14px}.lite-data-grid .tabs .btn{min-height:44px}.lite-data-grid .panel-head{align-items:start}.lite-income-row>div:first-child{font-size:var(--text-body)}.lite-income-note{font-size:var(--text-secondary)}.leader-data-mode{padding-bottom:80px}.leader-data-mode .table-wrap{max-height:none}.lite-cutoff{overflow-wrap:anywhere}#lite-target-form input,#lite-target-form select,#lite-target-form textarea{font-size:16px;min-height:44px}#lite-target-form summary{min-height:44px}}
@media(max-width:740px){
 .order-allocation>summary,.allocation-sales>summary{min-height:44px;font-size:14px;padding:8px 0}
 .allocation-person-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .allocation-person-row:not(:has(input[type=number])){grid-template-columns:minmax(0,1fr) 1fr}
 .allocation-person-row .allocation-person{grid-column:span 2}
 .allocation-person-row:not(:has(input[type=number])) .allocation-person{grid-column:span 1}
 .allocation-check{grid-column:span 1;min-height:44px;font-size:13px}
 .allocation-person-row .field{font-size:12px}
 .allocation-person-row .field input,.allocation-person-row .field select,.allocation-add .field select,.allocation-owner-row select{min-height:44px;height:44px;font-size:16px}
 .allocation-person-row>.btn,.allocation-add>.btn{min-height:44px;height:44px;font-size:13px}
 .allocation-owner-row{grid-template-columns:minmax(0,1fr) 130px}
 .allocation-owner-row b{font-size:13px}
 .store-order-basics:has(.order-allocation[open]){max-height:min(390px,55dvh)}
 .drawer.is-order-confirmation{width:calc(100vw - 24px)}
 .drawer.is-order-confirmation>.drawer-body{padding:12px 16px}
 .order-confirm-meta{flex-direction:column;gap:6px;font-size:14px}
 .order-confirm-meta>div:last-child{justify-content:flex-start}
 .order-confirm-lines table{font-size:14px}
 .order-confirm-lines th,.order-confirm-lines td{padding:8px}
 .order-confirm-lines th:nth-child(2),.order-confirm-lines td:nth-child(2){width:40px}
 .order-confirm-lines th:last-child,.order-confirm-lines td:last-child{width:88px}
 .order-confirm-line-detail>span{display:block;margin-left:0}
 .drawer.is-order-confirmation>.drawer-foot{flex-direction:column;align-items:stretch;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
 .order-confirm-total{justify-content:space-between}
 .drawer.is-order-confirmation .row-actions{display:flex;gap:8px}
 .drawer.is-order-confirmation .row-actions>.btn{flex:1;min-height:44px}
}

/* 常见笔记本高度仍给项目保留三行，核对按钮固定可达。 */
@media(min-width:961px) and (max-height:800px){
 .drawer.is-order-editor{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .drawer.is-order-editor>.drawer-head{padding:12px 23px 10px}
 .drawer.is-order-editor>.drawer-head h2{font-size:21px}
 .drawer.is-order-editor>.drawer-body{padding:10px 23px;gap:8px}
 .drawer.is-order-editor>.drawer-body>.statusbar{padding:5px 10px;gap:8px;font-size:11px;line-height:1.45}
 .drawer.is-order-editor>.drawer-body>.statusbar .btn{min-height:28px;height:28px;padding:4px 8px;font-size:11px}
 .store-order-basics{margin-bottom:8px;padding-bottom:8px}
 .store-basics-head{margin-bottom:6px}
 .store-order-basics details{margin-top:5px}
 .store-order-basics details>summary{min-height:22px;padding:2px 0}
 .store-products-head{margin-bottom:6px}
 .store-order-catalog .category-tabs{margin-bottom:6px}
 .store-catalog-toolbar{margin-bottom:6px}
 .store-catalog-search input{height:32px;min-height:32px}
 .store-catalog-groups{padding-bottom:5px}
 .store-catalog-groups>.btn{min-height:28px;padding:4px 8px}
 .store-catalog-results{min-height:150px}
 .store-order-catalog .sku-card{min-height:46px;padding:6px 8px}
 .store-order-products>.store-catalog-hint{margin-top:4px}
 .drawer.is-order-editor>.drawer-foot{padding:10px 23px;min-height:60px}
}

/* 门店工作先看今日实收，再核对六类；数量、人员和最近单据作为相邻上下文。 */
.store-page-head{margin-bottom:18px}
.store-day-band{grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:24px;align-items:center;margin-bottom:0;padding-bottom:0;border:0}
.store-day-primary{min-width:0;padding:16px 19px;background:var(--accent);border-radius:13px}
.store-day-primary>.metric{border:0;padding:0}
.store-day-primary .metric-label,.store-day-primary .metric-note{color:var(--surface);font-size:var(--text-help)}
.store-day-primary .metric-value{margin:4px 0 6px;color:var(--surface);font-size:40px;font-weight:500;letter-spacing:-.8px;white-space:normal;overflow-wrap:anywhere}
.store-day-primary .metric-note{min-height:0;line-height:1.6}
.store-day-secondary{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1fr);gap:18px;min-width:0}
.store-day-secondary>.metric{margin:0;padding:0 18px 0 0;border-right:1px solid var(--line-strong)}
.store-day-secondary>.metric:last-child{padding-right:0;border-right:0}
.store-day-secondary .metric-label{font-size:var(--text-secondary)}
.store-day-secondary .metric-value{font-size:26px;font-weight:500;letter-spacing:-.5px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.store-day-secondary .metric-note{font-size:var(--text-help);line-height:1.6;min-height:0}
.store-personnel{gap:12px;margin:10px 0 14px;padding:0 0 10px;border-bottom:1px solid var(--line-strong)}
.store-personnel>.hint{margin:0;flex:none}
.store-person-list{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;min-width:0}
.store-person-chip{min-height:24px;padding:0;gap:6px;border:0;border-radius:0;background:transparent;white-space:normal}
.store-person-chip b{font-size:var(--text-secondary);overflow-wrap:anywhere}
.store-person-chip small{font-size:var(--text-help)}
.store-home-grid{grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:18px;align-items:start}
.store-home-grid>.panel{min-width:0}
.store-home-grid>.panel>.panel-head{padding:14px 19px 10px;gap:8px;flex-wrap:wrap}
.store-home-grid>.panel>.panel-head h2{font-size:17px}
.store-ledger{min-height:0;overflow:hidden}
.store-ledger>.panel-body>.table-wrap{overflow:auto;max-width:100%;scrollbar-gutter:auto}
.store-ledger table{min-width:440px}
.store-ledger th,.store-ledger td{padding-top:8px;padding-bottom:8px}
.store-ledger td:last-child{font-size:var(--text-body);font-weight:500;font-variant-numeric:tabular-nums}
.store-day-total{padding-top:12px;padding-bottom:10px;font-size:var(--text-secondary)}
.store-day-total strong{font-size:24px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.store-category-note{font-size:var(--text-help);line-height:1.6;padding-bottom:12px!important}
.store-close-status{padding:14px 19px;gap:18px}
.store-close-status p{margin:4px 0 0}
.store-close-status>.btn{min-height:40px}
.store-recent>.panel-body{padding:0 19px 14px}
.store-recent-list{min-width:0}
.store-recent-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.store-recent-row:last-child{border-bottom:0}
.store-recent-order{display:flex;flex-direction:column;gap:4px;min-width:0}
.store-recent-order>b{font-family:var(--font-number);font-size:var(--text-secondary);font-weight:500;overflow-wrap:anywhere}
.store-recent-order>small{font-size:var(--text-help);color:var(--muted);overflow-wrap:anywhere;line-height:1.6}
.store-recent-receipt{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.store-recent-receipt>strong{font-family:var(--font-number);font-size:var(--text-body);font-weight:500;font-variant-numeric:tabular-nums}
.store-recent-receipt>.btn{min-height:32px;padding:5px 8px}
.store-recent-note{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--line);font-size:var(--text-help);line-height:1.6}
.store-entry-options{gap:18px;margin:18px 0 24px}
.store-entry-option{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px 14px;align-items:start;min-height:0;padding:19px 23px}
.store-entry-copy{min-width:0}
.store-entry-copy h2{margin:0 0 5px;font-size:20px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.store-entry-copy p{margin:0;font-size:var(--text-secondary);line-height:1.65}
.store-entry-option>strong:last-child{grid-column:2;margin:4px 0 0;font-size:var(--text-secondary)}
.store-content.page-entry>.page-head{margin-bottom:18px}
.store-entry-recent td{padding-top:12px;padding-bottom:12px}
.store-entry-recent .table-wrap{max-height:none}
.store-draft-notice{margin-bottom:14px}

/* 同窗录单的分区有明确标题；项目保持五列，数量和本行实收在右侧直接核对。 */
.store-basics-head>h3,.store-products-head>h3{font-size:16px;line-height:1.5;font-weight:500}
.store-order-basics .field{font-size:var(--text-help)}
.store-order-basics .field input,.store-order-basics .field select{font-size:var(--text-secondary)}
.store-products-head>span{font-size:var(--text-help)}
.store-order-editor .cart-ticket h2{font-size:17px;line-height:1.5}
.store-order-editor .cart-ticket h2>span,.store-ticket-note,.store-order-editor .cart-ticket>header .hint{font-size:var(--text-help)}
.store-order-editor .cart-column-head{font-size:var(--text-help)}
.store-order-editor .cart-line-name>b{font-size:var(--text-secondary)}
.store-order-products>.store-catalog-hint{font-size:var(--text-help)}
.store-order-editor .cart-ticket>.cart-body>.btn.full{margin-top:8px}

/* 共享订单查询只改变工作面节奏；经营管理的订单页面继续使用原布局。 */
.store-content.page-orders>.page-head{margin-bottom:18px}
.store-content.page-orders>.page-head>div:first-child{min-width:0}
.store-content.page-orders>.page-head p{max-width:75ch;font-size:var(--text-secondary);line-height:1.65}
.store-content.page-orders>.filters{gap:10px 14px;padding-bottom:14px;margin-bottom:18px}
.store-content.page-orders>.filters>.tabs{padding:3px}
.store-content.page-orders>.filters>.tabs .btn{min-height:36px;font-size:var(--text-secondary);padding:6px 12px}
.store-content.page-orders .query-range-scope{font-size:var(--text-help)}
.store-content.page-orders>.filters>.filter-refinements{flex:1 1 100%}
.store-content.page-orders .filter-fields{gap:10px 14px}
.store-content.page-orders .filter-fields>.field{flex:1 1 145px;flex-direction:column;align-items:stretch;gap:4px;min-width:0;font-size:var(--text-help)}
.store-content.page-orders .filter-fields>.field.search{flex:1.4 1 190px}
.store-content.page-orders .filter-fields>.field>input,.store-content.page-orders .filter-fields>.field>select{width:100%;min-width:0;font-size:var(--text-secondary)}
.store-content.page-orders .filter-fields>.btn{align-self:end}
.store-content.page-orders>.panel{margin-bottom:0;overflow:hidden}
.store-content.page-orders>.panel>.panel-head{padding:16px 19px 12px}
.store-content.page-orders>.panel>.panel-body{padding:0;min-width:0}
.store-content.page-orders>.panel .table-wrap{max-height:calc(100dvh - 405px);min-height:200px;overflow:auto}
.store-content.page-orders>.panel table{min-width:1000px;table-layout:fixed}
.store-content.page-orders>.panel th,.store-content.page-orders>.panel td{padding:10px 14px;vertical-align:middle}
.store-content.page-orders>.panel th:first-child{width:145px}
.store-content.page-orders>.panel th:nth-child(2){width:120px}
.store-content.page-orders>.panel th:nth-child(3){width:150px}
.store-content.page-orders>.panel th:nth-child(4){width:auto}
.store-content.page-orders>.panel td:nth-child(4){white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.store-content.page-orders>.panel th:nth-child(5){width:130px;text-align:right}
.store-content.page-orders>.panel td:nth-child(5){text-align:right;font-family:var(--font-number);font-weight:500;font-variant-numeric:tabular-nums}
.store-content.page-orders>.panel th:nth-child(6){width:90px}
.store-content.page-orders>.panel th:last-child{width:80px}
.store-content.page-orders>.panel td:last-child>.btn{min-height:36px}
.store-content.page-orders .pagination{font-size:var(--text-help);padding:12px 19px}

@media(max-width:1180px){
 .store-day-band{grid-template-columns:minmax(220px,.95fr) minmax(0,2fr);gap:18px}
 .store-day-secondary{gap:12px}
 .store-day-secondary>.metric{padding-right:12px}
 .store-day-secondary .metric-value{font-size:24px}
 .store-home-grid{grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:15px}
}
@media(max-width:960px){
 .store-day-band{grid-template-columns:minmax(0,1fr);gap:14px}
 .store-day-primary{padding:16px 19px}
 .store-day-primary .metric-value{font-size:36px}
 .store-day-secondary{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .store-day-secondary>.metric{padding-right:18px}
 .store-home-grid{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:14px}
 .store-content.page-orders .filter-refinements>summary{justify-content:flex-start}
 .store-content.page-orders .filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-content.page-orders .filter-fields>.field{font-size:var(--text-secondary)}
 .store-content.page-orders .filter-fields>.field>input,.store-content.page-orders .filter-fields>.field>select{font-size:16px}
 .store-content.page-orders>.panel .table-wrap{max-height:calc(100dvh - 340px)}
}
@media(max-width:740px){
 .store-page-head{margin-bottom:16px}
 .store-page-head>.row-actions>.btn{flex:1;min-width:0;font-size:13px}
 .store-day-primary{padding:16px;border-radius:12px}
 .store-day-primary .metric-label,.store-day-primary .metric-note{font-size:13px}
 .store-day-primary .metric-value{font-size:36px;margin:4px 0}
 .store-day-secondary{gap:10px;grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1fr)}
 .store-day-secondary>.metric{padding-right:10px}
 .store-day-secondary .metric-label{font-size:13px}
 .store-day-secondary .metric-value{font-size:21px;line-height:1.5}
 .store-day-secondary .metric-note{font-size:12px}
 .store-personnel{gap:6px;margin:12px 0 16px;padding-bottom:12px}
 .store-personnel>.hint{flex:1 0 100%;font-size:12px}
 .store-person-list{gap:4px 14px}
 .store-person-chip{min-height:24px;padding:0}
 .store-person-chip b{font-size:13px}
 .store-home-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .store-home-grid>.panel>.panel-head{padding:15px 16px 12px}
 .store-home-grid>.panel>.panel-head h2{font-size:18px}
 .store-ledger>.panel-body>.table-wrap{overflow:auto}
 .store-ledger table{min-width:0;width:100%;table-layout:fixed}
 .store-ledger th:first-child{width:35%}
 .store-ledger th:nth-child(2),.store-ledger th:nth-child(3){width:19%}
 .store-ledger th:last-child{width:27%}
 .store-ledger th,.store-ledger td{padding-top:11px;padding-bottom:11px;font-size:13px}
 .store-ledger th,.store-ledger td{padding-left:8px;padding-right:8px;white-space:normal;overflow-wrap:anywhere}
 .store-ledger th{font-size:12px}
 .store-day-total{padding:12px 16px 10px}
 .store-category-note{font-size:12px}
 .store-close-status{padding:14px 16px;gap:12px;flex-wrap:wrap}
 .store-close-status>div{flex:1 1 170px}
 .store-close-status>.btn{min-height:44px;max-width:100%}
 .store-recent>.panel-body{padding:0 16px 14px}
 .store-recent-receipt>.btn,.store-recent>.panel-head>.btn{min-height:44px}
 .store-entry-options{grid-template-columns:minmax(0,1fr);gap:12px;margin:16px 0 18px}
 .store-entry-option{padding:16px;gap:6px 12px;min-height:0}
 .store-entry-copy h2{font-size:19px}
 .store-entry-copy p{font-size:14px}
 .store-entry-option>strong:last-child{font-size:14px}
 .store-entry-recent .table-wrap{overflow:auto}
 .store-entry-recent table{min-width:420px}
 .store-basics-head>h3,.store-products-head>h3{font-size:15px}
 .store-basics-head>.tabs>.btn,.store-order-basics details>summary,.store-catalog-groups>.btn{min-height:44px}
 .store-basics-head>.tabs>.btn{font-size:13px;padding:8px 10px}
 .store-order-basics .field input,.store-order-basics .field select{font-size:16px}
 .store-order-products>.store-catalog-hint{font-size:12px}
 .store-catalog-search>div>.btn{min-height:44px;height:44px;min-width:44px}
 .store-order-editor{--store-cart-columns:minmax(0,1fr) 44px 86px 44px;--store-compact-gap:6px}
 .store-order-editor .cart-line>.btn{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px}
 .store-order-editor .cart-column-head{font-size:12px}
 .drawer.is-order-editor>.drawer-foot{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
 .drawer.is-order-editor>.drawer-foot>.store-order-total{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;width:100%;font-size:12px}
 .drawer.is-order-editor>.drawer-foot>.store-order-total strong{font-size:25px;line-height:1.3}
 .drawer.is-order-editor>.drawer-foot>.row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;white-space:normal}
 .drawer.is-order-editor>.drawer-foot>.row-actions:has(>.btn.text){grid-template-columns:repeat(3,minmax(0,1fr))}
 .drawer.is-order-editor>.drawer-foot>.row-actions>.btn,.drawer.is-order-editor>.drawer-foot>.row-actions>.btn.secondary{width:100%;max-width:none;min-width:0;min-height:44px;height:auto;padding:8px 6px;white-space:normal;font-size:13px;line-height:1.5}
 .store-content.page-orders>.page-head{margin-bottom:16px}
 .store-content.page-orders>.filters{margin-bottom:16px;padding-bottom:14px}
 .store-content.page-orders>.filters>.tabs .btn{min-height:44px;flex:1;padding:7px 6px;font-size:12px}
 .store-content.page-orders>.filters>.query-date-field{flex:1 1 calc(50% - 14px)}
 .store-content.page-orders>.filters>.query-date-field input{font-size:16px;min-height:44px}
 .store-content.page-orders .filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .store-content.page-orders .filter-fields>.field.search{grid-column:1/-1}
 .store-content.page-orders .filter-fields>.field>input,.store-content.page-orders .filter-fields>.field>select{min-height:44px;height:44px;font-size:16px}
 .store-content.page-orders>.panel .table-wrap{max-height:60dvh;min-height:200px}
 .store-content.page-orders>.panel>.panel-head{padding:15px 16px 12px}
 .store-content.page-orders>.panel td:last-child>.btn,.store-content.page-orders .pagination .btn{min-height:44px}
 .store-content.page-orders .pagination{padding:12px 16px;flex-wrap:wrap}
}
@media print{
 .store-day-primary{background:transparent;color:var(--text);padding:0}
 .store-day-primary .metric-label,.store-day-primary .metric-value,.store-day-primary .metric-note{color:var(--text)}
 .store-day-band{display:block}
 .store-day-secondary{margin-top:12px}
 .store-ledger table,.store-content.page-orders>.panel table{min-width:0}
}

/* 默认会员事实完整可见；长内容只在项目/清单自己的区域内滚动。 */
@media(min-width:961px){
 .store-order-basics{max-height:none;overflow:visible}
 .store-order-basics:has(.order-allocation[open]){max-height:280px;overflow:auto}
 .store-member-behavior{margin-top:6px}
 .store-member-behavior h4{line-height:1.4;margin-bottom:4px}
 .store-member-behavior .store-derived-count output{min-height:37px;height:37px}
 .is-text-order-editor .store-order-catalog{overflow-y:auto;overscroll-behavior:contain}
 .is-text-order-editor .store-order-products{flex:none;min-height:220px}
 .is-text-order-editor .store-catalog-results{min-height:140px}
}
@media(max-width:960px){
 .store-order-editor>.store-order-catalog{overflow-y:auto;overscroll-behavior:contain}
 .store-order-basics{max-height:none;overflow:visible}
 .store-order-basics .store-member-behavior-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-order-products{flex:none;min-height:240px}
 .store-catalog-results{min-height:150px}
}

.single-config-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.single-config-form .field:has(textarea){grid-column:1/-1}.day-entered{display:flex;align-items:center;gap:16px;padding:16px 0}.day-entered strong{font-size:24px}.day-entered small{margin-left:auto;color:var(--muted)}#day-check-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}#day-check-form .field span{display:flex;justify-content:space-between;gap:8px}#day-check-form small{font-weight:400;color:var(--muted)}#day-check-form [aria-invalid=true]{border-color:var(--bad);background:var(--bad-soft)}#day-check-error{color:var(--bad);min-height:1.5em}.store-day-secondary{grid-template-columns:repeat(4,minmax(0,1fr))}.account-editor-form>section+section{margin-top:20px}@media(max-width:600px){.single-config-form{grid-template-columns:1fr}#day-check-form{gap:12px}#day-check-form .field span{flex-wrap:wrap;gap:2px}.store-day-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.day-entered{flex-wrap:wrap}}

@media(max-width:600px){.store-top-actions>.btn:not(.icon-only){width:auto;min-width:44px;white-space:nowrap}.store-top-actions .role-field{max-width:86px}.store-topbar .brand small{display:none}}
/* 录单与当日核对合并：收入为辅，完整单据为主。 */
.store-unified-workbench .store-page-head{margin-bottom:8px;align-items:center}
.store-unified-workbench .store-page-head>div:first-child{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.store-unified-workbench .store-date{margin:0;font-size:13px}
.store-unified-workbench .page-title{font-size:24px}
.store-unified-workbench .store-day-band{grid-template-columns:205px minmax(0,1fr);gap:20px}
.store-unified-workbench .store-day-primary{padding:8px 14px}
.store-unified-workbench .store-day-primary>.metric{display:flex;align-items:center;justify-content:space-between;gap:10px}
.store-unified-workbench .store-day-primary .metric-value{font-size:28px;line-height:1.2;margin:0}
.store-unified-workbench .store-day-secondary{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.store-unified-workbench .store-day-secondary .metric-value{font-size:21px;line-height:1.3}
.store-unified-workbench .metric-note:empty{display:none}
.store-unified-workbench .store-entry-options{gap:12px;margin:12px 0}
.store-unified-workbench .store-entry-option{grid-template-columns:26px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px 16px;min-height:48px}
.store-unified-workbench .store-entry-option>strong:last-child{grid-column:auto;margin:0}
.store-unified-workbench .store-entry-copy h2{font-size:16px;line-height:1.4;margin:0}
.store-unified-workbench .store-entry-copy p{display:none}
.store-unified-workbench .store-personnel{margin:4px 0 8px;padding-bottom:2px;gap:14px}
.store-unified-workbench .store-person-chip{min-height:20px}
.store-unified-workbench .store-home-grid{grid-template-columns:minmax(255px,.85fr) minmax(0,2.15fr);gap:14px;align-items:start}
.store-unified-workbench .store-home-grid>.panel>.panel-head{padding:12px 16px 8px;min-height:44px}
.store-unified-workbench .store-home-grid>.panel>.panel-head h2{font-size:16px}
.store-unified-workbench .store-home-grid>.panel>.panel-body{padding:0}
.store-unified-workbench .store-home-grid th,.store-unified-workbench .store-home-grid td{padding:2px 10px;white-space:nowrap;font-size:13px;line-height:1.5;vertical-align:middle}
.store-unified-workbench .store-entry-recent table{min-width:560px;table-layout:fixed}
.store-unified-workbench .store-entry-recent th:first-child{width:31%}
.store-unified-workbench .store-entry-recent th:nth-child(2){width:20%}
.store-unified-workbench .store-entry-recent th:nth-child(3){width:17%}
.store-unified-workbench .store-entry-recent th:nth-child(4){width:13%}
.store-unified-workbench .store-entry-recent th:nth-child(5){width:10%}
.store-unified-workbench .store-entry-recent th:last-child{width:9%}
.store-unified-workbench .store-entry-recent td:nth-child(n+3):not(:last-child),.store-unified-workbench .store-entry-recent th:nth-child(n+3):not(:last-child){text-align:right;font-variant-numeric:tabular-nums}
.store-unified-workbench .store-entry-type{font-size:11px;color:var(--muted);margin-left:6px}
.store-unified-workbench .store-entry-staff{display:block;overflow:hidden;text-overflow:ellipsis}
.store-unified-workbench .store-entry-recent td:last-child .btn{min-height:24px;padding:2px 0;font-size:12px}
.store-unified-workbench .store-entry-recent .table-wrap{overflow:auto;max-height:460px}
.store-unified-workbench .store-ledger table{min-width:0;width:100%;table-layout:fixed}
.store-unified-workbench .store-ledger th:first-child{width:41%}
.store-unified-workbench .store-ledger th:nth-child(2){width:22%;text-align:center}
.store-unified-workbench .store-ledger td:nth-child(2){text-align:center}
.store-unified-workbench .store-ledger th:last-child{width:37%}
.store-unified-workbench .store-ledger th,.store-unified-workbench .store-ledger td{padding:2px 10px;line-height:1.4}
.store-unified-workbench .store-backfill-strip{padding:6px 12px;margin:6px 0 10px;min-height:0}
.store-unified-workbench .store-backfill-strip b{font-size:13px}
.store-unified-workbench .store-backfill-strip span{font-size:12px}
.store-unified-workbench .store-backfill-strip>div:first-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.store-unified-workbench .store-ledger th:last-child,.store-unified-workbench .store-ledger td:last-child{text-align:right}
.store-unified-workbench .store-category-note{padding:0 12px;margin:4px 0 8px;font-size:12px;line-height:1.4}
.store-unified-workbench .store-close-status{padding:12px 14px;gap:8px;font-size:13px}
.store-unified-workbench .store-draft-notice{padding:8px 12px;gap:12px;flex-wrap:wrap;font-size:13px}
@media(min-width:1001px){
 .store-content.page-workbench{display:flex;flex-direction:column;overflow:hidden}
 .store-content.page-workbench>.workspace-foot{display:none}
 .store-unified-workbench{display:flex;flex-direction:column;flex:1;min-height:0}
 .store-unified-workbench .store-home-grid{flex:1;min-height:0}
 .store-unified-workbench .store-home-grid>.panel{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
 .store-unified-workbench .store-home-grid>.panel>.panel-body{display:flex;flex-direction:column;min-height:0;flex:1}
 .store-unified-workbench .store-home-grid .table-wrap{min-height:0;overflow:auto}
 .store-unified-workbench .store-entry-recent .table-wrap{flex:1;max-height:none}
 .store-unified-workbench .store-ledger .table-wrap{flex:1}
 .store-unified-workbench .store-close-status{flex:none;padding:8px 12px}
}
@media(max-width:1000px){
 .store-unified-workbench .store-home-grid{grid-template-columns:minmax(0,1fr)}
 .store-unified-workbench .store-entry-recent{grid-row:1}
 .store-unified-workbench .store-day-band{grid-template-columns:170px minmax(0,1fr)}
}
@media(max-width:600px){
 .store-unified-workbench .store-day-band{grid-template-columns:minmax(0,1fr);gap:12px}
 .store-unified-workbench .store-day-secondary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .store-unified-workbench .store-entry-options{grid-template-columns:1fr 1fr;gap:8px}
 .store-unified-workbench .store-entry-option{grid-template-columns:minmax(0,1fr) 16px;min-height:68px;padding:10px;gap:5px}
 .store-unified-workbench .store-entry-symbol,.store-unified-workbench .store-entry-copy p{display:none}
 .store-unified-workbench .store-entry-copy h2{font-size:14px}
 .store-unified-workbench .store-entry-recent td:last-child .btn{min-height:44px;padding:6px}
 .store-unified-workbench .store-entry-recent .table-wrap{max-height:400px}
}
