.system-admin-workspace{position:fixed;inset:0;z-index:9500;background:#f7fbff;color:#183b61;overflow:auto;font:15px/1.45 "Microsoft YaHei",Arial,sans-serif}.system-admin-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:#fff;background:linear-gradient(120deg,#095282,#13a4c8)}.system-admin-header strong{font-size:21px;margin-right:16px}.system-admin-header span{font-size:17px;opacity:.9}.system-admin-header button{border:0;background:transparent;color:#fff;font-size:32px;cursor:pointer}.system-admin-main{padding:18px 22px;min-width:1080px}.admin-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;background:#e8f5fb;border:1px solid #bbd8ea}.admin-toolbar label{display:flex;align-items:center;gap:6px;font-weight:700}.admin-toolbar .wide input{width:280px}.admin-toolbar input,.admin-toolbar select,.admin-user-editor input,.admin-user-editor select{height:34px;box-sizing:border-box;border:1px solid #9fc6dc;border-radius:3px;padding:0 9px;background:#fff;color:#183b61}.admin-toolbar button,.admin-user-editor button{height:34px;padding:0 17px;border:1px solid #7daecd;background:linear-gradient(#fff,#d7ebf7);color:#174e78;font-weight:700;cursor:pointer;border-radius:3px}.admin-toolbar .primary,.admin-user-editor .primary{background:linear-gradient(#34c56d,#169a4f);border-color:#158946;color:#fff}.admin-grid-table{margin-top:14px;overflow:auto;border:1px solid #b8d5e6;background:#fff}.admin-grid-table table{border-collapse:collapse;width:max-content;min-width:100%}.admin-grid-table th{white-space:nowrap;background:#d9edf7;color:#204d70}.admin-grid-table th,.admin-grid-table td{border:1px solid #c7dceb;padding:8px 10px;text-align:center;white-space:nowrap}.admin-grid-table tbody tr:nth-child(even){background:#f6fbfe}.admin-grid-table tbody tr:hover{background:#dceef9;cursor:pointer}.admin-actions{display:flex;gap:8px}.admin-actions button{border:0;background:transparent;color:#286ca4;cursor:pointer;font-size:14px}.status-pill{display:inline-block;padding:1px 8px;border-radius:12px;font-size:13px}.status-pill.on{background:#d9f5df;color:#188444}.status-pill.off{background:#fee2e2;color:#b52323}.admin-empty{padding:38px!important;color:#70869b}.admin-footnote{color:#6a8296;margin:12px 0}.admin-modal-mask{position:fixed;inset:0;z-index:9800;display:flex;align-items:center;justify-content:center;background:rgba(22,53,76,.36)}.admin-user-editor{width:880px;max-width:92vw;background:#f9fdff;border:2px solid #65b8e2;box-shadow:0 12px 42px rgba(0,0,0,.24)}.admin-user-editor>header{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#e1f3fc;color:#0a5c8f;font-size:17px}.admin-user-editor>header button{height:auto;border:0;background:transparent;font-size:24px}.admin-user-editor form{padding:18px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 36px}.admin-form-grid label,.admin-settings-grid>label{display:flex;align-items:center;gap:12px;font-weight:700}.admin-form-grid input,.admin-form-grid select{flex:1}.admin-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 30px;margin-top:18px;padding-top:14px;border-top:1px solid #b7d8e9}.admin-settings-grid fieldset{border:1px solid #c3dce9;padding:9px 12px}.admin-settings-grid legend{font-weight:700;color:#166696}.admin-settings-grid label{margin-right:10px;white-space:nowrap}.admin-user-editor footer{padding-top:16px;text-align:center}.admin-user-editor footer button{margin:0 8px;min-width:110px}.admin-log-tabs{display:flex;border-bottom:2px solid #4fa6d0}.admin-log-tabs button{padding:10px 20px;border:1px solid #a8cce0;background:#eef7fc;color:#245879;font-weight:700;cursor:pointer}.admin-log-tabs button.active{background:#fff;border-bottom-color:#fff;color:#087ab5}.admin-help{color:#e34e4e;font-weight:700}.admin-log-main{height:47vh}.admin-detail-title{margin:12px 0 0;text-align:center;color:#1a6a9d;border:1px solid #bdd9e8;border-bottom:0;background:#eff8fd}.admin-log-detail{margin-top:0;min-height:190px;max-height:28vh}
.reference-action{border:0;background:transparent;color:#176aa0;cursor:pointer;font-weight:700;white-space:nowrap}.reference-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;background:rgba(20,48,73,.42)}.reference-dialog{width:760px;max-width:94vw;max-height:90vh;overflow:auto;background:#f9fdff;border:2px solid #4eafe0;box-shadow:0 14px 42px rgba(0,0,0,.28);color:#173e61}.reference-title{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#dff3fc;color:#075c91;font-size:18px}.reference-title button{border:0;background:transparent;color:#075c91;font-size:26px;cursor:pointer}.reference-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;padding:18px}.reference-form>label{display:flex;align-items:center;gap:10px;font-weight:700}.reference-form input,.reference-form select{height:34px;box-sizing:border-box;flex:1;border:1px solid #9bc5dc;border-radius:3px;padding:0 8px}.reference-categories{grid-column:1/-1;border-top:1px solid #b7d8e9;padding-top:12px}.reference-categories>div{display:flex;flex-wrap:wrap;gap:8px 14px;margin:9px 0}.reference-categories input{width:100%;height:34px;box-sizing:border-box;border:1px solid #9bc5dc;border-radius:3px;padding:0 8px}.reference-check{white-space:nowrap}.reference-check input{height:auto;width:auto;margin-right:3px}.reference-foot{grid-column:1/-1;text-align:center;padding-top:8px}.reference-foot button{min-width:100px;height:36px;margin:0 7px;border:1px solid #83b6d2;background:linear-gradient(#fff,#d8ebf6);color:#174e78;font-weight:700;cursor:pointer}.reference-foot button[type=submit]{background:linear-gradient(#32c46d,#179a4f);border-color:#158946;color:#fff}
.admin-grid-table tbody tr.selected{background:#b9def1!important;outline:2px solid #278fc2;outline-offset:-2px}

/* 功能标签页：每个已打开功能可独立切换，保留收银入口在右侧。 */
.tab-strip{display:flex;align-items:stretch;gap:3px;min-height:38px;overflow-x:auto;white-space:nowrap}.workspace-tabs{display:flex;align-items:stretch;gap:3px}.workspace-tab{display:inline-flex;align-items:center;gap:8px;min-width:110px;max-width:210px;padding:0 9px;border:1px solid #9ac6e5;border-bottom:0;border-radius:5px 5px 0 0;background:#e6f4fc;color:#28658a;font-weight:700;cursor:pointer}.workspace-tab span{overflow:hidden;text-overflow:ellipsis}.workspace-tab.active{background:#fff;color:#075f96;box-shadow:inset 0 3px #159cd1}.workspace-tab i{font-style:normal;font-size:17px;line-height:1;color:#6992aa}.workspace-tab i:hover{color:#c22}.tab-strip>a{margin-left:auto}

/* 销售明细筛选区改为自适应网格，避免在大屏/窄屏之间挤压错位。 */
.sale-detail-window .sale-detail-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(155px,1fr));align-items:center;gap:12px 16px;padding:18px 14px}.sale-detail-window .sale-filter-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;margin:0;font-weight:700;color:#315d7a;white-space:nowrap}.sale-detail-window .sale-filter-field select,.sale-detail-window .sale-filter-field input{min-width:0;width:100%;margin:0;box-sizing:border-box}.sale-detail-window .sale-picker-field>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;min-width:0}.sale-detail-window .sale-picker-field button{height:36px;min-width:56px;padding:0 9px;white-space:nowrap}.sale-detail-window .sale-check-stack{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:36px;white-space:nowrap}.sale-detail-window .sale-check{display:flex;align-items:center;gap:3px;margin:0;font-weight:700;color:#315d7a}.sale-detail-window .sale-check input{width:20px;height:20px;min-height:0;margin:0}.sale-detail-window .sale-date-range{grid-column:span 2;display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;font-weight:700;color:#315d7a;white-space:nowrap}.sale-detail-window .sale-date-range input{width:100%;min-width:0;margin:0}.sale-detail-window .sale-promoter-field{grid-column:span 2}.sale-detail-window .sale-keyword-field{grid-column:span 4}.sale-detail-window #salesSearchBtn,.sale-detail-window #salesAdvancedBtn{height:36px;white-space:nowrap}.sale-detail-window .sale-detail-table-zone{overflow-x:auto}.sale-detail-window .sale-detail-table-zone .table-wrap{min-width:100%}@media(max-width:1500px){.sale-detail-window .sale-detail-filter-grid{grid-template-columns:repeat(4,minmax(175px,1fr))}.sale-detail-window .sale-date-range,.sale-detail-window .sale-promoter-field{grid-column:span 2}.sale-detail-window .sale-keyword-field{grid-column:span 2}.sale-detail-window .sale-check-stack{grid-column:span 2}}@media(max-width:980px){.sale-detail-window .sale-detail-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-detail-window .sale-date-range,.sale-detail-window .sale-promoter-field,.sale-detail-window .sale-keyword-field,.sale-detail-window .sale-check-stack{grid-column:span 2}.sale-detail-window .sale-check-stack{flex-wrap:wrap}}

/* 商品款式列表与编辑窗：按照旧版“列表 + 独立编辑窗 + 关联小类”操作方式重新排版。 */
#page-products .legacy-section:first-child{min-height:calc(100vh - 215px)}#page-products .section-head{align-items:center;gap:16px;flex-wrap:wrap}#page-products .section-head h3{font-size:21px;letter-spacing:1px}#styleArchiveTable .table-wrap{max-height:calc(100vh - 330px);overflow:auto;border:1px solid #b8d8eb}#styleArchiveTable table{min-width:1320px;border-collapse:collapse}#styleArchiveTable th{background:#dceef8;color:#1b4f73;position:sticky;top:0;z-index:1}#styleArchiveTable th,#styleArchiveTable td{padding:9px 10px;border:1px solid #c9e1f0;vertical-align:middle}#styleArchiveTable tbody tr:nth-child(even){background:#f7fbfe}#styleArchiveTable tbody tr:hover{background:#dceefa}.reference-pager{display:flex;align-items:center;gap:10px;padding:10px 4px;color:#56748a}.reference-pager button{border:1px solid #9ec5dc;background:linear-gradient(#fff,#dfedf6);color:#215c85;font-weight:700;padding:4px 11px;border-radius:3px;cursor:pointer}.reference-pager button:disabled{opacity:.45;cursor:default}
.style-reference-dialog{width:1040px;max-width:95vw}.style-reference-form{display:block;padding:0}.reference-editor-top{display:grid;grid-template-columns:1fr 1fr;gap:44px;padding:22px 40px 14px}.reference-editor-left,.reference-editor-right{display:grid;gap:12px}.reference-editor-left label,.reference-editor-right label{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px;color:#284f70;font-weight:700}.reference-editor-left input,.reference-editor-left select,.reference-editor-right input,.reference-editor-right select{height:36px;border:1px solid #a7cee4;border-radius:4px;padding:0 9px;background:#fff}.style-reference-form .reference-categories{border-top:1px solid #75bae2;border-bottom:1px solid #75bae2;padding:12px 16px}.reference-category-head{display:flex!important;align-items:center;gap:12px!important;margin:0 0 10px!important}.reference-category-head button{border:0;background:transparent;color:#176aa0;font-weight:700;cursor:pointer}.reference-check-grid{display:grid!important;grid-template-columns:repeat(8,minmax(95px,1fr));gap:0!important;border-top:1px solid #c7e2f0;border-left:1px solid #c7e2f0}.reference-check-grid .reference-check{display:flex;align-items:center;padding:8px;border-right:1px solid #c7e2f0;border-bottom:1px solid #c7e2f0;background:#fafdff}.style-reference-form .reference-categories>input{margin-top:12px}.style-reference-form .reference-foot{padding:16px;text-align:center}.style-reference-form .reference-foot button[type=submit]{min-width:120px}@media(max-width:900px){.reference-editor-top{grid-template-columns:1fr;padding:18px}.reference-check-grid{grid-template-columns:repeat(3,minmax(95px,1fr))}}
