/* 最大化业务页面：稳定的企业级胶囊导航与紧凑大表格。 */
:root{--nav-active:#2563eb;--nav-hover:#edf4ff;--nav-text:#25324a}
.app{grid-template-columns:208px minmax(0,1fr)}
.app>aside{width:208px;background:linear-gradient(180deg,#fbfdff 0%,#eef3fa 100%);border-right:1px solid #cbd7e7}
#nav{display:flex;flex-direction:column;padding:12px 10px;gap:11px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#9aa7b6 transparent}
#nav::-webkit-scrollbar{width:6px}#nav::-webkit-scrollbar-track{background:transparent}#nav::-webkit-scrollbar-thumb{border-radius:6px;background:#9aa7b6}
#nav .nav-section{display:none}
:is(#nav,#pos-entry-footer) .nav-btn{position:relative;flex-shrink:0;height:50px;margin:0;padding:0 13px;border:1px solid #e4e9f1;border-radius:8px;background:#fff;box-shadow:0 2px 5px rgba(30,45,70,.08);color:var(--nav-text);font-size:16px;font-weight:600;transition:background .15s,border-color .15s,color .15s}
:is(#nav,#pos-entry-footer) .nav-btn:hover{background:var(--nav-hover);border-color:#cbdcf8}
#nav .nav-btn.active,#nav .nav-btn.group-active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 3px 8px rgba(37,99,235,.18);transform:none}
#nav .nav-btn.active:before{display:none}
:is(#nav,#pos-entry-footer) .nav-icon{display:grid;place-items:center;width:36px;height:36px;margin-right:10px;border-radius:10px;background:#f3f7ff;color:#1d5fd1;flex:0 0 36px}
:is(#nav,#pos-entry-footer) .nav-icon svg{width:29px;height:29px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#nav .nav-btn.active .nav-icon,#nav .nav-btn.group-active .nav-icon{background:#fff;border:1px solid rgba(255,255,255,.9);box-shadow:0 2px 5px rgba(15,45,105,.2);color:#1d5fd1}
#nav .mini-nav-group{margin:0;flex-shrink:0}#nav .mini-nav-toggle{display:flex;align-items:center;padding-right:7px}.mini-nav-toggle .nav-text{min-width:0;white-space:nowrap}.mini-nav-toggle.group-active{color:#1d5fd1;background:#eaf2ff;border-color:#cbdcf8}.mini-nav-arrow{flex:0 0 10px;margin-left:auto;font-size:20px;text-align:center;transition:transform .15s}.mini-nav-group.open .mini-nav-arrow{transform:rotate(90deg)}.mini-nav-children{display:none;padding:4px 8px 5px 32px}.mini-nav-group.open .mini-nav-children{display:grid;gap:3px}.mini-nav-child{height:34px;padding:0 12px;border:0;border-left:2px solid #d7e2f1;border-radius:0 8px 8px 0;background:transparent;text-align:left;color:#526077}.mini-nav-child:hover{background:#edf4ff;color:#1d5fd1}.mini-nav-child.active{border-left-color:#2563eb;background:#dfeaff;color:#1d5fd1;font-weight:700}
.mall-category-columns{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:12px;height:calc(100vh - 165px)}.mall-category-level{min-width:0;background:#fff;border:1px solid #d7e0ed;overflow:auto}.mall-category-level h3{position:sticky;top:0;z-index:1;margin:0;padding:13px 16px;background:#f4f7fb;border-bottom:1px solid #d7e0ed}.mall-category-item{width:100%;display:flex;align-items:center;gap:8px;border:0;border-bottom:1px solid #edf0f5;border-radius:0;text-align:left}.mall-category-item>span{display:grid;grid-template-columns:34px 1fr;align-items:center;flex:1}.mall-category-item img,.mall-category-item i{grid-row:1/3;width:28px;height:28px;margin-right:8px;border-radius:4px}.mall-category-item i{display:grid;place-items:center;background:#eaf2ff;color:#2563eb;font-style:normal}.mall-category-item small{color:#8793a5}.mall-category-item em{font-style:normal;color:#2563eb}.mall-category-item.active{background:#eaf2ff;box-shadow:inset 3px 0 #2563eb}
.app>main{min-width:0}.app>main>#content{padding:18px 22px}.page-loading{min-height:20px;color:#667085;background:transparent;border:0}

.compact-search{justify-content:flex-start}.compact-search input{width:320px;max-width:32vw;flex:none}.compact-search .grow{flex:1}.list-date-filters{display:flex;align-items:center;gap:6px;margin-left:auto;white-space:nowrap}.list-date-presets{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%}.list-date-filters label{display:flex;align-items:center;gap:5px;margin:0}.list-date-filters em{font-style:normal}.list-date-filters button{height:30px;padding:4px 8px;font-size:13px;line-height:20px}.list-date-filters button.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.list-date-filters input,.compact-search .list-date-filters input{width:122px;max-width:none;height:30px;padding:4px 7px;flex:none;font-size:13px;line-height:20px}.list-date-filters input[type=month],.compact-search .list-date-filters input[type=month]{width:112px}
.rights-page{display:grid;grid-template-rows:auto auto minmax(220px,1fr) minmax(220px,1fr);gap:12px;height:calc(100vh - 125px)}
.rights-tabs{display:flex;gap:8px}.rights-tabs button{min-width:132px}.rights-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}
.rights-section{min-height:0;background:#fff;border:1px solid #d7e0ed;display:flex;flex-direction:column}.rights-section .table-wrap{flex:1;min-height:0}.rights-section table{table-layout:auto}
.compact-form{width:min(520px,calc(100vw - 48px));margin:auto}.compact-form>label{display:grid;grid-template-columns:112px 1fr;align-items:center;margin:12px 0}.compact-form>label>span{margin:0;text-align:right;padding-right:12px}

.inventory-page{height:calc(100vh - 150px);min-height:0}.inventory-layout{height:calc(100% - 56px);grid-template-columns:190px minmax(0,1fr)}
.inventory-category{min-height:0}.inventory-main{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(360px,1fr) 230px;overflow:hidden;box-sizing:border-box;border-right:1px solid #b8c2cf;box-shadow:inset -1px 0 #b8c2cf}
.inventory-products,.inventory-detail{min-width:0;min-height:0;display:flex;flex-direction:column}.inventory-products>.table-wrap,.inventory-detail>.table-wrap{flex:1;min-width:0;min-height:0;overflow:auto}.inventory-products>.table-wrap{width:100%;max-width:100%;overflow-x:hidden}
.inventory-products table{width:100%;min-width:0;table-layout:fixed}.inventory-products th:last-child,.inventory-products td:last-child{border-right:1px solid #b8c2cf}.inventory-detail table{min-width:1180px;table-layout:fixed}.inventory-products th,.inventory-products td,.inventory-detail th,.inventory-detail td{white-space:nowrap;text-align:center;vertical-align:middle}
.inventory-products>.table-wrap th,.inventory-products>.table-wrap td,.inventory-products>.table-wrap button{font-family:inherit;font-size:13px;line-height:20px}.inventory-products th.inventory-text-left,.inventory-products td.inventory-text-left{text-align:left}.list-text-button,.inventory-text-button{height:24px;min-width:0;padding:1px 8px;color:#2563eb;background:#fff;border:1px solid #bfdbfe;font-weight:400;white-space:nowrap}.list-text-button:hover,.inventory-text-button:hover{background:#eff6ff}.list-text-dialog textarea{min-width:420px;max-width:720px;min-height:120px;background:#fff;color:#0f172a;resize:none}.inventory-text-detail{min-width:420px;max-width:720px;min-height:100px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;line-height:1.75}
.inventory-products tbody tr:not(.selected)>td{background:#fff}.inventory-products tbody tr:not(.selected):hover>td{background:#f4f8ff}.inventory-products tbody tr.selected>td{background:#dbeafe}
.inventory-products th[data-inventory-field="sku"],.inventory-products td[data-inventory-field="sku"]{width:78px;min-width:78px;max-width:78px;padding-left:5px;padding-right:5px}
.inventory-products td[data-inventory-field="name"],.inventory-products td[data-inventory-field="spec"],.inventory-products td[data-inventory-field="barcode"],.inventory-products td[data-inventory-field="shelf"]{overflow:hidden}.inventory-quick-edit{display:block;width:100%;min-width:0;height:20px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:400;text-align:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default}.inventory-quick-edit.is-overflowing{cursor:pointer}.inventory-quick-edit.is-overflowing:hover,.inventory-quick-edit.is-overflowing:focus{background:#eff6ff;color:#1d5fd1}.inventory-compatible-text>.inventory-quick-edit{text-align:left;cursor:pointer}.inventory-compatible-text>.inventory-quick-edit:hover,.inventory-compatible-text>.inventory-quick-edit:focus{background:#eff6ff;color:#1d5fd1}.inventory-quick-edit-dialog{width:620px;max-width:calc(100vw - 64px)}.inventory-quick-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.inventory-quick-meta span{min-width:0;padding:8px 10px;border:1px solid #d7e0ed;background:#f8fafc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-quick-meta b{margin-right:8px;font-weight:400;color:#64748b}.inventory-quick-edit-dialog textarea{width:100%;min-height:120px;background:#fff;color:#0f172a;resize:vertical}.inventory-quick-edit-dialog>.actions{justify-content:flex-end;margin-top:12px;padding-top:12px;border-top:1px solid #d7e0ed}
.inventory-quick-edit:not(.is-overflowing):hover,.inventory-quick-edit:not(.is-overflowing):focus,.inventory-quick-edit:not(.is-overflowing):active{color:inherit!important;background:transparent!important;outline:0!important;box-shadow:none!important;cursor:default!important}.inventory-products td[data-inventory-field="compatible_models"]{overflow:hidden}.inventory-compatible-text{display:block;min-width:0;width:100%;height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-products th[data-inventory-field="actions"],.inventory-products td[data-inventory-field="actions"]{width:100px;min-width:100px;max-width:100px}.inventory-products td[data-inventory-field="actions"] .inventory-cell-value{display:flex;align-items:center;justify-content:flex-end;min-width:0;width:100%;height:20px}.inventory-compatible-actions{display:flex;min-width:max-content;height:20px;align-items:center;justify-content:flex-end;gap:4px;background:inherit}.inventory-compatible-actions .list-text-button{height:20px;padding:0 6px;line-height:18px}.inventory-compatible-actions .inventory-details-button{color:#fff;background:#2563eb;border-color:#2563eb}.inventory-compatible-actions .inventory-details-button:hover{color:#fff;background:#1d4ed8;border-color:#1d4ed8}
.inventory-products th[data-inventory-field="name"],.inventory-products td[data-inventory-field="name"],.inventory-products th[data-inventory-field="spec"],.inventory-products td[data-inventory-field="spec"]{width:208px;min-width:208px;max-width:208px;box-sizing:border-box}.inventory-products th[data-inventory-field="actions"],.inventory-products td[data-inventory-field="actions"]{width:100px;min-width:100px;max-width:100px;box-sizing:border-box}
.inventory-products th[data-inventory-field="unit"],.inventory-products td[data-inventory-field="unit"]{width:50px;min-width:50px;max-width:50px}.inventory-products th[data-inventory-field="barcode"],.inventory-products td[data-inventory-field="barcode"]{width:112px;min-width:112px;max-width:112px}.inventory-products th[data-inventory-field="purchase_price"],.inventory-products td[data-inventory-field="purchase_price"],.inventory-products th[data-inventory-field="sale_price"],.inventory-products td[data-inventory-field="sale_price"],.inventory-products th[data-inventory-field="member_price"],.inventory-products td[data-inventory-field="member_price"],.inventory-products th[data-inventory-field="stock_qty"],.inventory-products td[data-inventory-field="stock_qty"],.inventory-products th[data-inventory-field="inventory_avg_price"],.inventory-products td[data-inventory-field="inventory_avg_price"],.inventory-products th[data-inventory-field="inventory_amount"],.inventory-products td[data-inventory-field="inventory_amount"],.inventory-products th[data-inventory-field="last_purchase_price"],.inventory-products td[data-inventory-field="last_purchase_price"],.inventory-products th[data-inventory-field="last_sale_price"],.inventory-products td[data-inventory-field="last_sale_price"],.inventory-products th[data-inventory-field="shelf"],.inventory-products td[data-inventory-field="shelf"]{width:96px;min-width:96px;max-width:96px;box-sizing:border-box}
.inventory-detail th:nth-child(5),.inventory-detail td:nth-child(5){width:170px}.inventory-detail th:last-child,.inventory-detail td:last-child{width:180px}
#inventory-product-pager,#used-product-pager{display:flex;align-items:center;gap:10px;height:28px;min-height:28px;margin-bottom:4px;border-top:1px solid #d7e0ed;background:#fff;white-space:nowrap;box-sizing:border-box}
#inventory-product-pager{height:34px;min-height:34px;margin-bottom:0;border-top:0;border-bottom:0;background:#f5f7fb}
#inventory-product-pager .list-pager,#used-product-pager .list-pager{height:27px;min-height:27px;padding:0 8px;flex:0 1 auto;min-width:0;flex-wrap:nowrap;gap:6px}
#inventory-product-pager .list-pager{position:relative;top:2px;flex:1 1 auto;width:100%;max-width:100%;height:33px;min-height:33px;box-sizing:border-box}
#inventory-product-pager .list-pager>button,#inventory-product-pager .list-pager>span,#inventory-product-pager .list-pager>label,#inventory-product-pager .list-pager>b{display:inline-flex;align-items:center;justify-content:center;align-self:center;line-height:normal}
#inventory-product-pager .list-pager>label{gap:5px;white-space:nowrap}
#inventory-product-pager .list-pager button,#used-product-pager .list-pager button{height:24px;padding:0 9px;line-height:22px}
#inventory-product-pager .list-pager>button{line-height:normal}
#inventory-product-pager .list-pager select,#inventory-product-pager .list-pager input,#used-product-pager .list-pager select,#used-product-pager .list-pager input{height:24px;padding:0 5px;line-height:22px}
.inventory-products{position:relative}
.inventory-column-totals{position:absolute;z-index:1;right:0;bottom:0;left:0;height:34px;pointer-events:none}
.inventory-column-totals .inventory-page-total{position:absolute;top:0;display:inline-flex;align-items:center;justify-content:center;height:34px;transform:translateX(-50%);color:#111827;font-weight:400;white-space:nowrap}
.inventory-column-totals .inventory-page-total b{font-weight:400}
.inventory-column-totals .inventory-page-total[hidden]{display:none}
#inventory-product-pager .list-pager>b:first-child{order:-3;margin-left:0}
#inventory-product-pager .list-pager>button:nth-of-type(1){margin-left:auto}
#inventory-product-pager .list-pager>button:nth-of-type(2),#inventory-product-pager .list-pager>button:nth-of-type(3){order:1}
#inventory-product-pager .pager-summary,#used-product-pager .pager-summary{flex:0 0 auto;margin-left:auto;padding:0 12px;text-align:right}
.list-pager{min-height:42px;display:flex;align-items:center;gap:8px;padding:6px 10px;flex-wrap:wrap}.list-pager button{padding:6px 11px}.list-pager select{width:78px;padding:5px}.list-pager input{width:64px;padding:5px}.pager-summary{padding:0 12px 8px;text-align:right;color:#526077}.pager-summary b{color:#1d4ed8}

/* 订单、收支和售后列表占满主窗口剩余高度，分页始终贴在底部。 */
html,body{width:100%;height:100%;overflow:hidden}
#content.paged-order-host{height:calc(100vh - 76px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.app>main.fixed-list-main{overflow-x:hidden;overflow-y:hidden}
#content.paged-order-host>.table-wrap{flex:1;min-height:220px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:auto}
#content.paged-order-host>.order-list-pager{margin-top:auto;border-top:1px solid #d7e0ed;background:#fff}
.trade-list-page .trade-list-footer,#content.paged-order-host>.order-list-pager{display:flex;flex-direction:column;align-items:stretch;gap:6px}
#content.paged-order-host tbody tr.selected td,.trade-list-table tbody tr.selected td{background:#dbeafe;color:#173f7a;font-weight:400}
.trade-list-table tbody tr:not(.selected)>td,#content.paged-order-host tbody tr:not(.selected)>td{background:#fff}
.trade-list-table tbody tr:not(.selected):hover>td,#content.paged-order-host tbody tr:not(.selected):hover>td{background:#e7f0ff}
.trade-list-table th,.trade-list-table td,#content.paged-order-host>.table-wrap th,#content.paged-order-host>.table-wrap td{border-right-color:#b8c2cf;border-bottom-color:#c5cdd8}
#content .table-wrap th,#content .table-wrap td{padding-top:4px;padding-bottom:4px;line-height:20px}
#content .table-wrap tbody tr.selected td{font-weight:400}
.trade-list-page .trade-list-table th,.trade-list-page .trade-list-table td,
#content.paged-order-host>.table-wrap th,#content.paged-order-host>.table-wrap td,
.paged-record-page>.table-wrap th,.paged-record-page>.table-wrap td,
.inventory-products>.table-wrap th,.inventory-products>.table-wrap td{padding-top:4px;padding-bottom:4px;line-height:20px}
.inventory-products>.table-wrap tbody .stock-number{height:20px;padding:0 8px;line-height:20px}
.trade-list-page .trade-list-table th,.trade-list-page .trade-list-table td,
#content.paged-order-host>.table-wrap th,#content.paged-order-host>.table-wrap td,
.paged-record-page>.table-wrap th,.paged-record-page>.table-wrap td{height:28px;padding:4px 8px!important;line-height:20px!important;vertical-align:middle}
.inventory-products>.table-wrap tbody tr.selected td{font-weight:400}
.inventory-products>.table-wrap tbody td,
.inventory-products>.table-wrap tbody td.price-green,
.inventory-products>.table-wrap tbody .stock-number,
.inventory-products>.table-wrap tbody .stock-normal{font-weight:400}
.repair-list-page .trade-list-table tbody tr.selected td{font-weight:400}
#content.paged-order-host .repair-list-page .trade-list-table tbody tr.selected td{font-weight:400}
#content.paged-order-host>.trade-list-page{flex:1;min-height:0}
.trade-list-page{gap:0}
.trade-list-page>.trade-list-toolbar{margin-bottom:10px}
.trade-list-page .trade-list-table{flex:1;min-height:220px}
.purchase-list-page .trade-list-table .purchase-note-column{width:100px;min-width:100px;max-width:100px}
.purchase-list-page .trade-list-table .purchase-product-column{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.purchase-list-page .trade-list-table .purchase-total-amount{color:#d92d20}
.purchase-list-page .trade-list-table .purchase-discount-amount{color:#16833b}
.purchase-list-page .trade-list-table .purchase-outstanding-amount{color:#e78c00}
.purchase-list-page .trade-list-table :is(.purchase-total-amount,.purchase-discount-amount,.purchase-outstanding-amount){font-weight:700}
.purchase-list-page .trade-list-table .purchase-zero-amount{color:#8a94a6}
.purchase-list-page .purchase-note-button{height:20px;padding:0 5px;line-height:18px}
.modal>.modal-card.purchase-note-modal{width:min(620px,calc(100vw - 32px));min-width:0;height:340px;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden}
.purchase-note-modal #modal-body{flex:1;min-height:0;overflow:hidden}
.purchase-note-view{height:100%;min-height:0;display:flex;flex-direction:column;padding:16px;gap:14px}
.purchase-note-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.purchase-note-meta>div{min-width:0;display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #d7e0ed;background:#f8fafc}
.purchase-note-meta span,.purchase-note-content>span{color:#64748b;font-size:12px}
.purchase-note-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.purchase-note-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.purchase-note-content>div{flex:1;min-height:0;overflow:auto;padding:10px;border:1px solid #d7e0ed;white-space:pre-wrap;overflow-wrap:anywhere}
.purchase-note-view>.actions{flex:0 0 auto;margin:0;padding-top:10px}
.trade-list-page>.trade-list-table{width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}
.trade-list-page>.trade-list-table>table{width:100%!important;min-width:0!important;table-layout:fixed}
.trade-list-page .trade-list-footer{margin-top:auto;gap:0;color:inherit}
.trade-list-page .trade-list-footer>.list-pager{margin-left:auto}
.paged-record-page{height:calc(100vh - 150px);min-height:0;display:flex;flex-direction:column}
.paged-record-page>.table-wrap{flex:1;min-height:220px}
.paged-record-footer{margin-top:auto;border:1px solid #d7e0ed;border-top:0;background:#fff}

/* 业务列表分页统一：整组靠右、透明底色，并在固定高度内上下居中。 */
.trade-list-page .trade-list-footer,
#content.paged-order-host>.order-list-pager,
.paged-record-page>.paged-record-footer{height:39px;min-height:39px;max-height:39px;padding:0;gap:0;border:1px solid #d7e0ed;border-top:0;background:transparent;box-sizing:border-box;overflow:hidden}
.trade-list-page>.trade-list-table,#content.paged-order-host>.table-wrap,#content .after-sale-list-page>.table-wrap,#content>.inventory-page.shared-inventory-workspace .inventory-products>.table-wrap{border-bottom-color:#d7e0ed}
.trade-list-page .trade-list-footer>.list-pager,
#content.paged-order-host>.order-list-pager>.list-pager,
.paged-record-page>.paged-record-footer>.list-pager{width:100%;height:37px;min-height:37px;max-height:37px;margin:0;padding:0 8px;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:nowrap;background:transparent;font-size:13px;line-height:20px;box-sizing:border-box}
.trade-list-page .trade-list-footer>.list-pager>*,
#content.paged-order-host>.order-list-pager>.list-pager>*,
.paged-record-page>.paged-record-footer>.list-pager>*{align-self:center}
.trade-list-page .trade-list-footer>.list-pager>label,
#content.paged-order-host>.order-list-pager>.list-pager>label,
.paged-record-page>.paged-record-footer>.list-pager>label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.trade-list-page .trade-list-footer>.list-pager button,
#content.paged-order-host>.order-list-pager>.list-pager button,
.paged-record-page>.paged-record-footer>.list-pager button{height:24px;padding:0 9px;font-size:13px;line-height:22px}
.trade-list-page .trade-list-footer>.list-pager select,
.trade-list-page .trade-list-footer>.list-pager input,
#content.paged-order-host>.order-list-pager>.list-pager select,
#content.paged-order-host>.order-list-pager>.list-pager input,
.paged-record-page>.paged-record-footer>.list-pager select,
.paged-record-page>.paged-record-footer>.list-pager input{height:24px;padding:0 5px;font-size:13px;line-height:22px}

.inventory-flow-modal{width:min(1500px,calc(100vw - 64px))!important;height:min(700px,calc(100vh - 64px))!important;max-width:none!important}.inventory-flow-modal #modal-body{display:flex;flex-direction:column;min-height:0;height:calc(100% - 52px)}
.inventory-flow-head{display:flex;justify-content:space-between;align-items:center;padding:8px 0}.inventory-flow-head select{width:140px}.inventory-flow-table{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.inventory-flow-modal .inventory-flow-table{width:calc(100% - 32px);margin-inline:16px}.inventory-flow-table table{width:100%;min-width:0;table-layout:fixed}.inventory-flow-table th,.inventory-flow-table td{padding-top:4px;padding-bottom:4px;line-height:20px;overflow:hidden;text-overflow:ellipsis}.inventory-flow-table th:nth-child(1){width:90px}.inventory-flow-table th:nth-child(2){width:130px}.inventory-flow-table th:nth-child(3){width:165px}.inventory-flow-table th:nth-child(4){width:145px}.inventory-flow-table th:nth-child(5),.inventory-flow-table th:nth-child(6){width:82px}.inventory-flow-table th:nth-child(7){width:95px}.inventory-flow-table th:nth-child(8){width:105px}.inventory-flow-table th:nth-child(9){width:220px}.inventory-flow-table th:nth-child(11){width:95px}.inventory-flow-table tr.flow-in{background:#fff3f3;color:#b42318}.inventory-flow-table tr.flow-out{background:#edf9f3;color:#087443}.inventory-flow-table tr:hover{filter:brightness(.98)}.inventory-flow-order-link{padding:0;border:0;background:transparent;color:#1d4ed8;text-decoration:underline;font:inherit}.inventory-flow-order-link:hover{background:transparent;color:#1e40af}
#inventory-flow-pager,#used-flow-pager{border-top:1px solid #d7e0ed;background:#fff}

.modal-card.trade-order-modal{width:min(1320px,98vw)!important;height:min(720px,calc(100dvh - 40px))!important;max-width:98vw!important;max-height:calc(100dvh - 40px)!important;overflow:hidden!important}
.modal-card.repair-create-size{width:min(1320px,98vw)!important;min-width:min(1320px,98vw)!important;height:min(720px,calc(100dvh - 40px))!important;min-height:min(720px,calc(100dvh - 40px))!important;max-width:98vw!important;max-height:calc(100dvh - 40px)!important}
.modal-card.business-sheet-modal{width:min(1180px,96vw)!important;height:min(780px,92vh)!important;max-width:none!important;max-height:92vh!important}
.trade-order-modal #modal-body,.business-sheet-modal #modal-body{height:calc(100% - 52px);overflow:auto}
.modal-card.trade-order-modal>.modal-head{flex:0 0 46px;box-sizing:border-box}
.modal-card.trade-order-modal>#modal-body{display:flex!important;flex:1;min-height:0;height:auto!important;max-height:none!important;overflow:hidden!important;padding:0!important}
.business-sheet-modal #modal-body>form{min-height:100%;display:flex;flex-direction:column}.business-sheet-modal .order-items{flex:1;min-height:280px}.business-sheet-modal .order-items table{table-layout:auto}.business-sheet-modal .order-items th:first-child,.business-sheet-modal .order-items td:first-child,.business-sheet-modal .order-items th:nth-child(2),.business-sheet-modal .order-items td:nth-child(2){min-width:220px}
.business-sheet-modal .media-category-dialog{padding:24px;overflow:auto}.business-sheet-modal .media-category-dialog-card{min-height:0;height:auto;display:block;align-self:center}.business-sheet-modal .media-category-dialog-card .media-category-fields{max-height:calc(92vh - 180px);overflow:auto}

/* 维修单保持独立窗口化排版，不继承进销存表单的强制高度和弹性明细规则。 */
.modal-card.repair-sheet-modal{width:min(1320px,96vw)!important;height:auto!important;max-width:96vw!important;max-height:94vh!important;overflow:hidden}
.repair-sheet-modal #modal-body{height:auto;max-height:calc(94vh - 46px);overflow:auto}
.repair-sheet-modal .repair-sheet{min-height:0}

/* 回收单复用进货单的大屏信息密度；长备注保持一行区域并允许换行。 */
.trade-order-modal .trade-sheet-bottom,.business-sheet-modal .trade-sheet-bottom{margin-top:auto}
.trade-order-modal .trade-bottom-columns .trade-internal-row textarea,.business-sheet-modal .trade-bottom-columns .trade-internal-row textarea{height:30px;min-height:30px;max-height:30px;resize:none}
.trade-order-modal .trade-bottom-columns .trade-internal-row textarea{justify-self:stretch!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
.trade-order-modal .trade-inline-image-tools{display:grid!important;grid-template-rows:36px 36px!important;align-content:center!important;align-items:stretch!important;height:124px!important;min-height:124px!important;gap:6px!important;transform:none!important}
.trade-order-modal .trade-inline-image-tools .repair-image-tool.local{grid-row:1!important;align-self:stretch!important;justify-self:center!important}
.trade-order-modal .trade-inline-image-tools .repair-image-tool.phone{grid-row:2!important;align-self:stretch!important;justify-self:center!important}
.trade-order-modal .trade-upload-row.trade-inline-images>.trade-inline-image-tools{grid-column:1!important;grid-row:1/3!important}
.trade-order-modal .trade-upload-row.trade-inline-images>#trade-image-list.trade-inline-image-list{grid-column:2!important;grid-row:1/3!important}
.trade-order-modal .order-items th:nth-child(2),.trade-order-modal .order-items td:nth-child(2){min-width:190px}
.trade-order-modal .order-items th:nth-child(3),.trade-order-modal .order-items td:nth-child(3){min-width:210px}
.trade-order-modal .order-items th:nth-last-child(2),.trade-order-modal .order-items td:nth-last-child(2){min-width:190px}

/* 最大化列表下让分类、商品、批次和分页各自占据稳定区域，不再靠整页滚动寻找底部。 */
.rights-page th,.rights-page td{white-space:nowrap}.rights-page th:first-child,.rights-page td:first-child{min-width:160px}
@media(max-width:1100px){.app{grid-template-columns:170px minmax(0,1fr)}.app>aside{width:170px}:is(#nav,#pos-entry-footer) .nav-btn{font-size:14px}.inventory-layout{grid-template-columns:170px minmax(0,1fr)}}

/* 工作列表使用最大化可用空间；搜索框保持操作长度，不拉满整行。 */
#order-q,#as-q,#ledger-q{width:280px!important;max-width:38vw;flex:none}
.trade-list-page>.trade-list-toolbar,
#content.paged-order-host>.toolbar,
.inventory-page>.inventory-top,
.paged-record-page>.compact-search{align-items:center;gap:4px;flex-wrap:wrap;overflow:visible}
.trade-list-page>.trade-list-toolbar>button,
#content.paged-order-host>.toolbar>button,
.inventory-page>.inventory-top>button,
.paged-record-page>.compact-search>button{height:32px;min-height:32px;max-height:32px;padding:0 8px;font-size:15px;font-weight:400;line-height:21px;letter-spacing:.5px;white-space:nowrap}
.trade-list-page>.trade-list-toolbar>#order-q,
.inventory-page>.inventory-top>input,
.paged-record-page>.compact-search>:is(#as-q,#ledger-q){width:280px!important;min-width:0;max-width:38vw;height:39px;min-height:39px;max-height:39px;padding:8px 10px;flex:0 0 280px;font-size:14px;line-height:21px}
.business-sheet-modal textarea,.trade-order-modal textarea,.repair-sheet-modal textarea{resize:vertical}
.trade-order-modal .trade-order-form .trade-full-remark textarea{resize:none!important;overflow:hidden!important}

/* 业务提示固定在当前视窗中心，避免被大弹窗右下角遮蔽或忽略。 */
#toast.toast{z-index:13000;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);max-width:min(520px,calc(100vw - 48px));text-align:center;box-shadow:0 10px 30px rgb(15 23 42 / 28%)}

/* 全局布尔设置统一为灰关蓝开的滑动开关，避免浏览器原生勾选框混入业务表单。 */
.switch{display:inline-flex!important;align-items:center!important;padding:0!important;cursor:pointer}.switch input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}.switch i{position:relative;display:block;width:40px;height:22px;border-radius:999px;background:#d7dde7;transition:background .18s}.switch i::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgb(15 23 42 / 24%);transition:transform .18s}.switch input:checked+i{background:#409eff}.switch input:checked+i::after{transform:translateX(18px)}

/* 二级业务表单按内容居中显示，不继承主业务窗口的宽高。 */
.business-sheet-modal .media-category-dialog-card{width:min(520px,calc(100% - 32px));max-height:calc(100% - 48px);overflow:auto}
.business-sheet-modal .member-discount-manager{position:relative}.business-sheet-modal .member-discount-form-panel{inset:76px 24px auto;max-width:760px;margin:0 auto;padding:18px}
.business-sheet-modal input[name="free_regions"],.business-sheet-modal input[name="blocked_regions"]{background:#f8fafc;cursor:pointer}
.business-sheet-modal .member-level-form{grid-template-columns:1fr 1fr}
.store-location-actions,.store-toggle-row{display:flex;align-items:center;gap:10px;padding:12px 24px}.store-location-actions>span,.store-toggle-row>span{flex:0 0 82px;text-align:right}.store-location-actions small{color:#768397}.store-coordinate input[readonly]{background:#f1f4f8;color:#475569;font-weight:600}.store-toggle-row .switch{margin:0}
.store-map-picker{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:24px;background:rgb(15 23 42 / 42%)}.store-map-picker-card{width:min(900px,calc(100% - 32px));height:min(650px,calc(100% - 32px));display:flex;flex-direction:column;background:#fff;border-radius:5px;box-shadow:0 18px 55px rgb(15 23 42 / 25%);overflow:hidden}.store-map-picker-card header{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #dfe5ed}.store-map-picker-card header button{border:0;font-size:22px}.store-map-picker-card iframe{flex:1;width:100%;border:0}
.region-value-field{display:flex!important;align-items:center;gap:8px}.region-value-field input{flex:1;background:#f8fafc;cursor:pointer}.region-picker{position:absolute;inset:0;z-index:7;display:grid;place-items:center;padding:24px;background:rgb(15 23 42 / 42%)}.region-picker-card{width:min(960px,calc(100% - 32px));height:min(620px,calc(100% - 32px));display:flex;flex-direction:column;background:#fff;box-shadow:0 18px 55px rgb(15 23 42 / 24%)}.region-picker-card header,.region-picker-card footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e1e6ed}.region-picker-card footer{justify-content:flex-end;border-top:1px solid #e1e6ed;border-bottom:0}.region-picker-columns{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:18px}.region-picker-column{border:1px solid #dce3ec;overflow:auto}.region-picker-column label{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer}.region-picker-column label:hover,.region-picker-column label.active{background:#edf4ff}.region-picker-column input{width:auto}
@media(max-width:760px){.business-sheet-modal .member-level-form{grid-template-columns:1fr}.region-picker-columns{grid-template-columns:1fr}.region-picker-column{min-height:120px}}
.mall-product-editor .mall-region-trigger{max-width:560px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:#fff}.mall-product-editor .mall-region-trigger[hidden]{display:none!important}
.home-builder-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.home-builder-toolbar .grow{flex:1}.home-builder{display:grid;grid-template-columns:240px minmax(430px,1fr) 320px;gap:14px;height:calc(100vh - 150px)}.home-palette,.home-properties,.phone-preview{background:#fff;border:1px solid #d7e0ed;overflow:auto;padding:14px}.home-palette h3,.home-properties h3{margin:0 0 14px}.home-palette{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px}.home-palette h3{grid-column:1/-1}.home-palette button{padding:10px 7px;text-align:left;border-color:#dce4ef;background:#fff}.home-palette button:hover{border-color:#2563eb;background:#f4f8ff}.home-palette b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e8f1ff;color:#2563eb;margin-right:7px}.phone-preview{display:grid;place-items:start center;background:#eef1f5}.phone-frame{width:375px;min-height:640px;background:#f4f6f8;border:8px solid #263244;border-radius:28px;overflow:hidden;box-shadow:0 12px 28px #1e293b2b}.phone-title{padding:14px;text-align:center;background:#fff;font-weight:700}.builder-component{position:relative;margin:8px 28px 8px 8px;background:#fff;border:2px solid transparent;box-shadow:0 2px 8px #33415514;cursor:pointer}.builder-component.active{border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe}.builder-component.disabled{opacity:.45}.builder-live-preview{min-height:38px}.builder-component-actions{display:none;position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);flex-direction:column;background:#fff;border:1px solid #d7e0ed;border-radius:18px;padding:3px;box-shadow:0 5px 14px #1e293b20}.builder-component.active .builder-component-actions{display:flex}.builder-component-actions button{width:28px;height:28px;padding:0;border:0;background:#fff;color:#526174;font-size:18px}.builder-component-actions button:hover{background:#edf4ff;color:#2563eb}.builder-component-actions button[data-remove]{color:#e5484d}.builder-search{display:flex;align-items:center;gap:8px;margin:8px;padding:9px 10px;border:1px solid #e4e8ee;background:#f7f8fa;color:#8994a3}.builder-search span{flex:1}.builder-search em{padding:4px 10px;border-radius:14px;background:#ff4d4f;color:#fff;font-style:normal}.builder-banner{position:relative;height:120px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#fff0e2,#ffd7cf);color:#9b4c38}.builder-banner img{width:100%;height:100%;object-fit:cover}.builder-banner strong{position:absolute;font-size:18px}.builder-image-placeholder{font-style:normal}.builder-notice{display:flex;align-items:center;gap:9px;padding:11px 12px}.builder-notice b{color:#ff4d4f}.builder-notice span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.builder-preview-title{display:block;padding:11px 12px 4px}.builder-icon-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:8px}.builder-icon-grid span{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}.builder-icon-grid i{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff0e2;color:#e86f00;font-style:normal}.builder-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}.builder-product-grid span{display:flex;flex-direction:column;gap:4px}.builder-product-grid i{height:78px;display:grid;place-items:center;background:#f3f4f6;color:#9aa4b2;font-style:normal}.builder-product-grid b{font-size:12px}.builder-product-grid em{color:#ff3b30;font-style:normal}.builder-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px}.builder-service-grid span{padding:14px 4px;text-align:center;border-radius:8px;background:#fff0e2;color:#d86b00}.builder-member{display:flex;align-items:center;padding:16px;background:linear-gradient(135deg,#ff8a00,#ff4d4f);color:#fff}.builder-member span{flex:1}.builder-member b,.builder-member small{display:block}.builder-member em{padding:6px 9px;border-radius:14px;background:#fff;color:#ff4d4f;font-style:normal}.builder-empty{padding:70px 20px}.home-properties label{display:block;margin-bottom:12px}.home-properties label span{display:block;margin-bottom:5px}.home-properties textarea{min-height:90px}.home-properties .builder-check{display:flex;align-items:center;gap:7px}.builder-check input{width:auto}
.home-page-controls{display:flex;gap:6px}.home-page-controls select{width:230px}
.mall-category-icon-field{display:flex;align-items:center;gap:12px}.mall-category-icon-field img{width:68px;height:68px;border:1px solid #d7e0ed;border-radius:12px;object-fit:cover;background:#f4f7fb}.mall-category-icon-field .upload-button{margin:0}
.home-category-list{display:flex;flex-direction:column;gap:10px}.home-category-row{display:grid;grid-template-columns:70px minmax(210px,1fr) minmax(160px,.8fr) 110px 65px 130px;align-items:end;gap:12px;padding:14px;background:#fff;border:1px solid #d7e0ed;border-radius:10px}.home-category-row label>span{display:block;margin-bottom:6px;color:#64748b;font-size:12px}.home-category-preview{display:grid;place-items:center;width:58px;height:58px;border-radius:14px;background:#eaf2ff}.home-category-preview img{width:58px;height:58px;border-radius:14px;object-fit:cover}.home-category-preview i{color:#2563eb;font-size:20px;font-style:normal;font-weight:800}.home-category-upload button{width:100%}.home-category-visible input{width:auto;height:34px}.home-category-actions{display:flex;gap:5px}.home-category-actions button{width:38px;padding:8px 0}
.printing-admin{display:flex;flex-direction:column;gap:14px}.print-admin-section{padding:16px;background:#fff;border:1px solid #d7e0ed;border-radius:10px}.print-admin-section h3{margin:0 0 14px}.print-store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}.print-store-grid>.card{display:flex;flex-direction:column;gap:7px}.print-store-grid>.card>small{color:#64748b}.print-device{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #e5eaf1}.print-device span{flex:1}.print-device small{display:block;color:#64748b}.print-device i{font-style:normal;color:#2563eb}.print-admin-section .section-title>div{display:flex;gap:7px}.print-admin-section input[type=datetime-local]{width:190px}

/* 卡券创建按业务顺序单列排版；图标、滑块和门店选择各自拥有明确点击区域。 */
.coupon-create-form{width:min(720px,calc(100vw - 64px));font-size:12px}.coupon-form-row{display:flex;align-items:center;gap:10px;min-height:54px;padding:9px 18px;border-bottom:1px solid #e3e8ef}.coupon-form-row>span:first-child{flex:0 0 86px;text-align:right;font-weight:600}.coupon-form-row>input,.coupon-form-row>select{flex:1;min-width:0}.coupon-form-row em{font-style:normal;color:#64748b}.coupon-icon-picker{flex:0 0 72px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;background:#fff}.coupon-icon-picker img{width:34px;height:34px;object-fit:cover;border-radius:5px}.coupon-icon-picker small{font-size:11px}.coupon-form-row .compact-field{display:flex;align-items:center;gap:7px;margin:0}.coupon-form-row .compact-field>span{white-space:nowrap}.coupon-form-row .compact-field input{width:88px}.coupon-form-row .switch-caption{margin-left:auto}.coupon-delay-input{display:flex;align-items:center;gap:7px}.coupon-delay-input input{width:92px}.coupon-store-row{align-items:flex-start}.coupon-store-row>label{padding-top:8px}.coupon-store-row [data-store-list]{display:flex;flex-wrap:wrap;gap:8px 18px;flex:1;padding:8px 10px;background:#f7f9fc}.coupon-store-row [data-store-list] label{white-space:nowrap}.coupon-instructions textarea{height:36px;min-height:36px;resize:vertical}.coupon-create-form .actions{padding:14px 18px}.coupon-list-icon{width:28px;height:28px;object-fit:cover;border-radius:4px;margin-right:7px;vertical-align:middle}.readonly-field:disabled{background:#edf0f4!important;color:#9aa4b2!important}
.coupon-create-form{font-size:13px;line-height:20px;font-weight:400}.coupon-form-row{min-height:46px;padding:7px 18px}.coupon-form-row>span:first-child{font-weight:400}.coupon-form-row>input,.coupon-form-row>select,.coupon-form-row .compact-field input,.coupon-delay-input input{box-sizing:border-box;height:30px;min-height:30px;padding:4px 7px;font-size:13px;line-height:20px}.coupon-instructions textarea{box-sizing:border-box;height:30px;min-height:30px;padding:4px 7px;font-size:13px;line-height:20px}.coupon-create-form .actions button{height:30px;min-height:30px;padding:4px 10px;font-size:13px;line-height:20px}
.coupon-create-form .coupon-form-row>span:first-child::after,.coupon-create-form .compact-field>span::after{content:'：'}
.coupon-manager-modal #modal-body{display:flex;height:calc(100% - 52px);min-height:0;flex-direction:column;overflow:hidden}.coupon-manager-modal .coupon-manager-toolbar{flex:0 0 auto;margin:0;padding:10px 12px;border-bottom:1px solid #d8dee9}.coupon-manager-modal .coupon-admin{display:flex;flex:1;min-height:0;flex-direction:column}.coupon-manager-modal .coupon-admin>.table-wrap{flex:1;min-height:0;margin:0 12px 12px;border-width:0;overflow-x:hidden;overflow-y:auto}.coupon-manager-modal .coupon-admin table{width:100%;table-layout:fixed}.coupon-manager-modal .coupon-admin thead{position:sticky;top:0;z-index:1}
.coupon-manager-modal .modal-body,
.coupon-manager-modal [data-coupon-manager-panel],
.coupon-manager-modal [data-coupon-results]{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.coupon-admin th,.coupon-admin td{text-align:center!important}
.coupon-issue-modes{display:flex;gap:22px;margin-bottom:14px}.coupon-issue-modes label{display:flex;align-items:center;gap:6px;margin:0}.coupon-issue-modes input{width:auto}.coupon-issue-target{display:flex;align-items:center;gap:8px;margin:12px 0}.coupon-issue-target>span{width:90px}.coupon-issue-target em{font-style:normal;color:#667085}.coupon-issue-picker{position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:28px;background:rgb(15 23 42 / 38%)}.coupon-issue-picker>section{width:min(700px,calc(100% - 40px));max-height:calc(100% - 56px);display:flex;flex-direction:column;background:#fff;box-shadow:0 16px 48px rgb(15 23 42 / 24%)}.coupon-issue-picker header,.coupon-issue-picker footer{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #d8dee9}.coupon-issue-picker header{justify-content:space-between}.coupon-issue-picker footer{justify-content:flex-end;border-top:1px solid #d8dee9;border-bottom:0}.coupon-issue-picker footer>[data-count]{margin-right:auto}.coupon-issue-picker-search{padding:10px 16px}.coupon-issue-picker-options{min-height:180px;overflow:auto;padding:0 16px 12px}.coupon-issue-picker-options label{display:flex;align-items:center;gap:8px;height:30px;margin:0;border-bottom:1px solid #edf0f4}.coupon-issue-picker-options input{width:auto}
.coupon-link-info{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coupon-form-danger-actions{display:flex;gap:8px}.coupon-form-danger-actions button{min-width:64px}.coupon-form-danger-actions button:disabled{opacity:.45;cursor:not-allowed}
.coupon-manager-modal .coupon-name-cell{width:410px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coupon-manager-modal .coupon-count-cell{width:76px}.coupon-manager-modal .coupon-days-cell{width:92px}.coupon-manager-modal .coupon-stores-cell{width:104px}.coupon-manager-modal .coupon-link-info{width:180px}.coupon-manager-modal .coupon-action-cell{width:76px}
.coupon-manager-modal .coupon-admin th,.coupon-manager-modal .coupon-admin td{box-sizing:border-box;height:28px;padding:4px 6px;line-height:20px;font-weight:400}.coupon-manager-modal .coupon-admin th{font-weight:600}.coupon-manager-modal .coupon-action-cell button{box-sizing:border-box;height:24px;min-height:24px;padding:2px 8px;line-height:18px}
.coupon-instructions-cell{min-width:0}.coupon-instructions-preview{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coupon-list-detail-button{max-width:100%;padding:0;border:0;background:transparent;color:#2563eb;font-size:inherit;line-height:20px;white-space:nowrap;cursor:pointer}.coupon-list-detail-button:hover{background:transparent;text-decoration:underline}
.coupon-list-detail-overlay{position:fixed;inset:0;z-index:16000;display:grid;place-items:center;padding:24px;background:rgb(15 23 42 / 42%)}
.coupon-list-detail-card{display:flex;flex-direction:column;width:min(560px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:hidden;background:#fff;box-shadow:0 18px 44px rgb(15 23 42 / 25%)}
.coupon-list-detail-card header,.coupon-list-detail-card footer{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #d8dee9}.coupon-list-detail-card footer{justify-content:flex-end;border-top:1px solid #d8dee9;border-bottom:0}
.coupon-list-detail-card header button{padding:0 6px;font-size:20px}.coupon-list-detail-content{min-height:100px;padding:16px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.coupon-batch-issue-modal{position:relative!important;overflow:hidden!important}.coupon-batch-issue-modal .coupon-issue-picker{z-index:400}.coupon-batch-issue-modal .coupon-issue-picker-options{min-height:80px}.coupon-batch-issue-form .coupon-issue-quantity{display:flex;align-items:center;gap:8px}.coupon-batch-issue-form .coupon-issue-quantity>span{width:90px;margin:0}.coupon-batch-issue-form .coupon-issue-quantity input{width:92px;height:30px}.coupon-batch-issue-form .coupon-issue-quantity em{font-style:normal}.coupon-batch-issue-form .coupon-issue-remark{display:grid;grid-template-columns:90px 1fr;align-items:start;gap:8px;margin-top:10px}.coupon-batch-issue-form .coupon-issue-remark>span{margin:5px 0 0}.coupon-batch-issue-form .coupon-issue-remark textarea{height:30px;min-height:30px;line-height:20px;resize:none}
.coupon-delay-input{white-space:nowrap}.coupon-delay-input[hidden]{display:none}.coupon-delay-input input{width:68px}.coupon-form-row .coupon-delay-input em{color:#172033;font-weight:400}.coupon-delay-input small{color:#64748b}
.coupon-form-row>select[name="coupon_type"]{flex:0 0 8em;width:8em}.coupon-form-row .coupon-validity-field input{width:88px}.coupon-instructions textarea{height:130px;min-height:130px}.coupon-store-row{align-items:center}.coupon-store-row>[data-pick-stores]{height:30px;padding:4px 12px;font-size:13px;line-height:20px}.coupon-store-row>[data-store-summary]{min-width:0;overflow:hidden;color:#64748b;text-overflow:ellipsis;white-space:nowrap}.media-category-dialog.coupon-store-picker{position:fixed;inset:0;z-index:14000}.coupon-store-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;max-height:300px;padding:18px 22px;overflow:auto}.coupon-store-picker-list label{display:flex;align-items:center;gap:7px;min-height:30px}.coupon-store-picker-list input{width:auto}
.coupon-create-form .required-mark,.coupon-batch-issue-form .required-mark{margin-right:3px;color:#dc2626;font-style:normal;font-weight:700}.coupon-create-form .coupon-form-row>span:first-child,.coupon-create-form .compact-field>span,.coupon-batch-issue-form label>span,.coupon-issue-target>span{white-space:nowrap}.coupon-daily-field{margin-left:auto}.coupon-daily-field input{width:88px!important}.coupon-issue-summary{display:flex;gap:32px;padding:10px 16px;background:#f8fafc;border-bottom:1px solid #d8dee8}.coupon-issue-summary span{white-space:nowrap}.coupon-batch-issue-form .coupon-issue-remark{align-items:center}.coupon-batch-issue-form .coupon-issue-remark>span{margin:0}.coupon-batch-issue-form .coupon-issue-remark input{height:30px;min-height:30px}

/* 商品购买设置：开关、文字和条件控件同一基线；发货选项横向排列。 */
.mall-setting-switch{display:flex!important;align-items:center!important;gap:10px!important;min-height:38px}.mall-setting-switch>.switch{flex:0 0 40px}.mall-fulfillment-methods{display:flex!important;align-items:center;gap:18px;flex-wrap:nowrap}.mall-fulfillment-methods[hidden]{display:none!important}.mall-fulfillment-methods>label{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap;margin:0!important}.mall-fulfillment-methods input{width:auto!important}.mall-setting-switch>small{flex-basis:100%;margin-left:50px}.mall-product-editor .form-grid>label>span:first-child{align-self:center}
.mall-product-editor .mall-purchase-grid>label,.mall-product-editor .mall-purchase-grid>label.span2{grid-template-columns:150px minmax(0,1fr)!important;align-items:start!important;pointer-events:none}.mall-product-editor .mall-purchase-grid>label>span:first-child{height:38px;display:flex;align-items:center;justify-content:flex-end;line-height:1.4}.mall-product-editor .mall-purchase-grid>label input,.mall-product-editor .mall-purchase-grid>label select,.mall-product-editor .mall-purchase-grid>label textarea,.mall-product-editor .mall-purchase-grid>label button,.mall-product-editor .mall-purchase-grid>label .switch{pointer-events:auto}.mall-product-editor .mall-purchase-grid .mall-setting-switch{align-items:center!important}.mall-product-editor .mall-purchase-grid .mall-setting-switch>.switch{margin:0!important}.mall-product-editor .mall-purchase-grid .mall-setting-switch>select,.mall-product-editor .mall-purchase-grid .mall-setting-switch>input:not([type=checkbox]){flex:1 1 auto!important;width:auto!important;min-width:0}.mall-product-editor .mall-purchase-grid .mall-setting-switch>select.is-disabled{background:#f1f4f8!important;color:#9aa5b5!important;cursor:not-allowed}.mall-product-editor .mall-purchase-grid .mall-limit-switches label{white-space:nowrap}.mall-product-editor .mall-purchase-grid .mall-limit-switches .switch{margin:0!important}
.mall-product-editor .mall-purchase-grid>.mall-fulfillment-row{align-items:center!important}.mall-product-editor .mall-purchase-grid>.mall-fulfillment-row>span:first-child{align-self:center!important}.mall-product-editor .mall-purchase-grid>.mall-fulfillment-row .mall-setting-switch{min-height:38px!important;flex-wrap:nowrap!important}.mall-product-editor .mall-purchase-grid>.mall-limit-row{align-items:center!important}.mall-product-editor .mall-limit-control{display:flex;align-items:center;gap:12px;min-height:38px}.mall-product-editor .mall-limit-control>.switch{flex:0 0 40px;margin:0!important}.mall-product-editor .mall-limit-fields{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.mall-product-editor .mall-limit-fields[hidden]{display:none!important}.mall-product-editor .mall-limit-total,.mall-product-editor .mall-limit-switches,.mall-product-editor .mall-limit-switches>label{display:flex;align-items:center;gap:8px}.mall-product-editor .mall-limit-total input,.mall-product-editor .mall-limit-switches input:not([type=checkbox]){width:72px!important;text-align:center}.mall-product-editor .mall-limit-switches{gap:18px}.mall-product-editor .mall-limit-switches .switch{margin:0!important}

/* 商品弹窗只让正文滚动，操作栏始终固定在弹窗可视底部。 */
.modal-card.mall-editor-modal{position:relative!important;display:flex!important;flex-direction:column!important;overflow:clip!important}.mall-editor-modal #modal-body{display:flex!important;flex:1!important;min-height:0!important;overflow:clip!important;padding:0!important}.mall-editor-modal .mall-product-editor{display:flex!important;flex:1!important;min-height:0!important;flex-direction:column!important;overflow:clip!important}.mall-editor-modal .mall-editor-scroll{flex:1;min-height:0;min-width:0;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 0}.mall-editor-modal .mall-editor-footer{position:static!important;z-index:20!important;display:flex!important;align-items:center!important;flex:0 0 64px!important;width:100%!important;height:64px!important;margin:0!important;padding:12px 18px!important;justify-content:flex-end!important;background:#fff!important;border-top:1px solid #dbe2eb!important;box-shadow:0 -5px 14px rgb(15 23 42 / 8%)}

/* 浏览与购买权限复用会员等级选择器；购买名单始终并入浏览名单。 */
.mall-permission-control{display:flex;align-items:center;gap:10px}
.mall-permission-control[hidden]{display:none!important}
.mall-permission-control em{font-style:normal;color:#66758a}
.mall-member-level-picker{position:absolute;inset:0;z-index:35;display:grid;place-items:center;padding:24px;background:rgb(15 23 42 / 38%)}
.mall-member-level-picker-card{width:min(620px,calc(100% - 36px));max-height:min(560px,calc(100% - 48px));display:flex;flex-direction:column;background:#fff;box-shadow:0 16px 48px rgb(15 23 42 / 24%)}
.mall-member-level-picker-card header,.mall-member-level-picker-card footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #dfe5ed}
.mall-member-level-picker-card header button{border:0;font-size:20px}
.mall-member-level-picker-card>p{margin:0;padding:9px 18px;background:#edf5ff;color:#2563eb}
.mall-member-level-picker-card footer{justify-content:flex-end;gap:8px;border-top:1px solid #dfe5ed;border-bottom:0}
.mall-member-level-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:18px;overflow:auto}
.mall-member-level-options label{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 12px;border:1px solid #dfe5ed;cursor:pointer}
.mall-member-level-options label:has(input:checked){border-color:#409eff;background:#edf5ff}
.mall-member-level-options label.locked{cursor:not-allowed}
.mall-member-level-options input{width:15px!important;height:15px!important;min-height:15px!important}
.mall-member-level-options span{flex:1}
.mall-member-level-options small{color:#7b8798}

/* 业务弹窗统一使用轻量立体边界；只增强层次，不改变既有窗口尺寸和内部排版。 */
.modal{background:rgb(15 23 42 / 32%)}
.modal>.modal-card{
  border:1px solid #c4cedb;
  border-radius:6px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 95%) inset,
    0 10px 24px rgb(15 23 42 / 16%),
    0 28px 70px rgb(15 23 42 / 20%);
}
.modal>.modal-card>.modal-head{
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
  border-bottom-color:#d7dee8;
  border-radius:5px 5px 0 0;
}
.modal>.modal-card>.modal-head>button{
  display:grid!important;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  margin-right:-8px;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#172033!important;
  font-size:27px!important;
  font-weight:700!important;
  line-height:1!important;
}
.modal>.modal-card>.modal-head>button:hover{background:#eef2f7!important}
.data-window>header>button,.picker-card .section-title>button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0!important;font-size:25px;font-weight:700;line-height:1}
.sale-stock-actions{display:inline-flex;align-items:center;gap:8px;margin-left:12px}
.sale-stock-toolbar{background:#fff}
.sale-quick-stock-search{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.sale-quick-stock-search input{width:280px;min-width:220px;background:#fff;border:1px solid #aebdd1;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.04)}
:root:not([data-input-modality="pointer"]) .sale-quick-stock-search input:focus{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.12);outline:0}
.sale-quick-stock-search button{white-space:nowrap}
.inventory-shared-select-window .inventory-select-body{min-height:0;overflow:hidden}
.inventory-shared-select-window .shared-inventory-workspace{height:100%;min-height:0}
.inventory-shared-select-window .inventory-products{height:100%}.inventory-shared-select-window #inventory-product-pager{margin-top:auto;flex:0 0 34px}
.inventory-purchase-master-select-window #inventory-product-pager .list-pager{justify-content:flex-start}
.inventory-purchase-master-select-window #inventory-product-pager .list-pager>button:nth-of-type(1){margin-left:0}
.inventory-batch-select-window .shared-inventory-workspace{display:flex;flex-direction:column}
.inventory-batch-select-window .shared-inventory-workspace>.inventory-layout{flex:1;height:auto;min-height:0}
.inventory-batch-select-window .shared-inventory-workspace .inventory-main{height:100%;grid-template-rows:minmax(0,1fr) 204px}.inventory-batch-select-window .inventory-detail{height:204px;min-height:204px}.inventory-batch-select-window .inventory-detail>.table-wrap{flex:1 1 0;height:auto;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain}.inventory-batch-select-window .inventory-detail thead{position:sticky;top:0;z-index:1}.inventory-batch-select-window .inventory-detail th,.inventory-batch-select-window .inventory-detail td{height:28px;padding:4px 8px;line-height:20px}
.inventory-batch-select-window .inventory-detail table{width:max-content;min-width:100%;table-layout:auto}
.inventory-batch-select-window .inventory-detail th:nth-child(3),.inventory-batch-select-window .inventory-detail td:nth-child(3){width:164px;min-width:164px;max-width:164px}
.inventory-batch-select-window .inventory-detail th:nth-child(4),.inventory-batch-select-window .inventory-detail td:nth-child(4){width:auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}
.inventory-batch-select-window .inventory-detail th:nth-child(9),.inventory-batch-select-window .inventory-detail td:nth-child(9){min-width:180px}
@media(max-width:900px){.sale-quick-stock-search{width:100%;margin-left:0}.sale-quick-stock-search input{flex:1;width:auto}.sale-stock-actions{margin-left:8px}}

/* 不可编辑字段统一为浅灰展示态；开关、复选框和单选框保持原有视觉。 */
input[readonly]:not([type="checkbox"]):not([type="radio"]),
textarea[readonly],
input:disabled:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
textarea:disabled,
select:disabled{
  background:#eef1f5!important;
  border-color:#cbd4df!important;
  color:#465568!important;
  -webkit-text-fill-color:#465568;
  opacity:1;
  cursor:not-allowed;
}

/* 维修单金额汇总使用文本元素模拟输入框，同样归入不可编辑展示态。 */
.repair-modal .debt-summary > div > b{
  background:#eef1f5!important;
  border-color:#cbd4df!important;
  color:#465568!important;
}

/* 独立图片上传区统一使用白底方形“＋ / 添加图片”入口。 */
.image-add-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100px;height:100px;padding:0;border:1px solid #d6dce5;background:#fff;color:#1677ff;box-sizing:border-box;cursor:pointer}
.image-add-tile b{font-size:22px;font-weight:300;line-height:1}.image-add-tile span{font-size:14px}
.image-add-tile input[type=file]{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}

/* 客户门店档案图片只在明确点击上传卡片时选择文件。 */
.customer-store-archive{display:block!important;padding-left:0}
.customer-store-archive small{display:block;margin-top:7px;color:#8492a6}
.customer-store-images{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;min-height:118px}
.customer-store-upload-actions{display:flex;flex-direction:column;justify-content:center;gap:6px}
.customer-store-upload-button{display:flex;align-items:center;justify-content:center;width:82px;height:30px;margin:0;padding:4px 8px;font-size:13px;line-height:20px;box-sizing:border-box;cursor:pointer;white-space:nowrap}
.customer-store-upload-button input[type=file]{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.customer-store-image-preview{display:flex;align-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0;height:118px;min-height:118px;padding:8px;border:1px solid #cbd5e1;background:#fff;box-sizing:border-box;overflow:auto}
.customer-store-image-card{position:relative;width:100px;height:100px;margin:0;border:1px solid #cbd5e1;background:#fff;box-sizing:border-box}
.customer-store-image-card img{width:100%;height:100%;object-fit:cover}
.customer-store-image-card button{position:absolute;top:-7px;right:-7px;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#ef4444;color:#fff;line-height:22px}
.customer-store-form textarea{height:auto!important;min-height:30px!important;max-height:90px!important;field-sizing:content;resize:none!important;overflow-y:auto}
.customer-store-form.customer-page-form{grid-template-columns:190px minmax(180px,1fr) minmax(190px,1fr)}
.customer-store-form{font-size:13px!important;line-height:20px!important}
.customer-store-form label>span{font-size:13px!important;line-height:20px!important}
.customer-store-form input:not([type="hidden"]):not([type="checkbox"]),.customer-store-form select{height:30px!important;min-height:30px!important;max-height:30px!important;padding:4px 7px!important;box-sizing:border-box;font-size:13px!important;line-height:20px!important}
.customer-store-form textarea{padding:4px 7px!important;box-sizing:border-box;font-size:13px!important;line-height:20px!important}
.customer-store-form>.actions button{height:30px!important;min-height:30px!important;padding:4px 10px!important;font-size:13px!important;line-height:20px!important}
.customer-store-form>label:not(.full){display:grid;grid-template-columns:63px minmax(0,1fr);align-items:center;gap:10px}
.customer-store-form>label:not(.full)>span{margin:0;text-align:right;white-space:nowrap}
.customer-required-mark{margin-right:2px;color:#dc2626;font-style:normal;font-weight:700}
.customer-detail-assets .customer-asset-link{position:relative;z-index:1;pointer-events:auto!important;cursor:pointer!important}
.customer-store-form .customer-archive-field{display:grid;grid-template-columns:63px minmax(0,1fr);align-items:center;gap:10px}
.customer-store-form .customer-archive-field>span{margin:0;text-align:right;white-space:nowrap}

/* 页头保留各业务页可用的账号操作，登录资料在首页侧栏展示。 */
.app>main>.business-main-header{gap:20px;padding:6px 18px}
.business-page-heading{flex:none;min-width:120px}
.tenant-session-panel{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin-left:auto;white-space:nowrap;color:#42526a;font-size:13px}
.tenant-session-panel b{color:#172033;font-weight:600}
.tenant-session-panel button{height:26px;padding:2px 8px;border:1px solid #b9c8dc;background:#fff;color:#2563eb}
.footer-dashboard-metrics{display:flex;align-items:center;gap:14px}.footer-dashboard-metrics>span{display:inline-flex;align-items:center;gap:2px}.footer-metric{height:auto!important;padding:0!important;border:0!important;background:transparent!important;font-weight:700;cursor:pointer;color:#2563eb!important}
.global-footer-announcement{position:relative;flex:1;min-width:120px;height:26px;overflow:hidden;border-left:1px solid #dbe3ed;border-right:1px solid #dbe3ed;color:#d97706}
.global-footer-announcement span{position:absolute;left:100%;top:3px;color:#a94f55;font-size:14px;font-weight:700;animation:footer-announcement-scroll 32s linear infinite}
.global-footer-announcement span.is-static{left:12px;animation:none;color:#94a3b8}
@keyframes footer-announcement-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-100% - 100vw))}}
.customer-service-qr{display:grid;justify-items:center;gap:12px;padding:10px}.customer-service-qr img{width:240px;height:240px;object-fit:contain;border:1px solid #d8e0ea;background:#fff}.customer-service-qr p{margin:0;color:#64748b}
.tenant-module-grid{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:12px;margin-top:14px}.tenant-module-grid article{padding:16px;border:1px solid #dbe3ed;background:#f8fafc}.tenant-module-grid article>div{display:flex;align-items:center;justify-content:space-between}.tenant-module-grid p{margin:8px 0;color:#5c6b7e}.tenant-module-grid small{display:block;color:#d97706}.module-state{padding:3px 8px;border-radius:12px;font-size:12px}.module-state.enabled{background:#dcfce7;color:#15803d}.module-state.disabled{background:#f1f5f9;color:#64748b}
@media(max-width:1000px){.tenant-module-grid{grid-template-columns:1fr}}
.login-options{display:flex;align-items:center;justify-content:space-between;margin:4px 0 8px}.login-options label{display:flex!important;align-items:center;gap:7px;margin:0!important;font-weight:400!important}.login-options input{width:15px!important;height:15px!important;margin:0!important}.login-options button{padding:2px 0;border:0;background:transparent;color:#2563eb}.password-code-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.password-code-row button{height:39px;margin-bottom:0}
.inventory-product-images{display:grid;grid-template-columns:auto 1fr;gap:9px 12px;align-items:start;padding:12px 0}.inventory-product-upload-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}.inventory-product-upload-actions .upload-button{display:inline-flex;align-items:center;justify-content:center;height:36px;margin:0;padding:0 18px;white-space:nowrap}.inventory-product-images>small{grid-column:1/-1;color:#7b8798}.inventory-product-image-list{display:flex;flex-wrap:wrap;align-items:flex-start;gap:9px}.inventory-product-image-list:empty{display:none}.inventory-product-image-list figure{display:grid;place-items:center;width:78px;height:78px;margin:0;border:1px solid #d6dce5;background:#fff;overflow:hidden;cursor:zoom-in}.inventory-product-image-list figure:hover{border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe}.inventory-product-image-list figure img{width:100%;height:100%;object-fit:cover}.inventory-product-image-list figure span{padding:7px;font-size:11px;word-break:break-all}.inventory-product-image-preview{z-index:30;cursor:zoom-out}.inventory-product-image-preview>img{cursor:default}.inventory-print-label{display:flex!important;align-items:center;gap:7px;margin-right:auto}.inventory-print-label input{width:auto!important}

/* 商品图片与维修单使用同一视觉结构：左侧双上传入口，右侧固定预览区。 */
#inventory-product-form .inventory-product-images{grid-template-columns:112px minmax(0,1fr);min-height:126px;padding:10px 0}
#inventory-product-form .inventory-product-upload-actions{align-self:center;gap:6px}
#inventory-product-form .inventory-product-upload-actions .upload-button{width:112px;height:36px;padding:0;background:#2563eb;color:#fff;border-color:#2563eb;font-size:0;font-weight:400}
#inventory-product-form .inventory-local-image-upload::before{content:"本地上传";font-size:13px}
#inventory-product-form [data-inventory-phone-images]::before{content:"手机上传";font-size:13px}
#inventory-product-form .inventory-product-image-list,#inventory-product-form .inventory-product-image-list:empty{display:flex;height:153px;min-height:153px;max-height:153px;overflow:auto;padding:8px;box-sizing:border-box;border:1px solid #d6dce5;background:#fff}
#inventory-product-form .inventory-product-images>small{display:none}
#inventory-product-form .product-form-grid label>span,#inventory-product-form input,#inventory-product-form select,#inventory-product-form textarea{font-weight:400!important}
#inventory-product-form input[readonly]{color:#111827!important;-webkit-text-fill-color:#111827!important}
#inventory-product-form>.actions button.primary:last-child{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;font-weight:400!important}
#inventory-product-form .inventory-barcode-field{position:relative;width:100%}
#inventory-product-form .pf-barcode{white-space:nowrap}
#inventory-product-form .inventory-barcode-field>input{padding-right:34px}
#inventory-product-form .inventory-barcode-refresh{position:absolute;top:1px;right:1px;width:31px;height:calc(100% - 2px);padding:0;color:#2563eb;background:transparent;border:0;border-left:1px solid #d6dce5;border-radius:0;font-size:18px;line-height:1;font-weight:400}
#inventory-product-form .pf-compatible textarea,#inventory-product-form .pf-parameters textarea,#inventory-product-form .pf-remark textarea{height:50px!important;min-height:50px!important;max-height:50px!important;padding:4px 7px!important;box-sizing:border-box;font-size:13px!important;line-height:20px!important;white-space:pre-wrap;overflow-wrap:anywhere;resize:none;overflow-y:hidden}
#inventory-product-form .pf-compatible textarea,#inventory-product-form .pf-parameters textarea,#inventory-product-form .pf-remark textarea{scrollbar-width:none}
#inventory-product-form .pf-compatible textarea::-webkit-scrollbar,#inventory-product-form .pf-parameters textarea::-webkit-scrollbar,#inventory-product-form .pf-remark textarea::-webkit-scrollbar{display:none;width:0;height:0}
#inventory-product-form .product-required-field>span:first-child::before{content:"*";margin-right:3px;color:#dc2626}
#inventory-product-form .inventory-unit-field{position:relative;width:100%}
#inventory-product-form .inventory-unit-field>input{padding-right:25px}
#inventory-product-form .inventory-unit-toggle{position:absolute;top:1px;right:1px;width:24px;height:calc(100% - 2px);padding:0;border:0;border-left:1px solid #d6dce5;border-radius:0;background:#fff;color:#334155}
#inventory-product-form .inventory-unit-menu{position:absolute;right:0;top:calc(100% + 3px);z-index:8;width:150px;padding:5px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;border:1px solid #d6dce5;background:#fff;box-shadow:0 6px 18px #17203324}
#inventory-product-form .inventory-unit-menu.hidden{display:none}
#inventory-product-form .inventory-unit-menu button{height:28px;padding:0;background:#fff;color:#172033;border-color:#e2e8f0;font-weight:400}
#inventory-product-form .inventory-unit-menu button:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}
#inventory-product-form .inventory-unit-menu .inventory-unit-manage{grid-column:1/-1;width:100%;margin-top:2px;border-color:#bfdbfe;color:#2563eb}

/* 新增/修改商品沿用维修单表单规格；仅统一字体与控件外观。 */
#inventory-product-form{font-size:13px!important;line-height:20px!important}
#inventory-product-form .product-form-grid label>span{font-size:13px!important;line-height:20px!important}
#inventory-product-form .product-form-grid input:not([type="hidden"]):not([type="checkbox"]),#inventory-product-form .product-form-grid select,#inventory-product-form .product-form-grid .category-product-picker{height:30px!important;min-height:30px!important;max-height:30px!important;padding:4px 7px!important;box-sizing:border-box;font-size:13px!important;line-height:20px!important}
#inventory-product-form .inventory-barcode-field>input{padding-right:34px!important}
#inventory-product-form .inventory-barcode-refresh{top:1px;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important}
#inventory-product-form .inventory-unit-field>input{padding-right:25px!important}
#inventory-product-form .inventory-unit-toggle{top:1px;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important;font-size:13px!important}
#inventory-product-form>.actions button{height:30px!important;min-height:30px!important;padding:4px 10px!important;font-size:13px!important;line-height:20px!important}
#inventory-product-form .pf-commission{grid-column:1/-1;display:flex;align-items:center;gap:8px}
#inventory-product-form .pf-commission>span{font-size:13px;line-height:20px}
#inventory-product-form .inventory-commission-field,#inventory-product-form .inventory-commission-options{display:flex;align-items:center;gap:10px;min-width:0}
#inventory-product-form .inventory-commission-options[hidden],#inventory-product-form .inventory-commission-value[hidden]{display:none}
#inventory-product-form .inventory-commission-switch{position:relative;flex:none;width:76px;height:30px;padding:0 5px 0 25px;border:1px solid #b8c6da;border-radius:15px;background:#edf1f6;color:#40516b;cursor:pointer}
#inventory-product-form .inventory-commission-switch::before{content:"";position:absolute;left:4px;top:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002}
#inventory-product-form .inventory-commission-switch::after{content:"关闭"}
#inventory-product-form .inventory-commission-switch[aria-checked="true"]{padding:0 25px 0 5px;border-color:#2463e8;background:#2463e8;color:#fff}
#inventory-product-form .inventory-commission-switch[aria-checked="true"]::before{left:auto;right:4px}
#inventory-product-form .inventory-commission-switch[aria-checked="true"]::after{content:"开启"}
#inventory-product-form .inventory-commission-options>select{width:174px!important;max-width:174px!important}
#inventory-product-form .inventory-commission-options>span{font-size:13px;line-height:20px}
#inventory-product-form .inventory-commission-value{display:flex;align-items:center;gap:5px;white-space:nowrap}
#inventory-product-form .inventory-commission-value-label[data-mode="percent"]::after{content:"毛利提成比例(%)："}
#inventory-product-form .inventory-commission-value-label[data-mode="fixed"]::after{content:"固定提成金额(元)："}
#inventory-product-form .inventory-commission-value>input{width:72px!important;min-width:72px!important}

/* 库存主页面给商品列表多留 30px，分页与下方批次区整体下移。 */
#content>.inventory-page.shared-inventory-workspace .inventory-layout{min-height:0}
#content>.inventory-page.shared-inventory-workspace{height:calc(100vh - 112px);font-family:inherit;font-size:14px;line-height:21px}
#content>.inventory-page.shared-inventory-workspace .inventory-layout{height:calc(100% - 49px)}
#content>.inventory-page.shared-inventory-workspace .inventory-main{grid-template-rows:minmax(0,1fr) minmax(120px,200px);gap:0}
#content>.inventory-page.shared-inventory-workspace .inventory-products>.inventory-section-title{height:35px;min-height:35px;padding:4px 8px;box-sizing:border-box;font-size:13px;line-height:20px}
#content>.inventory-page.shared-inventory-workspace .inventory-products>.table-wrap{margin-bottom:39px;border-bottom:0}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager{height:39px;min-height:39px;border-top:1px solid #d7e0ed;border-bottom:1px solid #d7e0ed;background:transparent}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager{height:37px;min-height:37px;top:-1px;align-self:flex-start;justify-content:flex-end;gap:6px;padding:0 8px;font-size:13px;line-height:20px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager>button:nth-of-type(1){margin-left:0}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager>b:first-child{font-weight:700}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager>button{line-height:22px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager> :is(b,span,label){line-height:20px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager>label{gap:4px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .list-pager select{padding:0 5px;line-height:22px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .inventory-page-size select{width:78px}
#content>.inventory-page.shared-inventory-workspace #inventory-product-pager .inventory-page-jump select{width:64px}
#content>.inventory-page.shared-inventory-workspace .inventory-column-totals,
#content>.inventory-page.shared-inventory-workspace .inventory-column-totals .inventory-page-total{height:39px}
#content>.inventory-page.shared-inventory-workspace .inventory-column-totals{bottom:39px;background:#fff}
#content>.inventory-page.shared-inventory-workspace .inventory-detail>.inventory-section-title{height:29px;min-height:29px;padding:4px 8px;border-top:0;font-size:13px;line-height:20px}
#content>.inventory-page.shared-inventory-workspace .inventory-detail>.table-wrap{border-top:0}
.modal-card.finance-report-modal{width:min(1120px,calc(100vw - 80px))!important;max-width:calc(100vw - 80px)!important;height:min(680px,calc(100dvh - 80px))!important;max-height:calc(100dvh - 80px)!important;overflow:hidden}
.finance-report-modal #modal-body{height:calc(100% - 52px);min-height:0;overflow:hidden}
.finance-report-shell{display:flex;flex-direction:column;gap:8px;height:100%;padding:10px;box-sizing:border-box;font-size:13px;line-height:20px}.finance-report-shell>.finance-report-dates,.finance-report-shell>.finance-report-summary,.finance-report-shell>.finance-report-modes,.finance-report-shell>footer{flex:0 0 auto}.finance-report-shell>.finance-report-table{flex:1 1 auto}
.finance-report-dates{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #d8dee9;background:#fff;white-space:nowrap;box-sizing:border-box}
.finance-report-presets{display:flex;gap:6px}.finance-report-dates label{display:flex;align-items:center;gap:6px}.finance-report-dates label>span{margin:0}.finance-report-dates em{font-style:normal}.finance-report-dates input{width:140px;height:30px;padding:4px 7px;font-size:13px;line-height:20px}.finance-report-dates input[type=month]{width:126px}.finance-report-dates button,.finance-report-modes button{height:30px;padding:4px 12px;font-size:13px;line-height:20px}.finance-report-dates button.active,.finance-report-modes button.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.finance-report-summary{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));min-height:64px;border:1px solid #d8dee9;background:#fff}.finance-report-summary.six{grid-template-rows:repeat(2,52px)}.finance-report-summary>span{display:flex;align-items:center;padding:10px 16px;border-right:1px solid #edf0f4}.finance-report-summary>span:nth-child(3n){border-right:0}.finance-report-summary small{color:#64748b}.finance-report-summary b{font-size:17px}.finance-report-summary>span:last-child b{color:#16803c}
.finance-report-modes{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #d8dee9;background:#f8fafc}.finance-report-modes>b{margin-right:8px}.finance-report-modes>span,.finance-report-modes>small{color:#64748b}.finance-report-modes>small{margin-left:auto}
.finance-report-table{min-height:0;height:100%;max-height:none!important;overflow:auto;background:#fff;border:1px solid #d8dee9}.finance-report-table table{min-width:100%;height:auto;table-layout:fixed}.finance-report-table th,.finance-report-table td{height:29px;padding:4px 7px;font-size:13px;line-height:20px;text-align:center;white-space:nowrap}.finance-report-table th{font-weight:600}.finance-report-shell>footer{padding:5px 10px;color:#64748b;border:1px solid #d8dee9;background:#f8fafc}
.finance-report-table .finance-report-date-cell{width:158px;min-width:158px;font-variant-numeric:tabular-nums}
.finance-report-table tr.selected td{background:#eaf2ff;font-weight:inherit}
.finance-report-table .inventory-amount.positive{color:#16803c}
.finance-report-table .inventory-amount.negative{color:#d43f3a}
.finance-report-shell:has(.inventory-remark-overlay){position:relative}
.inventory-remark-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#17203366}
.inventory-remark-overlay>section{width:min(440px,calc(100% - 32px));max-height:calc(100% - 32px);display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden}
.inventory-remark-overlay header,.inventory-remark-overlay footer{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;flex:none}
.inventory-remark-overlay>section>div{padding:14px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}

/* 日常收支工具栏与维修单列表采用相同的日期快捷筛选顺序。 */
.modal-card.finance-ledger-modal{width:min(1540px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important}
.finance-ledger-shell>header{flex-wrap:wrap;align-content:center;white-space:nowrap}
.finance-ledger-shell>header>[data-ledger-search]{flex:0 0 220px}
.finance-ledger-presets{display:flex;gap:5px}
.finance-ledger-shell>header button{height:32px;padding:4px 10px;font-size:13px;line-height:20px}
.finance-ledger-shell>header [data-ledger-range].active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.finance-ledger-shell>header label>span{margin:0}
.finance-ledger-shell>header label em{font-style:normal}
.finance-ledger-shell>header label input{height:32px;box-sizing:border-box;padding:4px 7px;font-size:13px;line-height:20px}
.finance-ledger-shell>header [data-ledger-month]{width:122px}
.finance-ledger-shell>header [data-ledger-start],.finance-ledger-shell>header [data-ledger-end]{width:112px}
.media-header-upload-actions{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:8px}.media-header-upload-actions button{height:30px;min-height:30px;padding:4px 12px;font-size:13px;line-height:20px}.mall-media-library-card>header .media-header-upload-actions{margin-left:auto}.modal-head>.media-header-upload-actions+button{margin-left:0}
.finance-settings-card[aria-disabled=true]{cursor:default}.finance-settings-card[aria-disabled=true]:hover{border-color:#d8dee8;background:#fff;box-shadow:0 3px 12px #1d29390d}
.after-sale-modal{width:min(1220px,calc(100vw - 48px))!important;height:min(680px,calc(100vh - 48px))!important;overflow:hidden}.after-sale-modal #modal-body{height:calc(100% - 52px);padding:10px;overflow:hidden}.after-sale-form{display:grid;grid-template-rows:42px auto minmax(180px,1fr) auto 38px;gap:8px;height:100%;font-size:13px;line-height:20px}.after-sale-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px;border:1px solid #d8dee9;background:#f8fafc}.after-sale-header{display:grid;grid-template-columns:230px 140px minmax(270px,1fr) 180px 225px;gap:8px 10px;align-items:center;padding:8px 10px;border:1px solid #d8dee9}.after-sale-header label,.after-sale-return label{display:flex;align-items:center;min-width:0;gap:7px;white-space:nowrap}.after-sale-header input,.after-sale-header button,.after-sale-return input,.after-sale-return select{height:30px;min-height:30px;padding:4px 7px;font-size:13px;line-height:20px}.after-sale-header label>input{min-width:0}.after-sale-header .full{grid-column:1/-1}.after-sale-header .full input{flex:1}.after-sale-supplier{width:max-content}.after-sale-supplier-name input{width:15em;min-width:15em}.after-sale-supplier-contact input{width:100px}.after-sale-supplier-phone input{width:140px}.after-sale-items{display:flex;min-height:0;flex-direction:column;border:1px solid #d8dee9}.after-sale-items>header{display:flex;align-items:center;justify-content:space-between;height:42px;padding:0 10px;background:#f8fafc;border-bottom:1px solid #d8dee9}.after-sale-items>.table-wrap{flex:1;min-height:0;overflow:auto}.after-sale-items table{width:100%;table-layout:fixed}.after-sale-items th,.after-sale-items td{height:29px;padding:4px 7px;line-height:20px;text-align:center}.after-sale-items th:last-child{width:58px}.after-sale-items input{width:100%;height:28px;border:0;background:transparent;font-size:13px}.after-sale-return{display:grid;grid-template-columns:210px minmax(220px,1fr) minmax(220px,1fr);gap:10px 18px;align-items:center;padding:8px 10px;border:1px solid #d8dee9}.after-sale-return label{display:flex;align-items:center;gap:7px;white-space:nowrap}.after-sale-return input{flex:1;min-width:0}.after-sale-return .hidden{display:none}.after-sale-form>.actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.after-sale-form>.actions button{height:30px;padding:4px 14px;font-size:13px}
.inventory-unit-manager-overlay{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:#0f172a42}
.inventory-unit-manager{width:390px;max-width:calc(100% - 32px);max-height:420px;display:flex;flex-direction:column;border:1px solid #cbd5e1;background:#fff;box-shadow:0 15px 45px #17203338}
.inventory-unit-manager>header{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #e2e8f0}
.inventory-unit-manager>header button{border:0;padding:0 5px;font-size:20px}
.inventory-unit-manager>form{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:8px;padding:12px;border-bottom:1px solid #e2e8f0}
.inventory-unit-manager>[data-unit-manager-list]{min-height:80px;overflow:auto;padding:5px 12px 12px}
.inventory-unit-manager>[data-unit-manager-list]>div{height:38px;display:flex;align-items:center;border-bottom:1px solid #edf0f4}
.inventory-unit-manager>[data-unit-manager-list] span{flex:1}
.inventory-unit-manager>[data-unit-manager-list] button{padding:4px 10px;font-weight:400}

/*
 * 全局交付基线：弹窗首帧完成业务类名和内容装配后才显示，避免默认尺寸
 * 先闪现；所有业务列表保持紧凑，选中状态不改变字体粗细。
 */
.modal.modal-preparing{visibility:hidden!important}
.modal.modal-opening-original-order{visibility:hidden!important}
.modal>.modal-card,.data-window,.coupon-picker-card,dialog{transition:none!important;animation:none!important}
.table-wrap>table>thead>tr>th,
.table-wrap>table>tbody>tr>td,
.trade-list-table>table>thead>tr>th,
.trade-list-table>table>tbody>tr>td{height:28px;padding:4px 8px!important;line-height:20px!important;vertical-align:middle}
.table-wrap>table>tbody>tr.selected,
.table-wrap>table>tbody>tr.selected>td,
.trade-list-table>table>tbody>tr.selected,
.trade-list-table>table>tbody>tr.selected>td{font-weight:400!important}
.table-wrap{overscroll-behavior:contain}
.trade-amount-row .amount-total b,.trade-amount-row .amount-current-debt b,.trade-amount-row .amount-cumulative-debt b{display:inline-flex;align-items:center;min-width:96px;height:34px;padding:0 10px;border-radius:4px;border:1px solid transparent;color:#172033!important;font-size:15px;font-weight:700}.trade-amount-row .amount-total b{background:#e8f3ed!important;border-color:#b8d7c5!important}.trade-amount-row .amount-current-debt b{background:#f9ecec!important;border-color:#e8c5c5!important}.trade-amount-row .amount-cumulative-debt b{background:#fff3df!important;border-color:#edd3a5!important}
.trade-amount-row label input{font-size:15px;font-weight:700}
/* 维修单旧的只读灰底规则优先级更高；在维修表单内明确复用销售单金额配色。 */
.repair-modal .debt-summary.trade-amount-row > .amount-total > b,
.repair-modal .debt-summary > div:first-child > #repair-total{background:#e8f3ed!important;border-color:#b8d7c5!important;color:#172033!important;font-size:15px;font-weight:700}
.repair-modal .debt-summary.trade-amount-row > .amount-current-debt > b,
.repair-modal .debt-summary > div:nth-of-type(2) > #repair-due{background:#f9ecec!important;border-color:#e8c5c5!important;color:#172033!important;font-size:15px;font-weight:700}
.repair-modal .debt-summary.trade-amount-row > .amount-cumulative-debt > b,
.repair-modal .debt-summary > div:nth-of-type(3) > #repair-old-debt{background:#fff3df!important;border-color:#edd3a5!important;color:#172033!important;font-size:15px;font-weight:700}
.repair-modal .debt-summary.trade-amount-row > label input{background:#fff!important;color:#172033!important;-webkit-text-fill-color:#172033;font-size:15px;font-weight:700}
.repair-modal .debt-summary.trade-amount-row .repair-pickup-status select{width:96px;height:34px;padding:0 8px;border:1px solid #b8c2cf;border-radius:4px;background:#fff;color:#172033;font-size:14px}
.media-upload-entry-group{display:contents}
.media-upload-entry-group .media-group-upload-tile{position:relative;width:100%;height:142px}
.media-upload-entry-group .media-phone-upload-tile{border-style:solid;background:#f7faff}
.mall-category-icon-field{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.home-category-upload{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap}
.home-category-upload>span{flex:0 0 auto}.home-category-upload button{white-space:nowrap}
.recycle-header-grid{grid-template-columns:245px 365px 220px 140px!important;align-items:center}.recycle-header-grid>label{min-width:0}.recycle-header-grid .recycle-header-date{grid-column:1}.recycle-header-grid .recycle-header-date input{width:175px!important;min-width:175px!important;font-variant-numeric:tabular-nums}.recycle-header-grid .recycle-header-customer{grid-column:2;display:flex!important;align-items:center;gap:7px}.recycle-header-grid .recycle-header-customer>span:first-child{flex:0 0 auto}.recycle-header-grid .recycle-header-customer button{flex:0 0 68px;white-space:nowrap;padding-left:8px;padding-right:8px}.recycle-header-grid .recycle-header-customer input{min-width:0}.recycle-header-grid .recycle-header-customer .trade-nickname-prefix+input{width:68px!important;min-width:68px!important}.recycle-header-grid .recycle-header-customer input[name="customer_name_snapshot"]{width:86px!important;min-width:86px!important}.recycle-header-grid .recycle-header-phone{grid-column:3}.recycle-header-grid .recycle-header-source{grid-column:4}.recycle-mail-fields{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px}.recycle-mail-fields.hidden{display:none!important}.recycle-mail-fields label{display:flex;align-items:center;gap:7px}.recycle-mail-fields input{width:220px}.recycle-mail-fields label:last-child input{width:300px}.recycle-header-grid .trade-full-remark{grid-column:1/-1}


/* 商城商品购买设置：开关、条件字段和弹窗底栏统一布局。 */
.mall-product-editor .mall-purchase-grid>label>span:first-child::after{content:none!important}.mall-product-editor .mall-purchase-grid .mall-setting-switch{min-height:38px}.mall-product-editor .mall-purchase-grid .mall-setting-switch>select[multiple]{height:auto!important;min-height:68px;max-height:104px;padding:4px 8px}.mall-fulfillment-methods input[type="checkbox"]{appearance:auto!important;width:14px!important;height:14px!important;min-height:14px!important;flex:0 0 14px!important;margin:0!important;padding:0!important}.mall-sale-time-fields{display:flex;align-items:center;gap:8px;min-width:0}.mall-sale-time-fields[hidden]{display:none!important}.mall-sale-time-fields input[type="datetime-local"]{width:220px!important;flex:0 0 220px!important}.mall-sale-time-fields input[name="sale_remind_minutes"]{width:76px!important;flex:0 0 76px!important}.mall-sale-time-fields>span{white-space:nowrap}.region-picker-option{display:flex;align-items:center;gap:10px;padding:0 8px}.region-picker-option:hover,.region-picker-option.active{background:#edf4ff}.region-picker-option>input{width:auto!important;flex:0 0 auto}.region-picker-option>button{flex:1;padding:10px 6px;border:0;background:transparent;text-align:left}

/* 小程序首页装修扩展模块。 */
.builder-setting-card>nav button{min-width:0!important;padding:0 3px!important;font-size:13px;white-space:nowrap}
.builder-video{background:#202733;color:#fff}.builder-video>b{font-size:34px}.builder-article-list{display:grid;padding:6px 10px}.builder-article-list span{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:9px;padding:7px 0;border-top:1px solid #edf0f4}.builder-article-list i{display:grid;place-items:center;height:46px;background:#edf1f6;color:#8b96a5;font-style:normal}.builder-coupon{display:flex;align-items:center;padding:15px;background:linear-gradient(135deg,#ff8a00,#ff4d4f);color:#fff}.builder-coupon span{display:grid;flex:1;gap:3px}.builder-coupon small{opacity:.85}.builder-coupon em{padding:6px 9px;border-radius:14px;background:#fff;color:#ef4444;font-style:normal}.builder-heading{display:flex;align-items:center;justify-content:space-between;padding:12px}.builder-heading span{color:#8b96a5;font-size:12px}.builder-divider{height:1px;margin:10px;background:#dce2ea}.builder-spacer{background:transparent}.builder-media-button{width:100%;margin:-2px 0 8px}.home-properties>.muted{display:block;margin:-4px 0 12px;line-height:1.5}.home-page-controls{display:flex;align-items:center;gap:7px}.home-page-controls select{min-width:180px}
.home-properties{padding:0;background:#f3f4f6}.home-properties>h3{display:none}.home-properties>#home-property-form{min-height:100%}.builder-settings-title{display:flex;align-items:center;gap:10px;margin:12px;padding:20px;background:#fff;font-size:20px}.builder-settings-title i{width:5px;height:30px;background:#409eff}.builder-setting-card{margin:0 12px 12px;background:#fff}.builder-setting-card>nav{position:sticky;top:0;z-index:3;display:flex;height:56px;border-bottom:1px solid #dce2ea;background:#fff}.builder-setting-card>nav button{position:relative;flex:1;border:0;background:#fff;color:#172033}.builder-setting-card>nav button.active{color:#409eff}.builder-setting-card>nav button.active:after{content:'';position:absolute;left:38%;right:38%;bottom:-1px;height:2px;background:#409eff}.builder-setting-card>section{display:none;padding:18px 20px}.builder-setting-card>section.active{display:block}.builder-setting-card h4{margin:12px 0 24px;font-size:16px;font-weight:500}.builder-setting-card label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:20px;color:#7d8795}.builder-setting-card label>span{margin:0}.builder-setting-card label>input[type=color]{width:32px;height:32px;padding:2px}.builder-setting-card label>input[type=color]+input{width:100%;min-width:0}.builder-count-input{position:relative}.builder-count-input input{padding-right:45px}.builder-count-input i{position:absolute;right:9px;top:9px;color:#8a94a3;font-size:12px;font-style:normal}.builder-switch input{width:40px!important;height:22px}.builder-range{grid-template-columns:92px minmax(90px,1fr) 50px 32px!important}.builder-range input[type=range]{width:100%;padding:0}.builder-range input[type=number]{width:50px;padding:6px}.builder-range>i{height:32px;margin-left:-8px;padding:7px 5px;border:1px solid #d8dee8;border-left:0;background:#f5f7fa;font-size:12px;font-style:normal;box-sizing:border-box}.builder-choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:24px}.builder-choice-row button{display:grid;place-items:center;gap:7px;height:74px;background:#fff;font-size:22px}.builder-choice-row button.active{border-color:#409eff;color:#409eff}.builder-choice-row small{font-size:12px;font-weight:400}.builder-nav-entries{display:grid;gap:12px;max-height:400px;overflow:auto}.builder-nav-entry{display:grid;grid-template-columns:70px minmax(0,1fr) 24px;gap:10px;padding:10px;border:1px solid #d8dee8}.builder-nav-entry>div label{display:block;margin-bottom:8px;color:#172033}.builder-nav-entry>div label span{display:block;margin-bottom:4px}.builder-nav-image{display:flex;flex-direction:column;align-items:center;justify-content:center;height:70px;padding:0;border-style:dashed;background:#f7f9fc;color:#8c97a6}.builder-nav-image b{font-size:28px;font-weight:300}.builder-nav-image small{font-size:11px}.builder-nav-image img{width:100%;height:100%;object-fit:cover}.builder-nav-entry>aside{display:flex;flex-direction:column;gap:3px}.builder-nav-entry>aside button{width:24px;height:24px;padding:0}.builder-nav-add{margin:12px 0;border:0;color:#409eff;background:#fff}.builder-setting-card .muted{display:block;margin:-8px 0 20px}.builder-search-stage{box-sizing:border-box}.builder-scan{font-style:normal;color:#6b7280}.builder-nav-stage{overflow:hidden}.builder-icon-grid span b{font-size:11px;font-weight:400}.builder-icon-grid img{width:42px;height:42px;border-radius:8px;object-fit:cover}.builder-icon-grid.nav-style-image img,.builder-icon-grid.nav-style-image i{width:100%;height:54px;border-radius:3px}.builder-icon-grid.nav-style-text span{padding:10px 3px;border:1px solid #e5e9ef}.builder-nav-stage.single-scroll .builder-icon-grid{display:flex;overflow:hidden}.builder-nav-stage.single-scroll .builder-icon-grid span{min-width:72px}.builder-nav-stage.multi-scroll .builder-icon-grid{grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:none!important;overflow:hidden}.builder-nav-stage.multi-scroll .builder-icon-grid span{min-width:72px}

/* 首页装修：固定手机视口与紧凑的可拖拽图文导航编辑器 */
.home-builder{grid-template-columns:240px minmax(430px,1fr) 500px}
.phone-preview{overflow:hidden}
.phone-frame{height:min(760px,calc(100vh - 190px));min-height:560px;display:flex;flex-direction:column}
.phone-title{flex:0 0 auto}
#home-component-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.builder-nav-content-layout{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start}
.builder-nav-side-label{padding-top:3px;color:#7d8795}
.builder-nav-content-main{min-width:0}
.builder-nav-entries{gap:10px;max-height:400px;padding:7px 7px 7px 0}
.builder-nav-entry{position:relative;grid-template-columns:70px minmax(0,1fr);gap:10px;min-height:116px;padding:10px;border:1px solid #d8dee8;background:#fff;cursor:grab;box-sizing:border-box}
.builder-nav-entry:active{cursor:grabbing}
.builder-nav-entry.dragging{opacity:.42}
.builder-nav-entry.drag-over{border-color:#409eff;box-shadow:0 0 0 2px #d9ecff}
.builder-nav-entry>div{min-width:0}
.builder-nav-entry>div label{margin-bottom:7px}
.builder-nav-entry>div label:last-child{margin-bottom:0}
.builder-nav-entry input,.builder-nav-entry select{height:32px;padding-top:5px;padding-bottom:5px}
.builder-nav-image{height:70px;margin-top:1px}
.builder-nav-remove{position:absolute;z-index:2;top:-8px;right:-8px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#aab2bd;color:#fff;line-height:20px}
.builder-nav-remove:hover{background:#e5484d}
.builder-nav-add{margin:8px 0 12px}
.builder-setting-card .builder-nav-content-main>.muted{margin:-7px 0 18px}
@media(max-width:1280px){.home-builder{grid-template-columns:280px minmax(380px,1fr) 430px}}

/* 左侧组件库：分组卡片、两列图标按钮 */
.home-builder{grid-template-columns:360px minmax(430px,1fr) 500px}
.home-palette{display:block;padding:0;background:#f3f4f6;border:0}
.home-palette-group{margin:0 0 12px;background:#fff;border-radius:4px;overflow:hidden}
.home-palette-heading{display:flex;align-items:center;width:100%;height:58px;padding:0 20px;border:0;background:#fff;color:#172033;text-align:left}
.home-palette-heading b{display:block;width:auto;height:auto;margin:0;flex:1;border-radius:0;background:transparent;color:#172033;font-size:17px}.home-palette-heading i{font-style:normal;font-size:16px}
.home-palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;padding:0 20px 18px}
.home-palette-grid>button{display:flex;align-items:center;height:46px;padding:0 18px;border:1px solid #e5e9ef;border-radius:3px;background:#fff;color:#172033;font-size:14px;text-align:left}
.home-palette-grid>button:hover{border-color:#409eff;color:#409eff;background:#f7fbff}
.home-palette-grid>button>i{display:inline-grid;place-items:center;width:22px;margin-right:10px;color:#334155;font-size:17px;font-style:normal}
.home-palette-grid>button>span{white-space:nowrap}
.home-palette-group.collapsed .home-palette-grid{display:none}
.builder-popup-preview{display:grid;place-items:center;min-height:130px;padding:15px;background:#eef2f7}.builder-popup-preview img{max-width:78%;max-height:110px}.builder-popup-preview i{color:#8b96a5;font-style:normal}.builder-popup-preview b{margin-top:6px}.builder-page-list{display:grid;gap:0;padding:12px;background:#fff}.builder-page-list>b{padding-bottom:8px}.builder-page-list span{padding:9px 4px;border-top:1px solid #edf0f4;color:#526174}
@media(max-width:1280px){.home-builder{grid-template-columns:280px minmax(380px,1fr) 430px}.home-palette-grid{gap:8px;padding:0 12px 14px}.home-palette-grid>button{padding:0 10px}}

/* 首页装修手机预览：与“小程序首页延时页面-图文导航版”视觉基准一致。 */
.phone-preview{align-items:center;background:#e8ecf1}.phone-frame{width:375px;height:700px;min-height:700px;border:0;border-radius:36px;background:#f5f6fa;overflow:visible;box-shadow:0 0 0 8px #1e1e1e,0 0 0 10px #3a3a3a,0 20px 40px rgba(0,0,0,.25);position:relative}.phone-title{height:30px;padding:8px 20px;border-bottom:1px solid #eee;background:#fff;font-size:0;text-align:initial}.phone-title:before{content:'9:41';font-size:12px}.phone-title:after{content:'📶  🔋';float:right;font-size:12px}#home-component-list{height:670px;overflow-y:auto;background:#f5f6fa;padding-bottom:20px}.builder-component{margin:0 12px 8px;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.builder-component.active{border-color:#6c5ce7;box-shadow:0 0 0 2px #e4e0ff}.builder-search-stage{padding:12px!important;background:#f5f6fa!important}.builder-search{height:54px;padding:8px 12px!important;border:0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.04)}.builder-search span{height:38px;padding:11px 18px;border-radius:19px;background:#f5f6fa}.builder-search em{height:38px;padding:10px 20px;border-radius:19px;background:#6c5ce7!important}.builder-carousel-stage{padding:0!important;background:#f5f6fa!important}.builder-carousel-window{height:150px!important;border-radius:12px!important;background:linear-gradient(120deg,#a29bfe,#6c5ce7)!important;color:#fff;font-size:20px;box-shadow:0 4px 12px rgba(108,92,231,.2)}.builder-nav-stage{padding:16px 8px 8px!important;border-radius:16px!important;background:#fff!important;box-shadow:0 2px 12px rgba(0,0,0,.04)}.builder-icon-grid{grid-template-columns:repeat(4,1fr)!important;gap:0!important}.builder-icon-grid span{margin-bottom:16px;gap:8px;font-size:12px}.builder-icon-grid i,.builder-icon-grid img{width:56px;height:56px;border-radius:18px;font-size:26px;box-shadow:0 4px 10px rgba(0,0,0,.06)}.builder-icon-grid span:nth-child(1) i{background:#ffeaa7}.builder-icon-grid span:nth-child(2) i{background:#dfe6e9}.builder-icon-grid span:nth-child(3) i{background:#fab1a0}.builder-icon-grid span:nth-child(4) i{background:#81ecec}.builder-icon-grid span:nth-child(5) i{background:#a29bfe}.builder-icon-grid span:nth-child(6) i{background:#fd79a8}.builder-icon-grid span:nth-child(7) i{background:#fdcb6e}.builder-icon-grid span:nth-child(8) i{background:#55efc4}.builder-notice{padding:10px 14px;border-radius:10px;background:#fff9e6;color:#e17055;box-shadow:0 2px 6px rgba(0,0,0,.03)}.builder-notice b{font-size:0}.builder-notice b:before{content:'📢';font-size:14px}.builder-heading{padding:14px 16px;border-radius:12px;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.04)}.builder-heading b{font-size:16px}.builder-product-grid{gap:12px;padding:8px 12px}.builder-product-grid span{overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04)}.builder-product-grid i{height:110px}.builder-product-grid b,.builder-product-grid em{padding:0 12px}.builder-product-grid em{padding-bottom:10px;color:#e17055}.builder-splash-preview{height:668px;margin:-1px -1px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(160deg,#fff 0%,var(--splash-bg) 100%);position:relative}.builder-splash-preview>i{width:96px;height:96px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,#6c5ce7,#a29bfe);box-shadow:0 12px 24px rgba(108,92,231,.3);font-size:44px;font-style:normal;animation:builderSplashFloat 2s ease-in-out infinite}.builder-splash-preview>b{margin-top:24px;font-size:24px;letter-spacing:1px}.builder-splash-preview>span{margin:8px 0 36px;color:#636e72}.builder-splash-preview>em{width:32px;height:32px;border:3px solid #dfe6e9;border-top-color:#6c5ce7;border-radius:50%;animation:builderSplashSpin .8s linear infinite}.builder-splash-preview>small{margin-top:16px;color:#636e72}.builder-splash-preview>u{position:absolute;bottom:28px;color:#b2bec3;text-decoration:none;font-size:12px}@keyframes builderSplashFloat{50%{transform:translateY(-10px)}}@keyframes builderSplashSpin{to{transform:rotate(360deg)}}

/* 搜索组件设置：严格保持“标签 / 色块 / 色值”同行，复刻参考面板节奏 */
.builder-setting-card>section{padding:28px 20px 30px}
.builder-setting-card h4{margin:4px 0 26px;font-size:16px;font-weight:500;color:#172033}
.builder-setting-card h4:not(:first-child){margin-top:30px}
.builder-setting-card label:has(>input[type=color]){grid-template-columns:92px 32px 100px;justify-content:start;gap:8px}
.builder-setting-card label:has(>input[type=color])>input[type=color]{width:32px;height:32px;padding:4px;border:1px solid #d8dee8;border-radius:4px;background:#fff}
.builder-setting-card label:has(>input[type=color])>input[type=color]+input{width:100px!important;height:32px;padding:6px 10px;text-transform:uppercase}
.builder-setting-card .builder-switch{grid-template-columns:92px 40px;justify-content:start}
.builder-setting-card .builder-switch input[type=checkbox]{position:relative;width:40px!important;height:22px;margin:0;appearance:none;border:0;border-radius:11px;background:#dfe4ec;cursor:pointer;transition:background .15s}
.builder-setting-card .builder-switch input[type=checkbox]:after{content:'';position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
.builder-setting-card .builder-switch input[type=checkbox]:checked{background:#409eff}
.builder-setting-card .builder-switch input[type=checkbox]:checked:after{transform:translateX(18px)}

/* 轮播广告四页签与实时预览 */
.builder-carousel-settings>nav button{min-width:0;padding:0 6px;white-space:nowrap}
.builder-carousel-settings>section{min-height:270px}
.builder-unit-row>div{display:grid;grid-template-columns:minmax(0,1fr) 56px}
.builder-unit-row>div input{border-radius:4px 0 0 4px}
.builder-unit-row>div i{display:grid;place-items:center;border:1px solid #d8dee8;border-left:0;border-radius:0 4px 4px 0;background:#f5f7fa;color:#8a94a3;font-size:12px;font-style:normal}
.builder-media-row{grid-template-columns:92px auto!important;justify-content:start}
.builder-media-row button{width:auto;padding:7px 15px;background:#fff}
.builder-link-button{border:0!important;color:#409eff;background:#fff!important;font-size:14px}
.builder-carousel-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-left:100px}
.builder-carousel-image{position:relative;margin:0;border:1px solid #d8dee8;background:#fff}
.builder-carousel-image img{display:block;width:100%;height:58px;object-fit:cover}
.builder-carousel-image span{display:block;padding:4px;overflow:hidden;color:#657184;font-size:11px;text-align:center;white-space:nowrap}
.builder-carousel-image button{position:absolute;right:-6px;top:-6px;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#aab2bd;color:#fff}
.builder-option-row{grid-template-columns:92px minmax(0,1fr)!important;align-items:start!important}
.builder-inline-choices{display:flex;align-items:center;gap:10px;min-width:0}
.builder-inline-choices button{width:auto;min-width:0;padding:7px 10px;border-color:transparent;background:#fff;white-space:nowrap}
.builder-inline-choices button:before{content:'';display:inline-block;width:12px;height:12px;margin-right:6px;border:1px solid #d8dee8;border-radius:50%;vertical-align:-2px}
.builder-inline-choices button.active{color:#409eff}
.builder-inline-choices button.active:before{border:4px solid #409eff}
.builder-option-row:has([data-choice=effect]) .builder-inline-choices button,.builder-option-row:has([data-choice=layout]) .builder-inline-choices button{display:grid;place-items:center;gap:5px;width:70px;height:70px;border:1px solid #d8dee8;border-radius:4px;font-size:20px}
.builder-option-row:has([data-choice=effect]) .builder-inline-choices button:before,.builder-option-row:has([data-choice=layout]) .builder-inline-choices button:before{display:none}
.builder-option-row:has([data-choice=effect]) .builder-inline-choices button.active,.builder-option-row:has([data-choice=layout]) .builder-inline-choices button.active{border-color:#409eff}
.builder-inline-choices small{display:block;font-size:12px;font-weight:400}
.builder-option-row:has([data-choice=indicator]) .builder-inline-choices,.builder-option-row:has([data-choice=indicatorPosition]) .builder-inline-choices{gap:5px}
.builder-option-row:has([data-choice=indicator]) .builder-inline-choices button,.builder-option-row:has([data-choice=indicatorPosition]) .builder-inline-choices button{padding:7px 6px}
.builder-range:has([data-number=interval])>i{font-size:0}
.builder-range:has([data-number=interval])>i:after{content:'秒';font-size:12px}
.builder-carousel-stage{box-sizing:border-box}
.builder-carousel-window{position:relative;display:grid;place-items:center;overflow:hidden;background:#ffe3d5;color:#9b4c38;font-size:18px;font-weight:700}
.builder-carousel-window.style2{margin:0 14px;box-shadow:-12px 0 0 -5px #f3cbbb,12px 0 0 -5px #f3cbbb}
.builder-carousel-window img{width:100%;height:100%}
.builder-carousel-window.fit-cover img{object-fit:cover}
.builder-carousel-window.fit-contain img{object-fit:contain;background:#fff}
.builder-carousel-window.effect-fade img{animation:builder-carousel-fade .8s ease}
@keyframes builder-carousel-fade{from{opacity:.25}to{opacity:1}}
.builder-carousel-indicator{position:absolute;left:10px;right:10px;bottom:8px;display:flex;align-items:center;gap:5px;color:var(--indicator)}
.builder-carousel-indicator.position-left{justify-content:flex-start}.builder-carousel-indicator.position-center{justify-content:center}.builder-carousel-indicator.position-right{justify-content:flex-end}
.builder-carousel-indicator i{display:block;width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--indicator) 45%,transparent)}
.builder-carousel-indicator i.active{background:var(--indicator)}
.builder-carousel-indicator.type-bar i{width:16px;height:4px;border-radius:2px}.builder-carousel-indicator.type-line i{width:16px;height:2px;border-radius:0}.builder-carousel-indicator.type-number b{padding:2px 7px;border-radius:10px;background:#0007;color:#fff;font-size:11px}

/* 选中组件仅保留复制与删除悬浮操作 */
.builder-component-actions{position:fixed;z-index:25;left:auto;padding:5px 4px;border:0;border-radius:22px;box-shadow:0 5px 16px #1e293b24}
.builder-component-actions button{width:32px;height:32px;border-radius:50%;font-size:21px}
.builder-component-actions button[data-remove]{color:#8d98a7;font-size:0}
.builder-component-actions button[data-remove]:before{content:'\1F5D1';font-family:'Segoe UI Symbol';font-size:18px}
.builder-component-actions button[data-remove]:hover{color:#e5484d;background:#fff1f1}
.builder-component-actions button[data-move-up]{color:#8d98a7;font-size:22px}
.builder-nav-size-hint{display:block;margin:8px 0 2px;color:#8a94a3;font-size:12px}
.builder-nav-image.nav-upload-icon{height:70px;aspect-ratio:1/1}
.builder-nav-image.nav-upload-image{height:42px;aspect-ratio:340/200;margin-top:14px}
.builder-nav-image.nav-upload-image img{object-fit:cover}

/* 轮播设置：参考图紧凑字号及严格同行布局 */
.builder-carousel-settings{font-size:14px}
.builder-carousel-settings>nav{height:56px}
.builder-carousel-settings>nav button{font-size:14px!important;font-weight:400}
.builder-carousel-settings>section{box-sizing:border-box;width:100%;padding:28px 20px 30px;overflow:hidden}
.builder-carousel-settings h4{font-size:16px;line-height:22px}
.builder-carousel-settings label{font-size:14px;line-height:20px}
.builder-carousel-settings .builder-inline-choices{flex-wrap:nowrap;gap:10px}
.builder-carousel-settings .builder-inline-choices button{font-size:14px;font-weight:400}
.builder-carousel-settings .builder-option-row:has([data-choice=effect]) .builder-inline-choices button,.builder-carousel-settings .builder-option-row:has([data-choice=layout]) .builder-inline-choices button{width:70px;height:70px;padding:6px;font-size:14px}
.builder-carousel-settings .builder-option-row:has([data-choice=effect]) small,.builder-carousel-settings .builder-option-row:has([data-choice=layout]) small{font-size:12px;line-height:16px}
.builder-carousel-settings [data-setting-pane=style] .builder-option-row:has([data-choice=indicator]) .builder-inline-choices{gap:8px}
.builder-carousel-settings [data-setting-pane=style] .builder-option-row:has([data-choice=indicator]) button{padding:7px 2px;font-size:14px}
.builder-carousel-settings [data-setting-pane=style] .builder-option-row:has([data-choice=indicatorPosition]) .builder-inline-choices{gap:0}
.builder-carousel-settings [data-setting-pane=style] .builder-option-row:has([data-choice=indicatorPosition]) button{width:36px;height:32px;padding:0;border:1px solid #d8dee8;border-radius:0;font-size:16px}
.builder-carousel-settings [data-setting-pane=style] .builder-option-row:has([data-choice=indicatorPosition]) button:before{display:none}
.builder-carousel-size-hint{display:block;margin:-9px 0 10px 100px;color:#8a94a3;font-size:12px}
.builder-carousel-images{display:grid;grid-template-columns:1fr;gap:12px;margin-left:100px}
.builder-carousel-image{position:relative;display:block;margin:0;padding:10px;border:1px solid #d8dee8;background:#fff}
.builder-carousel-upload{position:relative!important;display:block;width:100%!important;height:auto!important;padding:0!important;border:1px dashed #d8dee8!important;border-radius:0!important;background:#f7f9fc!important;overflow:hidden}
.builder-carousel-upload img{display:block;width:100%;height:auto;aspect-ratio:690/284;object-fit:cover}
.builder-carousel-upload small{position:absolute;inset:0;display:none;place-items:center;background:#ffffffd9;color:#687588;font-size:12px;line-height:18px}
.builder-carousel-upload:hover small{display:grid}
.builder-carousel-image>label{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;margin:8px 0 0!important;color:#172033!important}
.builder-carousel-image>label select{min-width:0;background:#eaf4ff}
.builder-carousel-image>.builder-carousel-remove{position:absolute;right:-7px;top:-7px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#aab2bd;color:#fff}
.builder-carousel-settings [data-setting-pane=spacing] .builder-range input[type=number]{text-align:left}

/* 标题组件参考图设置与实时预览 */
.builder-title-settings{font-size:14px}
.builder-title-settings>section{padding:28px 20px 30px}
.builder-title-settings h4{margin:4px 0 26px;font-size:16px;line-height:22px;color:#172033}
.builder-title-settings h4:not(:first-child){margin-top:30px}
.builder-title-settings label{grid-template-columns:92px minmax(0,1fr);margin-bottom:20px;font-size:14px}
.builder-title-options{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px}
.builder-title-options button{position:relative;width:auto;padding:3px 0 3px 18px;border:0;background:#fff;color:#172033;font-size:14px;white-space:nowrap}
.builder-title-options button:before{content:'';position:absolute;left:0;top:7px;width:12px;height:12px;box-sizing:border-box;border:1px solid #d8dee8;border-radius:50%}
.builder-title-options button.active{color:#409eff}
.builder-title-options button.active:before{border:4px solid #409eff}
.builder-title-align{display:flex;gap:0}
.builder-title-align button{width:36px;height:32px;padding:0;border:1px solid #d8dee8;border-radius:0;background:#fff;color:#5f6b7a;font-size:16px}
.builder-title-align button.active{border-color:#409eff;background:#f4f9ff;color:#409eff}
.builder-title-settings select[data-key=link]{background:#eaf4ff}
.builder-heading{box-sizing:border-box;min-height:56px;gap:8px;padding:14px 12px}
.builder-heading b{line-height:1.35}
.builder-heading.size-large b{font-size:18px}.builder-heading.size-medium b{font-size:16px}.builder-heading.size-small b{font-size:14px}
.builder-heading.align-left{justify-content:flex-start;text-align:left}.builder-heading.align-center{justify-content:center;text-align:center}.builder-heading.align-right{justify-content:flex-end;text-align:right}
.builder-heading span{margin-left:auto;white-space:nowrap}
.builder-heading.align-right span{margin-left:8px}
.builder-heading-icon{color:#409eff;font-style:normal}
.builder-heading.heading-style2{border-left:4px solid #409eff}.builder-heading.heading-style3{border-bottom:2px solid #409eff}
.builder-heading.heading-style4 b:before,.builder-heading.heading-style4 b:after{content:'';display:inline-block;width:24px;height:1px;margin:0 8px;background:currentColor;vertical-align:middle;opacity:.35}
.builder-heading.heading-style5 b{padding:5px 12px;border-radius:16px;background:#409eff;color:#fff}

/* 手机外壳必须裁切内部状态栏和滚动内容；操作胶囊使用 fixed 定位，不受此裁切影响。 */
.home-builder .phone-frame{overflow:hidden}

/* 列表允许鼠标经过浅蓝高亮；已选中行使用更明确的蓝色。全系统仍使用普通箭头。 */
body *{cursor:default!important}
.table-wrap tbody tr:not(.selected):hover>td,.trade-list-table tbody tr:not(.selected):hover>td,#content.paged-order-host tbody tr:not(.selected):hover>td{background:#e7f0ff!important;filter:none!important}
.table-wrap tbody tr.selected,.table-wrap tbody tr.selected>td,.trade-list-table tbody tr.selected,.trade-list-table tbody tr.selected>td,#content.paged-order-host tbody tr.selected,#content.paged-order-host tbody tr.selected>td{background:#dbeafe!important}

/* 全系统取消鼠标经过高亮；导航、分类和可选列表只保留 active/selected 状态。 */
.nav-btn:not(.active):not(.group-active):hover{background:transparent!important;color:#344054!important}
.mini-nav-child:not(.active):hover{background:transparent!important;color:#526077!important;border-left-color:#d7e2f1!important}
.tree-item:not(.active):hover,.category-tree-row:not(.active):not(.selected):hover,.connected-category-tree button:not(.active):not(.selected):hover,.inventory-category button:not(.active):not(.selected):hover{background:transparent!important;color:inherit!important;border-color:inherit!important;box-shadow:none!important;filter:none!important}
:is(.inventory-page,.pos-categories) .inventory-folder-icon{width:22px;height:20px;margin:0 4px 0 1px;vertical-align:-5px;border:0;border-radius:0;box-shadow:none;background:url('/assets/inventory-folder.svg?v=20261009-2') center/contain no-repeat}
:is(.inventory-page,.pos-categories) .tree-item[data-expanded="true"] .inventory-folder-icon{background-image:url('/assets/inventory-folder-open.svg?v=20261009-2')}
:is(.inventory-page,.pos-categories) .inventory-folder-icon::before{content:none}
.sheet-table tbody tr:not(.selected):hover>td,.repair-list-page tbody tr:not(.selected):hover>td{background:#e7f0ff!important;box-shadow:none!important;filter:none!important}
.resizable-data-table th:hover .column-resize-handle::after{border-color:transparent!important}
#content>.inventory-page.shared-inventory-workspace .inventory-detail>.table-wrap{width:100%;max-width:100%;overflow-x:hidden}
#content>.inventory-page.shared-inventory-workspace .inventory-detail table{width:100%;min-width:0;table-layout:fixed}
.pending-assembly-modal{width:min(1500px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));max-width:none}.pending-assembly-page{height:100%;min-height:0;display:flex;flex-direction:column}.pending-assembly-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border-bottom:1px solid #d7e0ed}.pending-assembly-toolbar>input{width:280px}.pending-date-presets{display:flex;align-items:center;gap:6px}.pending-date-presets label{display:flex;align-items:center;gap:4px;white-space:nowrap}.pending-date-presets input[type="month"]{width:125px}.pending-date-presets input[type="date"]{width:132px}.pending-date-presets button.active{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.pending-assembly-table{flex:1;min-height:0;overflow:auto}.pending-assembly-table table{min-width:1500px;table-layout:fixed}.pending-assembly-table th,.pending-assembly-table td{height:28px;padding:4px 8px;line-height:20px;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:ellipsis}.pending-assembly-page>footer{display:flex;align-items:center;justify-content:space-between;padding:10px;border-top:1px solid #d7e0ed}.refurbishment-work-form{height:100%;min-height:0;display:flex;flex-direction:column}.refurbishment-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.refurbishment-meta label,.refurbishment-note{display:flex;align-items:center;gap:8px}.refurbishment-meta input,.refurbishment-note input{flex:1}.refurbishment-note{margin-top:8px}.refurbishment-list{margin-top:10px;border:1px solid #d7e0ed}.refurbishment-list>header{height:34px;display:flex;align-items:center;gap:8px;padding:0 8px;background:#f8fafc;border-bottom:1px solid #d7e0ed}.refurbishment-list>header span{color:#64748b}.refurbishment-list .table-wrap{height:174px;min-height:174px;max-height:174px;overflow:auto}.refurbishment-list table{min-width:1080px}.refurbishment-list th,.refurbishment-list td{height:28px;padding:4px 8px;line-height:20px;white-space:nowrap;text-align:center}.refurbishment-list td input{width:100%;height:20px;border:0}.refurbishment-finished .table-wrap{height:82px;min-height:82px;max-height:82px}.refurbishment-costs{display:flex;align-items:center;gap:18px;margin-top:10px}.refurbishment-costs input{width:96px}.refurbishment-costs span{color:#64748b}.refurbishment-work-form>.actions{margin-top:auto}
.pending-assembly-modal #modal-body,.refurbishment-work-modal #modal-body,.refurbishment-work-modal>.modal-body{flex:1;min-height:0;overflow:hidden}.refurbishment-work-modal{width:min(1280px,calc(100vw - 48px));height:min(700px,calc(100vh - 48px));max-width:none}

/* 待组装作业：列表填满窗口剩余高度，所有字段压缩在可视宽度内。 */
.modal>.modal-card.pending-assembly-modal{display:flex;flex-direction:column;overflow:hidden}
.pending-assembly-modal>#modal-body{display:flex;flex:1;min-height:0;height:auto;padding:0;overflow:hidden}
.pending-assembly-modal .pending-assembly-page{flex:1;height:auto;min-width:0}
.pending-assembly-modal .pending-assembly-table{flex:1;min-width:0;padding:0 10px 8px;overflow-x:hidden!important;overflow-y:auto!important}
.pending-assembly-modal .pending-assembly-table table{width:100%!important;min-width:0!important;table-layout:fixed}
.pending-assembly-modal .pending-assembly-page>footer{flex:0 0 auto}

/* 待组装顶部操作栏与维修列表统一，并始终保持单行。 */
.pending-assembly-modal .pending-assembly-toolbar{height:52px;min-height:52px;padding:6px 10px;gap:4px;flex-wrap:nowrap;overflow:visible;white-space:nowrap}
.pending-assembly-modal .pending-assembly-toolbar>input{width:190px;min-width:140px;height:32px;flex:0 1 190px;padding:4px 8px;font-size:15px;line-height:21px}
.pending-assembly-modal .pending-assembly-toolbar button{height:32px;min-height:32px;padding:0 8px;font-size:15px;font-weight:400;line-height:21px;letter-spacing:.5px;white-space:nowrap}
.pending-assembly-modal .pending-date-presets{min-width:0;gap:4px;flex:1;justify-content:flex-end;white-space:nowrap}
.pending-assembly-modal .pending-date-presets label{gap:3px;font-size:15px;line-height:21px}
.pending-assembly-modal .pending-date-presets label>input{width:106px!important;min-width:106px!important;height:32px;padding:4px 6px;font-size:15px;line-height:21px}
.pending-assembly-modal .pending-assembly-table th,.pending-assembly-modal .pending-assembly-table td{padding:4px 5px;text-overflow:clip}
.pending-assembly-modal .pending-assembly-table th:nth-child(1){width:64px}.pending-assembly-modal .pending-assembly-table th:nth-child(2){width:94px}.pending-assembly-modal .pending-assembly-table th:nth-child(3){width:152px}.pending-assembly-modal .pending-assembly-table th:nth-child(4){width:76px}.pending-assembly-modal .pending-assembly-table th:nth-child(5){width:112px}.pending-assembly-modal .pending-assembly-table th:nth-child(6){width:78px}.pending-assembly-modal .pending-assembly-table th:nth-child(7){width:150px}.pending-assembly-modal .pending-assembly-table th:nth-child(8){width:122px}.pending-assembly-modal .pending-assembly-table th:nth-child(9),.pending-assembly-modal .pending-assembly-table th:nth-child(11){width:72px}.pending-assembly-modal .pending-assembly-table th:nth-child(10){width:54px}.pending-assembly-modal .pending-assembly-table th:nth-child(12){width:168px}.pending-assembly-modal .pending-assembly-table th:nth-child(13){width:58px}
.pending-assembly-modal [data-view-remark]{height:24px;min-height:24px;padding:0 8px;font-size:13px}
.pending-assembly-modal .pending-unit-price{color:#2563eb;font-weight:600}
.pending-assembly-modal .pending-line-amount{color:#d97706;font-weight:600}

/* 商品图片沿用维修单的竖向完整预览比例，避免方形裁切。 */
#inventory-product-form .inventory-product-image-list figure{flex:0 0 68px;width:68px;height:112px;border-color:#cbd5e1;background:#f1f5f9}
#inventory-product-form .inventory-product-image-list figure img{display:block;width:100%;height:100%;object-fit:contain}

/* 库存记录数靠左，翻页控件靠右；本页合计仍对齐商品列。 */
#inventory-product-pager .list-pager>b:first-child{order:0;margin-left:0}
#inventory-product-pager .list-pager>b:first-child{font-weight:400}
#inventory-product-pager .list-pager>:not(b){order:1}
#inventory-product-pager .list-pager>button:nth-of-type(1){margin-left:auto}
#inventory-product-pager .list-pager>.inventory-page-size select,#inventory-product-pager .list-pager>.inventory-page-jump select{padding:0 2px;font-size:13px;letter-spacing:0}
#inventory-product-pager .list-pager>.inventory-page-size select{width:100px}
#inventory-product-pager .list-pager>.inventory-page-jump select{width:82px}

/* 窄屏下不得把日期筛选和库存分页裁出可视区；宽屏保持原定稿布局。 */
@media(max-width:1400px){
  #content.paged-order-host>.toolbar{align-content:center}
  #content.paged-order-host>.toolbar>.list-date-filters{flex:1 0 100%;margin-left:0;justify-content:flex-start;flex-wrap:wrap;white-space:normal}
  #inventory-product-pager{min-width:0;overflow-x:auto;overflow-y:hidden}
  #inventory-product-pager .list-pager{width:max-content;min-width:100%;gap:1px;padding:0 4px}
  #inventory-product-pager .list-pager>label{gap:2px}
  #inventory-product-pager .list-pager>.inventory-page-size select{width:82px}
  #inventory-product-pager .list-pager>.inventory-page-jump select{width:64px}
}
/* 新建报价、进货、销售、回收与维修/渠道售后采用同一弹窗高度；仅统一 UI。 */
.modal-card.trade-order-modal.business-sheet-modal{height:min(720px,calc(100dvh - 40px))!important;min-height:min(720px,calc(100dvh - 40px))!important;max-height:calc(100dvh - 40px)!important}
.trade-order-modal.business-sheet-modal #order-form>.trade-sheet-bottom .trade-footer button{height:30px!important;min-height:30px!important;padding:4px 10px!important;font-size:13px!important;line-height:20px!important}
.trade-order-modal.business-sheet-modal #order-form>.sale-header-grid .trade-full-remark{align-items:center!important}
.trade-order-modal.business-sheet-modal #order-form>.sale-header-grid .trade-full-remark>span{align-self:center!important}
.trade-order-modal.business-sheet-modal #order-form>.recycle-header-grid{grid-template-columns:max-content max-content max-content minmax(160px,1fr)!important;column-gap:16px!important;justify-content:start}
.trade-order-modal.business-sheet-modal #order-form>.recycle-header-grid .recycle-header-customer{width:max-content;gap:8px!important}
.trade-order-modal.business-sheet-modal #order-form>.recycle-header-grid .trade-nickname-prefix+input,
.trade-order-modal.business-sheet-modal #order-form>.recycle-header-grid input[name="customer_name_snapshot"]{width:126px!important;min-width:126px!important;max-width:126px!important;flex:0 0 126px!important}
.settings-section-toolbar{margin-bottom:10px}.settings-app-center{margin:0}.settings-hub-grid{align-content:start}
.settings-store-modal{width:min(980px,calc(100vw - 48px))!important;height:min(720px,calc(100vh - 48px))!important;overflow:hidden}.settings-store-modal #modal-body{height:calc(100% - 52px);padding:10px;overflow:auto}.settings-store-content{display:grid;gap:10px;font-size:13px;line-height:20px}.settings-store-content>.card{margin:0}.settings-store-content input,.settings-store-content select,.settings-store-content button{min-height:30px;font-size:13px}
.settings-app-modal{width:min(980px,calc(100vw - 48px))!important;height:min(520px,calc(100vh - 48px))!important;overflow:hidden}.settings-app-modal #modal-body{height:calc(100% - 52px);padding:10px;overflow:auto}.settings-app-modal .settings-app-center{margin:0;font-size:13px;line-height:20px}.settings-app-modal .tenant-module-grid{align-content:start}
.after-sale-header .full{width:100%;min-width:0}.after-sale-header .full input{width:auto;min-width:0}.after-sale-bottom{display:grid;grid-template-columns:minmax(220px,1fr) minmax(620px,720px);gap:8px}.after-sale-communication{grid-column:2;display:grid;grid-template-columns:1fr;gap:8px;width:100%;padding:8px 10px;border:1px solid #d8dee9}.after-sale-communication>label{display:flex;align-items:center;gap:7px}.after-sale-communication>label input{flex:1;min-width:0;height:30px}.after-sale-image-area{display:flex;min-height:82px;gap:10px}.after-sale-upload-actions{display:flex;flex-direction:column;gap:6px}.after-sale-upload-actions label,.after-sale-upload-actions button{display:flex;align-items:center;justify-content:center;width:84px;height:30px;margin:0;padding:4px 8px}.after-sale-image-preview{display:flex;flex:1;min-width:0;gap:8px;overflow:auto;border:1px solid #d8dee9;padding:5px}.after-sale-image-preview span{display:flex;align-items:center;max-width:150px;height:30px;padding:4px 8px;background:#f1f5f9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.after-sale-bottom .after-sale-return{grid-column:1/-1;margin:0}@media(max-width:1000px){.after-sale-bottom{grid-template-columns:1fr}.after-sale-communication{grid-column:1}}

/* 渠道售后右下区域与业务单统一：30px沟通框、80×36双入口、124px原比例缩略图预览。 */
.after-sale-modal .after-sale-communication{gap:6px;width:100%;padding:0;border:0;background:transparent}
.after-sale-modal .after-sale-communication>label{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;align-items:center}
.after-sale-modal .after-sale-communication>label>span{text-align:right;white-space:nowrap}
.after-sale-modal .after-sale-communication>label input{width:100%;min-width:0;height:30px;box-sizing:border-box}
.after-sale-modal .after-sale-image-area{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;width:100%;height:124px;min-height:124px;overflow:visible}
.after-sale-modal .after-sale-upload-actions{display:grid;grid-template-rows:36px 36px;align-content:center;gap:6px;height:124px}
.after-sale-modal .after-sale-upload-actions label,.after-sale-modal .after-sale-upload-actions button{display:flex;align-items:center;justify-content:center;width:80px;height:36px;margin:0;padding:4px 8px;border-radius:4px;box-sizing:border-box}
.after-sale-modal .after-sale-image-preview{display:grid;grid-auto-flow:column;grid-auto-columns:72px;justify-content:start;gap:6px;width:100%;min-width:0;height:124px;min-height:124px;padding:4px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;border:1px solid #b9c7da;background:#fff}
.after-sale-modal .after-sale-image-preview figure{position:relative;width:68px;height:112px;margin:0;border:2px solid transparent;background:#fff;overflow:hidden}
.after-sale-modal .after-sale-image-preview figure.selected{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}
.after-sale-modal .after-sale-image-preview figure>img,.after-sale-modal .after-sale-image-preview figure>div{display:grid;place-items:center;width:100%;height:100%;object-fit:contain;background:#f1f5f9;color:#94a3b8}
.after-sale-modal .after-sale-image-preview figure>span{display:none}
.after-sale-modal .after-sale-image-preview figure>button{display:none;position:absolute;top:2px;right:2px;align-items:center;justify-content:center;width:20px;min-width:20px;height:20px;padding:0;border:1px solid #ef4444;border-radius:50%;background:#ef4444;color:#fff;line-height:1;text-align:center}
.after-sale-modal .after-sale-image-preview figure.selected>button{display:flex}
.repair-progress-modal{height:auto!important}.repair-progress-modal #modal-body{overflow:hidden}.repair-progress-quick{height:auto;grid-template-rows:auto 220px 76px auto}.repair-progress-details{display:grid!important;grid-template-columns:max-content max-content;grid-template-rows:30px 30px;align-items:center;align-content:center;gap:6px 18px;min-height:76px;padding:5px 18px}.repair-progress-details.hidden{display:none!important}.repair-progress-details>label,.repair-quick-pickup-extra label{display:flex!important;align-items:center;gap:8px;white-space:nowrap}.repair-progress-details>label>span,.repair-quick-pickup-extra label>span{white-space:nowrap}.repair-progress-details #repair-progress-completed-at{width:190px!important;min-width:190px!important;max-width:190px!important}.repair-progress-details #repair-quick-pickup-status{width:104px!important;min-width:104px!important}.repair-quick-pickup-extra{grid-column:1/-1;grid-row:2;position:relative;height:30px;min-height:30px}.repair-quick-pickup-logistics,.repair-quick-pickup-remark{position:absolute;inset:0;display:flex;align-items:center;gap:14px;visibility:hidden;pointer-events:none}.repair-quick-pickup-logistics.is-active,.repair-quick-pickup-remark.is-active{visibility:visible;pointer-events:auto}.repair-quick-pickup-logistics input{width:150px;height:28px}.repair-quick-pickup-remark input{width:390px;height:28px}
.finance-debt-overlay .compact-reference{width:calc(100vw - 120px);max-width:1500px}.finance-debt-overlay .table-wrap{overflow:auto}.finance-debt-overlay table{min-width:1200px;table-layout:fixed}

/* 基础资料编辑与积分规则沿用维修单的紧凑字号和 30px 单行控件。 */
.master-editor-card,.points-rule-modal{font-size:13px;line-height:20px;font-weight:400}
.master-editor-card .section-title,.points-rule-modal .modal-head{font-size:13px;line-height:20px}
.master-editor-card .form label,.master-editor-card .form label>span,.points-rule-modal .mall-points-rule>label,.points-rule-modal .mall-points-rule>label>span{font-size:13px;line-height:20px;font-weight:400}
.master-editor-card input,.master-editor-card select,.points-rule-modal input{box-sizing:border-box;height:30px;min-height:30px;padding:4px 7px;font-size:13px;line-height:20px}
.master-editor-card textarea{box-sizing:border-box;min-height:60px;padding:4px 7px;font-size:13px;line-height:20px}
.master-editor-card button,.points-rule-modal button{box-sizing:border-box;height:30px;min-height:30px;padding:4px 10px;font-size:13px;line-height:20px}
.points-rule-modal .mall-points-rule{font-size:13px;line-height:20px}
.points-rule-modal .mall-points-rule>label{margin:14px 0}
.points-rule-modal .points-rule-note{margin-top:18px;line-height:20px}

/* 所有新建业务表单的制单人信息与右边框保留一致安全间距。 */
.trade-order-modal.business-sheet-modal #order-form>.trade-order-heading{padding-right:14px!important}
#repair-form .repair-number-creator{margin-right:14px!important}
.after-sale-form>.after-sale-heading{padding-right:14px}
.after-sale-header{grid-template-columns:max-content minmax(190px,1fr) minmax(150px,190px) minmax(190px,230px)}

/* 资料设置入口：卡片内容收紧，左右两列之间保留更清晰的分隔。 */
.data-settings-master-grid,.finance-settings-grid{width:min(760px,94%);column-gap:32px;row-gap:24px}
.data-settings-master-grid>.data-settings-card,.finance-settings-grid>.data-settings-card{min-height:96px;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:14px}
.data-settings-master-grid .data-settings-icon,.finance-settings-grid .data-settings-icon{width:48px;height:48px;border:0;background:transparent}
.data-settings-icon>.hub-icon{width:44px;height:44px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 员工管理：固定头尾、紧凑列表，权限区独立滚动。 */
.staff-manager-modal{width:min(1180px,94vw)!important;height:min(760px,90vh)!important;overflow:hidden!important}.staff-manager-modal #modal-body{height:calc(100% - 52px);min-height:0;padding:0!important;overflow:hidden}.staff-manager{box-sizing:border-box;height:100%;min-height:0;padding:12px 14px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}.staff-manager>header,.staff-manager>footer{display:flex;align-items:center;gap:14px}.staff-manager>header>div{display:grid;gap:3px;margin-right:auto}.staff-manager>header span,.staff-manager>footer{color:#64748b}.staff-manager>.table-wrap{min-height:0;overflow:auto;border:1px solid #d7e0ed}.staff-manager th,.staff-manager td{padding:4px 8px;line-height:20px;white-space:nowrap;vertical-align:middle}.staff-manager tr.departed{color:#8793a5;background:#f6f7f9}.staff-row-actions{display:flex;align-items:center;gap:5px;height:30px}.staff-row-actions button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:30px;min-height:30px;margin:0;padding:4px 10px;line-height:20px;white-space:nowrap}.staff-manager>footer{min-height:38px;padding:8px 10px;justify-content:space-between;border:1px solid #d7e0ed;background:#f8fafc;box-sizing:border-box}.staff-editor-modal{width:min(1160px,94vw)!important;height:min(500px,calc(100vh - 40px))!important;overflow:hidden!important}.staff-editor-modal #modal-body{box-sizing:border-box;height:calc(100% - 52px);min-width:0;min-height:0;overflow:hidden!important}.staff-editor{width:100%;min-width:0;height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;overflow-x:hidden}.staff-core-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}.staff-core-fields>label{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center}.staff-core-fields>label>span{text-align:right;padding-right:8px}.staff-image-field{grid-column:span 2;display:grid;grid-template-columns:86px auto auto minmax(0,1fr);align-items:center;gap:8px}.staff-image-field>span{text-align:right;padding-right:8px}.staff-image-field .upload-button{display:flex;align-items:center;justify-content:center;height:30px;margin:0;padding:4px 10px}.staff-image-field small{overflow:hidden;color:#64748b;text-overflow:ellipsis;white-space:nowrap}.staff-permissions{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px;border:1px solid #d7e0ed;background:#f8fafc}.staff-permissions fieldset{display:flex;align-content:flex-start;flex-wrap:wrap;gap:8px 12px;margin:0;padding:8px;border:1px solid #d7e0ed;background:#fff}.staff-permissions legend{padding:0 5px;font-weight:700}.staff-permissions label{white-space:nowrap}.staff-performance-modal{width:min(920px,92vw)!important;height:min(650px,86vh)!important}.staff-performance{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.staff-performance>.toolbar{display:flex;align-items:center;gap:6px}.staff-performance>.toolbar>span{margin-left:auto;color:#64748b}.staff-performance-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.staff-performance-summary span{display:grid;gap:4px;padding:10px;border:1px solid #d7e0ed;background:#f8fafc}.staff-performance-summary b{font-size:18px}.staff-performance>.table-wrap{min-height:0;overflow:auto}

/* 员工档案：首行复用维修单的紧凑控件参数，图片区复用左侧双入口和右侧完整预览框。 */
.staff-editor{grid-template-rows:auto auto 124px auto;font-size:13px;line-height:20px}
.staff-core-fields{display:grid;grid-template-columns:1fr 1.12fr 1.24fr 1.48fr .9fr;align-items:center;gap:8px}
.staff-core-fields>label,.staff-secondary-fields>label{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;min-width:0;gap:6px}
.staff-core-fields>label>span,.staff-secondary-fields>label>span{padding:0;text-align:left;white-space:nowrap}
.staff-editor :is(input,select,textarea,button){box-sizing:border-box;font-size:13px;line-height:20px}
.staff-core-fields :is(input,select),.staff-secondary-fields :is(input,select){width:100%;min-width:0;height:30px;min-height:30px;padding:4px 7px}
.staff-secondary-fields{display:grid;grid-template-columns:340px 150px minmax(0,1fr);align-items:center;gap:10px 16px;min-width:0}
.staff-secondary-fields>.staff-initial-password{grid-template-columns:max-content 176px;justify-content:start}
.staff-secondary-fields>.staff-internal-note:only-child{grid-column:1/-1}
.staff-secondary-fields>.staff-internal-note{grid-column:1/-1}.staff-commission-rate{display:flex!important;align-items:center;justify-content:flex-start;min-width:0;gap:6px!important}.staff-commission-rate>div{display:grid;grid-template-columns:44px 28px;flex:0 0 auto;align-items:center}.staff-commission-rate i{height:30px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-left:0;border-radius:0 3px 3px 0;background:#f8fafc;font-style:normal}.staff-commission-rate input{width:44px!important;border-radius:3px 0 0 3px!important}
.staff-image-area{display:grid;grid-template-columns:80px minmax(0,1fr);height:124px;min-height:124px;gap:8px}
.staff-image-tools{display:grid;grid-template-rows:36px 36px;align-content:center;gap:6px;height:124px}
.staff-image-tools .repair-image-tool{display:flex;align-items:center;justify-content:center;width:80px;min-width:80px;height:36px;min-height:36px;margin:0;padding:4px 8px;border-color:#2563eb;border-radius:4px;background:#2563eb;color:#fff;white-space:nowrap}
.staff-image-tools .repair-image-tool small{font-size:13px;color:inherit;line-height:20px}
.staff-image-preview{display:flex;align-items:flex-start;gap:6px;min-width:0;height:124px;padding:4px;overflow-x:auto;overflow-y:hidden;border:1px solid #b9c7da;background:#fff;color:#94a3b8}
.staff-image-preview>span{display:grid;width:100%;height:100%;place-items:center}
.staff-image-preview figure{position:relative;flex:0 0 68px;width:68px;height:112px;margin:0;border:2px solid transparent;background:#f1f5f9;cursor:pointer}
.staff-image-preview figure.selected{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}.staff-image-preview .repair-image-remove{position:absolute;z-index:2;top:-2px;right:-2px;display:none;width:22px;height:22px;padding:0;border:1px solid #fff;border-radius:50%;background:#dc2626;color:#fff;font-size:17px;font-weight:700;line-height:18px}.staff-image-preview figure.selected>.repair-image-remove{display:block}
.staff-image-preview img{display:block;width:100%;height:100%;object-fit:contain}
.staff-permission-launcher{display:flex;align-items:center;gap:8px;min-width:0;min-height:30px;padding:0;border:0;background:transparent}.staff-permission-launcher>b{white-space:nowrap}.staff-permission-launcher>button{height:30px;min-height:30px;padding:4px 14px;color:#fff;border-color:#2563eb;background:#2563eb}.staff-permission-launcher>span{min-width:0;overflow:hidden;color:#64748b;text-overflow:ellipsis;white-space:nowrap}.staff-permission-overlay{position:absolute;z-index:40;inset:52px 0 0;display:grid;place-items:center;padding:20px;background:rgb(15 23 42 / 32%)}.staff-permission-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(720px,calc(100% - 40px));height:min(650px,calc(100% - 40px));overflow:hidden;border:1px solid #cbd5e1;border-radius:4px;background:#fff;box-shadow:0 18px 42px rgb(15 23 42 / 24%)}.staff-permission-dialog>header,.staff-permission-dialog>footer{display:flex;align-items:center;padding:10px 14px}.staff-permission-dialog>header{justify-content:space-between;border-bottom:1px solid #d7e0ed}.staff-permission-dialog>header>button{width:30px;height:30px;padding:0;border:0;background:transparent;font-size:24px}.staff-permission-dialog>p{margin:0;padding:10px 14px;color:#64748b}.staff-permission-tree{min-width:0;min-height:0;margin:0 14px;padding:8px 12px;overflow-x:hidden;overflow-y:auto;border:1px solid #d7e0ed;background:#f8fafc}.staff-permission-tree details{min-width:0;margin:0;padding:3px 0}.staff-permission-tree summary{display:flex;align-items:center;gap:6px;min-height:28px;cursor:pointer}.staff-permission-tree summary input{width:15px;height:15px;margin:0}.staff-permission-tree details>div{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;min-width:0;margin-left:18px;padding:3px 0 7px 14px;border-left:1px dotted #8b98aa}.staff-permission-tree details>div>:is(details,label){position:relative}.staff-permission-tree details>div>:is(details,label)::before{content:"";position:absolute;z-index:1;left:-15px;top:14px;width:13px;border-top:1px dotted #8b98aa;pointer-events:none}.staff-permission-tree details>div>:is(details,label):last-child::after{content:"";position:absolute;z-index:0;left:-15px;top:15px;bottom:-8px;width:2px;background:#f8fafc;pointer-events:none}.staff-permission-tree summary,.staff-permission-tree label{position:relative;z-index:2}.staff-permission-tree label{display:flex;align-items:center;gap:6px;min-width:0;min-height:26px;white-space:normal}.staff-permission-tree label input{width:15px;height:15px;margin:0}.staff-permission-dialog>footer{justify-content:flex-end;gap:8px;border-top:1px solid #d7e0ed}.staff-permission-dialog>footer button{height:30px;min-height:30px;padding:4px 14px}
.staff-permission-tree>.staff-permission-category>summary{font-size:14px}.staff-permission-tree .staff-permission-module>summary{font-size:13px}.staff-permission-tree .staff-permission-module>div{padding-bottom:8px}.staff-permission-tree .staff-permission-module label{padding-left:2px}

/* 员工列表：离职筛选横向显示，备注在操作列之前，操作按钮居中。 */
.staff-manager>header>b{margin-right:auto}
.staff-manager>header .staff-departed-toggle{display:inline-flex!important;align-items:center;gap:6px;margin:0;white-space:nowrap;line-height:20px}
.staff-departed-toggle input{width:15px!important;height:15px!important;margin:0!important;flex:0 0 15px}
.staff-manager table{min-width:1050px;table-layout:fixed}
.staff-manager th:nth-child(7),.staff-manager td:nth-child(7){width:210px}
.staff-manager th:last-child,.staff-manager td:last-child{width:340px;text-align:center}
.staff-note-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569}
.staff-row-actions{justify-content:center;width:100%}

/* 员工列表：席位、时间和备注按员工管理确认稿统一。 */
.staff-seat-summary{display:flex!important;align-items:center;gap:10px;margin-right:auto!important;color:#0f172a!important}
.staff-seat-summary b,.staff-seat-summary span{font-size:14px;line-height:22px;color:#0f172a}.staff-seat-summary [data-buy-seat]{height:30px;min-height:30px;padding:4px 10px;font-size:13px;line-height:20px;color:#2563eb;background:#fff;border-color:#93c5fd}
.staff-manager th,.staff-manager td{text-align:center}
.staff-manager th:nth-child(6),.staff-manager td:nth-child(6){width:180px}
.staff-manager th:nth-child(7),.staff-manager td:nth-child(7){width:100px}
.staff-note-cell button{height:30px;min-height:30px;padding:4px 10px;font-size:13px;line-height:20px}
.staff-note-modal{width:min(620px,90vw)!important;height:360px!important}
.staff-note-editor{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.staff-note-person{display:flex;align-items:center;gap:32px;padding:8px 10px;border:1px solid #d7e0ed;background:#f8fafc}
.staff-note-editor>label{display:grid;grid-template-columns:max-content minmax(0,1fr);min-height:0;gap:8px}
.staff-note-editor textarea{width:100%;height:100%;min-height:160px;resize:none}

/* 渠道售后完成状态：明细可选，整单状态仅由明细自动汇总。 */
.after-sale-items th:nth-last-child(2){width:130px}
.after-sale-items :is(input,select){width:100%;height:28px;border:0;background:transparent;font-size:13px;text-align:center}
.after-sale-bottom{grid-template-columns:minmax(300px,1fr) minmax(620px,720px)}
.after-sale-status-return{grid-column:1;display:flex;min-width:0;flex-direction:column;align-self:start;gap:8px}
.after-sale-order-status{display:flex;align-items:center;gap:6px;min-height:38px;padding:4px 10px;border:1px solid #d8dee9;background:#f8fafc}
.after-sale-order-status span{display:none;align-items:center;justify-content:center;height:28px;padding:3px 12px;border:1px solid #2563eb;background:#2563eb;color:#fff}
.after-sale-order-status span.active{display:inline-flex}
.after-sale-status-return>.after-sale-return{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:8px 10px}
.after-sale-status-return>.after-sale-return label{display:grid;grid-template-columns:72px minmax(0,1fr);width:100%;gap:7px}
.after-sale-status-return>.after-sale-return select{width:150px;min-width:150px;background:#fff}
.after-sale-status-return>.after-sale-return input{width:100%}
@media(max-width:1000px){.after-sale-status-return{grid-column:1}}

/* 渠道售后供应商区复用进货单紧凑资料行：日期、选择、名称、联系人、电话同排。 */
.after-sale-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
.after-sale-supplier-info-row{display:grid;grid-template-columns:230px max-content minmax(306px,1fr) 190px 230px;align-items:center;gap:10px;width:100%;min-width:0}
.after-sale-supplier-info-row>label{display:flex;align-items:center;min-width:0;gap:7px;white-space:nowrap}
.after-sale-supplier-info-row>label>input{min-width:0;height:30px}
.after-sale-supplier-info-row .after-sale-supplier-name input{width:216px;min-width:216px;max-width:216px;font-weight:700}
.after-sale-supplier-info-row .after-sale-supplier-contact input{width:104px;min-width:104px;max-width:104px;font-weight:700}
.after-sale-supplier-info-row .after-sale-supplier-phone input{width:145px;min-width:145px;max-width:145px;font-weight:700}

/* 员工编辑弹窗进一步收紧，并拉开提成与权限入口的间距。 */
.staff-editor-modal{height:min(420px,calc(100vh - 40px))!important}
.staff-depart-modal{height:min(520px,calc(100vh - 40px))!important}
.staff-depart-form{height:100%;display:flex;flex-direction:column;gap:10px;padding:12px 16px!important;overflow:hidden}
.staff-depart-warning{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #f3c6c6;background:#fff7f7;color:#7f1d1d}
.staff-depart-form>label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;margin:0}
.staff-depart-form>label>span{text-align:right;white-space:nowrap}
.staff-depart-reason textarea{height:58px;min-height:58px;resize:none}
.staff-depart-note input{height:38px}
.staff-depart-form .staff-image-area{height:150px;min-height:150px}
.staff-depart-form>.actions{margin-top:auto}
.staff-secondary-fields>.staff-permission-launcher{margin-left:18px}

/* 组装/拆机原材料工具栏与成品可编辑字段。 */
.refurbishment-work-modal .refurbishment-material-toolbar{display:flex!important;align-items:center!important;height:42px;padding:5px 8px;gap:8px;flex-wrap:nowrap!important}
.refurbishment-work-modal .refurbishment-material-toolbar>b{order:1;flex:0 0 auto;display:block;white-space:nowrap}
.refurbishment-work-modal .refurbishment-material-toolbar>.grow{order:2;display:block;flex:1 1 auto;min-width:24px}
.refurbishment-work-modal .refurbishment-material-toolbar>input{order:3;box-sizing:border-box;flex:0 0 240px!important;width:240px!important;min-width:240px!important;max-width:240px!important;height:30px;padding:4px 8px}
.refurbishment-work-modal .refurbishment-material-toolbar>button{box-sizing:border-box;flex:0 0 auto!important;width:auto!important;min-width:76px;height:30px;padding:4px 12px;line-height:20px;white-space:nowrap!important}
.refurbishment-work-modal .refurbishment-material-toolbar>#refurbishment-product-search-button{order:4;width:64px!important;min-width:64px;border-color:#bfc8d6!important;background:#fff!important;color:#26354a!important}
.refurbishment-work-modal .refurbishment-material-toolbar>#refurbishment-add-part{order:5;border-color:#2563eb!important;background:#2563eb!important;color:#fff!important}
.refurbishment-work-modal .refurbishment-material-toolbar>#refurbishment-add-other-cost{order:6}
.refurbishment-work-modal .refurbishment-list td input{width:100%;height:24px;padding:2px 6px;border:1px solid #cbd5e1}
.refurbishment-work-modal .refurbishment-finished th:nth-child(6){width:130px}
.refurbishment-work-modal .refurbishment-finished th:nth-child(7){width:190px}
.refurbishment-work-modal .refurbishment-finished th:nth-child(8){width:250px}
.refurbishment-work-modal .refurbishment-costs b{color:#0f172a}
.store-qr-setting{display:grid;grid-template-columns:90px 124px auto;grid-template-rows:auto auto;align-items:center;gap:8px 12px;padding:12px;border:1px solid #d7e0ed;background:#f8fafc}.store-qr-setting>span{align-self:start;padding-top:6px;text-align:right}.store-qr-preview{position:relative;display:grid;place-items:center;width:120px;height:120px;border:1px solid #d6dce5;background:#fff;color:#94a3b8}.store-qr-preview img{display:block;width:100%;height:100%;object-fit:contain}.store-qr-preview button{position:absolute;right:2px;top:2px;width:24px;min-width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#dc2626;color:#fff;font-size:19px;line-height:24px}.store-qr-actions{display:flex;align-items:center;gap:8px}.store-qr-actions .upload-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;margin:0;padding:4px 12px}.store-qr-setting>small{grid-column:3;color:#64748b}
.store-service-setting{display:flex;align-items:center;gap:12px;padding:10px 0}.store-service-setting>span{width:120px;text-align:right}.store-service-setting>button{height:32px}.store-service-setting>small{color:#64748b}.store-service-overlay{position:absolute;inset:0;z-index:40;display:grid;place-items:center;background:rgba(15,23,42,.42)}.store-service-dialog{width:680px;max-width:calc(100% - 32px);overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.25)}.store-service-dialog>header,.store-service-dialog>footer{display:flex;align-items:center;min-height:52px;padding:0 14px}.store-service-dialog>header{border-bottom:1px solid #e2e8f0;font-size:18px}.store-service-dialog>header button{margin-left:auto;border:0;background:transparent;font-size:28px}.store-service-dialog>main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px 32px}.store-service-dialog article{display:flex;flex-direction:column;align-items:center;gap:10px}.store-service-dialog h3{margin:0;font-size:15px}.store-service-qr{position:relative;width:120px;height:120px;border:1px solid #d6dce5;background:#fff}.store-service-qr img{display:block;width:100%;height:100%;object-fit:contain}.store-service-qr>i{display:grid;height:100%;place-items:center;color:#94a3b8;font-size:32px;font-style:normal}.store-service-qr>label{position:absolute;inset:0;cursor:pointer}.store-service-qr>[data-delete]{position:absolute;z-index:2;right:-9px;top:-9px;width:25px;min-width:25px;height:25px;padding:0;border:0;border-radius:50%;background:#dc2626;color:#fff;font-size:20px;line-height:25px}.store-service-dialog article>button,.store-service-dialog article>input{box-sizing:border-box;width:120px;height:34px;text-align:center}.store-service-dialog>footer{justify-content:flex-end;gap:8px;border-top:1px solid #e2e8f0}

/* 报价、进货、销售、回收和渠道售后：订单列表及单据明细统一居中。 */
.trade-list-page:not(.repair-list-page) .trade-list-table :is(th,td),
#content.paged-order-host:has(> .toolbar #order-columns):not(:has(.trade-list-page))>.table-wrap :is(th,td),
#content.paged-order-host:has(> .toolbar #as-add)>.table-wrap :is(th,td),
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table :is(th,td),
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td :is(input,select,output),
.after-sale-items :is(th,td,input,select,output){text-align:center!important}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td,
.after-sale-items td{vertical-align:middle}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td>.list-row-delete,
.after-sale-items td>.list-row-delete{margin-left:auto;margin-right:auto}

/* 创建/编辑业务单据：明细行沿用报价单的斑马纹，并让鼠标经过整行高亮。 */
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody tr:nth-child(odd)>td,
.after-sale-items tbody tr:nth-child(odd)>td{background:#fff!important}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody tr:nth-child(even)>td,
.after-sale-items tbody tr:nth-child(even)>td{background:#fafbfc!important}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody tr:hover>td,
.after-sale-items tbody tr:hover>td{background:#e7f0ff!important}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody tr.selected>td,
.after-sale-items tbody tr.selected>td{background:#dbeafe!important}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody td :is(input,select,textarea),
.after-sale-items tbody td :is(input,select,textarea){background:transparent!important}

/* 业务单据明细统一沿用报价单密度：28px 表头、26px 数据行、12px 字号。 */
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table,
.after-sale-modal #after-sale-form .after-sale-items table{
  height:auto!important;
}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table th,
.after-sale-items th{
  height:28px!important;
  padding:2px 8px!important;
  font-size:12px!important;
  line-height:18px!important;
}
#modal .trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table tbody tr,
#modal .after-sale-modal #after-sale-form .after-sale-items tbody tr{
  height:26px!important;
}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td,
.after-sale-modal #after-sale-form .after-sale-items td{
  height:26px!important;
  padding:0 8px!important;
  font-size:12px!important;
  line-height:18px!important;
}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td > :is(input,select,output,button),
.after-sale-modal #after-sale-form .after-sale-items td > :is(input,select,output,button){
  box-sizing:border-box!important;
  height:24px!important;
  min-height:24px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  font-size:12px!important;
  line-height:18px!important;
}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td > :is(.trade-line-total,.purchase-subtotal,.quote-subtotal){
  box-sizing:border-box!important;
  height:24px!important;
  min-height:24px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  font-size:12px!important;
  line-height:24px!important;
}
.trade-order-modal #order-form.trade-order-form>.order-items .trade-item-table td > :not(input[type="hidden"]),
.after-sale-modal #after-sale-form .after-sale-items td > :not(input[type="hidden"]){
  box-sizing:border-box!important;
  max-height:24px!important;
}
/* Annual app purchases and store inventory keep controls within their fixed panels. */
.tenant-module-grid .app-purchase-actions{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:6px}
.app-purchase-actions button,.tenant-purchase-history button{display:inline-flex;align-items:center;justify-content:center;min-height:32px}
.tenant-purchase-history-modal{width:min(1100px,calc(100vw - 40px));height:min(620px,calc(100vh - 40px));overflow:hidden}
.tenant-purchase-history-modal #modal-body{height:calc(100% - 54px);min-height:0;overflow:hidden}
.tenant-purchase-history{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}
.tenant-purchase-history .table-wrap{flex:1;min-height:0;overflow:auto}
.tenant-purchase-history table{min-width:800px;width:100%}
.tenant-purchase-history footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-shrink:0}
.tenant-purchase-history [role=alert]{color:#b42318;margin:0}
.inventory-stock-filters{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;font-size:12px}
.inventory-stock-filters label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer}
.inventory-stock-filters input[type="checkbox"]{width:14px;height:14px;min-height:0;margin:0;padding:0;flex:none;accent-color:#2563eb}
@media(max-width:1100px){
  #content>.inventory-page.shared-inventory-workspace .inventory-products>.inventory-section-title:has(.inventory-stock-filters){height:auto;flex-wrap:wrap;column-gap:9px;row-gap:3px}
}
.tenant-session-panel .inventory-store-filter{display:inline-flex;align-items:center;gap:6px;flex:none}
.tenant-session-panel .inventory-store-filter[hidden],
.tenant-session-panel:has(>.inventory-store-filter:not([hidden]))>#branch-current{display:none}
.tenant-session-panel .inventory-store-filter select{width:auto;min-width:0;max-width:210px;height:26px;padding:2px 6px;border:1px solid #b9c8dc;border-radius:4px;background:#fff;color:#2563eb;text-overflow:ellipsis}
.inventory-products th[data-inventory-field="branch_name"],.inventory-products td[data-inventory-field="branch_name"]{padding-left:2px;padding-right:2px}
@media(max-width:760px){
  #app.app>main>.business-main-header:has(.inventory-store-filter:not([hidden])){height:auto;flex-wrap:wrap;row-gap:6px}
  .business-main-header .tenant-session-panel:has(>.inventory-store-filter:not([hidden])){flex-basis:100%;flex-wrap:wrap;justify-content:flex-start;gap:5px;margin-left:0}
  .tenant-session-panel .inventory-store-filter{gap:4px;font-size:11px}
  .tenant-session-panel .inventory-store-filter select{max-width:112px;height:32px;font-size:11px}
}

.settings-app-center .tenant-module-grid{gap:10px}
.settings-app-center .tenant-module-grid>article{padding:11px 13px;min-height:0;display:flex;flex-direction:column;gap:5px}
.settings-app-center .tenant-module-grid>article p{margin:0;line-height:1.45}
.settings-app-center .tenant-module-grid>article .app-purchase-actions{margin-top:auto;padding-top:3px;gap:6px}
.settings-app-center .app-purchase-actions button{min-height:29px;padding:4px 9px;white-space:nowrap}
.app-order-choice{border:1px solid #dce4ee;border-radius:10px;padding:18px;color:#20324d;max-width:calc(100vw - 32px)}
.app-order-choice::backdrop{background:#14243f60}
.app-order-choice h2{margin:0 0 12px;font-size:16px}

.mini-settings-page{max-width:940px;margin:0 auto}
.mini-settings-page .data-settings-grid{width:100%;margin:14px 0 0}
@media(max-width:760px){.mini-settings-page .data-settings-grid{grid-template-columns:minmax(0,1fr)}}
.mini-settings-page #mini-home-preference{margin:0}

.inventory-flow-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.inventory-flow-filters label{display:flex;align-items:center;gap:6px;white-space:nowrap}

.inventory-flow-filters #inventory-flow-store{width:clamp(130px,19vw,220px)}

/* Keep the generated Flatpickr display fields the same width as the originals. */
#content.paged-order-host>.toolbar>.list-date-filters{max-width:100%;min-width:0;flex-wrap:wrap}
#content.paged-order-host .list-date-filters label{max-width:100%;flex-wrap:wrap}
#content.paged-order-host .list-date-filters label>input:not([type=hidden]){width:122px;min-width:0;max-width:100%;flex:0 1 122px}
#content.paged-order-host .list-date-filters label:has([data-list-month])>input:not([type=hidden]){width:112px;flex-basis:112px}

.customer-private-archive{margin:12px 0;padding:12px 14px;border:1px solid #dce6f1;border-radius:8px;background:#f7faff}
.customer-private-archive h3,.customer-private-archive dl,.customer-private-archive dd{margin:0}.customer-private-archive dl>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:8px;padding-top:8px}.customer-private-archive dd{white-space:pre-wrap;overflow-wrap:anywhere}
