/* 工作台首页浅色 ERP 主题。所有覆盖都以 wb-home 为入口，避免影响业务模块。 */
body.wb-home{
  color:#303744;
  background:#f4f6f9;
  --wh-accent:#3478f6;
  --wh-accent-soft:#edf3ff;
  --wh-text:#303744;
  --wh-secondary:#7c8796;
  --wh-border:#e7ebf0;
  --wh-surface:#fff;
}
body.wb-home button:focus-visible,
body.wb-home input:focus-visible,
body.wb-home a:focus-visible{outline:2px solid #91b9ff;outline-offset:2px}
body.wb-home .shell{grid-template-columns:202px minmax(0,1fr);grid-template-rows:60px minmax(0,1fr)}
body.wb-home .sidebar{width:202px;background:#fff;border-right:1px solid #e5e9f0;color:#536174}
body.wb-home .shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}
body.wb-home .shell.sidebar-collapsed .sidebar{width:0}
body.wb-home .brand{height:76px;padding:0 18px;border-bottom:1px solid #edf0f4}
body.wb-home .logo{width:34px;height:34px;border:0;border-radius:7px;background:#3478f6;color:#fff;box-shadow:none;font-size:14px}
body.wb-home .brand b{color:#303744;font-size:14px;letter-spacing:.3px}
body.wb-home .brand small{color:#9aa5b5;letter-spacing:1.2px}
body.wb-home .nav-label{margin:18px 18px 10px;color:#a0a9b5;font-size:9px;letter-spacing:1.4px}
body.wb-home .nav{gap:3px;padding:0 10px 18px}
body.wb-home .nav button{min-height:40px;padding:9px 10px;border:0;border-radius:5px;color:#596679;font-size:12px;gap:9px}
body.wb-home .nav button:hover{background:#f5f7fb;color:#3478f6}
body.wb-home .nav button[aria-current=page]{background:#eaf2ff;color:#3478f6;font-weight:600}
body.wb-home .nav button[aria-current=page]:before{left:-10px;top:8px;bottom:8px;width:3px;background:#3478f6;box-shadow:none;border-radius:2px}
body.wb-home .nav-icon{width:22px;font-size:16px}
body.wb-home .side-bottom{padding:20px 18px;border-top:1px solid #f0f2f5}
body.wb-home .side-chip{color:#68758a}
body.wb-home .side-chip i,
body.wb-home .system-state i{background:#36b37e;box-shadow:none}
body.wb-home .side-bottom p{color:#a1aab6}
body.wb-home .topbar{padding:0 24px;background:#fff;border-bottom:1px solid #e5e9f0}
body.wb-home .mobile-menu{border-color:#dfe5ee;color:#536174;background:#fff}
body.wb-home .mobile-menu:hover{background:#f5f7fb;color:#3478f6}
body.wb-home .crumb{color:#98a2b1}
body.wb-home .crumb span{color:#c2c8d0}
body.wb-home .crumb strong{color:#3d4858;font-weight:600}
body.wb-home .time{color:#8d97a6}
body.wb-home .account-entry{border-color:#e2e7ed;background:#fff;color:#303744;padding:4px 10px 4px 5px}
body.wb-home .account-entry:hover{border-color:#b9cdf4;background:#f7faff}
body.wb-home .account-entry .avatar{border:0;background:#eaf2ff;color:#3478f6}
body.wb-home .account-text b{color:#414b5b}
body.wb-home .account-text small{color:#98a2b1}
body.wb-home .workspace{background:#f4f6f9}
body.wb-home .home{max-width:1480px;padding:24px 28px 32px}
body.wb-home .heading{margin-bottom:18px}
body.wb-home .heading h1{margin:0 0 6px;color:#293241;font-size:22px;font-weight:650;letter-spacing:0}
body.wb-home .heading p{color:#7c8796;font-size:12px;line-height:1.7}
body.wb-home .system-state{border:1px solid #dce5f2;background:#fff;color:#6d7a8d;border-radius:16px;font-size:10px;padding:7px 11px}
body.wb-home .wh-panel,
body.wb-home .wh-business{margin-bottom:16px;padding:18px;background:#fff;border:1px solid #e7ebf0;border-radius:6px;box-shadow:0 1px 2px rgba(35,48,68,.025)}
body.wb-home .wh-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
body.wb-home .wh-section-head h2{margin:0;color:#303744;font-size:15px;font-weight:650}
body.wb-home .wh-section-note{color:#9aa4b2;font-size:10px}
body.wb-home .wh-section-head>button{border:0;background:transparent;color:#7c8796;font-size:11px;padding:4px 0}
body.wb-home .wh-section-head>button:hover{color:#3478f6}
body.wb-home .search{min-width:230px;padding:7px 10px;border:1px solid #dfe5ed;border-radius:4px;background:#fff;color:#98a2b1}
body.wb-home .search:focus-within{border-color:#8fb3fa;box-shadow:0 0 0 2px #edf3ff}
body.wb-home .search input{width:180px;color:#303744;background:transparent;font-size:11px}
body.wb-home .search input::placeholder{color:#a5afbb}
body.wb-home .wh-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.wb-home .wh-shortcut{display:flex;min-width:0;min-height:76px;border:1px solid #e7ebf0;border-radius:5px;background:#fff;transition:border-color .15s,box-shadow .15s}
body.wb-home .wh-shortcut:hover{border-color:#b9cef5;box-shadow:0 3px 12px rgba(52,120,246,.08)}
body.wb-home .wh-shortcut>a{display:flex;align-items:center;gap:11px;min-width:0;flex:1;padding:13px;text-decoration:none;color:#303744}
body.wb-home .wh-shortcut>a>span:last-child,
body.wb-home .wh-recent-list a>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:5px}
body.wb-home .wh-shortcut b,
body.wb-home .wh-recent-list b{font-size:12px;font-weight:600}
body.wb-home .wh-shortcut small,
body.wb-home .wh-recent-list small{overflow:hidden;color:#8b96a5;font-size:10px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
body.wb-home .wh-shortcut>button{align-self:flex-start;margin:8px 8px 0 0;padding:4px;border:0;background:transparent;color:#f0ad2c;font-size:16px}
body.wb-home .wh-entry-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:6px;background:#edf3ff;color:#3478f6;font-size:18px}
body.wb-home .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.wb-home .card{min-height:154px;padding:15px;border:1px solid #e7ebf0;border-radius:5px;background:#fff;color:#303744;transform:none;transition:border-color .15s,box-shadow .15s}
body.wb-home .card:hover{transform:none;border-color:#b9cef5;background:#fff;box-shadow:0 4px 14px rgba(52,120,246,.08)}
body.wb-home .card .icon{width:34px;height:34px;border:0;border-radius:6px;background:#edf3ff;color:#3478f6;font-size:17px}
body.wb-home .card-top button{padding:3px;border:0;background:transparent;color:#f0ad2c;font-size:16px}
body.wb-home .card>a{display:flex;flex:1;width:100%;flex-direction:column;color:inherit;text-decoration:none}
body.wb-home .card h3{margin:12px 0 6px;font-size:13px;font-weight:650}
body.wb-home .card p{margin:0 0 12px;color:#7c8796;font-size:10px;line-height:1.65}
body.wb-home .card>a>span{display:flex;align-items:center;gap:6px;margin-top:auto;color:#3478f6;font-size:10px}
body.wb-home .card>a>span b{font-size:14px;font-weight:400}
body.wb-home .wh-recent-list{border:1px solid #edf0f4;border-radius:4px;overflow:hidden}
body.wb-home .wh-recent-list a{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid #edf0f4;color:#303744;text-decoration:none}
body.wb-home .wh-recent-list a:last-child{border-bottom:0}
body.wb-home .wh-recent-list a:hover{background:#f7faff}
body.wb-home .wh-recent-list .wh-entry-icon{width:32px;height:32px;font-size:15px}
body.wb-home .wh-recent-list time{color:#9aa4b2;font-size:10px;font-variant-numeric:tabular-nums}
body.wb-home .wh-loading,
body.wb-home .wh-empty,
body.wb-home .no-result{grid-column:1/-1;margin:0;padding:22px 12px;color:#8b97a7;font-size:11px;text-align:center}
body.wb-home .no-result{border:1px dashed #e1e6ed;border-radius:4px}
body.wb-home .footer{display:block;margin-top:2px;color:#9aa4b2;font-size:9px;text-align:right}
body.wb-home #homeStatus{position:fixed;right:22px;bottom:20px;z-index:20;margin:0;padding:9px 13px;border-radius:4px;background:#303744;color:#fff;font-size:11px;box-shadow:0 5px 20px rgba(30,38,52,.2)}
body.wb-home #homeStatus:empty{display:none}
@media(max-width:1180px){
  body.wb-home .wh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.wb-home .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  body.wb-home .shell,body.wb-home .shell.sidebar-open{grid-template-columns:minmax(0,1fr)}
  body.wb-home .sidebar{position:fixed;inset:0 auto 0 0;width:0}
  body.wb-home .shell.sidebar-open .sidebar{width:202px;box-shadow:4px 0 24px rgba(35,48,68,.16)}
  body.wb-home .topbar{padding:0 18px}
  body.wb-home .home{padding:20px 18px 28px}
  body.wb-home .nav-close{border-color:#dfe5ee;color:#536174}
  body.wb-home .nav-close:hover{background:#f5f7fb;color:#3478f6}
}
@media(max-width:680px){
  body.wb-home .shell{grid-template-rows:58px minmax(0,1fr)}
  body.wb-home .home{padding:16px 12px 24px}
  body.wb-home .heading{align-items:flex-start}
  body.wb-home .heading h1{font-size:20px}
  body.wb-home .wh-panel,body.wb-home .wh-business{padding:14px}
  body.wb-home .wh-section-head{align-items:flex-start;flex-direction:column}
  body.wb-home .wh-section-note{margin-top:-7px}
  body.wb-home .search{width:100%;min-width:0}
  body.wb-home .search input{width:100%}
  body.wb-home .wh-shortcuts,body.wb-home .cards{grid-template-columns:1fr}
  body.wb-home .card{min-height:140px}
  body.wb-home .wh-recent-list a{grid-template-columns:32px minmax(0,1fr)}
  body.wb-home .wh-recent-list time{display:none}
  body.wb-home .account-text{display:none}
}
