
/* v1.0.2 · 统一企业工作台：参考图一的白底、蓝色品牌栏、彩色功能图标。 */
:root{--brand-blue:var(--oa-tone-29499a, #29499a);--brand-blue-dark:var(--oa-tone-203c84, #203c84);--theme-ink:var(--oa-tone-283b52, #283b52);--theme-line:var(--oa-tone-e0e6ef, #e0e6ef);--theme-bg:var(--oa-tone-f4f6f9, #f4f6f9);}
body{background:var(--theme-bg);color:var(--theme-ink);}
.color-0{--tile-fg:#b88017;--tile-bg:#fff3d6}.color-1{--tile-fg:#178f72;--tile-bg:#e5f6ee}.color-2{--tile-fg:#d76c2c;--tile-bg:#fff0e4}.color-3{--tile-fg:#7761c9;--tile-bg:#f0ebff}.color-4{--tile-fg:#3e82c6;--tile-bg:#e6f1ff}.color-5{--tile-fg:#78a62c;--tile-bg:#f0f7dd}
.oa-top-brand{display:none;}
.oa-workbench-link{display:none;}
.app.hub-portal-active > .main{padding:0 12px 20px;}
.app.hub-portal-active .hero{display:none;}
.app.hub-portal-active .topbar{min-height:68px;height:auto;background:white;margin:0 -12px 12px;padding:0 16px 0 0;gap:14px;box-shadow:0 2px 8px var(--oa-tone-1b315b0a, #1b315b0a);border-bottom:1px solid var(--theme-line);}
.app.hub-portal-active .oa-top-brand{display:flex;align-items:center;justify-content:center;gap:10px;align-self:stretch;min-width:186px;background:var(--brand-blue);color:#fff;padding:15px 12px;font-size:19px;letter-spacing:.5px;}
.oa-top-brand span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--brand-blue);font-weight:900;font-size:15px;}
.app.hub-portal-active .oa-workbench-link{display:flex;align-items:center;color:var(--brand-blue);font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;border-bottom:3px solid #6baf63;align-self:stretch;padding:0 12px;}
.app.hub-portal-active .crumb{display:none;}
.app.hub-portal-active .top-actions{flex:1;justify-content:flex-end;flex-wrap:wrap;}
.portal-hub{grid-template-columns:174px var(--hub-feat-w) minmax(0,1fr);border:0;border-radius:4px;background:transparent;box-shadow:none;gap:12px;min-height:calc(100vh - 100px);}
.portal-hub.workbench-layout,.portal-hub.workbench-layout.features-collapsed{grid-template-columns:174px minmax(0,1fr);}
.portal-hub .hub-systems,.portal-hub .hub-features{background:#fff;border:1px solid var(--theme-line);border-radius:5px;color:var(--theme-ink);box-shadow:0 2px 8px var(--oa-tone-243c5a06, #243c5a06);}
.hub-system-heading{padding:11px 10px;border-bottom:1px solid var(--oa-tone-edf0f5, #edf0f5);gap:7px;}
.hub-system-heading b{font-size:13px;color:var(--oa-tone-334c69, #334c69);}.hub-system-heading small{font-size:10px;color:var(--oa-tone-8090a4, #8090a4);}
.hub-symbol{width:28px;height:28px;border-radius:5px;background:var(--oa-tone-edf2ff, #edf2ff);color:var(--brand-blue);box-shadow:none;font-size:15px;}
.hub-system-scroll{padding:3px 8px;gap:0;max-height:none;}
.portal-hub .hub-system{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:67px;border-radius:0;border-bottom:1px solid var(--oa-tone-f0f2f6, #f0f2f6);color:var(--oa-tone-485569, #485569);padding:7px 2px;text-align:center;}
.hub-system span:nth-child(2){min-width:0}.hub-system b{font-size:12px;white-space:normal;}.hub-system small{display:none;}
.hub-system .hub-chevron{display:none;}.hub-system-icon{width:30px;height:30px;border-radius:7px;font-size:21px;background:var(--tile-bg,#eaf2fc);color:var(--tile-fg,#3e82c6);font-weight:800}
.hub-system:nth-child(6n/**/+1),.module-btn:nth-child(6n/**/+1){--tile-bg:#fff3d6;--tile-fg:#b88017}
.hub-system:nth-child(6n/**/+2),.module-btn:nth-child(6n/**/+2){--tile-bg:#e5f6ee;--tile-fg:#178f72}
.hub-system:nth-child(6n/**/+3),.module-btn:nth-child(6n/**/+3){--tile-bg:#fff0e4;--tile-fg:#d76c2c}
.hub-system:nth-child(6n/**/+4),.module-btn:nth-child(6n/**/+4){--tile-bg:#f0ebff;--tile-fg:#7761c9}
.hub-system:nth-child(6n/**/+5),.module-btn:nth-child(6n/**/+5){--tile-bg:#e6f1ff;--tile-fg:#3e82c6}
.hub-system:nth-child(6n/**/+6),.module-btn:nth-child(6n/**/+6){--tile-bg:#f0f7dd;--tile-fg:#78a62c}
.portal-hub .hub-system:hover,.portal-hub .hub-system.active{background:var(--oa-tone-edf2ff, #edf2ff);color:var(--oa-tone-29499a, #29499a);box-shadow:inset 3px 0 var(--oa-tone-29499a, #29499a);}
.hub-systems-bottom{color:var(--oa-tone-8692a1, #8692a1);border-top:1px solid var(--oa-tone-eef1f5, #eef1f5);padding:12px 6px;text-align:center;font-size:10px;}
.hub-display{border:1px solid var(--theme-line);border-radius:5px;background:white;min-width:0;}
.portal-hub.workbench-layout .hub-display-home{border:0;background:transparent;}
.portal-hub.workbench-layout .hub-display-home .hub-display-head{display:none;}
.portal-hub.workbench-layout .hub-display-content{padding:0!important;display:block!important;background:transparent!important;}
.workbench-home{display:grid;gap:12px;min-width:0;align-content:start;}
.workbench-heading{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--theme-line);padding:10px 14px;gap:12px;}
.workbench-heading b{font-size:18px;color:var(--brand-blue);display:block;}
.workbench-heading small{color:var(--oa-tone-7b8799, #7b8799);font-size:11px;display:block;margin-top:3px;}
.workbench-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap;}
.workbench-heading button,.work-panel-head button{border:1px solid var(--oa-tone-dce5f0, #dce5f0);background:#fff;border-radius:4px;color:var(--brand-blue);padding:6px 9px;font-size:12px;}
.workbench-heading button:hover,.work-panel-head button:hover{background:var(--oa-tone-edf2ff, #edf2ff);}
.workbench-upper,.workbench-lower{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:12px;}
.work-panel{background:white;border:1px solid var(--theme-line);border-radius:5px;min-width:0;padding:0 12px 12px;box-shadow:0 2px 6px var(--oa-tone-203c8406, #203c8406);}
.work-panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--oa-tone-8d9cad, #8d9cad);padding:9px 0;margin-bottom:10px;}
.work-panel-head h3{font-size:16px;color:var(--oa-tone-294779, #294779);font-weight:600;margin:0;}
.work-news-body{display:grid;grid-template-columns:minmax(140px,40%) minmax(0,1fr);gap:12px;align-items:start;}
.work-news-photo{position:relative;display:block;overflow:hidden;border:0;padding:0;width:100%;aspect-ratio:4/3;background:var(--oa-tone-e6edf8, #e6edf8);text-align:left;}
.work-news-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.work-news-photo span{position:absolute;bottom:0;left:0;right:0;background:var(--oa-tone-172b45b8, #172b45b8);color:#fff;padding:10px;font-size:12px;}
.work-list{padding:0;margin:0;list-style:none;}
.work-list li{border-bottom:1px solid var(--oa-tone-f1f3f7, #f1f3f7);min-width:0;}
.work-list button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;color:var(--oa-tone-48566b, #48566b);font-size:13px;text-align:left;padding:8px 0;}
.work-list button::before{content:"·";font-weight:900;color:var(--oa-tone-8190a6, #8190a6);}
.work-list button span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;}
.work-list button small{white-space:nowrap;font-size:10px;color:var(--oa-tone-8d98a8, #8d98a8);}
.work-list button:hover{color:var(--brand-blue);background:var(--oa-tone-f6f8fc, #f6f8fc);}
.work-empty{display:grid;place-items:center;min-height:130px;color:var(--oa-tone-8b98a9, #8b98a9);padding:14px;text-align:center;font-size:13px;}
.work-quick{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;padding:10px;}
.work-quick button{min-width:0;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:5px 2px;font-size:12px;color:var(--oa-tone-435168, #435168);}
.work-quick button:hover{background:var(--oa-tone-f1f5fb, #f1f5fb);border-radius:5px;}
.work-quick-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:7px;background:var(--tile-bg);color:var(--tile-fg);font-size:24px;font-weight:800}
.work-tabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid var(--oa-tone-8d9cad, #8d9cad);margin:0 -12px 6px;}
.work-tabs button{border:0;background:white;padding:12px;color:var(--oa-tone-48566b, #48566b);font-size:13px;}
.work-tabs button.active{background:var(--brand-blue);color:white;}
.work-warning{margin:0;padding:8px 12px;color:#8d5413;background:#fff5db;border:1px solid #f5e1a8}
.work-todos{min-height:250px;}.work-todos .work-empty{min-height:190px;}
#supplierInputHelp{font-size:11px;color:var(--oa-tone-64809a, #64809a);line-height:1.5;}
#field1[list]{background:#fff;border:1px solid var(--oa-tone-cbd7e5, #cbd7e5);border-radius:5px;padding:10px;min-width:0;width:100%;font:inherit;color:var(--oa-tone-263c51, #263c51);}
.app:not(.hub-portal-active) .sidebar{background:#fff;color:var(--oa-tone-3d506b, #3d506b);box-shadow:none;border-right:1px solid var(--theme-line);}
.app:not(.hub-portal-active) .brand{background:var(--brand-blue);color:white;}
.app:not(.hub-portal-active) .side-label,.app:not(.hub-portal-active) .side-foot{color:var(--oa-tone-78889d, #78889d);border-color:var(--theme-line);}
.app:not(.hub-portal-active) .module-btn{color:var(--oa-tone-40536d, #40536d);border-bottom:1px solid var(--oa-tone-eef1f5, #eef1f5);border-radius:5px;}
.app:not(.hub-portal-active) .module-btn:hover,.app:not(.hub-portal-active) .module-btn.active{background:var(--oa-tone-eaf0ff, #eaf0ff);color:var(--oa-tone-29499a, #29499a);box-shadow:inset 3px 0 var(--oa-tone-29499a, #29499a);}
.app:not(.hub-portal-active) .module-code{background:var(--tile-bg);color:var(--tile-fg)}
.app:not(.hub-portal-active) .module-text small{color:var(--oa-tone-8591a2, #8591a2);}
.kpi-grid .kpi,.special-kpis .kpi{border-top:3px solid var(--oa-tone-5078c4, #5078c4);}
.kpi-grid .kpi:nth-child(2),.special-kpis .kpi:nth-child(2){border-top-color:#e2a435}
.kpi-grid .kpi:nth-child(3),.special-kpis .kpi:nth-child(3){border-top-color:#36a4c7}
.kpi-grid .kpi:nth-child(4),.special-kpis .kpi:nth-child(4){border-top-color:#4daf83}
@media(max-width:1250px){.work-quick{grid-template-columns:repeat(6,minmax(0,1fr));}.app.hub-portal-active .oa-top-brand{min-width:150px;}.portal-hub{grid-template-columns:150px var(--hub-feat-w) minmax(0,1fr);}.portal-hub.workbench-layout,.portal-hub.workbench-layout.features-collapsed{grid-template-columns:150px minmax(0,1fr);}}
@media(max-width:850px){.workbench-upper,.workbench-lower{grid-template-columns:minmax(0,1fr);}.portal-hub,.portal-hub.workbench-layout,.portal-hub.workbench-layout.features-collapsed{grid-template-columns:95px minmax(0,1fr);}.portal-hub:not(.workbench-layout){grid-template-columns:95px minmax(0,1fr);}.portal-hub:not(.workbench-layout) .hub-display{grid-column:1/-1;}.hub-system-heading small,.hub-system-heading b{display:none;}.hub-system-heading{justify-content:center;}.app.hub-portal-active .topbar{flex-wrap:wrap;padding:0 8px 8px;}.app.hub-portal-active .oa-top-brand{min-width:130px;}.work-quick{grid-template-columns:repeat(4,minmax(0,1fr));}}

.portal-hub .hub-features-heading{background:var(--oa-tone-f5f7fc, #f5f7fc);color:var(--oa-tone-37516e, #37516e);border-color:var(--oa-tone-e0e6ef, #e0e6ef);}
.portal-hub .hub-feature-main.active{background:var(--oa-tone-eaf0ff, #eaf0ff);color:var(--oa-tone-29499a, #29499a);}
@media(min-width:851px) and (max-width:970px){.portal-hub.workbench-layout .hub-systems{grid-row:auto;}.portal-hub.workbench-layout .hub-display{grid-column:2;}}
@media(max-width:700px){.portal-hub.workbench-layout .hub-systems{grid-row:1;grid-column:1;}.portal-hub.workbench-layout .hub-display{grid-row:1;grid-column:2;}.portal-hub.workbench-layout .hub-system-scroll{grid-template-columns:1fr;max-height:none;}.work-news-body{grid-template-columns:1fr;}.work-quick{grid-template-columns:repeat(3,minmax(0,1fr));}.workbench-heading{flex-wrap:wrap;}.workbench-upper,.workbench-lower{grid-template-columns:minmax(0,1fr);}.workbench-heading button{font-size:11px;}}
