/* ============================================================
   QFF UI Refresh 2026-11-27
   仅做视觉层覆盖，不改页面结构与业务交互。
   ============================================================ */
:root{
  --teal:#2d548b;
  --teal-dark:#24456f;
  --navy:#0e2135;
  --navy-2:#132c45;
  --navy-3:#183b5c;
  --line:#e2e9f1;
  --text:#1c2b3a;
  --muted:#7c8b9a;
  --bg:#f3f6f9;
  --ui-brand:#2d548b;
  --ui-brand-strong:#233f67;
  --ui-brand-soft:#eef3fa;
  --ui-accent:#14a7a7;
  --ui-surface:#fff;
  --ui-border:#e2e9f1;
  --ui-border-strong:#d4dfea;
  --ui-radius:10px;
  --ui-radius-sm:6px;
  --ui-shadow:0 1px 2px rgba(22,40,66,.04),0 8px 24px -20px rgba(22,40,66,.26);
}

body{
  color:var(--text);
  background:var(--bg);
  font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;
  font-size:13px;
  line-height:1.55;
}

/* ---------- 品牌与登录 ---------- */
.hd-logo,.hd-logo.small{color:#3d7fb8;}
.login-page{
  background:
    radial-gradient(circle at 12% 16%,rgba(66,117,173,.16),transparent 34%),
    radial-gradient(circle at 92% 86%,rgba(20,167,167,.12),transparent 32%),
    #eef3f8;
}
.login-card{
  border:1px solid #dce6f1;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 28px 80px -34px rgba(23,49,80,.42);
}
.login-left{padding:48px 64px 36px;}
.login-left h1{font-size:27px;letter-spacing:2px;color:var(--ui-brand);}
.login-tip{
  border-radius:8px;border-color:#d8e4f0;background:#f2f6fb;color:#5f7590;
}
.login-tip .i{background:var(--ui-brand);}
.login-field{
  height:46px;border-radius:8px;border-color:#d8e3ef;
  position:relative;
}
.login-account-menu{
  position:absolute;z-index:30;left:34px;right:10px;top:calc(100% + 5px);
  max-height:238px;overflow:auto;padding:5px;
  background:#fff;border:1px solid #d8e3ef;border-radius:8px;
  box-shadow:0 14px 34px -14px rgba(23,49,80,.35);
}
.login-account-menu[hidden]{display:none;}
.login-account-menu button{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;padding:8px 10px;border:0;border-radius:6px;
  background:none;color:#223b55;font-size:13px;text-align:left;cursor:pointer;
}
.login-account-menu button:hover,.login-account-menu button:focus-visible{background:#f1f6fb;outline:none;}
.login-account-menu .acc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.login-account-menu .acc-pwd{color:#93a4b5;font-size:11px;white-space:nowrap;}
.login-field:focus-within{
  border-color:var(--ui-brand);
  box-shadow:0 0 0 3px rgba(45,84,139,.09);
}
.login-submit{
  height:46px;border-radius:8px;background:var(--ui-brand);
  font-size:15px;font-weight:600;letter-spacing:4px;
}
.login-submit:hover{background:var(--ui-brand-strong);}
.login-right{
  background:linear-gradient(160deg,#10283f 0%,#193c5d 58%,#245177 100%);
}
.login-right .brand-name{letter-spacing:2px;}

/* ---------- 主框架 ---------- */
.app{background:var(--bg);}
.sidebar{
  width:220px;
  background:linear-gradient(180deg,#0d2033 0%,#122c45 58%,#10263b 100%);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.045);
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.16) transparent;
  overflow:hidden;
}
.sidebar::-webkit-scrollbar{width:6px;}
.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:6px;}
.sidebar::-webkit-scrollbar-track{background:transparent;}
.side-logo{
  height:68px;padding:0 18px;gap:10px;
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,.075);
  flex:0 0 68px;
  min-height:68px;
  white-space:nowrap;
}
.side-logo .brand-logo.small img{height:36px;max-width:72px;}
.side-logo strong{font-size:17px;letter-spacing:1.5px;font-weight:600;}
.nav{padding:10px 8px 8px;gap:2px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;}
.nav-item{
  height:45px;padding:0 12px;margin:1px 4px;
  border-radius:6px;color:#c3d1de;font-size:14.5px;
  transition:background .16s ease,color .16s ease;
  flex:0 0 auto;width:auto;
}
.nav-item > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nav-sub{flex:0 0 auto;}
.nav-item i{width:20px;font-size:15px;color:#86a0b7;}
.nav-item em{color:#6e8599;}
.nav-item:hover{background:rgba(255,255,255,.055);color:#fff;}
.nav-item.active{
  background:rgba(83,142,205,.17);
  color:#fff;
  box-shadow:inset 3px 0 0 #6ab3e3;
}
.nav-item.active i{color:#a3d9f4;}
.nav-sub{
  background:transparent;
  margin:0 10px;
  border-left:1px solid rgba(255,255,255,.08);
}
.nav-item.sub{padding-left:30px;height:38px;font-size:13.5px;color:#9db0c1;}
.nav-item.sub.active{background:rgba(83,142,205,.12);box-shadow:none;}
.side-foot{padding:14px;flex:0 0 auto;}
.side-logout{
  height:34px;border-radius:6px;border-color:rgba(255,255,255,.13);
  color:#9fb2c3;
}
.side-logout:hover{border-color:#69acd6;color:#fff;}
.nav{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;}
.nav::-webkit-scrollbar{width:5px;}
.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:6px;}
.nav::-webkit-scrollbar-track{background:transparent;}

.main{background:var(--bg);}
.topbar{
  height:54px;padding:0 22px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--ui-border);
  box-shadow:0 1px 2px rgba(22,40,66,.035);
}
.crumb{color:#788898;font-size:12.5px;}
.topbar-app{display:flex;align-items:center;gap:9px;line-height:1;flex:none;}
.topbar-app b{font-size:13px;font-weight:600;color:#334b63;letter-spacing:.4px;white-space:nowrap;}
.topbar-app span{font-size:9px;font-weight:600;color:#9aa9b8;letter-spacing:1.2px;white-space:nowrap;}
.ico-btn{
  width:28px;height:28px;border-color:#dfe7f1;color:#738599;background:#fff;
}
.ico-btn:hover{border-color:#a9bfd6;color:var(--ui-brand);}
.ico-btn.top-action{
  width:auto;height:30px;padding:0 11px;border-radius:15px;gap:6px;
  border-color:#d8e4f0;background:#f7fafd;color:#526a80;
  font-size:12.5px;font-weight:500;line-height:1;
}
.ico-btn.top-action:hover{border-color:#9dbad7;background:#fff;color:var(--ui-brand);}
.top-action .ta-ico{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:15px;color:#2d548b;font-size:13px;font-weight:700;
}
.top-action .ta-ico.gear{font-size:13.5px;font-weight:400;color:#60758c;}
.top-action .ta-label{white-space:nowrap;}
.avatar{
  width:26px;height:26px;background:var(--ui-brand-soft);
  color:var(--ui-brand);font-size:11px;font-weight:600;
}
.user-name{color:#5e7083;font-size:12.5px;white-space:nowrap;}

.page{padding:0 22px 24px;background:var(--bg);}
.page.editor{background:#fff;}
.page-title-row{
  align-items:center;
  padding:18px 4px 14px;
}
.page-title-row > div:first-child{
  position:relative;padding-left:12px;
}
.page-title-row > div:first-child::before{
  content:"";
  position:absolute;left:0;top:5px;bottom:5px;width:3px;border-radius:2px;
  background:linear-gradient(180deg,#2d548b,#6aa6d8);
}
.page-title-row h2{
  margin:5px 0 0;
  font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;
  font-size:20px;font-weight:700;letter-spacing:.5px;line-height:1.4;color:#182a3b;
}
.crumb.small{font-size:11.5px;color:#8797a8;letter-spacing:.3px;}

/* ---------- 卡片与按钮 ---------- */
.orders-card{
  padding:16px 16px 8px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius);
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow);
}
.panel{
  padding:16px 18px 18px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius);
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow);
}
.panel-head h3{font-size:15px;font-weight:600;color:#203448;}
.panel-head .muted{color:#8292a2;}
.orders-actions{gap:8px;padding:0 0 14px;align-items:center;}

.btn,.ghost{
  border-color:#d7e2ee;
  border-radius:var(--ui-radius-sm);
  background:#fff;
  color:#42576d;
  font-weight:500;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
.btn{height:32px;padding:0 14px;font-size:12.5px;}
.ghost{height:30px;padding:0 12px;font-size:12px;}
.btn:hover,.ghost:hover{
  border-color:#9eb6d1;color:var(--ui-brand);background:#f9fbfe;
}
.btn.teal{
  background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;
  box-shadow:0 1px 2px rgba(45,84,139,.18);
}
.btn.teal:hover{background:var(--ui-brand-strong);border-color:var(--ui-brand-strong);color:#fff;}
.btn.orange{
  background:#fff;border-color:#dfd0b2;color:#94671b;
}
.btn.orange:hover{background:#fffaf0;border-color:#c9ad74;color:#7d5515;}
.btn.red{
  background:#fff;border-color:#e3c4c1;color:#ad4741;
}
.btn.red:hover{background:#fff7f7;border-color:#cc9c98;color:#993c37;}
.btn.green{background:#237f5b;border-color:#237f5b;color:#fff;}
.btn.green:hover{background:#1d6d4d;border-color:#1d6d4d;}
.btn:disabled,.btn.teal:disabled,.btn.orange:disabled,.btn.red:disabled{
  opacity:.48;cursor:not-allowed;box-shadow:none;
}
.modal-foot .btn.red,#modal-foot .btn.red,footer.modal-foot .btn.red{
  background:#b34b45;border-color:#b34b45;color:#fff;
}
.modal-foot .btn.red:hover,#modal-foot .btn.red:hover{background:#9d3f3a;border-color:#9d3f3a;color:#fff;}
.btn:focus-visible,.ghost:focus-visible,.ico-btn:focus-visible,.pager-btn:focus-visible{
  outline:none;box-shadow:0 0 0 3px rgba(45,84,139,.16);
}

/* ---------- 筛选与表单 ---------- */
.orders-filter{
  gap:10px;padding:0 0 12px;color:#617386;font-size:12.5px;align-items:center;
}
.orders-filter label{gap:6px;color:#64768a;font-weight:500;white-space:nowrap;}
.orders-filter select,.orders-filter input:not([type=checkbox]):not([type=radio]),
.perf-filter select,
.modal-body input:not([type=checkbox]):not([type=radio]),
.modal-body select,
.modal-body textarea,
.form-grid input:not([type=checkbox]):not([type=radio]),
.form-grid select,
.form-grid textarea,
.asset-form input:not([type=checkbox]):not([type=radio]),
.asset-form select,
.asset-form textarea,
.personal-field input{
  height:32px;padding:0 10px;
  border:1px solid #d8e2ee;border-radius:var(--ui-radius-sm);
  background:#fff;color:#31475c;font-size:12.5px;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.orders-filter select,.perf-filter select,.modal-body select,.form-grid select,.asset-form select{
  padding-right:28px;
}
.orders-filter input[type=search]{width:200px;}
.orders-filter input::placeholder,.modal-body input::placeholder,.form-grid input::placeholder,
.asset-form input::placeholder,.personal-field input::placeholder{color:#a7b5c4;}
.orders-filter select:focus,.orders-filter input:focus,
.perf-filter select:focus,
.modal-body input:focus,.modal-body select:focus,.modal-body textarea:focus,
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,
.asset-form input:focus,.asset-form select:focus,.asset-form textarea:focus,
.personal-field input:focus{
  outline:none;border-color:var(--ui-brand);
  box-shadow:0 0 0 3px rgba(45,84,139,.09);
}
.modal-body textarea,.form-grid textarea,.asset-form textarea{padding:8px 10px;height:auto;}
.modal-body label{color:#627489;font-size:12.5px;}
.modal-body label.chk{color:#40546a;font-size:12.5px;}
.modal-body label.chk input{width:14px;height:14px;margin:0;padding:0;}
.form-grid{gap:14px 18px;}
.form-grid label{color:#627489;font-size:12.5px;}
input[type=checkbox],input[type=radio]{accent-color:var(--ui-brand);}
input[type=file]{
  font-size:12px;color:#64788d;height:34px;padding:3px 8px;
  border:1px solid #dbe4ef;border-radius:6px;background:#fff;box-sizing:border-box;
}
input[type=file]::file-selector-button{
  height:30px;margin-right:9px;padding:0 12px;
  border:1px solid #d7e2ee;border-radius:var(--ui-radius-sm);
  background:#fff;color:#42576d;font:inherit;font-size:12px;cursor:pointer;
}
input[type=file]::-webkit-file-upload-button{
  -webkit-appearance:button;height:32px;margin-right:10px;padding:0 14px;
  border:1px solid #d7e2ee;border-radius:6px;
  background:#f7fafd;color:#42576d;font:inherit;font-size:12px;cursor:pointer;
}
input[type=file]::-webkit-file-upload-button:hover{border-color:#9eb6d1;color:var(--ui-brand);background:#f9fbfe;}
input[type=file]::file-selector-button:hover{border-color:#9eb6d1;color:var(--ui-brand);background:#f9fbfe;}

/* ---------- 可输入搜索的下拉框 ---------- */
.form-grid .form-field{display:block;color:#627489;font-size:12.5px;}
.form-grid .form-field .field-label{display:block;}
.ui-combo{position:relative;margin-top:5px;}
.ui-combo-input{width:100%;padding-right:34px!important;margin-top:0!important;cursor:text;}
.ui-combo-toggle{
  position:absolute;right:4px;top:4px;bottom:4px;width:24px;
  border:0;background:transparent;color:#7e90a4;font-size:12px;
  cursor:pointer;border-radius:4px;
}
.ui-combo-toggle:hover{background:#f0f5fa;color:var(--ui-brand);}
.ui-combo-menu{
  position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;
  max-height:230px;overflow:auto;padding:4px;
  background:#fff;border:1px solid #dbe5f0;border-radius:8px;
  box-shadow:0 12px 28px rgba(23,46,76,.14);
}
.ui-combo-menu.up{top:auto;bottom:calc(100% + 4px);}
.ui-combo-opt{
  padding:8px 10px;border-radius:5px;color:#32485e;
  font-size:12.5px;line-height:1.4;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ui-combo-opt:hover,.ui-combo-opt.active{background:#edf4fb;color:#20466f;}
.ui-combo-empty,.ui-combo-hint{padding:9px 10px;color:#8fa0b2;font-size:12px;}
.ui-combo-hint{border-top:1px solid #eff3f8;margin-top:2px;}
.oc-price-wrap .ui-combo{flex:1;min-width:0;margin-top:0;}
.oc-price-wrap .ui-combo-input{width:100%!important;margin-top:0!important;}

/* ---------- 数据表格 ---------- */
.table-wrap{
  border:1px solid #e0e8f1;
  border-radius:8px;
  background:#fff;
}
table.grid{font-size:12.5px;color:#2e4358;}
table.grid thead th{
  padding:10px 12px;
  background:#f5f8fc;color:#617386;
  font-weight:600;letter-spacing:.2px;
  border-bottom:1px solid #dfe8f2;border-right:1px solid #d8e4f0;
}
table.grid tbody td{
  padding:9px 12px;
  border-bottom:1px solid #edf2f8;border-right:1px solid #e2ebf5;
  color:#33495f;
}
table.grid tbody tr:last-child td{border-bottom:0;}
table.grid tbody tr:hover td{background:#f7faff;}
table.grid tbody tr.sel td,table.grid tbody tr.sel:hover td{
  background:#eaf2fb;
}
table.grid tbody tr.sel td:first-child{box-shadow:inset 3px 0 0 var(--ui-brand);}
.cell-order{color:var(--ui-brand);font-weight:600;}
.cell-order:hover{text-decoration:underline;}
.status-pill{font-size:12px;font-weight:500;color:#40556a;}
.status-pill .dot{width:6px;height:6px;box-shadow:0 0 0 2px rgba(255,255,255,.65);}
.order-status-cell{white-space:nowrap;}
.mtpe-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:15px;height:15px;margin-left:5px;border-radius:50%;
  background:#f04a4a;color:#fff;font:700 italic 9px/1 Georgia,"Times New Roman",serif;
  vertical-align:-2px;box-shadow:0 1px 2px rgba(240,74,74,.35);
  cursor:default;user-select:none;
}
.tag{
  padding:1px 6px;border-radius:4px;font-size:10.5px;
  border-color:#d8e3ef;color:#5f7489;background:#f7fafe;
}
.due-warn{color:#c4463f;font-weight:600;}
.empty-row td{color:#8b9bab;padding:46px 0;}
.orders-footer{padding:12px 2px 4px;color:#6f8194;}
.pager{gap:7px;}
.pager-btn{
  width:28px;height:28px;border-radius:6px;border-color:#dae4ef;
  color:#63768a;background:#fff;
}
.pager-btn:hover{border-color:#a7bdd5;color:var(--ui-brand);}
.pager-input{height:28px;border-radius:6px;border-color:#d9e3ee;color:#42586d;}
.pager select{height:30px;border-radius:6px;border-color:#d9e3ee;color:#4c6278;background:#fff;}
#o-page,#cust-page,#st-list-page,#asset-list-page{color:var(--ui-brand);font-weight:600;}
.copyright{
  color:#a1afbd;font-size:10.5px;letter-spacing:.2px;
  padding:10px 0 1px;
}

/* ---------- 订单管理：整体字号上调一号 ---------- */
#orders-view{font-size:13.5px;}
#orders-view .orders-filter,
#orders-view .orders-filter label,
#orders-view .orders-filter select,
#orders-view .orders-filter input,
#orders-view .btn,
#orders-view .orders-footer,
#orders-view .pager select,
#orders-view .pager-input{font-size:13.5px;}
#orders-view table.grid{font-size:13.5px;}
#orders-view table.grid thead th{font-size:13px;}
#orders-view .status-pill{font-size:12.5px;}
#orders-view .tag{font-size:11.5px;}

/* ---------- 标签页 / 空态 ---------- */
.task-tabs{gap:24px;border-bottom-color:#dce6f0;margin-bottom:14px;}
.task-tab{
  padding:10px 2px 9px;color:#697b90;font-size:13px;
  transition:color .16s ease,border-color .16s ease;
}
.task-tab:hover{color:var(--ui-brand);}
.task-tab.active{color:var(--ui-brand);border-bottom-color:var(--ui-brand);font-weight:600;}
.asset-type-tabs{gap:8px;margin:0 0 12px;}
.asset-inline-filter{
  flex:0 1 auto;flex-wrap:nowrap;gap:8px;
  padding:0;margin-left:12px;
}
.asset-inline-filter label{white-space:nowrap;}
.asset-inline-filter input[type=search]{width:170px;}
#asset-sum{white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.asset-type-tab{
  border-radius:6px;border-color:#dbe5f0;background:#fff;color:#5f7489;
}
.asset-type-tab:hover{border-color:#aec4dc;color:var(--ui-brand);}
.asset-type-tab.active{
  border-color:#b7cbe2;background:var(--ui-brand-soft);
  color:var(--ui-brand);font-weight:600;
}
.empty-state{gap:8px;padding:52px 0;color:#8c9cac;}
.empty-state b{font-size:28px;color:#c4d2df;}
.empty-state span{font-size:12.5px;}

/* ---------- 弹窗 ---------- */
.modal{
  padding:22px;
  background:rgba(9,22,38,.46);
  backdrop-filter:blur(3px);
}
.modal-card{
  border-radius:12px;
  box-shadow:0 28px 80px -24px rgba(10,28,50,.5);
  border:1px solid rgba(255,255,255,.6);
}
.modal-card header{
  padding:15px 20px;
  border-bottom:1px solid var(--ui-border);
  background:#fff;
}
.modal-card header strong,#modal-title{
  font-size:15px;font-weight:700;color:#1b2e41;letter-spacing:.2px;
}
#modal-close{
  height:28px;padding:0 10px;border-radius:6px;
  border-color:transparent;background:#f2f6fa;color:#64788d;font-size:12px;
}
#modal-close:hover{background:#eaf1f8;color:var(--ui-brand);border-color:transparent;}
.modal-body{padding:18px 20px;max-height:64vh;color:#465a6f;}
.modal-foot,footer.modal-foot,#modal-foot{
  padding:13px 20px;
  background:#fbfcfe;
  border-top:1px solid var(--ui-border);
  gap:9px;
}
.detail-table td{padding:7px 8px;border-bottom-color:#eef3f8;}
.detail-table td.k{color:#8494a5;}
.detail-table td.v{color:#30465b;}
.cd-head{border-bottom-color:#e6edf5;}
.cd-sec{border-color:#e4ebf4;background:#fbfdff;border-radius:8px;}
.cd-sec-title{color:#20384f;}
.cd-2col .detail-table td.k{width:126px;white-space:nowrap;color:#8494a5;}
.cd-2col .detail-table td.v{color:#31465b;}

/* ---------- 首页数据卡 ---------- */
.kpi-row{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px 0 14px;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.kpi{
  min-height:88px;padding:14px 16px;
  background:#fff;border:1px solid var(--ui-border);border-radius:10px;
  box-shadow:var(--ui-shadow);
}
.kpi .k{font-size:12px;color:#78899b;}
.kpi .v{
  margin-top:7px;font-size:23px;font-weight:700;color:#182b3e;
  font-variant-numeric:tabular-nums;letter-spacing:.2px;
}
.kpi .v small{font-size:11.5px;color:#8b9bab;}
.kpi .v.down{color:#c64942;}
.kpi .v.up{color:#1d8a60;}
.dash-row{gap:14px;margin-bottom:14px;}
.panel-tools input[type=date],.panel-tools input[type=month]{
  border-color:#d9e3ee;border-radius:5px;height:26px;
}
.panel-tools .quick button{color:#7b8c9e;}
.panel-tools .quick button:hover{color:var(--ui-brand);}
.panel-tools .quick button.active{color:var(--ui-brand);background:var(--ui-brand-soft);}

/* ---------- 绩效 / 个人中心局部 ---------- */
.perf-kpi{
  border-color:#e0e8f2;border-radius:8px;box-shadow:var(--ui-shadow);padding:14px 16px;
}
.perf-kpi:before{background:#b9cce0;}
.perf-kpi.warn:before{background:#e2a63c;}
.perf-kpi.ok:before{background:#24956d;}
.perf-kpi .v{font-size:22px;font-weight:700;color:#1d3348;}
.perf-detail-hero{
  border-color:#dfe8f2;border-radius:8px;
  background:linear-gradient(90deg,#f4f8fd,#fff);
}
.perf-detail-kpis>div,.perf-pay-facts>div,.perf-adj-head{
  border-color:#e0e9f3;border-radius:7px;background:#f8fbfe;
}
.perf-task-wrap,.perf-history,.perf-adj-list,.perf-table-wrap,.personal-table-wrap{
  border-color:#dfe7f1;border-radius:8px;background:#fff;
}
.perf-pill{border-radius:6px;}
.personal-settings-card,.personal-module-card{
  border:1px solid var(--ui-border);border-radius:10px;
  box-shadow:var(--ui-shadow);
}
.personal-settings-nav{border-right-color:#e6edf5;}
.personal-subtab{color:#5d7186;}
.personal-subtab:hover{color:var(--ui-brand);background:#f7fafd;}
.personal-subtab.active{
  background:var(--ui-brand-soft);color:var(--ui-brand);
  border-right-color:var(--ui-brand);
}
.personal-settings-body h3{color:#23394f;font-weight:600;}
.personal-role-pill{border-color:#d3dfec;border-radius:4px;color:#526a80;}
.personal-module-toolbar .btn{height:30px;}

/* ---------- 企业管理 ---------- */
.enterprise-tabs{padding:0 2px;border-bottom-color:#dce6f0;background:transparent;}
.enterprise-tabs button{padding:11px 2px 10px;color:#697b90;font-size:13px;}
.enterprise-tabs button:hover{color:var(--ui-brand);}
.enterprise-tabs button.active{color:var(--ui-brand);border-bottom-color:var(--ui-brand);font-weight:600;}
.ent-card{border:1px solid var(--ui-border);border-radius:10px;box-shadow:var(--ui-shadow);}
.ent-form{color:#40556a;}
.ent-form-row > label{color:#607489;}
.ent-form-row input[type=text],.ent-form-row input[type=email],.ent-form-row textarea{
  height:34px;border:1px solid #d8e2ee;border-radius:var(--ui-radius-sm);
  color:#31475c;transition:border-color .16s ease,box-shadow .16s ease;
}
.ent-form-row textarea{height:82px;padding:8px 10px;}
.ent-form-row input:focus,.ent-form-row textarea:focus{
  outline:none;border-color:var(--ui-brand);box-shadow:0 0 0 3px rgba(45,84,139,.09);
}
.ent-form-row .logo-box{border-color:#dde6f1;border-radius:8px;background:#fbfdff;}
.ent-save{
  height:32px;padding:0 24px;border:1px solid var(--ui-brand);
  background:var(--ui-brand);color:#fff;border-radius:var(--ui-radius-sm);
  font-size:12.5px;font-weight:500;
}
.ent-save:hover{background:var(--ui-brand-strong);border-color:var(--ui-brand-strong);}
.ent-note{border-top-color:#e8eef6;color:#607489;}
.ent-box,.ent-prefix-card,.ent-account-card,.ent-add-card{
  border-color:#e0e9f3;border-radius:8px;
}
.ent-email-item .ops{color:var(--ui-brand);}
.ent-email-item{padding:14px 0;}
.ent-email-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:6px;}
.ent-email-head .t{margin-bottom:0;font-size:13.5px;font-weight:600;color:#33495f;}
.ent-switch{display:inline-flex;align-items:center;gap:8px;flex:none;cursor:pointer;user-select:none;position:relative;}
.ent-switch input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.ent-switch-track{
  position:relative;width:40px;height:22px;border-radius:11px;
  background:#d8e1ec;transition:background .2s ease;
}
.ent-switch-dot{
  position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(24,42,59,.22);
  transition:transform .2s ease;
}
.ent-switch input:checked + .ent-switch-track{background:var(--ui-brand);}
.ent-switch input:checked + .ent-switch-track .ent-switch-dot{transform:translateX(18px);}
.ent-switch input:focus-visible + .ent-switch-track{box-shadow:0 0 0 3px rgba(45,84,139,.2);}
.ent-switch:hover .ent-switch-track{background:#c9d5e3;}
.ent-switch input:checked ~ .ent-switch-track:hover{background:var(--ui-brand-strong);}
.ent-switch-text{font-size:12px;color:#8496aa;transition:color .2s ease;}
.ent-switch input:checked ~ .ent-switch-text{color:var(--ui-brand);}
.ent-email-input{height:34px;border-color:#d8e2ee;border-radius:var(--ui-radius-sm);padding:0 10px;}
.ent-badge{background:var(--ui-brand-soft);color:var(--ui-brand);}

/* ---------- 订单详情弹窗 ---------- */
.od-tabs{border-bottom-color:#dce6f0;}
.od-tab{padding:10px 20px;color:#697b90;font-size:13px;}
.od-tab:hover{color:var(--ui-brand);}
.od-tab.active{color:var(--ui-brand);border-bottom-color:var(--ui-brand);font-weight:600;}
.od-table-wrap{border-color:#e0e8f1;border-radius:8px;}
.od-table th{background:#f5f8fc;color:#617386;border-bottom-color:#dfe8f2;border-right:1px solid #d8e4f0;}
.od-table td{border-bottom-color:#edf2f8;border-right:1px solid #e2ebf5;color:#33495f;padding:9px 10px;}
.od-table tbody tr:hover{background:#f7faff;}

/* ---------- 其余组件内的品牌色收口 ---------- */
#tb-ai>b{color:var(--ui-brand);}
.edw-tab.active{color:var(--ui-brand);border-bottom-color:var(--ui-brand);}
.edw-task-item.active{color:var(--ui-brand);background:var(--ui-brand-soft);}
.fm-link,.asset-tip .asset-status,.asset-foot b,.dl-prio b{color:var(--ui-brand);}
.perf-tabs .task-tab.active em{color:var(--ui-brand);}
.asset-card .ra .rate{background:var(--ui-accent);}
.asset-btn.primary{border-color:var(--ui-brand);background:var(--ui-brand);color:#fff;}
.asset-force.on{color:var(--ui-brand);}
.dl-choose{border-color:#d7e2ee;border-radius:var(--ui-radius-sm);color:#4c6278;}
.dl-choose:hover{border-color:#9eb6d1;color:var(--ui-brand);}
.dl-field select,.dl-field input[type=datetime-local]{border-color:#d8e2ee;border-radius:var(--ui-radius-sm);}
.dl-slider input[type=range],.dl-prio input[type=range]{accent-color:var(--ui-brand);}
.qff-checks input[type=checkbox],.perm-node input[type=checkbox],.perm-func-item input,.perm-access input{accent-color:var(--ui-brand);}
.coef-pct-cell input:focus{border-color:var(--ui-brand);box-shadow:0 0 0 3px rgba(45,84,139,.09);}
.coef-add:hover{border-color:var(--ui-brand);color:var(--ui-brand);}

/* 编辑器的表格容器由页面底色承载，深色主题下不能铺白底 */
body.theme-dark .page.editor .table-wrap{
  background:transparent;border-radius:0;
}
body.theme-dark .page.editor .table-wrap::-webkit-scrollbar{width:12px;height:12px;background:transparent;}
body.theme-dark .page.editor .table-wrap::-webkit-scrollbar-track{background:transparent;}
body.theme-dark .page.editor .table-wrap::-webkit-scrollbar-thumb{
  background:#40555c;border:2px solid #1b2428;border-radius:10px;
}
body.theme-dark .page.editor .table-wrap::-webkit-scrollbar-corner{background:#1b2428;}

/* ---------- 滚动条 ---------- */
.page::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.modal-body::-webkit-scrollbar,
.fm-list::-webkit-scrollbar,.editor-left .table-wrap::-webkit-scrollbar{
  width:12px;height:12px;
}
.page::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb,.modal-body::-webkit-scrollbar-thumb,
.fm-list::-webkit-scrollbar-thumb,.editor-left .table-wrap::-webkit-scrollbar-thumb{
  background:#c2d0df;border-radius:10px;border:2px solid #fff;
}
.page::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track,.modal-body::-webkit-scrollbar-track{
  background:transparent;
}

/* ---------- 响应式 ---------- */
@media (max-width:1100px){
  .page{padding:0 16px 20px;}
  .topbar{padding:0 16px;}
  .orders-card{padding:14px 12px 6px;}
  .panel{padding:14px 14px 16px;}
}
@media (max-width:900px){
  .sidebar{width:214px;}
  .topbar-app span{display:none;}
  .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .orders-filter input[type=search]{width:160px;}
  .asset-inline-filter{flex:1 1 100%;flex-wrap:wrap;margin-left:0;}
}
@media (max-width:760px){
  .sidebar{width:214px;}
  .login-left{padding:40px 28px 30px;}
  .page-title-row h2{font-size:20px;}
}
@media (max-width:640px){
  .ico-btn.top-action{width:28px;height:28px;padding:0;border-radius:50%;gap:0;}
  .top-action .ta-label{display:none;}
}

/* ============================================================
   右上角「设置」：整体风格抽屉
   ============================================================ */
.ui-theme-mask[hidden],
.ui-theme-drawer[hidden]{display:none !important;}
.ui-theme-mask{
  position:fixed;inset:0;z-index:900;display:flex;
  background:rgba(10,20,30,.38);
}
.ui-theme-mask.is-open{opacity:1;}
.ui-theme-drawer{
  position:fixed;right:0;top:0;bottom:0;z-index:901;width:264px;
  display:flex;flex-direction:column;
  background:#fff;border-left:1px solid #e3ebf4;
  box-shadow:-16px 0 44px rgba(17,34,52,.18);
}
.ui-theme-drawer.is-open{transform:none;}
.ui-theme-close{
  position:absolute;left:12px;top:10px;z-index:2;
  width:28px;height:28px;border:0;border-radius:6px;
  background:transparent;color:#a7b4c2;font-size:17px;line-height:1;cursor:pointer;
}
.ui-theme-close:hover{background:#f2f6fa;color:#526a80;}
.ui-theme-scroll{flex:1;min-height:0;overflow-y:auto;padding:56px 18px 28px;scrollbar-width:thin;}
.ui-theme-scroll::-webkit-scrollbar{width:8px;}
.ui-theme-scroll::-webkit-scrollbar-thumb{background:#d7e2ee;border-radius:8px;}
.ui-theme-sec{margin-bottom:26px;}
.ui-theme-sec h4{
  margin:0 0 14px;color:#33495f;font-size:13.5px;font-weight:600;
  line-height:1.2;letter-spacing:.2px;
}
.ui-style-row,.ui-nav-row{display:flex;align-items:stretch;gap:10px;}
.ui-style-card,.ui-nav-card{
  position:relative;flex:0 0 54px;min-width:0;
  padding:4px;border:1px solid #dfe7f0;border-radius:4px;
  background:#fff;cursor:pointer;text-align:center;
}
.ui-nav-card{display:block;}
.ui-preview,.ui-nav-preview{display:block;}
.ui-style-card:hover,.ui-nav-card:hover{border-color:#b7cbe1;}
.ui-style-card.is-active,.ui-nav-card.is-active{
  border-color:var(--ui-brand);background:var(--ui-brand-soft);
  box-shadow:0 0 0 1px var(--ui-brand) inset;
}
.ui-style-card{display:flex;flex-direction:column;align-items:center;gap:3px;}
.ui-style-card small{display:none;}
.ui-style-card.is-active small{color:var(--ui-brand);font-weight:600;}
.ui-pv-check{
  position:absolute;right:3px;bottom:3px;top:auto;z-index:1;
  width:14px;height:14px;border-radius:50%;
  background:var(--ui-brand);color:#fff;font-style:normal;
  font-size:9px;line-height:14px;text-align:center;
  opacity:0;transform:scale(.7);
}
.is-active .ui-pv-check{opacity:1;transform:scale(1);}
.ui-preview,.ui-nav-preview{
  width:100%;height:36px;border-radius:2px;overflow:hidden;position:relative;
  background:#fff;box-shadow:inset 0 0 0 1px #e6edf4;
}
.ui-preview .ui-pv-side{
  position:absolute;left:0;top:0;bottom:0;width:30%;
  border-right:1px solid rgba(255,255,255,.12);
}
.ui-preview .ui-pv-main{
  position:absolute;left:30%;right:0;top:0;bottom:0;
  background:
    linear-gradient(#e8eff7 0 0) 6px 7px/62% 3px no-repeat,
    linear-gradient(#edf2f7 0 0) 6px 15px/45% 3px no-repeat,
    linear-gradient(#f2f6fa 0 0) 6px 23px/70% 3px no-repeat;
}
.ui-pv-classic .ui-pv-side{background:#0e2135;}
.ui-pv-classic .ui-pv-main{background-color:#fff;}
.ui-pv-soft .ui-pv-side{background:#fff;}
.ui-pv-soft .ui-pv-main{background-color:#f7fafd;}
.ui-pv-dark .ui-pv-side{background:#202a35;}
.ui-pv-dark .ui-pv-main{
  background-color:#151d24;
  background-image:
    linear-gradient(#344453 0 0) 6px 7px/62% 3px no-repeat,
    linear-gradient(#2c3a47 0 0) 6px 15px/45% 3px no-repeat,
    linear-gradient(#26333f 0 0) 6px 23px/70% 3px no-repeat;
}

.ui-nav-preview i{
  position:absolute;left:0;top:0;bottom:0;width:34%;
  border-right:1px solid rgba(20,40,60,.08);
}
.ui-nav-preview b{
  position:absolute;left:34%;right:0;top:0;bottom:0;background:#fff;
  background-image:
    linear-gradient(#e7eff7 0 0),
    linear-gradient(#edf3f8 0 0),
    linear-gradient(#f1f5f9 0 0);
  background-repeat:no-repeat;
  background-size:58% 3px,42% 3px,64% 3px;
  background-position:7px 7px,7px 15px,7px 23px;
}
.ui-nv-dark i{background:#0e2135;}
.ui-nv-light i{background:#fff;}
.ui-nv-black i{background:#070d15;}

.ui-color-row{display:grid;grid-template-columns:repeat(9,20px);gap:6px;justify-content:start;}
.ui-color{
  position:relative;width:20px;height:20px;padding:0;border:0;border-radius:3px;
  background:var(--swatch);cursor:pointer;
  box-shadow:0 0 0 1px rgba(20,40,60,.06);
}
.ui-color:hover{transform:scale(1.08);}
.ui-color.is-active{
  box-shadow:0 0 0 2px #fff,0 0 0 3px var(--ui-brand);
}
.ui-color.is-active::after{
  content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:11px;line-height:1;font-style:normal;
}
.ui-color[data-ui-color="#f0ad25"].is-active::after{color:#6d4c00;}

.ui-setting-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:48px;margin:0;border-bottom:1px solid #f0f4f8;
  color:#455a70;font-size:12.5px;cursor:pointer;
}
.ui-setting-row:last-child{border-bottom:0;}
.ui-setting-row > span{white-space:nowrap;}
.ui-setting-row select{
  height:28px;min-width:86px;max-width:104px;padding:0 8px;
  border:1px solid #dbe4ee;border-radius:4px;background:#fff;
  color:#52667c;font-size:12px;outline:none;
}
.ui-setting-row select:focus{border-color:var(--ui-brand);}
.ui-setting-row select:disabled{opacity:.5;cursor:default;}
.ui-setting-row.is-disabled{cursor:default;color:#9aa9b8;}
.ui-setting-row input[type="checkbox"]{
  position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
}
.ui-mini-switch{
  position:relative;flex:none;width:38px;height:21px;border-radius:11px;
  background:#d8e1ec;
}
.ui-mini-switch::after{
  content:"";position:absolute;left:2px;top:2px;width:17px;height:17px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(20,40,60,.22);
}
.ui-setting-row input[type="checkbox"]:checked + .ui-mini-switch{background:var(--ui-brand);}
.ui-setting-row input[type="checkbox"]:checked + .ui-mini-switch::after{transform:translateX(17px);}
.ui-setting-row input[type="checkbox"]:focus-visible + .ui-mini-switch{box-shadow:0 0 0 3px rgba(45,84,139,.18);}
.ui-setting-row.is-disabled .ui-mini-switch{opacity:.45;}

.ui-theme-anim{
  margin-top:16px;padding-top:24px;border-top:1px solid #eef3f8;
}
.ui-theme-anim h4{margin-bottom:6px;}
.ui-theme-anim .ui-setting-row{border-bottom:0;min-height:46px;}
.ui-theme-sec:nth-of-type(3){border-top:1px solid #eef3f8;padding-top:24px;}

@media (max-width:640px){
  .ui-theme-drawer{width:264px;}
}

/* 风格与导航模式 */
body.ui-style-soft .topbar{background:#fbfdff;}
body.ui-style-green .topbar{background:#fbfdf7;}
body.ui-nav-light .sidebar{
  background:#fff;box-shadow:inset -1px 0 0 #dfe8f2;color:#5a7086;
}
body.ui-nav-light .side-logo{
  background:#fff;border-bottom-color:#e5edf5;color:var(--ui-brand);
}
body.ui-nav-light .side-logo strong{color:#33495f;}
body.ui-nav-light .nav-item{color:#5a7086;}
body.ui-nav-light .nav-item i{color:#8198ae;}
body.ui-nav-light .nav-item em{color:#94a6b8;}
body.ui-nav-light .nav-item:hover{background:#f1f6fb;color:var(--ui-brand);}
body.ui-nav-light .nav-item.active{
  background:var(--ui-brand-soft);color:var(--ui-brand);
  box-shadow:inset 3px 0 0 var(--ui-brand);
}
body.ui-nav-light .nav-item.active i{color:var(--ui-brand);}
body.ui-nav-light .nav-sub{background:#f8fbfe;border-left-color:#e2eaf3;}
body.ui-nav-light .nav-item.sub{color:#6b8096;}
body.ui-nav-light .side-logout{border-color:#d7e2ee;color:#657a8f;}
body.ui-nav-light .side-logout:hover{border-color:var(--ui-brand);color:var(--ui-brand);}
body.ui-nav-light .nav::-webkit-scrollbar-thumb,
body.ui-nav-light .sidebar::-webkit-scrollbar-thumb{background:#cfdae6;}

body.ui-nav-black .sidebar{background:#070d15;box-shadow:inset -1px 0 0 rgba(255,255,255,.04);}
body.ui-nav-black .side-logo{background:transparent;border-bottom-color:rgba(255,255,255,.08);}
body.ui-nav-black .nav-item{color:#9aabba;}
body.ui-nav-black .nav-item:hover{background:rgba(255,255,255,.06);color:#fff;}
body.ui-nav-black .nav-item.active{
  background:rgba(255,255,255,.08);color:#fff;
  box-shadow:inset 3px 0 0 var(--ui-brand);
}
body.ui-nav-black .nav-item.active i{color:#fff;}
body.ui-nav-black .nav-sub{background:rgba(255,255,255,.015);border-left-color:rgba(255,255,255,.08);}
body.ui-nav-black .nav-item.sub{color:#8294a4;}

/* 内容宽度与固定模式 */
body.ui-width-fixed .page{width:100%;max-width:1440px;margin:0 auto;}
body.ui-header-static:not(.ui-side-static) .main{overflow-y:auto;}
body.ui-header-static:not(.ui-side-static) .page{overflow:visible;flex:0 0 auto;}

body.ui-side-static .app{height:auto;min-height:100vh;align-items:flex-start;}
body.ui-side-static .sidebar{height:auto;min-height:100vh;}
body.ui-side-static .main{height:auto;min-height:100vh;}
body.ui-side-static .page{overflow:visible;flex:0 0 auto;}
body.ui-side-static.ui-header-fixed .topbar{position:sticky;top:0;z-index:30;}

/* 页面切换动画 */
@keyframes ui-fade-in{from{opacity:.25;}to{opacity:1;}}
@keyframes ui-slide-up{from{opacity:.35;transform:translateY(10px);}to{opacity:1;transform:none;}}
@keyframes ui-slide-down{from{opacity:.35;transform:translateY(-10px);}to{opacity:1;transform:none;}}
@keyframes ui-slide-left{from{opacity:.35;transform:translateX(12px);}to{opacity:1;transform:none;}}
@keyframes ui-slide-right{from{opacity:.35;transform:translateX(-12px);}to{opacity:1;transform:none;}}
@keyframes ui-zoom-in{from{opacity:.35;transform:scale(.985);}to{opacity:1;transform:none;}}
.ui-page-enter{
  animation-duration:.28s;animation-timing-function:cubic-bezier(.2,.7,.2,1);
  animation-fill-mode:both;
}
.ui-page-enter.ui-anim-fade{animation-name:ui-fade-in;}
.ui-page-enter.ui-anim-zoom{animation-name:ui-zoom-in;}
.ui-page-enter.ui-anim-slide[data-ui-dir="default"],
.ui-page-enter.ui-anim-slide[data-ui-dir="up"]{animation-name:ui-slide-up;}
.ui-page-enter.ui-anim-slide[data-ui-dir="down"]{animation-name:ui-slide-down;}
.ui-page-enter.ui-anim-slide[data-ui-dir="right"]{animation-name:ui-slide-left;}
.ui-page-enter.ui-anim-slide[data-ui-dir="left"]{animation-name:ui-slide-right;}
body.ui-anim-off .ui-page-enter{animation:none !important;}

/* 语言资产导入 */
.lib-imp-card{width:560px;}
.lib-imp-card header{padding:13px 18px 12px;}
.lib-imp-card header strong{font-size:14.5px;color:#2f4356;letter-spacing:.2px;}
#modal-close.lib-imp-close-x{
  width:28px;height:28px;padding:0;border:0;border-radius:4px;
  background:transparent;color:#a2b1c0;font-size:16px;line-height:1;cursor:pointer;
}
#modal-close.lib-imp-close-x:hover{background:#f2f6fa;color:#526a80;}
.lib-imp-card #modal-body{padding:18px 20px 16px;max-height:calc(82vh - 110px);}
.lib-imp{color:#3f5366;}
.lib-imp-sub{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.lib-imp-badge{
  display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:4px;
  background:var(--ui-brand-soft);color:var(--ui-brand);font-size:11.5px;font-weight:600;letter-spacing:.2px;
}
.lib-imp-sub b{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;color:#2f4356;}
.lib-imp-sub-meta{font-size:12px;color:#8496a8;white-space:nowrap;}
.lib-imp-format{
  display:flex;align-items:center;gap:10px;padding:11px 12px 11px 14px;
  border:1px solid #d7e9f1;border-radius:8px;
  background:linear-gradient(90deg,#f3fafc,#f9fcfd 70%,#fbfdfe);
}
.lib-imp-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 3px rgba(33,166,199,.12);}
.lib-imp-format > div{display:flex;align-items:center;flex-wrap:wrap;column-gap:4px;min-width:0;font-size:12.5px;}
.lib-imp-format strong{font-weight:600;color:#3d556b;}
.lib-imp-format span{color:var(--ui-brand);font-weight:600;}
.lib-imp-format em{margin-left:5px;font-style:normal;color:#8a9bad;font-size:11.5px;}
.lib-imp-tpl{
  flex:none;margin-left:auto;padding:2px 0;border:0;background:transparent;
  color:var(--ui-brand);font-size:12.5px;font-weight:600;cursor:pointer;
}
.lib-imp-tpl:hover{text-decoration:underline;}
.lib-imp-drop{
  position:relative;margin-top:14px;padding:18px 16px 15px;
  border:1px dashed #cdd9e6;border-radius:10px;background:#fcfdff;
  cursor:pointer;outline:none;
}
.lib-imp-drop:hover,.lib-imp-drop.is-drag{border-color:var(--ui-brand);background:#f8fbff;}
.lib-imp-drop.is-error{border-color:#e2b6ae;background:#fffbfa;}
.lib-imp-drop.has-file{border-style:solid;border-color:#cfe0f0;background:#fbfdff;}
.lib-imp-drop-main{display:flex;align-items:center;gap:12px;}
.lib-imp-drop-icon{
  flex:none;display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:8px;background:var(--ui-brand-soft);
  color:var(--ui-brand);font-size:19px;font-weight:700;
}
.lib-imp-pick{
  height:30px;padding:0 13px;border:1px solid #cfdae7;border-radius:5px;
  background:#fff;color:#42586e;font-size:12.5px;cursor:pointer;
}
.lib-imp-pick:hover{border-color:var(--ui-brand);color:var(--ui-brand);}
.lib-imp-drop-main p{margin:5px 0 0;color:#93a3b4;font-size:11.5px;line-height:1.5;}
.lib-imp-file{
  display:flex;align-items:center;gap:9px;margin-top:12px;padding-top:11px;
  border-top:1px dashed #e2eaf3;
}
.lib-imp-file-icon{
  flex:none;display:flex;align-items:center;justify-content:center;
  width:42px;height:26px;border-radius:4px;background:#eaf3fb;color:#4a7b9e;
  font-size:9.5px;font-weight:700;letter-spacing:.4px;
}
.lib-imp-file > div{min-width:0;flex:1;}
.lib-imp-file b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:#33495f;}
.lib-imp-file em{display:block;margin-top:2px;font-style:normal;font-size:11px;color:#95a5b6;}
.lib-imp-file-x{
  flex:none;width:24px;height:24px;border:0;border-radius:4px;
  background:transparent;color:#9aabbc;font-size:16px;line-height:1;cursor:pointer;
}
.lib-imp-file-x:hover{background:#f1f5f9;color:#5a7086;}
.lib-imp-error{margin:8px 0 0;color:#c0483d;font-size:11.5px;line-height:1.5;}
.lib-imp-priority{margin-top:17px;padding-top:15px;border-top:1px solid #edf2f7;}
.lib-imp-priority-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.lib-imp-priority-head label{display:inline;margin:0;color:#4b6176;font-size:12.5px;font-weight:600;}
.lib-imp-priority-head span{
  display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:11px;
  background:var(--ui-brand-soft);color:var(--ui-brand);font-size:11.5px;font-weight:600;
}
#aif-priority{
  -webkit-appearance:none;appearance:none;width:100%;height:6px;margin:0;padding:0;
  border:0;border-radius:3px;outline:none;cursor:pointer;
  background:linear-gradient(90deg,var(--ui-brand) 0 var(--p,44.4%),#e3eaf2 var(--p,44.4%) 100%);
}
#aif-priority::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;
  border:2px solid var(--ui-brand);background:#fff;box-shadow:0 1px 4px rgba(30,60,90,.18);
  cursor:pointer;
}
#aif-priority::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;
  border:2px solid var(--ui-brand);background:#fff;box-shadow:0 1px 4px rgba(30,60,90,.18);
  cursor:pointer;
}
#aif-priority::-moz-range-track{height:6px;border-radius:3px;background:#e3eaf2;}
.lib-imp-scale{
  display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:9px;
  color:#98a8b8;font-size:11px;
}
.lib-imp-scale span:nth-child(1){text-align:left;}
.lib-imp-scale span:nth-child(2){text-align:center;}
.lib-imp-scale span:nth-child(3){text-align:right;}
.lib-imp-tip{margin:8px 0 0;color:#93a3b4;font-size:11.5px;line-height:1.6;}
@media (max-width:640px){
  .lib-imp-card{width:calc(100vw - 28px);}
  .lib-imp-card #modal-body{padding:15px 15px 13px;}
  .lib-imp-sub b{max-width:150px;}
  .lib-imp-sub-meta{width:100%;white-space:normal;}
  .lib-imp-format{align-items:flex-start;flex-wrap:wrap;}
  .lib-imp-format > div{flex:1 1 auto;}
  .lib-imp-tpl{margin-left:18px;}
  .lib-imp-drop{padding:15px 13px 13px;}
  .lib-imp-drop-main{gap:10px;}
  .lib-imp-drop-icon{width:34px;height:34px;}
  .lib-imp-drop-main p{font-size:11px;}
}

/* ============================================================
   深色风格：第三张风格卡对应的完整皮肤
   ============================================================ */
body.ui-style-dark{
  --bg:#151c23;
  --text:#dbe7f2;
  --muted:#8ea2b5;
  --line:#2b3946;
  --ui-surface:#1c252e;
  --ui-border:#2c3a47;
  --ui-border-strong:#3b4b5b;
  color:var(--text);
  background:var(--bg);
}
body.ui-style-dark .app,
body.ui-style-dark .main,
body.ui-style-dark .page{background:var(--bg);}
body.ui-style-dark .page.editor{background:var(--bg);}
body.ui-style-dark .topbar{
  background:#18212a;border-bottom-color:#2a3743;
  box-shadow:0 1px 2px rgba(0,0,0,.28);
}
body.ui-style-dark .crumb{color:#8499ad;}
body.ui-style-dark .crumb.small{color:#7e93a7;}
body.ui-style-dark .topbar-app b{color:#c6d6e5;}
body.ui-style-dark .topbar-app span{color:#7f93a7;}
body.ui-style-dark .user-name{color:#9db1c4;}
body.ui-style-dark .avatar{background:#223141;color:#9dc3e8;}
body.ui-style-dark .ico-btn{
  background:#202a34;border-color:#34434f;color:#a2b5c7;
}
body.ui-style-dark .ico-btn:hover{border-color:#54708a;color:#fff;}
body.ui-style-dark .ico-btn.top-action{
  background:#1e2832;border-color:#34434f;color:#a8bbcd;
}
body.ui-style-dark .ico-btn.top-action:hover{background:#26323e;color:#fff;border-color:#54708a;}
body.ui-style-dark .top-action .ta-ico{color:#8fb7dc;}
body.ui-style-dark .top-action .ta-ico.gear{color:#9fb3c6;}
body.ui-style-dark .page-title-row h2{color:#e6eff8;}
body.ui-style-dark .page-title-row > div:first-child::before{
  background:linear-gradient(180deg,#4f86c4,#7fb0d8);
}

/* 卡片 / 面板 / 表格 */
body.ui-style-dark :is(.orders-card,.panel,.kpi,.ent-card,.personal-settings-card,.personal-module-card,
.perf-kpi,.perf-task-wrap,.perf-history,.perf-adj-list,.perf-table-wrap,.personal-table-wrap,
.table-wrap,.cd-sec,.ent-box,.ent-prefix-card,.ent-account-card,.ent-add-card,.asset-card,.fm-list){
  background:var(--ui-surface);
  border-color:var(--ui-border);
  box-shadow:0 1px 2px rgba(0,0,0,.24),0 12px 30px -24px rgba(0,0,0,.55);
}
body.ui-style-dark .perf-detail-hero{
  background:linear-gradient(90deg,#1d2833,#1c252e);
  border-color:var(--ui-border);
}
body.ui-style-dark .perf-detail-kpis>div,
body.ui-style-dark .perf-pay-facts>div,
body.ui-style-dark .perf-adj-head{
  background:#202b35;border-color:#33424f;
}
body.ui-style-dark .panel-head h3{color:#dce8f3;}
body.ui-style-dark .panel-head .muted{color:#8ea2b5;}
body.ui-style-dark .kpi .k{color:#8ea2b5;}
body.ui-style-dark .kpi .v{color:#e6eff8;}
body.ui-style-dark .kpi .v small{color:#8ea2b5;}
body.ui-style-dark .kpi .v.down{color:#ff8b84;}
body.ui-style-dark .kpi .v.up{color:#6fd3a5;}
body.ui-style-dark .perf-kpi .v{color:#e6eff8;}
body.ui-style-dark .perf-detail-hero h3{color:#e6eff8;}

/* 表格 */
body.ui-style-dark table.grid{color:#d3e0ec;}
body.ui-style-dark table.grid thead th{
  background:#202b35;color:#a7bacd;border-bottom-color:#31404e;border-right-color:#31404e;
}
body.ui-style-dark table.grid tbody td{
  color:#cfdce9;border-bottom-color:#27343f;border-right-color:#27343f;
}
body.ui-style-dark .od-table th{border-right-color:#31404e;}
body.ui-style-dark .od-table td{border-right-color:#27343f;}
body.ui-style-dark table.grid tbody tr:hover td{background:#24313c;}
body.ui-style-dark table.grid tbody tr.sel td,
body.ui-style-dark table.grid tbody tr.sel:hover td{background:#2a3b4c;}
body.ui-style-dark .status-pill{color:#b9cadb;}
body.ui-style-dark .status-pill .dot{box-shadow:0 0 0 2px rgba(21,28,35,.65);}
body.ui-style-dark .tag{
  background:#22303c;border-color:#34434f;color:#a8bacb;
}
body.ui-style-dark .cell-order{color:#7fb3e0;}
body.ui-style-dark .empty-row td{color:#7f94a8;}
body.ui-style-dark .empty-state{color:#7f94a8;}
body.ui-style-dark .empty-state b{color:#465a6c;}
body.ui-style-dark .due-warn{color:#ff8d84;}
body.ui-style-dark .copyright{color:#6f8498;}
body.ui-style-dark .orders-footer{color:#8298ac;}
body.ui-style-dark .pager-btn{
  background:#202a34;border-color:#34434f;color:#a4b6c7;
}
body.ui-style-dark .pager-btn:hover{border-color:#54708a;color:#fff;}
body.ui-style-dark .pager-input,
body.ui-style-dark .pager select{
  background:#18222b;border-color:#33424f;color:#c9d8e6;
}
body.ui-style-dark #o-page,
body.ui-style-dark #cust-page,
body.ui-style-dark #st-list-page,
body.ui-style-dark #asset-list-page{color:#8fc0ec;}

/* 表单与按钮 */
body.ui-style-dark input:not([type=checkbox]):not([type=radio]),
body.ui-style-dark select,
body.ui-style-dark textarea{
  background:#18222b;border-color:#33424f;color:#d9e6f2;
}
body.ui-style-dark input::placeholder,
body.ui-style-dark textarea::placeholder{color:#6d8094;}
body.ui-style-dark input:focus,
body.ui-style-dark select:focus,
body.ui-style-dark textarea:focus{
  border-color:var(--ui-brand);box-shadow:0 0 0 3px rgba(80,140,210,.16);
}
body.ui-style-dark input[type=file]{
  background:#18222b;border-color:#33424f;color:#9fb2c5;
}
body.ui-style-dark input[type=file]::file-selector-button,
body.ui-style-dark input[type=file]::-webkit-file-upload-button{
  background:#23303c;border-color:#37495a;color:#c4d5e4;
}
body.ui-style-dark .btn,
body.ui-style-dark .ghost{
  background:#222d37;border-color:#354555;color:#c6d6e5;
}
body.ui-style-dark .btn:hover,
body.ui-style-dark .ghost:hover{
  background:#2a3743;border-color:#54708a;color:#fff;
}
body.ui-style-dark .btn.orange{background:#33291b;border-color:#71562f;color:#e6bd78;}
body.ui-style-dark .btn.orange:hover{background:#3d301e;border-color:#8a6a39;color:#f4ce8b;}
body.ui-style-dark .btn.red{background:#352421;border-color:#71433d;color:#eb9d94;}
body.ui-style-dark .btn.red:hover{background:#402a26;border-color:#8a5149;color:#ffb1a7;}
body.ui-style-dark .modal-foot .btn.red,
body.ui-style-dark #modal-foot .btn.red{background:#a84a44;border-color:#a84a44;color:#fff;}
body.ui-style-dark .orders-filter,
body.ui-style-dark .orders-filter label{color:#96aabf;}
body.ui-style-dark .modal-body label,
body.ui-style-dark .form-grid label,
body.ui-style-dark .modal-body label.chk{color:#9db0c3;}
body.ui-style-dark .form-grid .form-sec{color:#8fdedb;border-bottom-color:#2c3a47;}
body.ui-style-dark .cust-sum-row td{background:#202b30;color:#b9cbcd;border-top-color:#34464b;}

/* 可搜索下拉 */
body.ui-style-dark .ui-combo-toggle{color:#8ea2b5;}
body.ui-style-dark .ui-combo-toggle:hover{background:#26323e;color:#fff;}
body.ui-style-dark .ui-combo-menu{
  background:#1c252e;border-color:#34434f;
  box-shadow:0 14px 32px rgba(0,0,0,.45);
}
body.ui-style-dark .ui-combo-opt{color:#cbd9e6;}
body.ui-style-dark .ui-combo-opt:hover,
body.ui-style-dark .ui-combo-opt.active{background:#263442;color:#fff;}
body.ui-style-dark .ui-combo-empty,
body.ui-style-dark .ui-combo-hint{color:#7f94a8;}
body.ui-style-dark .ui-combo-hint{border-top-color:#2b3946;}

/* 标签页 / 资产 */
body.ui-style-dark .task-tabs,
body.ui-style-dark .enterprise-tabs,
body.ui-style-dark .od-tabs{border-bottom-color:#2c3a47;}
body.ui-style-dark .task-tab,
body.ui-style-dark .enterprise-tabs button,
body.ui-style-dark .od-tab{color:#93a7ba;}
body.ui-style-dark .task-tab:hover,
body.ui-style-dark .enterprise-tabs button:hover,
body.ui-style-dark .od-tab:hover{color:#8fc0ec;}
body.ui-style-dark .task-tab.active,
body.ui-style-dark .enterprise-tabs button.active,
body.ui-style-dark .od-tab.active{color:#8fc0ec;border-bottom-color:#8fc0ec;}
body.ui-style-dark .asset-type-tab{
  background:#202a34;border-color:#34434f;color:#9db0c3;
}
body.ui-style-dark .asset-type-tab:hover{border-color:#54708a;color:#fff;}
body.ui-style-dark .asset-type-tab.active{
  background:#223141;border-color:#3f5a73;color:#8fc0ec;
}

/* 弹窗 */
body.ui-style-dark .modal{background:rgba(5,10,15,.62);}
body.ui-style-dark .modal-card{
  background:#1b252e;border-color:#34434f;
  box-shadow:0 30px 90px -24px rgba(0,0,0,.75);
}
body.ui-style-dark .modal-card header{background:#1b252e;border-bottom-color:#2c3a47;}
body.ui-style-dark .modal-card header strong,
body.ui-style-dark #modal-title{color:#e4eef7;}
body.ui-style-dark #modal-close{background:#25313b;color:#9fb2c5;}
body.ui-style-dark #modal-close:hover{background:#2d3a46;color:#fff;}
body.ui-style-dark .modal-body{color:#cbd9e6;}
body.ui-style-dark .modal-foot,
body.ui-style-dark footer.modal-foot,
body.ui-style-dark #modal-foot{background:#18212a;border-top-color:#2c3a47;}
body.ui-style-dark .detail-table td{border-bottom-color:#27343f;}
body.ui-style-dark .detail-table td.k{color:#8ea2b5;}
body.ui-style-dark .detail-table td.v{color:#d3e0ec;}
body.ui-style-dark .cd-head{border-bottom-color:#2c3a47;}
body.ui-style-dark .cd-sec-title{color:#dce8f3;}
body.ui-style-dark .cd-2col .detail-table td.k{color:#8ea2b5;}
body.ui-style-dark .cd-2col .detail-table td.v{color:#d3e0ec;}
body.ui-style-dark .od-table th{background:#202b35;color:#a7bacd;border-bottom-color:#31404e;}
body.ui-style-dark .od-table td{color:#cfdce9;border-bottom-color:#27343f;}
body.ui-style-dark .od-table tbody tr:hover{background:#24313c;}

/* 语言资产导入弹窗 */
body.ui-style-dark .lib-imp-card header strong{color:#e4eef7;}
body.ui-style-dark #modal-close.lib-imp-close-x{background:transparent;color:#8fa2b5;}
body.ui-style-dark #modal-close.lib-imp-close-x:hover{background:#25313b;color:#fff;}
body.ui-style-dark .lib-imp{color:#c8d7e5;}
body.ui-style-dark .lib-imp-sub b{color:#e0ebf5;}
body.ui-style-dark .lib-imp-sub-meta{color:#8ea2b5;}
body.ui-style-dark .lib-imp-format{
  background:linear-gradient(90deg,#1d2a34,#1b252e 70%,#1b252e);
  border-color:#334a59;
}
body.ui-style-dark .lib-imp-format strong{color:#d6e4f0;}
body.ui-style-dark .lib-imp-format em{color:#8da1b4;}
body.ui-style-dark .lib-imp-drop{background:#18212a;border-color:#3b4b5b;}
body.ui-style-dark .lib-imp-drop:hover,
body.ui-style-dark .lib-imp-drop.is-drag{background:#1d2a34;border-color:var(--ui-brand);}
body.ui-style-dark .lib-imp-drop.is-error{background:#2b1d1b;border-color:#7b4a43;}
body.ui-style-dark .lib-imp-drop.has-file{background:#1b252e;border-color:#3b5164;}
body.ui-style-dark .lib-imp-drop-main p{color:#8ea2b5;}
body.ui-style-dark .lib-imp-pick{background:#23303c;border-color:#3a4c5c;color:#c6d6e5;}
body.ui-style-dark .lib-imp-pick:hover{border-color:#6c91b0;color:#fff;}
body.ui-style-dark .lib-imp-file{border-top-color:#2c3a47;}
body.ui-style-dark .lib-imp-file-icon{background:#22323f;color:#9fc4e2;}
body.ui-style-dark .lib-imp-file b{color:#d6e4f0;}
body.ui-style-dark .lib-imp-file em{color:#8ea2b5;}
body.ui-style-dark .lib-imp-file-x{color:#8ea2b5;}
body.ui-style-dark .lib-imp-file-x:hover{background:#25313b;color:#fff;}
body.ui-style-dark .lib-imp-priority{border-top-color:#2c3a47;}
body.ui-style-dark .lib-imp-priority-head label{color:#c8d7e5;}
body.ui-style-dark .lib-imp-scale,
body.ui-style-dark .lib-imp-tip{color:#8ea2b5;}
body.ui-style-dark .lib-imp-error{color:#ff9c92;}

/* 首页 / 绩效 / 个人中心 / 企业设置 */
body.ui-style-dark .panel-tools input[type=date],
body.ui-style-dark .panel-tools input[type=month]{
  background:#18222b;border-color:#33424f;color:#c9d8e6;
}
body.ui-style-dark .panel-tools .quick button{color:#8ea2b5;}
body.ui-style-dark .panel-tools .quick button:hover{color:#8fc0ec;}
body.ui-style-dark .panel-tools .quick button.active{color:#8fc0ec;background:#223141;}
body.ui-style-dark .pie-label{color:#f2f7fc;text-shadow:0 1px 2px rgba(0,0,0,.5);}
body.ui-style-dark .perf-kpi:before{background:#3f5d78;}
body.ui-style-dark .personal-settings-nav{border-right-color:#2c3a47;}
body.ui-style-dark .personal-subtab{color:#93a7ba;}
body.ui-style-dark .personal-subtab:hover{color:#8fc0ec;background:#22303c;}
body.ui-style-dark .personal-subtab.active{background:#223141;color:#8fc0ec;border-right-color:#8fc0ec;}
body.ui-style-dark .personal-settings-body h3{color:#e0ebf5;}
body.ui-style-dark .personal-role-pill{border-color:#3b4b5b;color:#a8bacb;}
body.ui-style-dark .ent-form{color:#c8d7e5;}
body.ui-style-dark .ent-form-row > label{color:#9db0c3;}
body.ui-style-dark .ent-note{border-top-color:#2c3a47;color:#8ea2b5;}
body.ui-style-dark .ent-form-row .logo-box{background:#18212a;border-color:#33424f;}
body.ui-style-dark .ent-email-head .t{color:#d6e4f0;}
body.ui-style-dark .ent-switch-track{background:#3a4a58;}
body.ui-style-dark .ent-switch-dot{background:#dbe7f2;box-shadow:0 1px 2px rgba(0,0,0,.4);}
body.ui-style-dark .ent-switch-text{color:#8ea2b5;}
body.ui-style-dark .ent-switch input:checked ~ .ent-switch-text{color:#8fc0ec;}
body.ui-style-dark .ent-badge{background:#223141;color:#8fc0ec;}
body.ui-style-dark .fm-link,
body.ui-style-dark .dl-choose,
body.ui-style-dark .dl-field select,
body.ui-style-dark .dl-field input[type=datetime-local]{color:#a8bacb;border-color:#34434f;}
body.ui-style-dark .asset-tip .asset-status,
body.ui-style-dark .asset-foot b,
body.ui-style-dark .dl-prio b{color:#8fc0ec;}

/* 我的任务状态列 */
.task-status-cell{white-space:nowrap;}

/* 深色模式下的品牌实心按钮、滚动条与企业页底板 */
body.ui-style-dark .btn.teal{
  background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.28);
}
body.ui-style-dark .btn.teal:hover{
  background:var(--ui-brand-strong);border-color:var(--ui-brand-strong);color:#fff;
}
body.ui-style-dark .btn.green{background:#237f5b;border-color:#237f5b;color:#fff;}
body.ui-style-dark .btn.green:hover{background:#1d6d4d;border-color:#1d6d4d;}

body.ui-style-dark .ent-table-card{
  background:var(--ui-surface);border-color:var(--ui-border);
}

body.ui-style-dark .page::-webkit-scrollbar{background:#151c23;width:10px;height:10px;}
body.ui-style-dark .page::-webkit-scrollbar-thumb{
  background:#3a4c5c;border:2px solid #151c23;border-radius:10px;
}
body.ui-style-dark .page::-webkit-scrollbar-track{background:#151c23;}
body.ui-style-dark .table-wrap::-webkit-scrollbar,
body.ui-style-dark .tasks-table-wrap::-webkit-scrollbar,
body.ui-style-dark .modal-body::-webkit-scrollbar,
body.ui-style-dark .od-table-wrap::-webkit-scrollbar{background:#1c252e;width:10px;height:10px;}
body.ui-style-dark .table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .tasks-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .modal-body::-webkit-scrollbar-thumb,
body.ui-style-dark .od-table-wrap::-webkit-scrollbar-thumb{
  background:#3d5062;border:2px solid #1c252e;border-radius:10px;
}
body.ui-style-dark .table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .tasks-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .modal-body::-webkit-scrollbar-track,
body.ui-style-dark .od-table-wrap::-webkit-scrollbar-track{background:#1c252e;}
body.ui-style-dark .table-wrap::-webkit-scrollbar-corner,
body.ui-style-dark .tasks-table-wrap::-webkit-scrollbar-corner,
body.ui-style-dark .od-table-wrap::-webkit-scrollbar-corner{background:#1c252e;}
body.ui-style-dark .ui-theme-scroll::-webkit-scrollbar-thumb{background:#c8d4e1;}

/* 标题与订单详情页签在窄屏不折行 */
.page-title-row h2{white-space:nowrap;}
.od-tabs{flex-wrap:nowrap;overflow-x:auto;}
.od-tab{flex:0 0 auto;white-space:nowrap;padding-left:16px;padding-right:16px;}

body.ui-style-dark{color-scheme:dark;}
body.ui-style-dark select{background:#18222b;border-color:#33424f;color:#c9d8e6;}

/* 绩效页标题在窄屏改为两行，避免副标题与刷新按钮重叠 */
@media (max-width:640px){
  #performance-view .page-title-row{flex-wrap:wrap;align-items:flex-start;}
  #performance-view .page-title-row > div:first-child{flex:1 0 100%;min-width:0;}
  #performance-view .perf-title-tools{
    flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;
    gap:8px;margin-top:2px;
  }
  #performance-view .perf-title-tools .muted{
    min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  #performance-view .perf-title-tools .ghost{flex:0 0 auto;white-space:nowrap;}
}

/* 深色模式下的设置抽屉 */
body.ui-style-dark .ui-theme-drawer{
  background:#1b252e;border-left-color:#2c3a47;
  box-shadow:-16px 0 44px rgba(0,0,0,.5);
}
body.ui-style-dark .ui-theme-close{color:#8fa2b5;}
body.ui-style-dark .ui-theme-close:hover{background:#25313b;color:#fff;}
body.ui-style-dark .ui-theme-scroll::-webkit-scrollbar-thumb{background:#3d5062;}
body.ui-style-dark .ui-theme-sec h4{color:#dce8f3;}
body.ui-style-dark .ui-style-card,
body.ui-style-dark .ui-nav-card{background:#202a34;border-color:#34434f;}
body.ui-style-dark .ui-style-card:hover,
body.ui-style-dark .ui-nav-card:hover{border-color:#54708a;}
body.ui-style-dark .ui-style-card.is-active,
body.ui-style-dark .ui-nav-card.is-active{
  border-color:var(--ui-brand);background:#223141;box-shadow:0 0 0 1px var(--ui-brand) inset;
}
body.ui-style-dark .ui-preview{box-shadow:inset 0 0 0 1px #3a4b5b;}
body.ui-style-dark .ui-color.is-active{box-shadow:0 0 0 2px #1b252e,0 0 0 3px var(--ui-brand);}
body.ui-style-dark .ui-setting-row{border-bottom-color:#2a3743;color:#a8bacb;}
body.ui-style-dark .ui-setting-row.is-disabled{color:#71869a;}
body.ui-style-dark .ui-setting-row select{
  background:#18222b;border-color:#33424f;color:#c9d8e6;
}
body.ui-style-dark .ui-mini-switch{background:#3a4a58;}
body.ui-style-dark .ui-mini-switch::after{background:#dbe7f2;box-shadow:0 1px 2px rgba(0,0,0,.4);}
body.ui-style-dark .ui-theme-anim{border-top-color:#2a3743;}
body.ui-style-dark .ui-theme-sec:nth-of-type(3){border-top-color:#2a3743;}

/* 窄屏企业设置表单改为上下排列，避免横向溢出 */
@media (max-width:640px){
  #enterprise-view .ent-form{max-width:100%;}
  #enterprise-view .ent-form-row{flex-direction:column;align-items:stretch;gap:6px;margin-bottom:14px;}
  #enterprise-view .ent-form-row > label{width:auto;text-align:left;padding-top:0;}
  #enterprise-view .ent-form-row > div{width:100%;min-width:0;}
  #enterprise-view .ent-form-row input[type=text],
  #enterprise-view .ent-form-row input[type=email],
  #enterprise-view .ent-form-row textarea{width:100%;}
}

/* 深色卡预览底板、空导入提示换行与绩效数值 */
.ui-pv-dark{background:#202a34;}
.lib-imp-error{max-width:430px;}
@media (max-width:640px){
  #performance-view .perf-kpi .v{font-size:18px;letter-spacing:-.3px;}
  #enterprise-view .enterprise-tabs button{white-space:nowrap;font-size:12px;padding-left:0;padding-right:0;}
  .orders-filter input[type=search]{width:120px;}
}

/* 深色个人中心空态与表格滚动条 */
body.ui-style-dark .personal-empty-overlay{background:#1c252e;}
body.ui-style-dark .personal-empty-overlay .empty-ico{color:#3d5062;}
body.ui-style-dark .personal-empty-overlay .empty-text{color:#8195a8;}
body.ui-style-dark #enterprise-view button[data-account-edit],
body.ui-style-dark #enterprise-view button[data-account-del]{
  background:#202a34;border:1px solid #34434f;
}
body.ui-style-dark #enterprise-view button[data-account-edit]{color:#e2a63c;}
body.ui-style-dark #enterprise-view button[data-account-del]{color:#ff7b72;}
body.ui-style-dark .ent-testbox{background:#2b2a20;border-color:#4a452c;color:#e8d79a;}
@media (max-width:640px){
  #enterprise-view .ent-grid{grid-template-columns:1fr;}
}
body.ui-style-dark .wizard-steps i{background:#2c3a47;}
body.ui-style-dark .wizard-step{background:#22303b;color:#8195a8;}
body.ui-style-dark .wizard-step.active{background:rgba(45,84,139,.28);color:#a9c9e8;}
body.ui-style-dark .wizard-step.done{background:#1f3a30;color:#7bd2a8;}
body.ui-style-dark .oc-seg button{
  background:#202a34;border-color:#34434f;color:#c0d0df;
}
body.ui-style-dark .oc-seg button.active{
  background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;
}
body.ui-style-dark .oc-analysis{
  background:#1c252e;border-color:#2c3a47;
}
body.ui-style-dark .oc-analysis-title{
  background:#1c252e;color:#dbe7f2;border-bottom-color:#2c3a47;
}
body.ui-style-dark .oc-analysis-tabs{
  background:#18222b;border-color:#2c3a47;
}
body.ui-style-dark .oc-analysis-tabs button{color:#8195a8;}
body.ui-style-dark .oc-analysis-tabs button.active{
  background:#22303b;color:#8fc9ff;border-bottom-color:var(--ui-brand);
}
body.ui-style-dark .oc-ana-row{border-bottom-color:#2b3946;}
body.ui-style-dark .oc-ana-row span{color:#a9bccd;}
body.ui-style-dark .oc-analysis-note{
  background:#1f3a35;border-color:#2e5a51;color:#8fd9c4;
}
body.ui-style-dark .oc-upload-main{
  background:#1c252e;border-color:#2c3a47;
}
body.ui-style-dark .oc-upload-head{
  color:#a9bccd;border-bottom-color:#2c3a47;
}
body.ui-style-dark .oc-dropzone{
  background:#18222b;border-color:#34434f;
}
body.ui-style-dark .oc-drop-icon{
  background:#202a34;border-color:#34434f;color:#8ea2b5;
}
body.ui-style-dark .oc-file-info{color:#a9bccd;}
body.ui-style-dark .oc-file-list{border-top-color:#2c3a47;}
body.ui-style-dark .oc-file-item{border-bottom-color:#24313c;color:#dbe7f2;}
body.ui-style-dark .oc-drop-hint{color:#7f93a5;}
body.ui-style-dark .oc-success h3{color:#dbe7f2;}
body.ui-style-dark .dl-qa-table-wrap{border-color:#34434f;}
body.ui-style-dark .dl-qa-table{background:#202a34;}
body.ui-style-dark .dl-qa-table th{
  background:#26343f;color:#b9ccd8;border-color:#34434f;
}
body.ui-style-dark .dl-qa-table td{color:#d6e2ea;border-color:#2c3a47;}
body.ui-style-dark .dl-qa-head{
  background:#3a2528;border-color:#6b3a3f;color:#ffd8d8;
}
body.ui-style-dark .dl-qa-head p{color:#e5b3b1;}
body.ui-style-dark .dl-qa-tip{color:#8195a8;}
body.ui-style-dark .dl-qa-bid,
body.ui-style-dark .dl-qa-checker,
body.ui-style-dark .dl-qa-src{color:#8195a8;}
body.ui-style-dark .dl-qa-level.is-error{
  background:#4a2526;color:#ff9a94;
}
body.ui-style-dark .dl-qa-level.is-warn{
  background:#4a3a20;color:#f0b667;
}
body.ui-style-dark .ta-info-grid{
  background:#202a34;border-color:#2c3a47;
}
body.ui-style-dark .ta-info-grid span{color:#8195a8;}
body.ui-style-dark .ta-info-grid b{color:#dbe7f2;}
body.ui-style-dark .ta-controls{
  background:#1c252e;border-color:#2c3a47;
}
body.ui-style-dark .ta-control>label{color:#8195a8;}
body.ui-style-dark .ta-pills button{
  background:#202a34;border-color:#34434f;color:#c0d0df;
}
body.ui-style-dark .ta-pills button.active{
  background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;
}
body.ui-style-dark .ta-deptbar{
  background:#1c252e;border-color:#2c3a47;
}
body.ui-style-dark .ta-label{color:#8195a8;}
body.ui-style-dark .ta-dept{
  background:#202a34;border-color:#34434f;color:#c0d0df;
}
body.ui-style-dark .ta-dept.active{
  background:#223141;border-color:#3a6d8f;color:#8fc9ff;
}
body.ui-style-dark .ta-person-wrap{border-color:#2c3a47;}
body.ui-style-dark .ta-person-table th{
  background:#26343f;color:#b9ccd8;border-color:#2c3a47;
}
body.ui-style-dark .ta-person-table td{
  color:#d6e2ea;border-color:#2c3a47;
}
body.ui-style-dark .ta-select-hint{color:#8195a8;}
body.ui-style-dark .ta2-row{
  background:#202a34;border-color:#2c3a47;
}
body.ui-style-dark .ta2-person b{color:#dbe7f2;}
body.ui-style-dark .ta2-person span{color:#8195a8;}
body.ui-style-dark .settle-head{
  background:#202a34;border-color:#2c3a47;
}
body.ui-style-dark .settle-head .k{color:#8195a8;}
body.ui-style-dark .settle-head .v{color:#dbe7f2;}
body.ui-style-dark .settle-remark{
  background:#202a34;border-left-color:#3a6d8f;color:#a9bccd;
}
body.ui-style-dark .seg-toggle button{
  background:#202a34;border-color:#34434f;color:#c0d0df;
}
body.ui-style-dark .seg-toggle button.active{
  background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;
}
body.ui-style-dark .ta-steps span{background:#202a34;color:#8195a8;}
body.ui-style-dark .ta-steps span.active{
  background:#223141;color:#8fc9ff;
}
body.ui-style-dark .ta-steps span.done{
  background:#1f3a30;color:#7bd2a8;
}
body.ui-style-dark .ta-steps i{background:#34434f;}
body.ui-style-dark .ent-toolbar{background:#1c252e;border-bottom-color:#2c3a47;}
body.ui-style-dark .ent-toolbar .inline select,
body.ui-style-dark .ent-toolbar .inline input[type=search]{
  background:#18222b;border-color:#33424f;color:#c9d8e6;
}
body.ui-style-dark .ent-sum,
body.ui-style-dark .ent-sum td{background:#1c252e;color:#8fa2b5;}
body.ui-style-dark .personal-table-wrap::-webkit-scrollbar,
body.ui-style-dark .perf-table-wrap::-webkit-scrollbar,
body.ui-style-dark .asset-table-wrap::-webkit-scrollbar,
body.ui-style-dark .off-table-wrap::-webkit-scrollbar,
body.ui-style-dark .dl-qa-table-wrap::-webkit-scrollbar,
body.ui-style-dark .ent-table-card::-webkit-scrollbar{background:#1c252e;width:10px;height:10px;}
body.ui-style-dark .personal-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .perf-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .asset-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .off-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .dl-qa-table-wrap::-webkit-scrollbar-thumb,
body.ui-style-dark .ent-table-card::-webkit-scrollbar-thumb{background:#3d5062;border:2px solid #1c252e;border-radius:10px;}
body.ui-style-dark .personal-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .perf-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .asset-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .off-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .dl-qa-table-wrap::-webkit-scrollbar-track,
body.ui-style-dark .ent-table-card::-webkit-scrollbar-track{background:#1c252e;}





/* ===== s185 翻译编辑器四主题句段配色统一 ===== */
body.editor-window{
  --ed-row-bg:#ffffff; --ed-row-hover:#f2faf8;
  --ed-sel-bg:#e4f4f1; --ed-sel-line:#badfd9; --ed-sel-accent:#10a6a1;
  --ed-head-bg:#f2f8f7; --ed-head-text:#35514d; --ed-line:#e1ebea;
  --ed-ready:#0b8c86; --ed-ready-bg:#f1faf9; --ed-ready-line:#b7e2dd;
  --ed-done:#2b7a50; --ed-done-bg:#f4fbf6; --ed-done-line:#c5e2d2;
}
body.editor-window.theme-blue{
  --ed-row-bg:#fbfdff; --ed-row-hover:#f4f9ff;
  --ed-sel-bg:#e6f0fb; --ed-sel-line:#c7d9ee; --ed-sel-accent:#2d548b;
  --ed-head-bg:#e9f2fc; --ed-head-text:#3d5877; --ed-line:#d8e4f2;
  --ed-ready:#2e5d94; --ed-ready-bg:#f1f7fd; --ed-ready-line:#c5d8ee;
  --ed-done:#356f62; --ed-done-bg:#f2f9f7; --ed-done-line:#c5ddd7;
}
body.editor-window.theme-eye{
  --ed-row-bg:#fbfdf9; --ed-row-hover:#f4faef;
  --ed-sel-bg:#e7f3df; --ed-sel-line:#c6dcb5; --ed-sel-accent:#4f7d58;
  --ed-head-bg:#edf5e6; --ed-head-text:#3f5540; --ed-line:#dfeada;
  --ed-ready:#3f7049; --ed-ready-bg:#f2f9ec; --ed-ready-line:#c9ddb9;
  --ed-done:#3f7049; --ed-done-bg:#f3f9ed; --ed-done-line:#cee1bf;
}
body.editor-window.theme-dark{
  --ed-row-bg:#202b30; --ed-row-hover:#26363c;
  --ed-sel-bg:#2b3e44; --ed-sel-line:#455d65; --ed-sel-accent:#7bc8c8;
  --ed-head-bg:#28383d; --ed-head-text:#c7d6d8; --ed-line:#34464b;
  --ed-ready:#72d5cb; --ed-ready-bg:#263b3a; --ed-ready-line:#3f706d;
  --ed-done:#8fd7aa; --ed-done-bg:#26372c; --ed-done-line:#3f6a4f;
}
#editor-body table.sentence-grid thead th{
  background:var(--ed-head-bg)!important; color:var(--ed-head-text)!important; border-color:var(--ed-line)!important;
}
#editor-body .sentence-grid tbody tr:not(.sel) td{background:var(--ed-row-bg)!important;}
#editor-body .sentence-grid tbody tr:not(.sel):hover td{background:var(--ed-row-hover)!important;}
#editor-body .sentence-grid tr.sel td,
#editor-body .sentence-grid tr.sel td.c-no,
#editor-body .sentence-grid tr.sel td.c-src,
#editor-body .sentence-grid tr.sel td.c-tgt,
#editor-body .sentence-grid tr.sel td.c-status{background:var(--ed-sel-bg)!important;}
#editor-body .sentence-grid tr.sel td:first-child{box-shadow:inset 3px 0 0 var(--ed-sel-accent)!important;}
#editor-body .sentence-grid .c-tgt textarea,
#editor-body .sentence-grid .c-tgt textarea:focus,
#editor-body .sentence-grid tr.sel .c-tgt textarea,
#editor-body .sentence-grid tr.sel .c-tgt textarea:focus{background:transparent!important;}
#editor-body .st-tile.ready{background:transparent!important;border:0!important;color:var(--ed-ready);}
#editor-body .st-tile.trans.ready{color:var(--ed-ready);}
#editor-body .st-tile.qc.ready{color:#465a5e;}
#editor-body .st-tile.done{background:transparent!important;border:0!important;color:var(--ed-done);}
#editor-body .st-tile.qa.alert{color:#c43f34;}
#editor-body .st-tile.qa.ignored,#editor-body .st-tile.qa.normal{color:#95a3a4;}
#editor-body .st-tile.qa.idle{color:#a7b3b3;}
#editor-body .st-tile.qa.clean{color:#98a5a6;}
#editor-body .sentence-grid .st-tile:hover:not(:disabled){background:rgba(11,140,134,.09)!important;}
#editor-body .sentence-grid tr.sel .c-status .st-tile,
#editor-body .sentence-grid tr.sel .c-status .st-tile.ready,
#editor-body .sentence-grid tr.sel .c-status .st-tile.done,
#editor-body .sentence-grid tr.sel .c-status .st-tile.deny,
#editor-body .sentence-grid tr.sel .c-status .st-tile.blocked{background:transparent!important;border-color:var(--ed-sel-line)!important;}
#editor-body .sentence-grid tr.sel .c-status .acts .mini{background:transparent!important;border-color:var(--ed-sel-line)!important;}
body.editor-window.theme-dark #editor-body .st-tile.trans.ready{color:#72d5cb;}
body.editor-window.theme-dark #editor-body .st-tile.qc.ready{color:#c8d8d9;}
body.editor-window.theme-dark #editor-body .st-tile.trans.done,
body.editor-window.theme-dark #editor-body .st-tile.qc.done{color:#8fd7aa;}
body.editor-window.theme-dark #editor-body .st-tile.deny{color:#e9a79a;}
body.editor-window.theme-dark #editor-body .st-tile.blocked{color:#819396;}
body.editor-window.theme-dark #editor-body .st-tile.qa.alert{color:#ff948a;}
body.editor-window.theme-dark #editor-body .st-tile.qa.ignored,
body.editor-window.theme-dark #editor-body .st-tile.qa.normal{color:#819396;}
body.editor-window.theme-dark #editor-body .st-tile.qa.idle{color:#8fa3a5;}
body.editor-window.theme-dark #editor-body .st-tile.qa.clean{color:#a7b8ba;}
body.editor-window.theme-dark #editor-body .sentence-grid .c-status .acts .mini{color:#a7bfc1;}
#editor-body .sentence-grid .qa-inline{display:none!important;}

/* 默认白主题：编辑器外壳改为中性白底，与青绿强调色统一 */
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark){background:#f3f8f6;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .page.editor{background:#f3f8f6;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-window-bar{background:#fbfdfc;border-bottom-color:#dde9e6;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-window-bar .edw-brand{border-right-color:#dde9e6;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .edw-tab{color:#4b6360;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .edw-tab.active{color:#0f9c98;border-bottom-color:#10a6a1;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-top,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-toolbar,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .ed-view-toolbar,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-filter,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-left,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-right,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .preview-pane,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .preview-head,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-status,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .panel-tabs,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .panel-body,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .panel-dock{background:#fbfdfc;border-color:#dde9e6;color:#405751;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-top .proj-name,
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .editor-top .badge{color:#405751;}
body.editor-window:not(.theme-blue):not(.theme-eye):not(.theme-dark) .preview-body{background:#f4faf8;color:#3e5752;}
#editor-body .st-tile.ready .st-meta b{color:var(--ed-ready);}
