:root{font-family:"Microsoft YaHei",sans-serif;color:#263449;background:#f3f5f8;font-size:14px}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}aside{width:230px;flex-shrink:0;background:#152e49;color:#d7e2ee;padding:30px 18px;position:relative}.brand{font-size:27px;font-weight:bold;color:#fff;padding:0 12px 30px}.brand small{display:block;font-size:12px;font-weight:normal;letter-spacing:3px;margin-top:9px;color:#94b0cb}nav button{display:block;width:100%;text-align:left;background:transparent;color:#c4d4e4;border:0;margin:6px 0;font-size:13px;padding:13px 12px}nav button.active{background:#167dc2;color:white}summary{padding:18px 10px 8px;cursor:pointer;font-weight:bold}.aside-foot{margin:65px 12px 0;font-size:12px;line-height:2;color:#87a1bc}.workspace{flex:1;min-width:0;min-height:100vh;display:flex;flex-direction:column}.workspace>main{flex:1}.icp-footer{flex:0 0 auto;text-align:center;padding:10px 16px;border-top:1px solid #e1e6ed;background:#fff;font-size:12px}.icp-footer a{color:#69798b;text-decoration:none}.icp-footer a:hover{text-decoration:underline;color:#147fbd}header{height:70px;background:white;border-bottom:1px solid #e3e7ed;display:flex;align-items:center;justify-content:space-between;padding:0 34px;font-weight:bold}.badge{background:#eef6ff;color:#2378b4;padding:7px 12px;border-radius:20px;font-size:12px}main{padding:26px 34px}.breadcrumb{color:#8391a2;font-size:12px}.heading{display:flex;align-items:center;justify-content:space-between;margin:15px 0 22px}h1{font-size:25px;margin:0 0 10px}p{line-height:1.7;margin:0;color:#718095}.notice{padding:13px 17px;background:#fff8e7;border:1px solid #f1e4bc;color:#8a6d28;border-radius:6px;font-size:13px}button{font:inherit;border:1px solid #d9e1ea;background:white;color:#34516e;border-radius:5px;padding:10px 18px;cursor:pointer}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}.primary{background:#147fbd;color:white;border-color:#147fbd}#message{min-height:40px;padding:8px 0;color:#157545}#message.error{color:#bd3333}.panel{background:white;border:1px solid #e1e6ed;border-radius:8px;padding:22px;margin-bottom:20px}.panel h2{font-size:16px;margin:0 0 20px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:18px}label{display:flex;flex-direction:column;gap:8px;font-size:13px}input,select{font:inherit;width:100%;padding:10px;border:1px solid #d7dfe8;border-radius:4px;background:white;color:#263449}form button{margin-top:20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.toolbar input{max-width:300px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #edf0f4;overflow-wrap:anywhere}th{background:#f6f8fb;color:#758298;font-weight:normal}.table-wrap{overflow:auto}.empty{text-align:center;padding:45px;color:#8492a4}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.card{background:white;padding:24px;border:1px solid #e1e6ed;border-radius:8px}.card strong{display:block;font-size:32px;margin-top:18px;color:#1e4d73}.steps{display:flex;gap:12px;flex-wrap:wrap}.steps button{margin-top:14px}@media(max-width:950px){aside{width:195px}main{padding:22px}.form-grid,.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){body{display:block}aside{width:100%;padding:14px}.brand{padding:0;font-size:20px}.brand small,.aside-foot{display:none}nav{display:flex;flex-wrap:wrap}summary{padding:10px}nav button{padding:8px}.cards,.form-grid{grid-template-columns:1fr}main{padding:16px}}
.payment-table{margin-top:20px;min-width:780px}.payment-table input[name=enabled]{width:20px;height:20px;accent-color:#147fbd}.payment-table input[name=order]{width:90px}.payment-table td:first-child{white-space:nowrap}.payment-preview{margin:24px 0}.payment-preview h2{margin-bottom:10px}.payment-preview .badge{margin-bottom:14px}.payment-table+ p{margin-top:15px}
.category-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.category-tree{max-height:720px;overflow:auto;padding:12px}.category-tree ul{list-style:none;padding-left:14px}.category-tree button{font-size:12px;padding:6px;text-align:left}.category-actions{white-space:nowrap}.category-actions button{padding:5px 8px}.category-preview{max-height:350px;overflow:auto;margin:16px 0}@media(max-width:950px){.category-layout{grid-template-columns:1fr}.category-tree{max-height:240px}}
textarea{font:inherit;width:100%;padding:10px;border:1px solid #d7dfe8;border-radius:4px;resize:vertical}.product-barcodes{grid-column:span 2}#product-status-filter{max-width:130px}#product-editor p{margin-top:16px}@media(max-width:620px){.product-barcodes{grid-column:auto}}
.download-link{display:inline-block;padding:10px 16px;border:1px solid #d7dfe8;border-radius:5px;color:#147fbd;text-decoration:none}.import-errors{background:#fff3f3;color:#a52727;padding:16px;margin:16px 0;border-radius:5px}.import-errors li{padding:4px}#product-import-preview h2{margin-top:22px}#product-import-select{margin-top:16px}
#directory-status{max-width:170px}#directory-editor p{margin-top:16px}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled input,fieldset:disabled select{background:#f4f6f8;color:#526174}

.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;flex-wrap:wrap}.pagination label{flex-direction:row;align-items:center}.pagination select{width:75px}.pagination>span:first-child{margin-right:auto}.list-toolbar select{max-width:200px}.audit-detail{min-width:150px}.audit-detail summary{padding:4px;color:#147fbd}.audit-fields{display:grid;grid-template-columns:100px minmax(180px,1fr);gap:6px;margin:10px 0}.audit-fields dt{color:#718095}.audit-fields dd{margin:0;overflow-wrap:anywhere}.audit-fields ol{padding-left:20px}.audit-detail[open]{min-width:350px}
dialog{border:1px solid #d9e1ea;border-radius:10px;padding:28px;max-width:440px;width:calc(100% - 40px);color:#263449}dialog::backdrop{background:rgba(15,35,55,.4)}dialog h2{font-size:20px;margin-top:0}
.stock-quantity-link{background:transparent;border:0;padding:0;margin:0;color:#087dbb;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}.stock-quantity-link:hover{color:#04537d}.stock-quantity-link:focus-visible{outline:2px solid #087dbb;outline-offset:3px}.stock-ledger-dialog #stock-ledger-results{padding:12px 14px}.stock-ledger-dialog .business-detail-table table{min-width:1000px}.stock-ledger-print-all{display:none}@media print{.stock-ledger-dialog #stock-ledger-results{display:none}.stock-ledger-print-all{display:block}.stock-ledger-print-all table{width:100%;font-size:11px}.stock-ledger-print-all th,.stock-ledger-print-all td{border:1px solid #ddd;padding:4px}}

/* Compact catalog workspace */
:root{font-size:13px}aside{width:196px;padding:14px 10px}.brand{font-size:23px;padding:0 10px 16px}.brand small{margin-top:5px}nav button{padding:8px 10px;margin:3px 0}summary{padding:12px 10px 5px}.aside-foot{margin-top:28px}header{height:40px;padding:0 16px}main{padding:10px 14px}.breadcrumb{display:none}.heading{margin:0 0 8px}h1{font-size:18px;margin:0}.heading p{display:none}.notice{padding:5px 9px;font-size:12px;margin-bottom:8px;border-radius:2px}#message{min-height:0;padding:0;margin:0}#message:not(:empty){padding:6px 0}.panel{padding:10px;margin-bottom:10px;border-radius:3px}.panel h2{margin-bottom:10px;font-size:14px}.toolbar{gap:10px;margin-bottom:8px}button{padding:6px 12px;border-radius:2px}input,select{padding:6px 8px}.form-grid{gap:12px}.form-grid label{gap:5px}form button{margin-top:12px}th,td{padding:7px 8px;border-right:1px solid #edf0f4}th{font-weight:600;color:#33445b}.table-wrap{max-height:calc(100vh - 245px);overflow:auto}thead th{position:sticky;top:0;z-index:1}td button{padding:3px 8px}.compact-actions{margin-bottom:8px}.empty{padding:28px}.pagination{padding-top:8px}.product-barcodes textarea{min-height:64px}form.panel{max-width:1100px}.category-layout{gap:10px}


/* Keep both panels mounted so tab switches preserve the full form draft. */
.chain-tabs{display:flex;gap:0;border-bottom:1px solid #dce3ed;background:#fff;margin-top:8px;}
.chain-tabs [role="tab"]{border:0;border-radius:0;background:transparent;padding:10px 20px;border-bottom:2px solid transparent;color:#42536a;}
.chain-tabs [role="tab"][aria-selected="true"]{color:#0672d5;border-bottom-color:#0672d5;font-weight:600;}
.chain-tabs [role="tab"]:focus-visible{outline:2px solid #0672d5;outline-offset:-3px;}
#chain-form [role="tabpanel"]{margin-top:0;border-top:0;}
#chain-form [role="tabpanel"][hidden]{display:none;}
.chain-basic-layout{display:grid;gap:11px 14px;max-width:1500px}.chain-basic-row{display:grid;gap:11px 14px}.chain-basic-row label{gap:4px;min-width:0}.chain-basic-row input,.chain-basic-row select{min-width:0;padding:7px 8px}.chain-row-six{grid-template-columns:repeat(6,minmax(0,1fr))}.chain-row-address{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,2fr) repeat(2,minmax(0,1fr))}.chain-row-last{grid-template-columns:180px 180px 150px minmax(280px,430px)}#chain-panel-basic>p{margin-top:12px}@media(max-width:700px){.chain-basic-row,.chain-row-six,.chain-row-address,.chain-row-last{grid-template-columns:1fr}}
.chain-dialog{width:min(1420px,calc(100vw - 64px));max-width:none;max-height:calc(100vh - 64px);padding:0;border:0;border-radius:12px;background:#fff;box-shadow:0 22px 70px #13263d4d;overflow:hidden}.chain-dialog::backdrop{background:rgba(18,36,55,.48)}.chain-dialog #chain-form{display:flex;flex-direction:column;max-height:calc(100vh - 64px)}.chain-modal-header{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;padding:18px 24px;border-bottom:1px solid #e2e7ed}.chain-modal-header b{font-size:21px;color:#1d3148}.chain-modal-close{width:36px;height:36px;margin:0;padding:0;border:0;background:transparent;color:#5e6d7e;font-size:27px;line-height:1}.chain-modal-body{flex:1;min-height:0;padding:0 24px 16px;overflow:auto}.chain-dialog .chain-tabs{margin-top:0}.chain-dialog .chain-tabs button{margin:0}.chain-dialog .panel{border:0;border-radius:0;padding:18px 0 0;margin:0}.chain-dialog .chain-basic-layout{max-width:none}.chain-modal-footer{display:flex;justify-content:flex-end;gap:10px;flex:0 0 auto;padding:12px 24px;border-top:1px solid #e2e7ed;background:#fff}.chain-modal-footer button{margin:0}.chain-modal-footer .primary{min-width:100px}@media(max-width:700px){.chain-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.chain-dialog #chain-form{max-height:calc(100vh - 24px)}.chain-modal-header,.chain-modal-footer{padding:12px 16px}.chain-modal-body{padding:0 16px 12px}}

.scope-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scope-toolbar>span{font-size:12px;color:#60718a}.scope-combo{position:relative;display:flex;width:240px;max-width:100%}.scope-combo input{width:100%;height:32px;padding-right:36px;border-radius:2px}.scope-combo input:focus{border-color:#0672d5;outline:1px solid #0672d5}.scope-combo>button{position:absolute;right:0;top:0;height:32px;width:32px;padding:0;background:#0672d5;color:white;border:1px solid #0672d5;font-size:18px}.scope-combo [role="listbox"]{position:absolute;z-index:20;top:35px;left:0;width:100%;max-height:280px;overflow-y:auto;background:#fff;border:1px solid #dce3ed;box-shadow:0 3px 10px #0002;padding:4px 0}.scope-option{padding:8px 10px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scope-option[aria-selected="true"]{color:#0672d5;font-weight:600;background:#e8f7ff}.scope-option:hover,.scope-option.highlight{background:#e8f7ff}.scope-empty{padding:10px;color:#8190a4}
.product-query{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.product-query .scope-toolbar{padding:0;border:0;margin:0}.product-query .scope-toolbar>span{display:none}.product-query .scope-combo{width:180px}.product-query>select{width:150px}.product-query>input{width:190px}.product-query .product-add-button{background:#f07800;color:#fff;border-color:#f07800}.category-picker{position:relative;min-width:180px}.category-picker>summary{padding:7px 10px;border:1px solid #d7dfe8;cursor:pointer;font-weight:normal}.category-options{position:absolute;top:34px;left:0;z-index:21;background:white;border:1px solid #d7dfe8;width:280px;max-height:310px;overflow:auto;padding:8px;box-shadow:0 3px 10px #0002}.category-options ul{list-style:none;padding-left:14px;margin:4px 0}.category-options label{display:inline-flex;align-items:center;gap:5px;font-weight:normal;white-space:nowrap}.category-options input,.copy-targets input,.copy-radio input{width:auto}.category-options summary{padding:4px 0}.category-options li{padding:3px 0}#product-list [data-list-query],#product-list [data-list-filter]{display:none}.copy-targets{max-height:250px;overflow:auto;display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.copy-targets label,.copy-radio{display:flex;align-items:center;gap:6px}.copy-targets label{min-width:180px}.copy-targets label[hidden]{display:none}.copy-radio{margin:10px 0}#copy-store-search{max-width:300px}
/* Compact two-level category chooser. */
.category-two-level .category-options{width:500px;max-width:calc(100vw - 60px);padding:0;max-height:none;border-radius:3px}.category-picker-heading,.category-picker-footer{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:8px}.category-picker-heading{border-bottom:1px solid #edf0f4}.category-picker-footer{border-top:1px solid #edf0f4;color:#758397}.category-picker-heading button{padding:3px 8px}.category-columns{display:grid;grid-template-columns:190px minmax(0,1fr);height:285px}.category-first{overflow-y:auto;background:#f7f9fc;border-right:1px solid #e5eaf0;padding:4px}.category-first button{display:flex;align-items:center;gap:5px;width:100%;border:0;background:transparent;text-align:left;padding:9px 8px;white-space:nowrap;color:#34445a}.category-first button small{margin-left:auto;color:#8995a5;font-size:11px}.category-first button[aria-pressed="true"]{background:#e5f4ff;color:#0672d5;font-weight:600}.category-first button:hover{background:#eef5fc}.category-second{overflow-y:auto;padding:10px 12px}.category-second-title{display:block;font-size:12px;color:#718096;margin:0 0 8px}.category-two-level .category-check{display:flex;align-items:center;gap:8px;padding:7px 3px;margin:0;white-space:normal;cursor:pointer;font-size:13px}.category-two-level .category-check input{flex:0 0 14px;width:14px;height:14px;margin:0;padding:0}.category-check>span{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.category-check small{color:#8a96a6;font-size:11px;margin-left:auto;white-space:nowrap}.category-child-list{border-top:1px solid #edf0f4;margin-top:5px;padding-top:4px}.category-check:has(input:disabled){color:#8a96a6}.category-none{color:#8a96a6;font-size:12px}.category-second section[hidden]{display:none}@media(max-width:650px){.category-two-level .category-options{width:370px}.category-columns{grid-template-columns:145px minmax(0,1fr)}.category-check>span{display:block}.category-check small{display:block}.category-first button small{display:none}}
.category-page-head{display:flex;align-items:stretch;gap:10px;margin-bottom:10px}.category-page-head>.scope-toolbar{margin:0;min-width:280px;flex-wrap:wrap;align-content:center}.category-page-actions{flex:1;margin:0}.category-page-actions p{font-size:11px;margin:5px 0 0;color:#8a97a8}.category-page-actions .toolbar{margin:0}.category-tree{padding:10px 6px;max-height:calc(100vh - 265px);min-height:320px}.category-tree-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 12px}.category-tree-heading span{font-size:11px;color:#8a97a8}.category-tree ul{padding:0;margin:0;list-style:none}.category-tree ul[hidden]{display:none}.category-tree ul ul{padding-left:17px;margin-left:14px;border-left:1px solid #edf0f5}.category-node{display:flex;align-items:center;gap:0;margin:2px 0}.category-tree .category-expand{border:0;background:none;flex:0 0 24px;width:24px;text-align:center;padding:5px 0;color:#8190a4;font-size:16px}.category-leaf-dot{width:5px;height:5px;border-radius:50%;background:#cbd5e1;margin:0 9px;flex-shrink:0}.category-tree [data-category-filter]{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#40526b;flex:1;padding:8px 6px;border-radius:3px;min-width:0}.category-tree [data-category-filter]>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-tree [data-category-filter] small{font-size:10px;color:#99a5b4;margin-left:auto}.category-tree [data-category-filter] em{font-style:normal;font-size:10px;background:#edf1f6;padding:1px 4px;border-radius:3px;color:#8996a7}.category-tree [data-category-filter]:hover{background:#f1f7fd}.category-tree [data-category-filter].primary{background:#e7f3ff;color:#0874cf;font-weight:600}.category-tree .category-all{width:100%;padding:9px 12px;border-bottom:1px solid #edf0f5;margin-bottom:5px}.category-table-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:3px 0 10px;margin-bottom:8px}.category-table-heading b{font-size:14px;color:#294b70}.category-table-heading span{font-size:11px;color:#8a97a8}.category-name-cell{font-weight:600;color:#254c74}#category-list td:first-child{width:110px;white-space:nowrap}#category-list td:nth-child(2){width:85px;font-variant-numeric:tabular-nums;color:#637993}#category-list td{padding:9px 8px}#category-list tbody tr:hover{background:#f7fbff}#category-list .table-wrap{max-height:calc(100vh - 350px)}#category-list .list-toolbar{margin-bottom:8px}#category-list .list-toolbar b{font-size:12px;color:#738398}.category-table-panel{min-width:0}@media(max-width:950px){.category-page-head{flex-wrap:wrap}.category-page-head>.scope-toolbar,.category-page-actions{width:100%}.category-tree{max-height:240px;min-height:0}.category-table-heading span{display:none}}
#product-copy-dialog{width:1040px;max-width:calc(100vw - 48px);padding:0;border:0;border-radius:4px;max-height:calc(100vh - 60px);overflow:hidden;color:#33445b}#product-copy-dialog::backdrop{background:#11182775}.copy-dialog-title{height:44px;display:flex;align-items:center;justify-content:space-between;background:#252733;color:white;padding:0 16px}.copy-dialog-title button{background:transparent;color:#fff;border:0;font-size:24px;padding:0 5px}.copy-dialog-body{padding:22px 24px 12px;max-height:calc(100vh - 165px);overflow:auto}#product-copy-form{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:28px}.copy-dialog-body h2{font-size:16px;margin:0 0 14px}.copy-target-table{border:1px solid #e3e8ef;margin-top:10px;min-height:220px;max-height:340px;overflow:auto}.copy-target-table table{width:100%}.copy-target-table th{background:#f3f5f9}.copy-target-table th:first-child{width:45px}.copy-target-table td{padding:11px 9px}.copy-target-table input[type="checkbox"]{width:14px;height:14px;margin:0}.copy-target-table tr[hidden]{display:none}.copy-dialog-body #copy-store-search{width:100%;max-width:none}.copy-options-section{border-left:1px solid #edf0f5;padding-left:24px}#product-copy-dialog .copy-radio{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;margin:12px 0}#product-copy-dialog .copy-radio input{width:14px;height:14px;margin:0;flex:0 0 14px}#product-copy-dialog .copy-radio small{color:#8c98a8;margin-left:8px}.copy-method{font-size:13px;margin:0 0 24px;color:#147fbd}.copy-method small{display:block;color:#8a96a6;margin-top:6px}.copy-included{margin-top:24px;background:#f7f9fc;padding:12px;border-radius:3px;font-size:12px;line-height:1.7}.copy-included p{color:#7b8a9e;margin:6px 0}#copy-target-count{font-size:12px;color:#8090a5;margin:10px 0 0}.copy-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #e7ebf1}.copy-dialog-footer>span{margin-right:auto;font-size:12px;color:#8593a4}.copy-dialog-footer button[hidden]{display:none}#copy-preview{margin-top:15px;padding:12px;background:#f4f9ff;border:1px solid #dceafb;max-height:160px;overflow:auto;font-size:12px}#copy-preview p{margin:5px 0}#copy-dialog-message{margin:8px 0 0;color:#147fbd;font-size:12px}@media(max-width:750px){#product-copy-form{grid-template-columns:1fr;gap:14px}.copy-options-section{border-left:0;border-top:1px solid #edf0f5;padding:14px 0 0}.copy-dialog-footer>span{display:none}.copy-target-table{min-height:100px;max-height:180px}}
.category-two-level .category-check{flex-direction:row;justify-content:flex-start;min-height:34px}.category-two-level .category-check>span{flex-direction:row;text-align:left}

.employee-filter{display:flex;align-items:end;gap:12px}.employee-filter label{min-width:240px}.employee-filter select{height:32px}

.promotion-cards{display:flex;gap:16px;margin-bottom:12px}.promotion-cards button{display:flex;flex:1;flex-direction:column;gap:12px;text-align:left;padding:18px 24px;background:#edf6ff;border-color:#d2e8fb;color:#075ba5}.promotion-cards strong{font-size:20px}.promotion-cards button:nth-child(2){background:#fff7e7;color:#936005;border-color:#f0deaf}.promotion-cards button:nth-child(3){background:#edfaf4;color:#167f56;border-color:#c6e9d9}
.account-stores{display:flex;flex-wrap:wrap;gap:16px;padding:10px}.account-stores label{display:flex;flex-direction:row;align-items:center;gap:6px}.account-stores input{width:16px;height:16px}
.document-conditions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.document-conditions input,.document-conditions select{width:180px;height:32px}.business-document-dialog{width:min(1050px,92vw);max-height:85vh;border:1px solid #dae2ed;padding:18px}.business-document-dialog::backdrop{background:#17243880}.document-meta{display:flex;gap:20px;flex-wrap:wrap;padding:12px 0}.business-document-dialog .table-wrap{max-height:55vh;overflow:auto}
.document-conditions .document-exact{display:flex;align-items:center;gap:4px}.document-conditions input[type=checkbox]{width:14px;height:14px}
.business-detail-dialog{width:min(1650px,96vw);max-width:96vw;height:min(850px,93vh);max-height:93vh;padding:0;display:flex;flex-direction:column;border-radius:3px}.business-detail-dialog:not([open]){display:none}.business-detail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e1e7ee}.business-detail-header h2{font-size:15px;margin:0}.business-detail-header>div{display:flex;gap:8px}.business-detail-header button{margin:0}.business-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;padding:16px;border-bottom:1px solid #e1e7ee}.business-detail-meta span{overflow-wrap:anywhere}.business-detail-meta strong{font-weight:500}.business-detail-table{flex:1;overflow:auto}.business-detail-table table{min-width:1200px;white-space:nowrap}.business-detail-table th,.business-detail-table td{border:1px solid #e1e7ee;padding:9px}.business-detail-table th{background:#f4f7fb;color:#27384d}.business-detail-total{font-weight:600}.business-detail-total td:last-child{color:#e75e3c}.business-detail-note{padding:10px 14px;font-size:12px;border-top:1px solid #e1e7ee}@media(max-width:760px){.business-detail-meta{grid-template-columns:1fr 1fr}}@media print{body:has(.business-detail-dialog[open])>*:not(.business-detail-dialog){display:none!important}.business-detail-dialog[open]{position:static;width:100%;max-width:none;height:auto;max-height:none;border:0}.business-detail-header button,.business-detail-note{display:none}.business-detail-table{overflow:visible}}
.management-login-shell{min-height:calc(100vh - 145px);display:grid;place-items:center;background:linear-gradient(135deg,#e8f2fb,#f7f9fc 55%,#eaf3f8);padding:28px}.management-login-shell #management-login{width:min(420px,100%);max-width:none;padding:30px;box-shadow:0 12px 38px #18334b16;border-radius:8px;margin:0}.management-login-brand{color:#147fbd;font-size:24px;font-weight:700;margin-bottom:26px}.management-login-brand small{display:block;color:#6e8094;font-size:12px;font-weight:400;margin-top:2px}.management-login-shell h2{font-size:20px;margin-bottom:6px}.management-login-shell p{font-size:12px;margin-bottom:22px}.management-login-fields{display:grid;gap:16px}.management-login-fields label{gap:7px;font-size:13px}.management-login-fields input{height:42px}.management-login-shell button.primary{width:100%;height:44px;margin:24px 0 0;font-size:15px}.management-login-foot{text-align:center;color:#8c9aab;font-size:11px;margin-top:18px}
body.management-logged-out aside,body.management-logged-out header,body.management-logged-out .heading,body.management-logged-out .notice{display:none}body.management-logged-out main{padding:0}body.management-logged-out .management-login-shell{min-height:100vh}body.management-logged-out #message:not(:empty){position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:10;padding:10px 16px;background:#fff;border:1px solid #dce5ee;border-radius:4px;box-shadow:0 6px 16px #18334b13}

/* Inventory documents and quick stocktaking share the legacy worksheet layout. */
form.stock-editor-panel{max-width:none;min-height:calc(100vh - 155px);padding:0;margin:0;border-radius:0;display:flex;flex-direction:column}
.stock-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #e5e9ef}
.stock-editor-head h2{margin:0;font-size:15px;color:#203248}
.stock-editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.stock-editor-actions button,.stock-editor-search button{margin:0;padding:6px 12px}
.stock-editor-meta{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px 24px;padding:12px 16px 16px;align-items:end}
.stock-editor-meta label{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;white-space:nowrap;color:#66758b}
.stock-editor-meta label input,.stock-editor-meta label select{min-width:0;flex:1;height:32px}
.stock-editor-meta .stock-remark{grid-column:span 2}
.stock-editor-tip{padding:0 16px 10px;color:#6e8095;font-size:12px}
.stock-editor-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #edf0f4;border-bottom:1px solid #e1e7ee}
.stock-editor-search>input{width:240px;height:32px}
.stock-editor-search label{flex-direction:row;align-items:center;gap:4px;white-space:nowrap}
.stock-editor-search input[type=checkbox]{width:15px;height:15px}
.stock-editor-search span{font-size:12px;color:#a04c3f}
.stock-editor-table-wrap{flex:1;min-height:280px;overflow:auto;background:#fff}
.stock-editor-table{min-width:1700px;table-layout:fixed}
.stock-editor-table th,.stock-editor-table td{padding:5px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #e1e7ee;height:38px}
.stock-editor-table th{background:#f4f7fb;color:#263449;position:sticky;top:0;z-index:1}
.stock-editor-table th:nth-child(1){width:50px}.stock-editor-table th:nth-child(2){width:70px}.stock-editor-table th:nth-child(3){width:165px}.stock-editor-table th:nth-child(4){width:210px}.stock-editor-table th:nth-child(5){width:95px}.stock-editor-table th:nth-child(6){width:85px}.stock-editor-table th:nth-child(7){width:65px}.stock-editor-table th:nth-child(8),.stock-editor-table th:nth-child(10),.stock-editor-table th:nth-child(11),.stock-editor-table th:nth-child(12),.stock-editor-table th:nth-child(13),.stock-editor-table th:nth-child(14),.stock-editor-table th:nth-child(15){width:90px}.stock-editor-table th:nth-child(9){width:95px}.stock-editor-table th:nth-child(16){width:100px}.stock-editor-table th:nth-child(17){width:150px}
.stock-count-table{min-width:1000px}.stock-count-table th:nth-child(1){width:55px}.stock-count-table th:nth-child(2){width:70px}.stock-count-table th:nth-child(3){width:170px}.stock-count-table th:nth-child(4){width:245px}.stock-count-table th:nth-child(5){width:110px}.stock-count-table th:nth-child(6){width:75px}.stock-count-table th:nth-child(7){width:90px}.stock-count-table th:nth-child(8){width:105px}.stock-count-table th:nth-child(9){width:120px}.stock-count-table th:nth-child(10){width:160px}
.stock-editor-table td input{border:0;border-bottom:1px solid #d0d9e5;border-radius:0;padding:4px 2px;width:100%;min-width:0;height:27px;background:transparent}
.stock-editor-table td input:focus{outline:0;border-bottom:2px solid #167dc2}
.stock-editor-table td button{margin:0;padding:2px 5px;border:0;background:none;color:#1582c5;font-weight:bold;font-size:17px}
.stock-editor-table td[data-stock-amount],.stock-editor-table td[data-stock-balance],.stock-editor-table td[data-stock-original-cost]{text-align:right}
.stock-editor-footer{border-top:1px solid #dce3ec;padding:10px 14px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#40516a;flex-wrap:wrap}
#stock-editor-totals{font-weight:600}#stock-product-picker{max-width:620px;width:min(620px,95vw)}#stock-product-picker h2{margin:0 0 12px}#stock-picker-search{margin-bottom:10px}#stock-picker-results{max-height:45vh;overflow:auto;display:grid;gap:3px}#stock-picker-results button{margin:0;text-align:left}
@media(max-width:1050px){.stock-editor-meta{grid-template-columns:repeat(2,minmax(180px,1fr))}.stock-editor-meta .stock-remark{grid-column:auto}}
@media(max-width:680px){.stock-editor-meta{grid-template-columns:1fr}.stock-editor-head{align-items:flex-start;flex-direction:column}.stock-editor-search>input{width:100%}}
.daily-report{background:white;min-height:65vh;border:1px solid #e6e9ee;padding:10px}.daily-conditions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 12px}.daily-conditions select{width:180px}.daily-conditions input[type=datetime-local]{width:210px}.daily-conditions input,.daily-conditions select,.daily-conditions button{height:31px;font-size:12px}.daily-check{display:flex;align-items:center;gap:5px;white-space:nowrap}.daily-check input{width:15px;height:15px}.daily-shortcut{border-radius:18px;min-width:58px}.daily-conditions #sales-export{margin-left:auto}.daily-table{overflow:auto}.daily-table table{width:auto;min-width:870px;border-collapse:collapse;font-size:12px}.daily-table th{background:#f0f1f5;height:32px;color:#172438;text-align:center;border:1px solid #d9dce2;min-width:95px}.daily-table th:first-child{min-width:50px}.daily-table td{border:1px solid #d9dce2;text-align:right;height:32px;padding:5px 9px}.daily-table td:first-child,.daily-table td:nth-child(2){text-align:center}.daily-total{background:#fafbfc}.daily-note{font-size:12px;color:#718096;margin-top:10px}
.document-export{float:right;margin:0 0 8px 12px}.document-conditions input[type=datetime-local]{width:210px}.document-conditions [data-document-days]{border-radius:18px;min-width:56px}#document-table table{font-size:12px;white-space:nowrap}#document-table th{background:#eff0f4}#document-table td,#document-table th{padding:8px 10px}
.promotion-cards{margin-top:16px}.promotion-cards button{border:0;border-radius:10px;color:white;background:linear-gradient(135deg,#6bd4a4,#25c384);min-height:150px}.promotion-cards button:nth-child(2){background:linear-gradient(135deg,#ffca4d,#f2ab18);color:white}.promotion-cards button:nth-child(3){background:linear-gradient(135deg,#4cc8ff,#4582ed);color:white}.promotion-cards button:nth-child(4){background:linear-gradient(135deg,#ffb27e,#ff6587);color:white}.promotion-cards button span:last-child{background:white;color:#1680b9;padding:6px 18px;border-radius:20px;width:max-content}.promotion-bundle{margin:20px 0;border-top:1px solid #e3e8ef;padding-top:16px}.promotion-bundle select{min-width:300px}.promotion-bundle input{width:140px}
.promotion-weekdays{display:flex;gap:20px;border:1px solid #e2e8f0;margin:16px 0;padding:12px}.promotion-weekdays label{display:flex;align-items:center;gap:6px}.promotion-weekdays input{width:15px;height:15px;margin:0}
.promotion-navigation{background:#fff;border:1px solid #e1e6ed;padding:14px}.promotion-navigation h2{border-left:4px solid #1687da;padding-left:10px}.promotion-editor{max-width:none!important;padding:0}.promotion-title{padding:12px 16px;border-bottom:1px solid #e4e9f0}.promotion-title h2{margin:0}.promotion-base-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;padding:10px 70px}.promotion-base-grid>div{display:grid;gap:12px;align-content:start}.promotion-date-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.promotion-inline{display:grid;grid-template-columns:110px 1fr;align-items:center}.promotion-inline span,.promotion-participation span{display:flex;align-items:center;gap:5px}.promotion-inline input,.promotion-participation input{width:auto}.promotion-toggle{display:flex;justify-content:space-between;align-items:center}.promotion-toggle b{background:#087ddd;color:#fff;border-radius:15px;padding:4px 10px}.promotion-editor>.promotion-weekdays{margin:0 70px 8px}.promotion-more{text-align:right;padding:0 35px;color:#087ddd}.promotion-mode-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:12px 70px;border-top:1px solid #edf0f4}.promotion-participation{grid-column:1/-1}.promotion-products,.promotion-bundle{margin:0 20px 20px!important;padding-top:12px;border-top:1px solid #e3e8ef}.promotion-product-tools,.promotion-picker-filters{display:flex;gap:8px;align-items:center;margin-bottom:8px}.promotion-product-tools input{max-width:310px}.promotion-trial{margin:15px 20px;padding:12px;border:1px solid #e3e8ef}.promotion-product-dialog{width:min(1040px,94vw);max-width:none;height:min(650px,88vh);padding:0;border:0;border-radius:3px}.promotion-picker-body{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;padding:12px;height:540px}.promotion-picker-categories{width:auto;background:#f7f9fc;padding:8px;overflow:auto}.promotion-picker-categories button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px}.promotion-picker-categories button.active{background:#e5f4ff;color:#0672d5}.promotion-picker-body>section{min-width:0}.promotion-picker-body .table-wrap{height:455px;border:1px solid #e3e8ef}.promotion-picker-body input[type=checkbox],.promotion-picker-body input[type=radio]{width:15px;height:15px}.promotion-bundle input{width:90px}@media(max-width:900px){.promotion-base-grid{grid-template-columns:1fr;padding:15px}.promotion-editor>.promotion-weekdays{margin:0 15px}.promotion-mode-panel{grid-template-columns:1fr;padding:15px}.promotion-picker-body{grid-template-columns:1fr}.promotion-picker-categories{max-height:130px}}
.promotion-current-store{font-weight:400;color:#087ddd;background:#eef7ff;border:1px solid #cce6fa;padding:4px 8px;border-radius:2px}

#product-create-dialog{width:1180px;max-width:calc(100vw - 40px);max-height:92vh;padding:0;border:0;border-radius:3px;overflow:auto}#product-create-dialog .product-create-body{padding:20px 30px}#product-create-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 36px}#product-create-dialog .form-grid>label{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:8px}#product-create-dialog input,#product-create-dialog select{min-width:0;width:100%}#product-create-dialog .product-code-entry{display:flex}#product-create-dialog .product-code-entry button{flex-shrink:0}#product-create-dialog .category-picker{width:100%}#product-create-dialog .category-options{left:auto;right:0}#product-create-dialog .copy-dialog-footer{position:sticky;bottom:0;background:white}#product-create-dialog .product-extra{background:#f5f7fb;padding:12px;margin-top:12px}#product-create-dialog .product-extra[open]>summary{margin-bottom:12px}#product-create-dialog .product-create-kind{margin-bottom:18px;color:#65758a}.product-package-tools{display:flex;gap:8px;margin-bottom:8px}.product-package-tools button{margin:0}.product-package table{min-width:1090px}.product-package th,.product-package td{padding:7px 8px;white-space:nowrap}.product-package td:first-child{min-width:220px}.product-package td:nth-child(2){min-width:145px}.product-package td:nth-child(4){min-width:175px}.product-package td:nth-child(5){min-width:130px}.product-package td input{width:90px!important}.product-package td:nth-child(2) input{width:130px!important}.product-package td:nth-child(4) input{width:160px!important}.product-package td select{width:80px!important}.product-package .empty{text-align:center;padding:22px}.package-picker-summary{height:26px;color:#607086}.package-picker-pages{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:8px}#product-create-message{color:#b42318}@media(max-width:650px){#product-create-dialog .form-grid{grid-template-columns:1fr}#product-create-dialog .product-create-body{padding:16px}}
#product-create-dialog .category-check input{width:14px;height:14px;flex:0 0 14px} .form-grid .category-two-level{min-width:0;width:100%}
#product-package-picker[open]{display:flex;flex-direction:column;overflow:hidden}#product-package-picker>.copy-dialog-title,#product-package-picker>.copy-dialog-footer{flex:0 0 auto}#product-package-picker .promotion-picker-body{box-sizing:border-box;height:auto;min-height:0;flex:1 1 auto;overflow:hidden}#product-package-picker .promotion-picker-categories{box-sizing:border-box;height:100%;min-height:0;overflow:auto}#product-package-picker .promotion-picker-body>section{display:flex;flex-direction:column;min-height:0;overflow:hidden}#product-package-picker .promotion-picker-body .table-wrap{height:auto;min-height:180px;flex:1 1 auto;overflow:auto}#product-package-picker>.copy-dialog-footer{position:relative;z-index:2;box-sizing:border-box;min-height:52px;background:#fff;border-top:1px solid #e3e8ef}.product-package-picker-footer{display:flex;justify-content:space-between;align-items:center}.product-package-picker-footer .package-picker-pages,.product-package-picker-footer .package-picker-confirm{display:flex;align-items:center;gap:10px;margin:0}.product-package-picker-footer .package-picker-pages{margin-left:190px}@media(max-width:900px){.product-package-picker-footer .package-picker-pages{margin-left:0}}

.store-multiple{width:260px;max-width:100%}.store-multiple-options{position:absolute!important;top:100%;left:0;min-width:100%;width:360px;max-width:75vw;max-height:300px!important;min-height:0!important;overflow:auto;background:white;box-shadow:0 4px 12px #20334d30;z-index:60;border:1px solid #d5deea;padding:8px}.store-multiple-options[hidden]{display:none!important}.store-multiple-options label{display:flex;gap:8px;align-items:center;padding:8px}.store-multiple-options input[type=checkbox]{width:14px!important;height:14px}.store-multiple-options label[hidden]{display:none}#copy-store-search{min-width:0}
.employee-dialog{width:820px;max-width:calc(100vw - 40px);max-height:90vh;padding:0;border:0;border-radius:4px;overflow:auto}.employee-dialog::backdrop{background:#11182775}.employee-dialog-body{padding:22px 28px}.employee-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 30px}.employee-dialog .copy-dialog-footer{position:sticky;bottom:0;background:#fff}.employee-dialog .muted{margin:18px 0 0}@media(max-width:650px){.employee-dialog .form-grid{grid-template-columns:1fr}.employee-dialog-body{padding:16px}}
.employee-cashier-settings{margin-top:18px;border:1px solid #e2e8f0;background:#f7f9fc}.employee-cashier-settings>summary{padding:11px 14px;color:#147fbd}.employee-cashier-settings .form-grid{padding:14px;background:#fff;border-top:1px solid #e2e8f0}

/* Payment methods, provider integration and released packages are separate concerns. */
.payment-table{min-width:900px;margin-top:0}.payment-tabs{margin:0}.payment-section[hidden]{display:none}.payment-store-toolbar{display:flex;align-items:end;gap:18px;margin:0;border-top:0}.payment-store-toolbar label{width:240px}.payment-store-toolbar span{color:#718095;padding-bottom:7px}.payment-section-intro{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:12px}.payment-section-intro h2{margin:0 0 4px}.payment-section-intro>span{color:#637994;background:#f2f6fa;padding:5px 9px}.payment-state{display:inline-block;padding:3px 8px;border-radius:12px;font-size:12px;white-space:nowrap}.payment-state.ready{color:#177245;background:#e9f8ef}.payment-state.pending{color:#946200;background:#fff5d9}.payment-provider-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f5f9fd;border:1px solid #dce8f3;padding:13px 16px;margin-bottom:14px}.payment-provider-summary b{font-size:15px}.payment-provider-summary>span{white-space:nowrap;color:#147fbd}.payment-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px}.payment-provider-card{border:1px solid #dfe6ee;padding:16px;background:#fff;min-height:225px}.payment-provider-head{display:flex;align-items:center;gap:12px}.payment-provider-head>div:nth-child(2){flex:1}.payment-provider-head h2{margin:0 0 4px;font-size:17px}.payment-provider-logo{width:40px;height:40px;display:grid;place-items:center;color:white;background:#147fbd;border-radius:8px;font-size:18px;font-weight:bold}.payment-provider-description{margin:14px 0}.payment-provider-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}.payment-provider-card dl>div{background:#f7f9fc;padding:9px}.payment-provider-card dt{color:#8090a3;font-size:11px}.payment-provider-card dd{margin:4px 0 0;color:#334b66}.payment-capabilities{display:flex;gap:7px;flex-wrap:wrap}.payment-capabilities span{border:1px solid #d7e2ed;background:#f9fbfd;color:#526b84;padding:4px 9px;border-radius:12px;font-size:11px}.payment-provider-note{margin-top:12px;font-size:11px}.payment-provider-future{border-style:dashed;background:#fbfcfe}.payment-provider-future .payment-provider-logo{background:#8a9aab}@media(max-width:850px){.payment-provider-grid{grid-template-columns:1fr}.payment-provider-summary{align-items:start;flex-direction:column}.payment-section-intro{flex-direction:column}}
.payment-provider-requirements{border-top:1px solid #edf0f4;margin-top:12px}.payment-provider-requirements>summary{padding:10px 0 6px;color:#147fbd;font-size:12px}.payment-provider-requirements>div{display:flex;flex-wrap:wrap;gap:6px}.payment-provider-requirements span{font-size:11px;color:#65768b;background:#f4f7fa;padding:3px 7px}.payment-provider-links{display:flex;gap:8px;margin-top:12px}.payment-provider-links a{color:#147fbd;text-decoration:none;border:1px solid #cfe0ee;padding:5px 9px;border-radius:2px;font-size:12px}

/* Compact employee editor with persistent form fields across tabs. */
.employee-dialog[open]{display:flex;flex-direction:column;width:820px;max-height:calc(100dvh - 32px);overflow:hidden}
.employee-dialog #employee-editor{display:flex;flex-direction:column;min-height:0;margin:0}
.employee-dialog-body{padding:0 22px 14px;overflow:auto;min-height:0}
.employee-dialog .employee-editor-tabs{margin:0 0 16px;position:sticky;top:0;z-index:1;background:#fff}
.employee-dialog .employee-editor-tabs button{margin:0;padding:12px 18px}
.employee-dialog [role="tabpanel"][hidden]{display:none}
.employee-dialog .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}
.employee-dialog .form-grid label{gap:4px}
.employee-dialog input,.employee-dialog select{min-width:0;min-height:32px}
.employee-dialog .employee-password-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 20px}
.employee-dialog .employee-check{display:flex;flex-direction:row;align-items:center;gap:8px}
.employee-dialog .employee-check input{width:16px;height:16px;min-height:0;margin:0;accent-color:#147fbd}
.employee-login-switch{font-weight:600;margin:4px 0 8px}
.employee-password-hint{font-size:12px;color:#64748b;line-height:1.6}
.employee-permissions{margin:0 0 14px;padding:14px;border:1px solid #dce3ed;border-radius:3px}
.employee-permissions legend{padding:0 6px;font-size:13px;font-weight:600}
.employee-permission-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
#employee-editor-error:empty{display:none}#employee-editor-error{color:#b42318;margin:10px 0 0}
.employee-dialog .copy-dialog-footer{flex-shrink:0;padding:12px 18px}.employee-dialog .copy-dialog-footer button{margin-top:0}
@media(max-width:650px){.employee-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-dialog-body{padding:0 16px 12px}.employee-permission-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.employee-dialog .form-grid{grid-template-columns:1fr}.employee-dialog .employee-editor-tabs button{padding:10px}}

.terminal-dialog{width:620px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:4px;overflow:auto}.terminal-dialog::backdrop{background:#11182775}.terminal-dialog-body{padding:20px 24px}.terminal-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.terminal-dialog .form-grid>label:first-child{grid-column:1/-1}.terminal-dialog .scope-combo{width:100%;max-width:none}.terminal-dialog .scope-combo button{margin-top:0}.terminal-dialog p{margin-top:14px;font-size:12px}.terminal-dialog .copy-dialog-footer{padding:12px 20px;background:white;position:sticky;bottom:0}.terminal-dialog .copy-dialog-footer button{margin:0}#terminal-error:empty{display:none}#terminal-error{color:#b42318;font-size:13px}@media(max-width:480px){.terminal-dialog .form-grid{grid-template-columns:1fr}}
.payment-connect-button{margin:0!important;padding:4px 10px;color:#0672d5;border-color:#a9cff0;white-space:nowrap}.payment-connection-dialog{width:780px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:4px;overflow:auto}.payment-connection-dialog::backdrop{background:#11182775}.payment-connection-body{padding:14px 22px}.payment-connection-body>p{font-size:12px;margin-bottom:12px}.payment-connection-body fieldset{border:0;padding:0;margin:0}.payment-connection-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.connection-wide{grid-column:1/-1}.connection-wide textarea{width:100%;resize:vertical;border:1px solid #d7dfe8;font:inherit;padding:6px}.connection-show{flex-direction:row;align-items:center;margin:14px 0;gap:6px}.connection-show input{width:auto}.connection-stored{display:inline-block;margin-left:8px;color:#168058;font-weight:600}.connection-security-note{padding:8px 10px;background:#f1f8ff;color:#47637e}.required-mark{color:#d92d20}.payment-connection-dialog .copy-dialog-footer{position:sticky;bottom:0;background:#fff;padding:12px 20px}.payment-connection-dialog button{margin-top:0}#payment-connection-error{color:#b42318}#payment-connection-error:empty{display:none}@media(max-width:550px){.payment-connection-body .form-grid{grid-template-columns:1fr}}
.payment-connect-button{margin:0!important;padding:4px 10px;color:#0672d5;border-color:#a9cff0;white-space:nowrap}.payment-connection-dialog{width:780px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:4px;overflow:auto}.payment-connection-dialog::backdrop{background:#11182775}.payment-connection-body{padding:14px 22px}.payment-connection-body>p{font-size:12px;margin-bottom:12px}.payment-connection-body fieldset{border:0;padding:0;margin:0}.payment-connection-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.connection-wide{grid-column:1/-1}.connection-wide textarea{width:100%;resize:vertical;border:1px solid #d7dfe8;font:inherit;padding:6px}.connection-show{flex-direction:row;align-items:center;margin:14px 0;gap:6px}.connection-show input{width:auto}.connection-stored{display:inline-block;margin-left:8px;color:#168058;font-weight:600}.connection-security-note{padding:8px 10px;background:#f1f8ff;color:#47637e}.connection-activation-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:14px 0;padding:10px 12px;background:#effaf4;border:1px solid #b9e5c8;color:#145c32}.connection-activation-summary strong{padding:3px 9px;background:#198754;border-radius:3px;color:#fff}.connection-activation-summary b{font-family:Arial,sans-serif;font-size:15px;letter-spacing:.03em}.required-mark{color:#d92d20}.payment-connection-dialog .copy-dialog-footer{position:sticky;bottom:0;background:#fff;padding:12px 20px}.payment-connection-dialog button{margin-top:0}#payment-connection-error{color:#b42318}#payment-connection-error:empty{display:none}@media(max-width:550px){.payment-connection-body .form-grid{grid-template-columns:1fr}}
.management-account-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:4px;overflow:auto}.management-account-dialog::backdrop{background:#11182775}.management-account-body{padding:18px 24px}.management-account-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}.management-account-body fieldset{margin:20px 0 0;border:1px solid #dce4ed}.management-account-body .account-stores{display:flex;flex-wrap:wrap;gap:12px}.management-account-body .account-stores label{display:flex;align-items:center;gap:5px}.management-account-body .account-stores input{width:auto}.management-account-dialog .copy-dialog-footer{position:sticky;bottom:0;background:white;padding:12px 20px}.management-account-dialog button{margin-top:0}#management-editor-error,#management-group-error{color:#b42318}.management-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 20px}.management-menu-grid label{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #e0e7ef}.management-menu-grid input{width:auto}@media(max-width:700px){.management-account-body .form-grid,.management-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.management-account-body .form-grid,.management-menu-grid{grid-template-columns:1fr}}
.management-account-dialog{width:min(900px,calc(100vw - 32px))}.management-store-selector{padding:10px}.management-store-selector>input{width:100%;margin-bottom:8px}.management-store-table{height:min(300px,35vh);overflow:auto;border:1px solid #dce4ed}.management-store-table table{width:100%;table-layout:fixed}.management-store-table th:first-child,.management-store-table td:first-child{width:44px;text-align:center}.management-store-table th:last-child,.management-store-table td:last-child{width:150px}.management-store-table input[type=checkbox]{width:16px;height:16px;margin:0}.management-store-table tbody tr{cursor:pointer}.management-store-table tbody tr:hover{background:#eef7fd}.management-store-table tr[hidden]{display:none}
nav button[hidden],nav details[hidden]{display:none!important}
.management-account-body .account-stores.copy-target-table{display:block;margin:0;padding:0;min-height:0;max-height:none}.management-account-body .account-stores.copy-target-table table{width:100%}.management-account-body .account-stores.copy-target-table th,.management-account-body .account-stores.copy-target-table td{padding:8px 7px;white-space:nowrap}.management-account-body .account-stores.copy-target-table input[type=checkbox]{width:14px;height:14px;margin:0}.management-account-body .store-multiple-options{max-height:280px!important;overflow:auto}
.management-tabs{display:flex;gap:28px;padding:0 22px;margin-bottom:14px;border-radius:6px}.management-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#61748b;padding:17px 7px;margin:0;font-weight:600}.management-tabs button[aria-selected="true"]{border-bottom-color:#147fbd;color:#126fa8}.management-user-toolbar{margin-bottom:12px}.management-user-toolbar h2{margin:0 0 4px}.management-role-panel{padding:0;overflow:hidden}.management-role-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 28px;border-bottom:1px solid #e6edf4}.management-role-head h2{margin:0 0 5px;font-size:18px}.management-role-head label{min-width:180px}.management-role-note{margin:20px 28px 0;padding:11px 14px;border-left:3px solid #208ac6;background:#f3f9fd;color:#56718b;font-size:12px}.management-menu-tree{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px 28px}.management-tree-branch{border:1px solid #dfe8f0;border-radius:6px;overflow:hidden;background:#fff}.management-tree-parent{display:flex;flex-direction:row;align-items:center;gap:10px;padding:13px 16px;background:#f3f7fb;color:#244b6d;font-weight:700}.management-tree-parent input,.management-tree-children input{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#147fbd}.management-tree-parent small{margin-left:auto;color:#8295a8;font-weight:normal}.management-tree-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:10px 15px 13px 34px;border-left:2px solid #d8e7f3;margin-left:22px}.management-tree-children label{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:36px;color:#3d5168;cursor:pointer}.management-role-footer{display:flex;align-items:center;gap:15px;padding:13px 28px;border-top:1px solid #e6edf4}.management-role-footer #management-selected-count{color:#5c7288;font-size:12px}.management-role-footer #management-group-error{margin-left:auto}.management-role-footer button{margin:0 0 0 auto}@media(max-width:850px){.management-menu-tree{grid-template-columns:1fr}.management-role-head{align-items:flex-start;flex-direction:column}.management-role-head label{width:100%}}@media(max-width:520px){.management-tree-children{grid-template-columns:1fr}.management-menu-tree{padding:15px}.management-role-head,.management-role-footer{padding:15px}}
.home-dashboard{display:grid;gap:22px}.home-sales,.home-modules{background:#fff;border:1px solid #e1e7ee;border-radius:8px;padding:23px 25px}.home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.home-section-heading h2{font-size:20px;margin:4px 0 0;color:#1f354b}.home-section-heading>span{font-size:12px;color:#8695a7}.home-kicker{display:inline-block;color:#147fbd;font-size:11px;font-weight:700;letter-spacing:1px}.home-sales-filters{display:flex;align-items:end;gap:15px}.home-sales-filters label{min-width:190px;gap:4px;color:#728296;font-size:11px}.home-sales-filters select{padding:8px 10px}.home-range{display:flex;gap:4px;padding:3px;background:#f1f5f9;border-radius:5px}.home-range button{border:0;background:transparent;padding:8px 10px;color:#63758a;white-space:nowrap}.home-range button.active{background:#fff;color:#0c72b1;box-shadow:0 1px 5px #1b41621a}.home-sales-status{font-size:12px;color:#8290a0;margin-bottom:10px}.home-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;min-height:130px}.home-metric{border-radius:6px;padding:23px 17px 18px;color:#fff;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}.home-metric.blue{background:#2182d9}.home-metric.orange{background:#f08822}.home-metric.green{background:#38af62}.home-metric.purple{background:#6766d9}.home-metric.rose{background:#d9519a}.home-metric-value{font-size:29px;font-weight:700;line-height:1.1;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.home-metric-label{font-size:13px;font-weight:600;margin-top:10px}.home-metric small{font-size:11px;opacity:.85;margin-top:4px}.home-loading{grid-column:1/-1;display:grid;place-items:center;background:#f7fafc;color:#8392a1;border:1px dashed #dce5ed;border-radius:5px}.home-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-module{border:1px solid #e1e8ef;border-radius:6px;padding:18px;display:flex;gap:15px;min-height:130px;transition:box-shadow .15s,border-color .15s}.home-module:hover{border-color:#b8d5eb;box-shadow:0 5px 16px #1b416214}.home-module-icon{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:#fff;font-size:22px;font-weight:700}.home-module-icon.blue{background:#168ae0}.home-module-icon.orange{background:#f2a05f}.home-module-icon.cyan{background:#0fb4b0}.home-module-icon.green{background:#35ae65}.home-module-icon.purple{background:#6c70db}.home-module-icon.teal{background:#2aafa6}.home-module-icon.rose{background:#d86191}.home-module-icon.indigo{background:#5b83d4}.home-module h3{margin:1px 0 5px;font-size:15px;color:#263e55}.home-module p{font-size:12px;min-height:38px;line-height:1.5}.home-module button{margin:10px 0 0;padding:5px 9px;color:#147fbd;border-color:#afd2e9;font-size:12px;border-radius:3px}@media(max-width:1180px){.home-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.home-section-heading{align-items:flex-start;flex-direction:column}.home-sales-filters{width:100%;flex-wrap:wrap}.home-sales-filters label{flex:1}.home-metrics,.home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-sales,.home-modules{padding:18px}}@media(max-width:450px){.home-metrics,.home-module-grid{grid-template-columns:1fr}.home-range{width:100%;justify-content:space-between}.home-range button{padding:8px 6px}}

.product-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#fff;border-color:#dce8f2}
.product-actions-selection,.product-actions-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product-actions-selection{min-width:0}
.product-actions button{white-space:nowrap;margin:0;min-height:32px}
#product-selected-count{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:6px 11px;border-radius:4px;background:#edf7ff;color:#296283;font-size:12px}
#product-selected-count strong{font-size:14px;color:#0878bd}
#product-copy{color:#147fbd;border-color:#b8d8eb}
@media(max-width:650px){.product-actions{align-items:stretch}.product-actions-main{width:100%}.product-actions-main button{flex:1}}

.management-tree-children .management-menu-locked{color:#93a0ad;cursor:default}
.management-menu-locked small{margin-left:auto;font-size:11px;color:#9aa7b4;white-space:nowrap}
.management-tree-parent:has(input:disabled){color:#8292a3}
.management-tree-parent input:disabled,.management-menu-locked input:disabled{cursor:not-allowed}

@media(min-width:901px){aside{position:sticky;top:0;height:100vh;overflow-y:auto;align-self:flex-start}}
.customer-display-store{display:grid;gap:12px}.customer-display-store-title{display:flex;align-items:center;gap:20px}.customer-display-store-title span{color:#66788a}.customer-display-store>.store-multiple{width:360px}.customer-display-store-list table{width:100%}.customer-display-store p{margin:0}.customer-display-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:22px}.customer-display-head h2{margin-bottom:5px}.customer-display-check{flex-direction:row;align-items:center;font-weight:600}.customer-display-check input{width:auto}.customer-display-welcome{margin:20px 0}.customer-display-media{display:grid;grid-template-columns:220px minmax(280px,1fr) 220px;gap:22px;align-items:start;padding:20px 0;border-top:1px solid #e6ebf1}.customer-display-media h3{margin:0 0 6px;font-size:15px}.customer-display-media p{font-size:12px}.customer-display-files{display:grid;gap:8px;max-height:220px;overflow:auto}.customer-display-file{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe6ee;background:#f8fafc;padding:9px 11px}.customer-display-file span{min-width:0}.customer-display-file b,.customer-display-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-display-file small{color:#8290a0;margin-top:3px}.customer-display-file button{padding:5px 10px}.customer-display-empty{color:#8b98a8;padding:12px}.customer-display-upload{border:1px dashed #9fc6df;background:#f2f9fd;padding:14px;color:#126fa8}.customer-display-upload label{display:block}.customer-display-upload input{margin-top:8px;padding:5px;background:transparent;border:0}.customer-display-upload-status{display:grid;gap:6px;margin-top:10px;font-size:12px;color:#53677d}.customer-display-upload-status[hidden]{display:none}.customer-display-upload-status progress{width:100%;height:10px;accent-color:#147fbd}.customer-display-upload-status.success{color:#168058}.customer-display-upload-status.success progress{accent-color:#168058}.customer-display-upload-status.error{color:#c52b24}.customer-display-upload-status.error progress{accent-color:#c52b24}.customer-display-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e6ebf1;padding-top:18px}.customer-display-actions button{margin:0}.customer-display-actions span{color:#6e7f91}@media(max-width:900px){.customer-display-media{grid-template-columns:1fr}.customer-display-head,.customer-display-actions{align-items:stretch;flex-direction:column}}
#runtime-policy-form{max-width:1050px}#runtime-policy-form>label{display:block;margin:14px 0}#runtime-policy-form input[type=checkbox]{width:auto;margin-right:8px}

.runtime-store-list[hidden],.runtime-store-list label[hidden]{display:none}.runtime-store-list label{flex-direction:row;align-items:center}.runtime-store-list>input[type=search]{grid-column:1/-1}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.header-actions button{margin:0;white-space:nowrap}
/* Query controls use their natural width; editing forms retain their own grids. */
.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.filter-row>label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap;min-width:0}
.filter-row input,.filter-row select{width:140px;min-width:0;margin:0}
.filter-row input[type=date]{width:148px}
.filter-row .scope-combo{width:180px;max-width:180px;min-width:0}
.filter-row .scope-combo button{margin-top:0}
.audit-filters #audit-field{width:165px}
@media(max-width:620px){.filter-row>label{flex:1 1 100%;justify-content:space-between}.filter-row input,.filter-row select,.filter-row .scope-combo,.audit-filters #audit-field{width:calc(100% - 80px);max-width:none}}
.filter-row .scope-combo input{width:100%;max-width:none}
.list-toolbar{justify-content:flex-start;flex-wrap:nowrap}.list-toolbar b{white-space:nowrap}.list-toolbar [data-list-query]{margin-left:0}
.list-clickable-row{cursor:pointer}.list-clickable-row:hover{background:#edf7ff}.list-clickable-row:focus{outline:2px solid #147fbd;outline-offset:-2px;background:#edf7ff}
.home-sales>.home-section-heading{align-items:flex-start;flex-direction:column;justify-content:flex-start}.home-sales-filters{justify-content:flex-start;flex-wrap:nowrap}
.panel:has(>.document-conditions){display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;overflow:visible}.panel:has(>.document-conditions)>.document-conditions{display:contents}.panel:has(>.document-conditions) .scope-combo{width:170px;min-width:170px}.panel:has(>.document-conditions) .scope-combo:focus-within{z-index:30}.panel:has(>.document-conditions) input:not([type=checkbox]),.panel:has(>.document-conditions) select{width:120px;min-width:90px}.panel:has(>.document-conditions) .scope-combo input{width:100%;min-width:0}.panel:has(>.document-conditions) #document-keyword{width:165px}.panel:has(>.document-conditions) input[type=datetime-local]{width:165px;min-width:165px}.panel:has(>.document-conditions) button,.panel:has(>.document-conditions) span,.panel:has(>.document-conditions) label{white-space:nowrap;flex:0 0 auto}


.business-report{display:grid;gap:12px}.business-report-tabs{display:flex;gap:0;background:#fff;border:1px solid #e1e7ee;padding:0 12px}.business-report-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;border-radius:0;margin:0;padding:14px 18px;color:#5c7085}.business-report-tabs button[aria-selected="true"]{color:#0878bd;border-bottom-color:#168bd1;font-weight:700}.business-report-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.business-report-filters>div:first-child{width:260px}.business-report-filters>.store-multiple{width:260px}.business-report-filters label{gap:5px}.business-report-filters input[type=month]{width:150px}.business-report-check{flex-direction:row;align-items:center;padding-bottom:7px;white-space:nowrap}.business-report-check input{width:auto}.business-report-filters button{margin:0 0 1px}.business-report-filters #business-report-export{margin-left:auto}.business-report-store-list table{width:100%}.business-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}.business-report-summary>div{padding:14px 16px;background:#f3f8fc;border-left:3px solid #168bd1}.business-report-summary span{display:block;color:#6c7e90;font-size:12px}.business-report-summary strong{display:block;margin-top:7px;color:#153b5b;font-size:20px}.business-report-table table{min-width:1500px}.business-report-table td:nth-child(2){text-align:center}@media(max-width:850px){.business-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.business-report-filters #business-report-export{margin-left:0}}
.business-report-scope{margin:0 0 12px;padding:9px 12px;background:#eef7fd;color:#285f83;border-left:3px solid #168bd1}

.promotion-special-price{box-sizing:border-box;width:90px;padding:7px 8px}
.runtime-settings{padding:0;overflow:hidden}.runtime-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 14px}.runtime-heading h2{margin:0 0 6px;font-size:19px}.runtime-heading p{margin:0;color:#728196}.runtime-badge{background:#edf7ff;color:#147fb5;padding:7px 12px;border-radius:16px;font-size:12px}.runtime-tabs{display:flex;gap:22px;padding:0 24px;border-bottom:1px solid #e3e9f0;background:#fafcfe}.runtime-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;margin:0;padding:14px 8px;font-size:14px;color:#6b7d90}.runtime-tabs button[aria-selected=true]{color:#087dbd;border-bottom-color:#118bc5;font-weight:600}.runtime-pane{padding:22px 24px}.runtime-pane[hidden]{display:none}.runtime-pane h3{margin:0 0 10px;font-size:16px}.runtime-pane p{color:#718198;line-height:1.7}.runtime-info{background:#f0f8fd;border:1px solid #dcebf7;border-radius:5px;padding:12px 15px;color:#45677d;line-height:1.7;margin:14px 0 18px}.runtime-sync-scroll{overflow:auto}.runtime-sync-table{width:100%;min-width:760px}.runtime-sync-table th{padding:13px 16px;background:#f5f8fb}.runtime-sync-table td{padding:14px 16px;vertical-align:middle}.runtime-sync-table td:first-child{width:45%}.runtime-sync-table strong{display:block;font-weight:600}.runtime-sync-table small{display:block;font-size:12px;color:#8491a2;margin-top:5px;line-height:1.6}.runtime-auto-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.runtime-auto-toggle input{width:17px;height:17px;accent-color:#118bc5}.runtime-seconds{display:flex;gap:8px;align-items:center;color:#7d8c9e}.runtime-seconds input{width:105px;text-align:right;box-sizing:border-box}.runtime-seconds input:disabled{background:#f2f4f7;color:#a7b0bc;border-color:#e5e9ef}.runtime-trigger{font-size:12px;color:#74879b;white-space:nowrap}.runtime-footnote{font-size:12px;margin-bottom:0}.runtime-date-grid{max-width:650px;grid-template-columns:1fr 1fr;gap:20px}.runtime-pane textarea{box-sizing:border-box;max-width:900px}.runtime-scope{max-width:900px;margin-top:18px}.runtime-save{display:flex;align-items:center;justify-content:space-between;padding:15px 24px;border-top:1px solid #e3e9f0;background:#fafcfe}.runtime-save span{font-size:12px;color:#8190a2}.runtime-save button{margin:0;padding:9px 22px}.runtime-pane .runtime-store-list input[type=checkbox]{width:auto}@media(max-width:700px){.runtime-heading{padding:18px 15px}.runtime-badge{display:none}.runtime-pane{padding:16px 15px}.runtime-tabs{padding:0 15px}.runtime-save{padding:15px}}
.runtime-sync-scroll{max-height:540px}.runtime-sync-table thead th{position:sticky;top:0;z-index:1}.runtime-settings form{max-width:none}.runtime-settings .runtime-pane .runtime-auto-toggle{flex-direction:row}
.runtime-delivery-address{display:grid;grid-template-columns:90px minmax(280px,620px);align-items:center;gap:8px 14px;margin:0 0 18px}.runtime-delivery-address span{font-weight:600}.runtime-delivery-address input{width:100%;box-sizing:border-box}.runtime-delivery-address small{grid-column:2;color:#7a899b;line-height:1.5}@media(max-width:700px){.runtime-delivery-address{grid-template-columns:1fr}.runtime-delivery-address small{grid-column:1}}
.runtime-settings{overflow:visible}.runtime-store-list{margin-top:15px}.runtime-store-list>p{margin-bottom:8px}.runtime-store-list>.store-multiple{width:300px}.runtime-store-list .copy-target-table{margin:0}.store-multi-picker tbody tr[data-copy-store]{cursor:pointer}.management-store-table.store-multiple-options{min-height:0;max-height:300px}.management-store-selector>.store-multiple{width:300px}

/* Goods flow and delivery integration settings. */
.delivery-store-row{display:grid;grid-template-columns:220px 180px 1fr;gap:14px;align-items:end}.delivery-store-row>span{color:#73879b;line-height:1.8;padding-bottom:6px}.goods-flow{display:grid;gap:12px}.flow-filters{padding:14px}.flow-filter-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.flow-filter-row+.flow-filter-row{margin-top:10px}.flow-filter-row input,.flow-filter-row select{width:180px;box-sizing:border-box}.flow-filter-row input[type=date]{width:160px}.flow-filter-row input[type=datetime-local]{width:210px}.flow-filter-row .scope-combo{width:240px}.flow-filter-row .scope-combo input{width:100%}.flow-filter-row button{margin:0}.flow-new-actions{display:flex;gap:7px;margin-left:10px}.flow-new-actions button:disabled{background:#f0f3f6;color:#a5b0be}.delivery-status{padding:10px 14px;background:#eef7fd;border:1px solid #dcebf7;color:#49738e;border-radius:3px}.interface-status-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px}.interface-status-line>[hidden],.interface-status-line>span:empty{display:none}.flow-main{padding:0;overflow:hidden}.flow-action-bar{display:flex;align-items:center;gap:14px;padding:12px 14px}.flow-action-bar button{margin:0}.flow-action-bar #flow-export{margin-left:auto}.flow-tabs{display:flex;gap:20px;align-items:center;padding:0 14px;border-bottom:1px solid #e0e6ec}.flow-tabs button{margin:0;padding:12px 2px;border:0;border-radius:0;border-bottom:3px solid transparent;background:transparent}.flow-tabs button[aria-selected=true]{color:#0787ca;border-bottom-color:#0787ca}.flow-tabs button span{margin-left:5px;color:#0787ca}.flow-tabs>span{margin-left:auto;font-size:12px;color:#94a2b3}.flow-table-wrap{min-height:340px;max-height:calc(100vh - 370px);overflow:auto}.flow-table{min-width:2050px;width:100%;border-collapse:collapse}.flow-table th{position:sticky;top:0;z-index:1;background:#f0f3f6;padding:12px 9px;white-space:nowrap}.flow-table td{padding:9px;border:1px solid #e2e7ed;white-space:nowrap}.flow-table tbody tr:hover{background:#f4faff}.flow-table input[type=checkbox]{width:15px;height:15px;accent-color:#0787ca}.flow-row-actions{display:flex;align-items:center;gap:5px}.flow-row-actions button{padding:4px 8px;margin:0;color:#087fbd;background:#eef8ff}.flow-row-actions span{color:#8293a5;font-size:12px}.flow-code{color:#087fc0}.flow-status{display:inline-block;padding:3px 8px;border-radius:3px;font-size:12px}.flow-status.posted{background:#eaf7ef;color:#228453}.flow-status.pending{background:#fff4e1;color:#a57412}.flow-table .flow-empty{text-align:center;color:#a0acb9;height:230px}.flow-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px;border-top:1px solid #e0e6ec;flex-wrap:wrap}.flow-footer #flow-totals{display:flex;gap:14px;flex-wrap:wrap}.flow-footer strong{color:#e85548}.flow-footer b{color:#219259}.flow-pagination{display:flex;gap:6px;align-items:center}.flow-pagination button{margin:0}.flow-pagination select{width:95px}.flow-pagination input{width:55px;box-sizing:border-box}.flow-detail-scroll{max-height:60vh;overflow:auto}.flow-detail-scroll table{width:100%}.runtime-save[hidden]{display:none}#interface-log-results table{min-width:1750px}#interface-log-results .table-wrap{min-height:220px}@media(max-width:850px){.delivery-store-row{grid-template-columns:1fr 1fr}.delivery-store-row>span{grid-column:1/-1}.flow-tabs{gap:12px;flex-wrap:wrap}.flow-pagination{flex-wrap:wrap}}

.delivery-store-row{grid-template-columns:220px 230px 130px 1fr}@media(max-width:850px){.delivery-store-row{grid-template-columns:1fr 1fr}}

.delivery-store-row{grid-template-columns:220px 230px 1fr}@media(max-width:850px){.delivery-store-row{grid-template-columns:1fr 1fr}}

.chain-basic-row.chain-platform-row{grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(220px,1fr);padding:12px;background:#f5f9fd;border:1px solid #e0e9f2;border-radius:5px}.chain-platform-help{color:#73879b;font-size:12px;line-height:1.7;margin:0}@media(max-width:650px){.chain-basic-row.chain-platform-row{grid-template-columns:1fr}}

.interface-log-filters{overflow:visible}.interface-log-filters .flow-filter-row{flex-wrap:wrap;gap:6px}.interface-log-filters .flow-filter-row>*{flex:0 0 auto;white-space:nowrap}.interface-log-filters #interface-store{width:140px}.interface-log-filters #interface-code{width:145px}.interface-log-filters #interface-status{width:100px}.interface-log-filters input[type=datetime-local]{width:165px;min-width:165px;font-size:12px}.interface-log-filters [data-interface-days]{border-radius:18px;min-width:52px;padding:6px 10px}.interface-log-filters button{padding:6px 10px}

.goods-flow #flow-from,.goods-flow #flow-to{width:165px;min-width:165px;font-size:12px}.goods-flow [data-flow-days]{border-radius:18px;min-width:52px;padding:6px 10px}
.flow-document-title,.flow-detail-toolbar,.flow-detail-confirm{display:flex;align-items:center;gap:10px;justify-content:space-between}.flow-document-title h2{margin:8px 0 16px}.flow-document-summary{display:flex;gap:30px;align-items:center;background:#eaf4ff;padding:18px 20px;margin-bottom:14px;border-radius:4px}.flow-document-summary>div:first-child{flex:1}.flow-document-summary p{font-size:12px;margin:10px 0 0}.flow-document-number{text-align:right;font-size:13px;min-width:100px}.flow-document-number strong{display:block;font-size:28px;color:#24b44a;margin-top:6px}.flow-document-number.money strong{color:#ff7400}.flow-document h3{color:#0877ca;font-size:15px;margin:0 0 14px}.flow-document-meta{display:flex;flex-wrap:wrap;gap:16px 40px;font-size:13px;color:#64748b}.flow-check-note{color:#a85d00;background:#fff6df;padding:10px;margin-bottom:0}.flow-detail-toolbar h3{flex:1;margin:0}.flow-detail-toolbar input{width:265px}.flow-detail-confirm{justify-content:flex-end;padding:12px 0}.flow-detail-table{min-width:1750px;width:100%;border-collapse:collapse}.flow-detail-table th,.flow-detail-table td{white-space:nowrap;border-bottom:1px solid #e7ecf2;padding:10px 12px;font-size:12px}.flow-detail-table th{background:#f1f7fb;text-align:left}.flow-detail-table th:nth-child(2),.flow-detail-table td:nth-child(2){min-width:220px}.flow-detail-products .flow-table-wrap{max-height:560px}.flow-document .panel{margin-bottom:14px}.flow-detail-table tbody tr:hover{background:#fff4d2}
.goods-flow{min-width:0;grid-template-columns:minmax(0,1fr)}.goods-flow>.panel,.flow-document>.panel{min-width:0}.flow-document-summary{min-width:0;flex-wrap:wrap}.flow-document-summary>div:first-child{min-width:260px}.flow-document-title{min-width:0}.flow-document .flow-detail-table th{position:sticky;top:0;z-index:1}

/* Interface call log: compact rows and bounded previews; complete text stays in details. */
#interface-log-results.interface-call-list .table-wrap{max-height:calc(100vh - 340px);overflow:auto;border:1px solid #e2e9f0;border-radius:4px}
#interface-log-results.interface-call-list table{table-layout:fixed;width:100%;min-width:1180px}
#interface-log-results.interface-call-list th,#interface-log-results.interface-call-list td{white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis;padding:9px 12px;line-height:20px;border-right:1px solid #edf1f5;font-size:12px}
#interface-log-results.interface-call-list th{position:sticky;top:0;z-index:2;background:#f0f5fb;font-weight:600;color:#38536e}
#interface-log-results.interface-call-list th:nth-child(1),#interface-log-results.interface-call-list td:nth-child(1){width:180px;position:sticky;left:0;z-index:1;background:#fff;font-variant-numeric:tabular-nums}
#interface-log-results.interface-call-list th:nth-child(1){z-index:3;background:#f0f5fb}
#interface-log-results.interface-call-list th:nth-child(2){width:55px}
#interface-log-results.interface-call-list th:nth-child(3){width:90px}
#interface-log-results.interface-call-list th:nth-child(4){width:110px}
#interface-log-results.interface-call-list th:nth-child(5){width:190px}
#interface-log-results.interface-call-list th:nth-child(6){width:85px}
#interface-log-results.interface-call-list th:nth-child(7){width:165px}
#interface-log-results.interface-call-list th:nth-child(8){width:150px}
#interface-log-results.interface-call-list th:nth-child(9){width:100px}
#interface-log-results.interface-call-list th:nth-child(10){width:75px}
#interface-log-results.interface-call-list tbody tr:nth-child(even),#interface-log-results.interface-call-list tbody tr:nth-child(even) td:first-child{background:#fafcfe}
#interface-log-results.interface-call-list tbody tr:hover,#interface-log-results.interface-call-list tbody tr:hover td:first-child{background:#edf7ff}
#interface-log-results.interface-call-list .interface-log-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#interface-log-results.interface-call-list .interface-call-state{display:inline-block;padding:1px 8px;border-radius:4px;line-height:20px}
#interface-log-results.interface-call-list .is-success{background:#eaf7ef;color:#228453}
#interface-log-results.interface-call-list .is-failure{background:#fff0ee;color:#c4453b}

.chain-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:12px 0;flex-wrap:wrap}.chain-toolbar .chain-region-inline{display:flex;align-items:center;gap:8px;margin:0}.chain-toolbar .chain-region-inline select{width:150px;margin:0}.chain-toolbar #chain-export{margin-left:auto}

main:has(#chain-list)>.heading{display:none}.chain-toolbar h1{font-size:19px;margin:0 8px 0 0}.chain-toolbar b{color:#697d96;font-weight:400}
.chain-toolbar .chain-region-inline{flex-direction:row;white-space:nowrap}.chain-toolbar>h1,.chain-toolbar>b,.chain-toolbar>button{white-space:nowrap}

#copy-update-fields{margin-top:20px;padding-top:16px;border-top:1px solid #e3e8ef}.copy-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}#product-copy-dialog .copy-field{display:flex;flex-direction:row;align-items:center;gap:7px;margin:8px 0;font-size:12px}#product-copy-dialog .copy-field input{width:14px;height:14px;flex:0 0 14px;margin:0}.copy-field-help{font-size:12px;margin-top:12px;line-height:1.7}@media(max-width:750px){.copy-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Payment connection editor: keep labels and required marks on the same line. */
.payment-connection-dialog{width:760px;border-radius:10px;box-shadow:0 20px 64px #13263d40;color:#263449}
.payment-connection-dialog .copy-dialog-title{height:58px;padding:0 24px;background:#fff;color:#20364e;border-bottom:1px solid #e5ebf2}
.payment-connection-dialog .copy-dialog-title b{font-size:17px}
.payment-connection-dialog .copy-dialog-title button{width:32px;height:32px;padding:0;border-radius:6px;color:#718095;font-size:25px}
.payment-connection-dialog .copy-dialog-title button:hover{background:#f0f4f8}
.payment-connection-body{padding:20px 24px 18px}
.payment-connection-body>p:first-child{padding:10px 12px;margin-bottom:18px;background:#f4f7fb;border:1px solid #e5ebf2;border-radius:6px;color:#47617d;font-size:13px}
.payment-connection-body .form-grid{gap:16px 20px;align-items:start}
.payment-connection-body .form-grid>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#344b65;font-weight:500}
.connection-field-label{display:block;line-height:20px}
.payment-connection-body input,.payment-connection-body textarea{width:100%;min-width:0;height:36px;border-radius:5px;background:#fff;font-weight:400}
.payment-connection-body input:focus,.payment-connection-body textarea:focus{outline:0;border-color:#1683c7;box-shadow:0 0 0 3px #1683c715}
.payment-connection-body input[readonly]{background:#f5f7fa;color:#718095;border-color:#e1e7ef}
.payment-connection-body textarea{height:auto}
.payment-connection-body .connection-show{flex-direction:row;font-weight:400}
.payment-connection-body .connection-show input{width:auto;height:auto}
.connection-activation-summary{display:block;margin:20px 0 14px;padding:14px 16px;border-radius:7px;background:#f2faf6;border-color:#cce8d8}
.connection-activation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.connection-activation-summary strong{padding:3px 9px;font-size:12px;background:#e0f2e7;color:#19734a;border-radius:4px}
.connection-activation-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:12px 0 0}
.connection-activation-summary dl>div{min-width:0}
.connection-activation-summary dt{font-size:12px;color:#638071;margin-bottom:5px}
.connection-activation-summary dd{margin:0;font:600 14px Consolas,monospace;color:#235b40;overflow-wrap:anywhere}
.payment-connection-body>p:last-of-type:not(#payment-connection-error){line-height:1.8;margin-bottom:0;color:#78869a}
.payment-connection-dialog .copy-dialog-footer{gap:8px;padding:14px 24px;border-top:1px solid #e5ebf2;background:#fafbfd}
.payment-connection-dialog .copy-dialog-footer button{min-width:80px;height:34px;border-radius:5px}
#payment-connection-error:not(:empty){margin:14px 0 0;padding:10px 12px;background:#fff3f1;border-radius:5px}
@media(max-width:550px){.payment-connection-body{padding:16px}.payment-connection-body .form-grid,.connection-activation-summary dl{grid-template-columns:1fr}.payment-connection-dialog .copy-dialog-title,.payment-connection-dialog .copy-dialog-footer{padding-left:16px;padding-right:16px}}

.product-created-range{display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:normal}.product-created-range input{width:145px}.product-editor-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #d7dfe8;margin-bottom:18px;padding-bottom:0}.product-editor-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;margin:0;padding:10px 18px;color:#607086}.product-editor-tabs button[aria-selected="true"]{color:#087eb5;border-bottom-color:#087eb5;font-weight:bold}.product-editor-panel[hidden]{display:none!important}.product-editor-panel>.product-extra>summary{display:none}.product-editor-panel>.product-extra{margin-top:0!important}.product-platform-image[hidden]{display:none}.product-platform-image{display:block;width:auto;max-width:100%;height:auto;max-height:480px;object-fit:contain;margin:0 auto 16px}.product-editor-panel[aria-labelledby="product-editor-tab-images"]{min-height:240px;text-align:center}

.product-barcode-tools{display:flex;gap:12px;align-items:center;margin:12px 0}.product-barcode-tools span{color:#607086}.product-barcode-editor table{width:100%;min-width:500px}.product-barcode-editor th:first-child{width:100px}.product-barcode-editor th:last-child{width:180px}.product-barcode-editor input{max-width:500px}.product-barcode-editor textarea[hidden]{display:none!important}

/* 商品查询：常用条件紧凑排列，日期按需展开。 */
.product-query .product-extra-filters{flex:0 0 100%;border-top:1px solid #e5ebf2;padding-top:12px;margin-top:4px}.product-query .product-extra-filters[hidden]{display:none}.product-query .product-created-range{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;flex-wrap:wrap}.product-query .product-created-range input{width:160px;margin:0}.product-query>button{white-space:nowrap}.product-query #product-more-filters{color:#48708d;background:#f6f9fc}.product-query #product-more-filters[aria-expanded="true"]{color:#087eb5;border-color:#9dcce3}
/* 商品编辑各标签共用固定窗口，内容在窗口内滚动。 */
#product-create-dialog{height:min(740px,92vh);overflow:hidden}#product-create-dialog[open]{display:flex;flex-direction:column}#product-create-dialog>.copy-dialog-title{flex:0 0 44px}#product-create-dialog>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0}#product-create-dialog .product-create-body{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-gutter:stable}#product-create-dialog .copy-dialog-footer{position:static;flex:0 0 auto}

#copy-progress{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px;background:#fff7e6;border:1px solid #f4d59b;border-radius:4px;color:#8a5200;font-weight:600}#copy-progress[hidden]{display:none}#copy-progress progress{width:160px;height:12px;accent-color:#d78916}#product-copy-dialog button.copy-running:disabled{background:#d78916;border-color:#d78916;color:white;opacity:1;cursor:wait}@media(max-width:600px){#copy-progress{flex-wrap:wrap}#copy-progress progress{width:100%}}.product-original-viewer{margin:20px auto;width:fit-content;max-width:calc(100% - 32px)}.product-original-viewer img{display:block;max-width:100%;height:auto;margin:auto}
main:has(.flow-document)>.heading{display:none}.flow-document-title{margin:2px 0 10px;flex-wrap:wrap}.flow-document-crumb{display:flex;align-items:center;gap:8px;min-width:0}.flow-document-crumb>span{color:#6b7c90;font-size:14px}.flow-document-crumb>i{font-style:normal;color:#b5c0cc}.flow-document-title h2{margin:0;font-size:18px;display:flex;align-items:center;gap:8px}.flow-document-title h2 small{font-size:13px;font-weight:500;color:#1477c2;background:#e6f1fc;padding:2px 10px;border-radius:10px}.flow-document-actions{display:flex;gap:8px}.flow-document-actions button{margin:0}.flow-document-summary{background:linear-gradient(90deg,#e8f3ff,#f5faff);border:1px solid #d8e7f6;padding:12px 20px;margin-bottom:12px;gap:0}.flow-document-head{display:flex;flex-direction:column;gap:8px;min-width:0}.flow-document-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.flow-document-code>span:first-child{color:#6b7c90;font-size:13px}.flow-document-code strong{font-size:17px;color:#1f2d3d;letter-spacing:.5px}.flow-document-meta{display:flex;flex-wrap:wrap;gap:4px 26px;font-size:12px}.flow-meta-item{display:flex;align-items:baseline;min-width:0}.flow-meta-item span{color:#8a97a8}.flow-meta-item span::after{content:"："}.flow-meta-item b{font-weight:500;color:#2d3c4e;overflow-wrap:anywhere}.flow-document-summary .flow-check-note{margin:2px 0 0;padding:6px 10px;font-size:12px}.flow-document-number{padding:0 24px;border-left:1px solid #d3e3f3;min-width:120px;color:#6b7c90;font-size:12px}.flow-document-number strong{font-size:24px;margin-top:2px}.flow-document-number:last-child{padding-right:0}.flow-document h3{padding-left:10px;border-left:3px solid #1a86d0;line-height:1.1}.flow-detail-toolbar{flex-wrap:wrap;margin-bottom:12px}.flow-detail-toolbar input,.flow-detail-toolbar button{margin:0}.flow-detail-table th.num,.flow-detail-table td.num{text-align:right;font-variant-numeric:tabular-nums}.flow-detail-table tbody tr:nth-child(even){background:#fafcfe}.flow-detail-table tbody tr:hover{background:#fff4d2}.flow-detail-table td:nth-child(2){color:#1f2d3d;font-weight:500}.flow-detail-table td:nth-child(13),.flow-detail-table td:nth-child(18){color:#0d6fb8;font-weight:600}.flow-document .flow-table-wrap{max-height:calc(100vh - 330px)}@media(max-width:700px){.flow-document-summary{gap:12px 0}.flow-document-summary>div:first-child{flex-basis:100%;min-width:0}.flow-document-number{flex:1;text-align:left;padding:0 14px;min-width:0}.flow-document-number:nth-child(2){border-left:0;padding-left:0}.flow-detail-toolbar input{width:100%;order:3}}
.hq-consensus-stores{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0 16px}.hq-consensus-stores .runtime-auto-toggle{flex-direction:row}
.terminal-head{padding-top:12px;padding-bottom:12px}
.terminal-head-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.terminal-head-hint{color:#7a8597;font-size:13px}
.release-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin-top:10px;padding:7px 12px;border:1px solid #dfe6f0;border-radius:6px;background:#f7f9fc;font-size:13px;color:#5b6678}
.release-status b{color:#1d4f91}
.release-status .release-title{color:#26364d;font-size:13px}
.release-status button{margin-left:6px;padding:2px 10px;font-size:12px}
.release-help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:auto;border:1px solid #b9c4d4;border-radius:50%;color:#6b778a;font-size:12px;cursor:help}
.pilot-toggle{width:16px;height:16px;margin:0;cursor:pointer;vertical-align:middle}
.terminal-tag{margin-left:4px;padding:0 5px;border-radius:3px;background:#eef2f7;color:#7a8597;font-size:11px}
.terminal-payment-pending{margin-left:0;background:#fff3e0;color:#b35c00}
/* Terminal list: proportional widths so extra screen width is shared by all columns. */
#terminals-paged-list table{table-layout:auto}
#terminals-paged-list th,#terminals-paged-list td{white-space:nowrap}
#terminals-paged-list th:nth-child(1){width:7%}
#terminals-paged-list th:nth-child(2){width:14%}
#terminals-paged-list th:nth-child(3){width:5%}
#terminals-paged-list th:nth-child(4){width:9%}
#terminals-paged-list th:nth-child(5),#terminals-paged-list th:nth-child(6),#terminals-paged-list th:nth-child(7){width:6%}
#terminals-paged-list th:nth-child(8),#terminals-paged-list th:nth-child(9){width:13%}
#terminals-paged-list th:nth-child(10){width:10%}
#terminals-paged-list th:nth-child(n+11){width:4%}
#terminals-paged-list td:nth-child(n+11),#terminals-paged-list th:nth-child(n+11){text-align:center}
.release-run{color:#2a8a55;font-weight:600}
/* 包装商品查询的查询栏：同门店营业分析，一行排列、各控件固定宽度 */
.package-filters>.package-filter-field{display:flex;flex-direction:column;gap:5px;width:200px}.package-filters .category-picker{width:200px;min-width:0}.package-filters .category-picker>summary{background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.package-filters .category-options{z-index:60}.package-filters select{width:230px}.package-filters input:not([type=checkbox]){width:170px}
.ops-period-field{display:flex;flex-direction:column;gap:5px}.ops-chips{display:flex}.ops-chip{margin:0;height:32px;padding:0 14px;background:#fff;border:1px solid #cfd8e3;border-radius:0;color:#4a5b70}.ops-chip+.ops-chip{margin-left:-1px}.ops-chip:first-child{border-radius:3px 0 0 3px}.ops-chip:last-child{border-radius:0 3px 3px 0}.ops-chip[aria-pressed=true]{position:relative;background:#e8f4fc;border-color:#168bd1;color:#0b6aa5}.ops-note,.ops-range{font-size:12px;color:#6b7a8c;margin:4px 0}.ops-empty{color:#8a96a5;font-size:13px}
.ops-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0}.ops-kpi{background:#fff;border:1px solid #e1e7ee;padding:12px 14px;display:grid;gap:3px}.ops-kpi span{font-size:12px;color:#6b7a8c}.ops-kpi b{font-size:20px;font-weight:600;color:#17233b}.ops-kpi em,.ops-kpi small{font-style:normal;font-size:12px;color:#6b7a8c}.ops-kpi small{color:#b06a1f}
.ops-up{color:#1e8e4f!important}.ops-down{color:#c94b3d!important}.ops-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin:12px 0}.ops-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ops h3{font-size:14px;margin:0 0 10px}.ops h4{font-size:13px;margin:0 0 6px;color:#4a5b70}
.ops-bars{display:grid;gap:6px}.ops-bar-row{display:grid;grid-template-columns:110px minmax(0,1fr) 96px 58px;gap:8px;align-items:center;font-size:12px}.ops-bar-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ops-bar-row b{font-weight:500;text-align:right}.ops-bar-row em{font-style:normal;text-align:right}.ops-bar{display:inline-block;width:100%;height:12px;background:#eef2f6;vertical-align:middle;margin-right:6px}.ops-table .ops-bar{width:60px}.ops-bar i{display:block;height:100%;background:#4fa3dc}
.ops-alerts{list-style:none;margin:0;padding:0;display:grid;gap:6px}.ops-alerts li{font-size:13px;padding:6px 10px;border-left:3px solid #e0a23a;background:#fff8ec}.ops-alerts li.ops-danger{border-left-color:#d4553f;background:#fdf0ee}.ops-alerts b{margin-right:8px}
.ops-table{width:100%;border-collapse:collapse;font-size:12px}.ops-table th,.ops-table td{padding:6px 8px;border-bottom:1px solid #eef2f6;text-align:left;white-space:nowrap}.ops-table th{color:#5c6c80;font-weight:500;background:#f7f9fb}.ops-scroll{overflow:auto}.ops-sort,.ops-link{margin:0;padding:0;border:0;background:none;color:#0b6aa5;font:inherit;cursor:pointer}.ops-sort{color:#5c6c80}.ops-sort[aria-pressed=true]{color:#0b6aa5}.ops-selected td{background:#eef7fd}
.ops-svg{width:100%;height:auto}.ops-axis{font-size:11px;fill:#8a96a5}.ops-legend{font-size:12px;color:#6b7a8c}.ops-l1,.ops-l2{display:inline-block;width:18px;height:0;border-top:2px solid #168bd1;vertical-align:middle;margin:0 4px 0 8px}.ops-l2{border-top:2px dashed #a9b4c2}
.ops-heat{border-collapse:separate;border-spacing:2px;font-size:11px}.ops-heat th{font-weight:400;color:#6b7a8c;padding:0 2px}.ops-heat td{width:18px;height:16px}.ops-h0{background:#f1f4f8}.ops-h1{background:#d6e9f8}.ops-h2{background:#a9d0f0}.ops-h3{background:#6fb1e3}.ops-h4{background:#2f8ccf}.ops-h5{background:#0c5f9c}
.ops-doc-actions{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:12px;color:#6b7a8c}.ops-doc-actions button{margin:0}
.ops-doc-summary{margin:0 0 8px;text-indent:2em}.ops-ai-option{display:flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;height:32px}.ops-ai-option input{margin:0}
.ops-doc{background:#fff;border:1px solid #e1e7ee;padding:32px 40px;max-width:980px;color:#17233b;line-height:1.75;font-size:13px}.ops-doc header{border-bottom:2px solid #17233b;padding-bottom:10px;margin-bottom:6px}.ops-doc h1{font-size:20px;margin:0 0 6px}.ops-doc header p{margin:2px 0;font-size:12px;color:#5c6c80}.ops-doc h2{font-size:15px;margin:22px 0 8px;padding-bottom:4px;border-bottom:1px solid #d8dee6}.ops-doc h3{font-size:13px;margin:14px 0 6px}.ops-doc ol{padding-left:20px;margin:0}.ops-doc-table{width:100%;border-collapse:collapse;font-size:12px;margin:6px 0}.ops-doc-table th,.ops-doc-table td{border:1px solid #d8dee6;padding:5px 8px;text-align:left}.ops-doc-table th{background:#f4f7fb;font-weight:500}.ops-doc .ops-table th,.ops-doc .ops-table td{border:1px solid #d8dee6}.ops-doc-days{display:flex;align-items:flex-end;gap:2px;height:90px;border-bottom:1px solid #d8dee6}.ops-doc-days span{flex:1;height:100%;display:flex;align-items:flex-end}.ops-doc-days i{display:block;width:100%;background:#4fa3dc}.ops-doc footer{margin-top:22px;padding-top:8px;border-top:1px solid #d8dee6;font-size:11px;color:#6b7a8c}
@media(max-width:1100px){.ops-grid,.ops-grid3{grid-template-columns:1fr}.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body.ops-printing *{visibility:hidden}body.ops-printing #ops-report-doc,body.ops-printing #ops-report-doc *{visibility:visible}body.ops-printing #ops-report-doc{position:absolute;left:0;top:0;width:100%;max-width:none;border:0;padding:0}body.ops-printing .ops-doc h2{break-after:avoid}body.ops-printing .ops-doc-table tr{break-inside:avoid}}
.ops-joined{margin-left:6px;padding:1px 6px;font-size:11px;color:#8a5a12;background:#fff3dc}
.ops-subtabs{display:flex;gap:0;border-bottom:1px solid #e1e7ee;margin:-4px 0 10px}.ops-subtabs button{margin:0;padding:8px 16px;border:0;border-bottom:2px solid transparent;background:none;color:#4a5b70}.ops-subtabs button[aria-selected=true]{border-bottom-color:#168bd1;color:#0b6aa5;font-weight:500}
.ops-doc header{display:block;height:auto;background:none;font-weight:normal;padding:0 0 10px}.ops-list-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.ops-list-head h3{margin:0}.ops-list-head button{margin:0}.ops-push-error{color:#c0392b}
body.ops-window{display:block;background:#eef1f5;padding:20px;margin:0;min-height:100vh;box-sizing:border-box}.ops-window .ops-doc{margin:0 auto}.ops-window-bar{max-width:980px;margin:0 auto 12px;display:flex;align-items:center;gap:10px;font-size:12px;color:#6b7a8c}.ops-window-bar button{margin:0}
@media print{body.ops-window{background:#fff;padding:0}.ops-window-bar{display:none}.ops-window .ops-doc{border:0;padding:0;max-width:none}}
.ops-auto-check{flex-direction:row!important;align-items:center;gap:6px}.ops-auto-check input{width:auto;margin:0}.ops-auto-stores{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0 12px}.ops-auto-stores>label{display:flex;align-items:center;gap:4px}.ops-auto-stores>label input{width:auto;margin:0}.ops-auto-stores .store-multi-picker{flex-basis:100%;max-width:520px}
.ops-monthly p{margin:4px 0 8px;font-size:13px;color:#4a5b70}.ops-monthly button{margin:8px 8px 0 0}
.business-report-filters input[type=date]{width:145px}.business-report-filters input[type=number]{width:105px}.business-report-period{display:grid;gap:5px}.business-report-shortcuts{display:flex;white-space:nowrap}.business-report-shortcuts button{margin:0;border-radius:0;border:1px solid #cbd9e8;background:#fff;color:#48647f;padding:7px 12px}.business-report-shortcuts button+button{margin-left:-1px}.business-report-shortcuts button:first-child{border-radius:3px 0 0 3px}.business-report-shortcuts button:last-child{border-radius:0 3px 3px 0}.business-report-shortcuts button[aria-pressed=true]{position:relative;background:#e8f5ff;border-color:#168bd1;color:#0878bd}.business-report-shortcuts button:focus-visible{position:relative;outline:2px solid #168bd1;outline-offset:2px}

.runtime-log-settings{border:1px solid #c8dcf4;background:#f5f9ff;padding:14px 18px;margin:0 0 20px;border-radius:4px}.runtime-log-settings h3{margin-top:0}.runtime-log-settings .form-grid{grid-template-columns:repeat(4,minmax(140px,1fr));align-items:center}.runtime-log-settings p{margin-bottom:4px}.runtime-log-settings code{overflow-wrap:anywhere}@media(max-width:900px){.runtime-log-settings .form-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}

.cleanup-rules{width:100%;min-width:640px}.cleanup-rules input[type=number]{width:95px}.cleanup-rules input[type=checkbox]{width:16px;height:16px}.cleanup-schedule{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0}.cleanup-schedule input{width:70px}.runtime-log-extra{margin-top:8px}.runtime-log-extra label{display:flex;gap:8px;align-items:center;margin:10px 0}.runtime-log-extra input{width:70px}

/* Cleanup results: long diagnostic output must not squeeze the name or number columns. */
.cleanup-result-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 10px;color:#748397;font-size:12px}.cleanup-result-heading strong{font-size:14px;color:#263449}.cleanup-result-status{padding:3px 10px;border-radius:12px;font-size:12px;line-height:1.5}.cleanup-result-status.is-success{background:#eaf7ef;color:#237748}.cleanup-result-status.is-warning{background:#fff3df;color:#97620b}.cleanup-result-error{margin-bottom:10px;color:#b54737}.cleanup-result-scroll{border:1px solid #e1e8f0;border-radius:5px;max-height:520px}.cleanup-result-table{width:100%;min-width:760px;table-layout:fixed}.cleanup-result-table .cleanup-result-project{width:240px}.cleanup-result-table .cleanup-result-count{width:80px}.cleanup-result-table .cleanup-result-bytes{width:140px}.cleanup-result-table th,.cleanup-result-table td{padding:12px 14px;vertical-align:top;line-height:1.65;overflow-wrap:break-word;word-break:normal;border-bottom:1px solid #e8edf3}.cleanup-result-table th{position:sticky;top:0;z-index:1;background:#f3f7fb;font-weight:600;white-space:nowrap}.cleanup-result-table th:nth-child(2),.cleanup-result-table td:nth-child(2){text-align:center;white-space:nowrap}.cleanup-result-table th:nth-child(3),.cleanup-result-table td:nth-child(3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.cleanup-result-table td:first-child{font-weight:500;color:#334b64}.cleanup-result-table tbody tr:nth-child(even){background:#fafcfe}.cleanup-result-table tbody tr:hover{background:#f0f7fd}.cleanup-result-table tbody tr:last-child td{border-bottom:0}.cleanup-result-empty{color:#8b98a8}.cleanup-result-detail summary{padding:0;color:#147fbd;font-weight:400;cursor:pointer}.cleanup-result-detail>div{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px;padding:10px 12px;background:#f4f7fa;border-radius:4px;max-height:240px;overflow:auto;font-size:12px;color:#63748a}@media(max-width:850px){.cleanup-result-table .cleanup-result-project{width:210px}.cleanup-result-table .cleanup-result-count{width:70px}.cleanup-result-table .cleanup-result-bytes{width:120px}}

.cleanup-growth-hint{display:block;max-width:520px;margin-top:5px;line-height:1.6;font-size:12px;color:#9b681b}.cleanup-growth-warning{margin-top:12px}.cleanup-growth-warning[hidden]{display:none}

/* Keep session actions separate from the scrolling menu; page titles live in the workspace header. */
body>.app-sidebar{display:flex;flex-direction:column}.app-sidebar>.brand{flex:0 0 auto}.app-sidebar>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar-session{flex:0 0 auto;margin-top:12px;padding:12px 7px 0;border-top:1px solid #ffffff24}.sidebar-session[hidden]{display:none}.sidebar-session-info{display:flex;flex-direction:column;gap:5px;min-width:0;margin-bottom:10px}.sidebar-session-info span{font-size:11px;color:#96aec6}.sidebar-session-info strong{color:#e9f1f8;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-session-actions{display:flex;gap:8px}.sidebar-session-actions button{flex:1;min-width:0;margin:0;padding:6px 7px;font-size:12px;white-space:nowrap;color:#dce8f3;background:#ffffff0a;border:1px solid #ffffff30;border-radius:3px}.sidebar-session-actions button:hover{background:#ffffff18;color:#fff}.sidebar-session-actions button[hidden]{display:none}.workspace>.workspace-header{position:sticky;top:0;z-index:20;flex:0 0 auto;height:48px;gap:16px;padding:0 16px;border-bottom:1px solid #e1e7ee;background:#fff}.workspace-header #title{min-width:0;margin:0;font-size:18px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-header #refresh{flex:0 0 auto;margin:0;white-space:nowrap}@media(min-width:621px){body>.app-sidebar{position:sticky;top:0;height:100vh;overflow:hidden;align-self:flex-start}}@media(max-width:620px){body>.app-sidebar{width:100%;position:static;height:auto;max-height:45vh}.app-sidebar>nav{flex-shrink:1;min-height:35px}.sidebar-session{padding-top:8px;margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar-session-info{margin-bottom:0;max-width:50%}.sidebar-session-actions{flex:0 0 auto}.workspace-header #title{font-size:16px}}

.workspace main .chain-toolbar>h1{display:none}

/* 运营报告操作放入筛选栏；切换页签时隐藏按钮和 AI 选项。 */
.business-report-filters .ops-ai-option{display:flex;flex-direction:row}.ops #ops-ai-option[hidden],.ops #ops-generate[hidden]{display:none}
