/* Material Symbols Outlined —— 本地自托管子集，全站共用本文件加载。
   源字体 3.93 MB / 6683 字形；按站内实际用到的 131 个图标裁剪后 119 KB（-97%）。
   连字（rlig）规则完整保留，`<span class="material-symbols-outlined">home</span>` 用法不变。
   替代原先每页 3 条 fonts.googleapis.com 外链：那些是阻塞渲染的样式请求，断网或被墙时
   首屏长时间白屏、图标退化成英文单词（2026-11-27 实测复现，见 docs/排版审查-2026-11-27/证据-图标字体加载失败.png）。 */
@font-face{
  font-family:'Material Symbols Outlined';
  font-style:normal;
  font-weight:100 700;
  font-display:swap;
  src:url(/material-symbols-outlined.woff2?v=20261127) format('woff2');
}

/* Keyboard access is visible on demand and keeps the regular layout unchanged. */
.skip-link{position:fixed;top:12px;left:12px;z-index:10001;transform:translateY(-200%);padding:12px 18px;background:white;color:#1e40af;border:2px solid #93a3e8;border-radius:8px;line-height:1.6}
.skip-link:focus{transform:translateY(0)}
:is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #819cda;outline-offset:3px}
#orders-ledger .ledger-status-bar{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:16px 0}
#orders-ledger .ledger-status-bar p{flex:1 1 240px;margin:0;font-size:14px;color:#62718a;line-height:1.75;overflow-wrap:anywhere}
#orders-ledger .ledger-status-bar button{flex:none}
.material-symbols-outlined{
  font-family:'Material Symbols Outlined';
  font-weight:normal;
  font-style:normal;
  font-size:24px;
  line-height:1;
  letter-spacing:normal;
  text-transform:none;
  display:inline-block;
  white-space:nowrap;
  word-wrap:normal;
  direction:ltr;
  -webkit-font-feature-settings:'liga';
  font-feature-settings:'liga';
  -webkit-font-smoothing:antialiased;
  font-variation-settings:'FILL' 0,'GRAD' 0,'opsz' 24,'wght' 400;
}

/* Shared typography and visual tokens for every Palcard page. */
:root{--pc-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;--pc-text:#17233d;--pc-muted:#5e6c82;--pc-border:#dfe5ee;--pc-bg:#f6f8fb;--pc-blue:#1e40af}
body,body.auth-page{font-family:var(--pc-font);font-size:1rem;line-height:1.65;color:var(--pc-text);background:var(--pc-bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea,table,output{font-family:var(--pc-font)}
body [class*="font-"]:not(.material-symbols-outlined),.role-card strong,.amt,.pending-summary b,.pending-main b,.pending-right b,.fund-row .amt,.fund-row .amt small,#auth-startup{font-family:var(--pc-font)}
body:not(.auth-page) main{background:var(--pc-bg)!important}
body:not(.auth-page)>aside,body:not(.auth-page)>aside>div,body:not(.auth-page)>aside .bg-surface-container-low{background:#f0f3f9}
body:not(.auth-page) header{background:#ffffffed;border-bottom:1px solid #e8edf4;box-shadow:none}
body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:1.625rem;font-weight:600;letter-spacing:0;line-height:1.4}
body:not(.auth-page) :is(.account-panel-head h2,.workspace-entry-grid h2,.net-profit-panel h2,.finance-control-panel h2,.ngn-pool-panel h2,.order-device-panel h2){font-size:1.125rem;font-weight:600;line-height:1.5}
body:not(.auth-page) main h3{font-weight:600;line-height:1.5}
body:not(.auth-page) .text-body-sm{font-size:.875rem;line-height:1.65}
body:not(.auth-page) :is(.text-body-md,.text-label-md){font-size:.9375rem;line-height:1.65}
body:not(.auth-page) .text-label-caps{font-size:.8125rem;line-height:1.6;letter-spacing:0;text-transform:none}
body:not(.auth-page) :is(.text-outline,.auth-help,.my-work-help,.account-title p,.workspace-heading p,.role-card p){color:var(--pc-muted)}
body:not(.auth-page) :is(.auth-help,.account-summary,.account-table small,.workspace-cell-meta,.my-work-help,.account-panel-head p,.role-card p){font-size:.8125rem;line-height:1.75}
body:not(.auth-page) :is(.workspace-heading p,.account-title p){font-size:.9375rem}
body:not(.auth-page) main label{font-size:.9375rem;font-weight:500;color:#34445e}
body:not(.auth-page) main :is(input:not([type=checkbox]):not([type=file]),select,textarea){font-size:1rem;line-height:1.6;color:var(--pc-text);background:#fbfcfe;border-color:var(--pc-border);border-radius:8px}
body:not(.auth-page) main :is(input,textarea)::placeholder{color:#758297;opacity:1;font-size:.875rem}
body:not(.auth-page) :is(.account-dialog,.app-dialog) :is(input,select,textarea){font-size:1rem;background:#fbfcfe;border-color:var(--pc-border)}
body:not(.auth-page) :is(.account-dialog,.app-dialog) label{font-size:.9375rem}
body:not(.auth-page) :is(.account-panel,.self-profile,.role-card){border-color:var(--pc-border);border-radius:10px;box-shadow:none}
body:not(.auth-page) .account-panel-head{padding:18px 20px;border-color:#e8edf4}
body:not(.auth-page) :is(.account-panel-head,.account-summary,.account-dialog footer,.app-dialog .dialog-foot){background:white}
body:not(.auth-page) :is(.primary-action,.finance-wallet-link){font-size:.9375rem;font-weight:600;min-height:42px;border-radius:8px;background:var(--pc-blue);color:white;box-shadow:none}
body:not(.auth-page) main button{font-size:.875rem;line-height:1.5}
body:not(.auth-page) :is(.account-table td,.workspace-deal-table td,.pool-scroll td,.order-device-scroll td){font-size:.9375rem;line-height:1.65;padding-top:14px;padding-bottom:14px;font-variant-numeric:tabular-nums}
body:not(.auth-page) :is(.account-table th,.workspace-deal-table th,.pool-scroll th,.order-device-scroll th){font-size:.875rem;font-weight:500;color:#53647c;background:#f4f6fd}
body:not(.auth-page) :is(.account-table td small,.pool-scroll td small,.order-device-scroll td small){font-size:.8125rem;color:#62718a}
body:not(.auth-page) :is(.team-stats strong,.pending-summary b,.amt,.card-calc-answer output,.report-profit-hero strong,.report-metric strong){font-variant-numeric:tabular-nums;font-weight:600}
body:not(.auth-page) :is(.team-stats>div,.workspace-finance-stats>div){background:white;border-color:var(--pc-border);box-shadow:none;border-radius:10px}
body:not(.auth-page) :is(.team-stats>div>strong,.workspace-finance-stats [id^=apr]){font-size:1.625rem;font-weight:600;line-height:1.35}
body:not(.auth-page) :is(.team-stats small,.workspace-finance-stats small,.workspace-finance-stats #aprPendingSplit,.workspace-finance-stats #aprDoneSplit){font-size:.8125rem;color:var(--pc-muted);font-weight:400;line-height:1.65}
body:not(.auth-page) :is(.workspace-tabs,.workspace-entry .seg){background:#edf1f7;border-color:#e1e7ef;box-shadow:none}
body:not(.auth-page) :is(.workspace-tabs [aria-selected=true],.workspace-entry .seg button.is-active){background:white;box-shadow:0 1px 4px #21324e0b}
body:not(.auth-page) :is(.workspace-disclosure,.workspace-entry-grid>div,#finance-queue){border-color:var(--pc-border);border-radius:10px;box-shadow:none}
body:not(.auth-page) .workspace-heading{padding-top:4px;margin-bottom:20px;gap:18px}
body:not(.auth-page) .workspace-heading h1{margin:0 0 6px}
body:not(.auth-page) .workspace-tabs{margin-bottom:20px}
body:not(.auth-page) .workspace-entry-grid>div{padding:20px}
body:not(.auth-page) .workspace-entry-grid>div>div:first-child{background:#f4f6fd}
body:not(.auth-page) :is(.pending-summary>div,.account-alert,.workspace-day-column .work-day-stats>div){background:#f4f6fd;border-color:#e1e7ef}
body:not(.auth-page) .workspace-day-column .work-day-stats>div>strong{font-size:1.625rem;font-weight:600}
body:not(.auth-page) .workspace-day-column .work-day-stats>div small{font-size:.8125rem;color:var(--pc-muted)}
body:not(.auth-page) .workspace-personal .workspace-heading{margin-bottom:18px}
body:not(.auth-page) .workspace-personal #my-work-status{font-size:.8125rem;color:var(--pc-muted);margin:10px 0 16px}
body:not(.auth-page) .workspace-task-column .task-text{font-size:1rem;line-height:1.8}
body:not(.auth-page) .task-feedback{background:#fff9ef;border:1px solid #f0dfbf;border-left:3px solid #bf8528;border-radius:8px;color:#38475f;padding:16px}
body:not(.auth-page) .task-feedback>b{display:block;font-size:.875rem;font-weight:600;color:#8e5d19;margin-bottom:8px}
body:not(.auth-page) .task-feedback p{font-size:1rem;font-weight:400;line-height:1.8}
body:not(.auth-page) :is(.task-state,.apr-state,.deal-state,.role-badge){font-size:.875rem;line-height:1.5;font-weight:500}
body:not(.auth-page) :is(.task-completed,.apr-state.is-approved,.deal-state.is-settled){background:#edf8f2;color:#16734d}
body:not(.auth-page) :is(.task-pending,.apr-state.is-pending,.deal-state.is-pending){background:#fff5e5;color:#8f601c}
body:not(.auth-page) :is(.task-incomplete,.apr-state.is-rejected){background:#fff0ee;color:#aa3e32}
body:not(.auth-page) .workspace-finance-stats #aprDone{color:#31445f}
body:not(.auth-page) .workspace-finance-stats #aprFundAmount{color:#31445f}
body:not(.auth-page) :is(.link-btn,.account-table button){font-size:.875rem}
body:not(.auth-page) :is(.link-btn.del,[data-apr-reject]){color:#b42318}
body:not(.auth-page) aside nav a[aria-current=page],body:not(.auth-page) aside nav a[aria-current=page] span{background-color:var(--pc-blue);color:white!important}
/* Report: one primary financial result, with compact supporting amounts. */
#net-profit-panel .account-panel-head{padding:18px 20px;align-items:center}
#net-profit-panel .account-panel-head p{font-size:.875rem;margin-top:6px}
#net-profit-panel .report-month-filter{display:flex;align-items:flex-end;gap:12px;padding:0;margin:16px 0 8px;flex-wrap:wrap}
#net-profit-panel .report-month-filter label{display:grid;gap:6px;font-size:.875rem}
#net-profit-panel .report-month-filter input{margin:0;width:190px;min-height:42px;font-size:1rem}
#net-profit-panel #net-status{font-size:.8125rem;color:var(--pc-muted);margin:8px 0 14px;line-height:1.6}
#net-profit-panel #net-status.is-error{color:#b42318}
.report-profit-hero{padding:20px 22px;margin:0 0 16px;background:#f4f7fc;border:1px solid #dbe4f1;border-radius:10px}
.report-profit-label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.9375rem;color:#3c4d69;font-weight:500}
.report-profit-hero>strong{font-size:1.75rem;line-height:1.35;display:block;color:#1e40af;margin:10px 0;font-weight:600;overflow-wrap:anywhere;letter-spacing:0}
.report-profit-hero>strong.is-negative{color:#b42318}
.report-profit-hero>p{font-size:.8125rem!important;color:#5e6c82;margin:0;line-height:1.7}
.report-state{display:inline-flex;padding:3px 9px;border-radius:5px;font-size:.8125rem;font-weight:500;white-space:nowrap;background:#e9eef6;color:#52647e}
.report-state.is-estimate{background:#fff1d8;color:#8a5b14}
.report-state.is-confirmed{background:#e8f6ee;color:#176b49}
.report-state.is-missing{background:#fff0ed;color:#a33d2e}
#net-totals.report-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e2e7ef;border-radius:9px;margin:0 0 18px;background:white;overflow:hidden}
.report-metric{padding:14px 16px;min-width:0;border-right:1px solid #e8edf4}
.report-metric:last-child{border-right:0}
.report-metric>span{font-size:.8125rem;display:block;color:#65748b;white-space:nowrap;margin-bottom:6px}
.report-metric>strong{font-size:1.125rem;font-weight:600;display:block;color:#263b59;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#net-profit-panel details{padding:12px 0;margin:0;border-top:1px solid #e8edf4;font-size:.875rem}
#net-profit-panel details>summary{font-size:.875rem;color:#435a7b;font-weight:500;cursor:pointer}
#net-profit-panel details .auth-help{font-size:.8125rem;line-height:1.8;margin-top:12px}
#net-profit-panel .net-expense-fields{margin:12px 0 0}
#net-profit-panel .net-expense-fields span{font-size:.8125rem;color:#62728a}
#net-profit-panel .net-expense-fields strong{font-size:1rem;font-variant-numeric:tabular-nums}
/* Authentication keeps its brand treatment while sharing the same readable font. */
body.auth-page .auth-card h2{font-size:1.625rem;font-weight:600}
body.auth-page .auth-card label{font-size:.9375rem}
body.auth-page .auth-card input{font-size:1rem}
body.auth-page .auth-card>p{font-size:.9375rem;color:var(--pc-muted)}
body.auth-page .auth-help,body.auth-page .auth-error{font-size:.8125rem}
body.auth-page .auth-card .eyebrow{display:none}
@media(max-width:1000px){#net-totals.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.report-metric{border-bottom:1px solid #e8edf4}.report-metric:nth-child(3n){border-right:0}.report-metric:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:760px){body:not(.auth-page) .workspace-heading{margin-bottom:16px;padding-top:0}body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:1.625rem}body:not(.auth-page) .workspace-entry-grid>div{padding:16px}#net-totals.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metric{padding:13px 14px}.report-metric:nth-child(3n){border-right:1px solid #e8edf4}.report-metric:nth-child(2n){border-right:0}.report-metric:last-child{grid-column:1/-1;border-right:0}.report-metric:nth-last-child(2){border-bottom:1px solid #e8edf4}.report-profit-hero{padding:18px}.report-profit-hero>strong{font-size:1.75rem}#net-profit-panel .report-month-filter input{width:180px}body:not(.auth-page) main :is(input:not([type=checkbox]):not([type=file]),select,textarea){font-size:1rem}.report-month-filter .primary-action{min-height:44px}}
#net-profit-panel .report-body{padding:18px 20px 20px}
#net-profit-panel .report-body .report-month-filter{margin-top:0}
@media(max-width:760px){#net-profit-panel .report-body{padding:16px}#net-profit-panel .account-panel-head{padding:16px}}
.finance-profit-overview #net-profit-panel{padding:0}
#net-totals.report-metrics:has(>.report-metric:only-child){grid-template-columns:1fr}
#net-totals.report-metrics:has(>.report-metric:only-child) .report-metric{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0}
#net-totals.report-metrics:has(>.report-metric:only-child) .report-metric>span{margin:0}
body:not(.auth-page) .task-missing{background:#fff5e5;color:#8f601c}

/* Daily financial detail shares the monthly report's typography and precision. */
#net-profit-panel .net-daily{margin:26px 0 22px;padding-top:22px;border-top:1px solid #e2e7ef}
#net-profit-panel .net-daily-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
#net-profit-panel .net-daily-heading h3{margin:0;font-size:1.125rem}
#net-profit-panel .net-daily-heading p{margin:4px 0 0}
#net-profit-panel .net-daily-heading label{display:grid;gap:6px;font-size:.875rem}
#net-profit-panel .net-daily-heading input{width:190px;min-height:44px;margin:0}
#net-profit-panel .net-day-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#net-profit-panel .net-day-card{padding:18px 20px;border:1px solid #dbe4f1;border-radius:9px;background:#f7f9fd;min-width:0}
#net-profit-panel .net-day-card>span{font-size:.875rem;color:#52647e}
#net-profit-panel .net-day-card>strong{display:block;font-size:1.75rem;font-weight:600;color:#1e40af;margin:8px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#net-profit-panel .net-day-card>p{font-size:.875rem;color:#5e6c82;margin:0;line-height:1.6}
#net-profit-panel .is-negative{color:#b42318!important}
#net-profit-panel .net-daily-scroll{max-height:460px;overflow:auto;border:1px solid #e2e7ef;border-radius:9px;margin-top:14px}
#net-profit-panel .net-daily-table{width:100%;border-collapse:collapse;font-size:.875rem;white-space:nowrap;font-variant-numeric:tabular-nums}
#net-profit-panel .net-daily-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#net-profit-panel .net-daily-table :is(th,td){padding:12px 14px;border-bottom:1px solid #e8edf4;text-align:right}
#net-profit-panel .net-daily-table th:first-child{text-align:left}
#net-profit-panel .net-daily-table thead th{position:sticky;top:0;background:#f0f4fa;color:#3c4d69;font-weight:600;z-index:1}
#net-profit-panel .net-daily-table tfoot :is(th,td){background:#f0f4fa;font-weight:600;border-bottom:0}
#net-profit-panel .net-daily-table button{padding:4px 6px;margin:-4px -6px;border:0;border-radius:4px;background:transparent;color:#1e40af;font:inherit;min-height:32px;cursor:pointer}
#net-profit-panel .net-daily-table button[aria-pressed=true]{background:#dce7ff;font-weight:600}
#net-profit-panel .net-daily-table tbody tr:has(button[aria-pressed=true]){background:#f5f8ff}
#net-profit-panel .net-day-summary:has(>.net-day-card:only-child){grid-template-columns:1fr}
@media(max-width:760px){#net-profit-panel .net-day-summary{grid-template-columns:1fr}#net-profit-panel .net-day-card{padding:16px}#net-profit-panel .net-daily-table :is(th,td){padding:12px}}

.custom-roles-panel{margin:20px 0}.custom-roles-panel .account-panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.custom-roles-panel>.auth-help{padding:0 20px}.custom-role-list{padding:0 20px 20px}.custom-role-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e2e7ef}.custom-role-item:last-child{border-bottom:0}.custom-role-item h3{margin:0;font-size:1rem}.custom-role-item p{margin:5px 0 0;font-size:.875rem;color:#5e6c82}.custom-role-item>div:last-child{display:flex;gap:10px;flex-shrink:0}.custom-role-item button{border:1px solid #dbe4f1;border-radius:7px;background:white;padding:8px 12px;font-size:.875rem;color:#1e40af}.custom-role-item button:disabled{opacity:.5;cursor:not-allowed}.account-toolbar{flex-wrap:wrap;gap:12px}.account-toolbar .account-title{margin-right:auto}@media(max-width:760px){.custom-role-item{align-items:flex-start;flex-direction:column}.custom-roles-panel .account-panel-head{padding:16px}}

.account-dialog footer>.account-delete-action{margin-right:auto;color:#b42318;background:#fff4f2;border:1px solid #f2c7c1}.account-dialog footer>button[type=submit].account-delete-action{margin-right:0;background:#b42318;color:white;border-color:#b42318}
/* Apple-inspired visual language: quiet surfaces, clear hierarchy, and focused actions. */
:root{--apple-blue:#1e40af;--apple-blue-hover:#2a52c4;--apple-ink:#1d1d1f;--apple-muted:#6e6e73;--apple-canvas:#f5f5f7;--apple-line:rgba(0,0,0,.08);--apple-card:rgba(255,255,255,.86)}
html{background:var(--apple-canvas)}
body{background:radial-gradient(1200px 560px at 76% -12%,#e5f0ff 0%,transparent 55%),var(--apple-canvas)!important;color:var(--apple-ink)!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:-.01em}
aside{width:244px!important;background:rgba(255,255,255,.72)!important;border-right:1px solid var(--apple-line);box-shadow:none!important;backdrop-filter:saturate(180%) blur(22px)}
aside>div:first-child>div:first-child{height:72px!important;padding:0 22px!important;background:transparent!important}
aside img[alt="System Logo"]{height:30px!important;width:30px!important;filter:drop-shadow(0 3px 8px rgba(30,64,175,.16))}
aside nav{padding:8px 10px!important;gap:3px!important}
aside nav a{min-height:42px;border-radius:10px!important;color:#515154!important;font-weight:520!important;transition:background .2s,color .2s,transform .2s!important}
aside nav a:hover{background:rgba(30,64,175,.08)!important;color:#1e40af!important;transform:translateX(2px)}
aside nav a[aria-current=page],aside nav a.bg-primary-container{background:linear-gradient(135deg,#2a52c4,#1c3da8)!important;color:#fff!important;box-shadow:0 6px 16px rgba(30,64,175,.22)!important}
aside .bg-surface-container{background:rgba(30,64,175,.07)!important;border:1px solid rgba(30,64,175,.1);border-radius:10px!important}
.pl-64{padding-left:244px!important}
header{left:244px!important;height:64px!important;background:rgba(255,255,255,.72)!important;border-bottom:1px solid var(--apple-line);box-shadow:none!important;backdrop-filter:saturate(180%) blur(20px)}
header .font-headline-sm{font-size:15px!important;font-weight:650!important;letter-spacing:-.015em}
header .bg-surface-container-high{background:rgba(30,64,175,.1)!important;color:#1e40af!important;border-radius:999px!important;padding:4px 8px!important}
main{background:transparent!important;padding:96px 32px 48px!important;max-width:1720px;margin:0 auto}
.demo-note{background:rgba(255,255,255,.7)!important;border:1px solid var(--apple-line)!important;border-radius:12px!important;color:var(--apple-muted)!important;padding:11px 14px!important;box-shadow:0 2px 12px rgba(0,0,0,.025)!important}
.demo-note button{color:#1e40af!important;font-weight:600}
main .bg-surface-container-lowest,.account-panel,.role-card,.workspace-disclosure,.workspace-day-column,.task-card,.performance-kpis>div,.performance-rules{background:var(--apple-card)!important;border:1px solid var(--apple-line)!important;border-radius:18px!important;box-shadow:0 3px 16px rgba(0,0,0,.035)!important}
main .bg-surface-container-lowest{padding:22px!important}
main .bg-surface-container-low{background:#f5f5f7!important;border-radius:12px!important}
main .shadow-md,main .shadow-sm{box-shadow:0 3px 16px rgba(0,0,0,.035)!important}
h1,h2,h3,.font-headline-xl,.font-headline-lg,.font-headline-md{color:var(--apple-ink)!important;letter-spacing:-.03em!important}
.font-headline-lg{font-size:28px!important;font-weight:700!important;letter-spacing:-.04em!important}
.text-outline,.paste-hint,.field-label,.dialog-body label{color:var(--apple-muted)!important}
.text-primary,.text-secondary{color:#1e40af!important}
.primary-action,button.bg-primary,.finance-wallet-link,.dialog-foot button[type=submit]{background:var(--apple-blue)!important;border:0!important;border-radius:999px!important;box-shadow:none!important;color:#fff!important;font-weight:600!important;transition:background .2s,transform .2s!important}
.primary-action:hover,button.bg-primary:hover,.finance-wallet-link:hover,.dialog-foot button[type=submit]:hover{background:var(--apple-blue-hover)!important;transform:scale(1.01)}
.ghost-btn,.workspace-secondary,.workspace-wallet,.dialog-foot button:not([type=submit]){background:rgba(255,255,255,.86)!important;border:1px solid var(--apple-line)!important;border-radius:999px!important;color:#1e40af!important;font-weight:600!important}
.seg,.workspace-tabs{background:rgba(118,118,128,.12)!important;border:0!important;border-radius:12px!important;padding:3px!important}
.seg button,.workspace-tabs [role=tab]{border-radius:9px!important;color:#515154!important}
.seg button.is-active,.workspace-tabs [aria-selected=true]{background:#fff!important;color:var(--apple-ink)!important;box-shadow:0 1px 4px rgba(0,0,0,.16)!important}
input,select,textarea,#pasteInput,.field-grid input,.field-grid select{background:rgba(255,255,255,.84)!important;border:1px solid rgba(60,60,67,.18)!important;border-radius:10px!important;color:var(--apple-ink)!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.02)}
input:focus,select:focus,textarea:focus,#pasteInput:focus,.field-grid input:focus,.field-grid select:focus{border-color:var(--apple-blue)!important;box-shadow:0 0 0 4px rgba(30,64,175,.16)!important;outline:0!important}
table thead th,.fund-row.head,.apr-row.head,.paste-row.head{background:#f5f5f7!important;color:#6e6e73!important}
table tbody tr:hover,.pending-item:hover{background:rgba(30,64,175,.035)!important}
.pending-item,.preview-wrap,.fund-wrap,.apr-wrap,.workspace-table-scroll,.order-device-scroll,.pool-scroll{border-color:var(--apple-line)!important;border-radius:12px!important}
.pending-summary>div,.workspace-day-column .work-day-stats>div{background:#f5f5f7!important;border-radius:12px!important}
.app-dialog{border:1px solid var(--apple-line)!important;border-radius:20px!important;box-shadow:0 24px 72px rgba(0,0,0,.2)!important}
.dialog-head,.dialog-foot{background:rgba(255,255,255,.92)!important;border-color:var(--apple-line)!important}
.avatar{background:linear-gradient(135deg,#dfe6fb,#e8e5ff)!important;color:#1e40af!important}
@media(max-width:1000px){aside{width:220px!important}.pl-64{padding-left:220px!important}header{left:220px!important}}
@media(max-width:760px){aside{width:256px!important}.pl-64{padding-left:0!important}header{left:0!important}main{padding:82px 16px 32px!important}main .bg-surface-container-lowest{padding:16px!important}}

/* Editorial workspace. Presentation only: retain every field, label and action. */
.department-finance-summary{margin-bottom:28px}.department-finance-summary h3{font-size:17px;margin:0 0 12px}.department-finance-summary .my-table-scroll{margin-top:16px}.department-finance-summary table{min-width:900px}.department-finance-summary th,.department-finance-summary td{white-space:nowrap}
.department-context{display:flex;align-items:center;gap:8px;margin-left:16px;font-size:13px;color:#717277;white-space:nowrap}.department-context select{max-width:180px;padding:6px 10px;min-height:34px!important;font-size:13px!important}.department-view-note{font-size:13px;color:#717277;line-height:1.8;margin-bottom:20px}.department-dialog{width:min(560px,95vw)}.department-manager{width:min(900px,95vw);max-width:900px}.department-manager article{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ededf0;padding:18px 0}.department-manager h3{font-size:16px;margin:0 0 8px}.department-manager p,.department-manager small{font-size:13px;color:#717277;line-height:1.8}.department-manager small{display:block}.department-manager article button{background:#f2f3f6;color:#1e40af;border:0;border-radius:7px;padding:8px 12px;font-size:14px;white-space:nowrap}.department-manager [data-search]{width:100%;margin:16px 0}.department-list{margin-bottom:26px}.department-dialog [data-error],.department-manager [data-error]{color:#b42318;font-size:14px}.department-context~span{min-width:0}@media(max-width:760px){.department-context{margin-left:4px}.department-context>span{display:none}.department-context select{max-width:130px}.department-manager article{align-items:flex-start;flex-wrap:wrap}header:has(.department-context) .font-headline-sm{display:none}}
body:not(.auth-page) main .overview-period-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;background:#eaeaee!important;border:1px solid #e2e2e7;border-radius:10px;max-width:100%}
body:not(.auth-page) main .overview-period-switch>button{flex:1;white-space:nowrap;min-height:36px;padding:7px 16px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#77777e!important;box-shadow:none!important;font-size:14px!important;font-weight:500!important;line-height:1.5;transition:background .15s,color .15s}
body:not(.auth-page) main .overview-period-switch>button.bg-surface-container-lowest{background:#fff!important;color:#29292e!important;box-shadow:0 1px 3px #0000000d!important}
body:not(.auth-page) main .overview-period-switch>button:hover{color:#29292e!important;background:#ffffff66!important}
body:not(.auth-page) main .overview-period-switch>button:focus-visible{outline:2px solid #1e40af!important;outline-offset:2px}
@media(max-width:760px){body:not(.auth-page) main .overview-period-switch>button{padding:7px 12px!important;font-size:13px!important}}
:root{--pc-text:#202124;--pc-muted:#717277;--pc-border:#e6e6e8;--pc-bg:#f5f5f7;--pc-blue:#1e40af;--apple-line:#e6e6e8;--apple-card:#fff;--apple-blue:#1e40af;--apple-muted:#717277}
body:not(.auth-page){background:#f5f5f7!important;letter-spacing:0;line-height:1.6}
body:not(.auth-page) main{background:transparent!important;padding:104px 40px 64px!important;max-width:1600px}
body>aside{background:#f0f0f2!important;backdrop-filter:none;border-right:1px solid #e3e3e6}
body>aside>div{background:transparent!important}
.palcard-brand{height:116px!important;padding:22px!important}
.palcard-brand img{width:108px;max-height:82px;border-radius:0}
aside nav{padding:6px 14px!important;gap:5px!important}
aside nav a{padding:10px 12px!important;min-height:42px;font-size:14px!important;transform:none!important;box-shadow:none!important}
aside nav a span:not(.material-symbols-outlined){font-size:14px!important;line-height:1.5}
aside nav a .material-symbols-outlined{font-size:20px!important;color:#85858b}
body:not(.auth-page) aside nav a[aria-current=page],aside nav a.bg-primary-container{background:#e0e0e5!important;color:#202124!important;box-shadow:none!important}
body:not(.auth-page) aside nav a[aria-current=page] span{background:transparent!important;color:#202124!important}
aside nav a:hover{background:#e8e8ec!important;color:#202124!important}
.owner-risk-nav{margin:24px 14px 12px;padding-top:22px;border-color:#dedee3}
.owner-risk-nav h2{font-size:13px;color:#77777e;padding-left:12px;font-weight:500}
.owner-risk-link{font-size:14px;color:#515157;padding:10px 12px}
header{background:rgba(245,245,247,.94)!important;backdrop-filter:blur(16px);padding:0 40px!important}
header .font-headline-sm{font-weight:500!important;color:#77777e!important;font-size:14px!important}
.avatar{background:#e8e8ed!important;color:#57575f!important}
.demo-note{border:0!important;border-bottom:1px solid #e5e5e8!important;box-shadow:none!important;border-radius:0!important;padding:0 0 16px!important;margin-bottom:28px!important;background:transparent!important;font-size:13px!important;color:#85858b!important}
.demo-note .material-symbols-outlined{font-size:17px;color:#85858b}
body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:30px!important;font-weight:650;letter-spacing:-.035em!important;line-height:1.3}
body:not(.auth-page) :is(.account-panel-head h2,.workspace-entry-grid h2,.daily-tasks-panel h2){font-size:20px!important;letter-spacing:-.025em!important;font-weight:600}
body:not(.auth-page) .account-title p,body:not(.auth-page) .workspace-heading p{font-size:14px;color:#77777e;margin-top:8px}
.account-toolbar,.workspace-heading{margin-bottom:24px!important;gap:18px!important}
body:not(.auth-page) :is(.account-panel,.workspace-disclosure,.workspace-day-column,.role-card,.performance-rules),main .bg-surface-container-lowest{border:1px solid #e7e7e9!important;border-radius:14px!important;box-shadow:0 2px 6px #00000002!important;background:#fff!important}
main .bg-surface-container-lowest{padding:26px!important}
main :is(.shadow-md,.shadow-sm){box-shadow:none!important}
body:not(.auth-page) .account-panel-head{padding:24px!important;border-bottom:1px solid #ededf0;background:transparent!important}
.account-panel-head p{color:#85858b!important;line-height:1.75!important}
body:not(.auth-page) :is(.primary-action,button.bg-primary,.finance-wallet-link,.workspace-wallet,.workspace-secondary,.ghost-btn,.dialog-foot button){border-radius:9px!important;min-height:40px;font-size:14px!important;font-weight:500!important;transform:none!important;box-shadow:none!important}
body:not(.auth-page) :is(.ghost-btn,.workspace-wallet,.workspace-secondary){background:#f5f5f7!important;border:1px solid #e5e5e8!important;color:#414146!important}
body:not(.auth-page) :is(.performance-actions,.task-toolbar,.performance-toolbar)>.primary-action{background:#ededf1!important;color:#333338!important;border:1px solid #e3e3e7!important}
body:not(.auth-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){border:1px solid #dcdce1!important;border-radius:8px!important;background:#fff!important;color:#29292e!important;box-shadow:none;min-height:40px;font-size:14px!important}
body:not(.auth-page) :is(input[type=checkbox],input[type=radio]){box-shadow:none!important;accent-color:#1e40af}
body:not(.auth-page) select{appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2377777e' stroke-width='1.5'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
.task-toolbar,.performance-toolbar{display:flex;align-items:center;gap:12px;margin:20px 0!important;flex-wrap:wrap}
.task-toolbar label,.performance-toolbar label{font-size:13px!important;color:#85858b!important;white-space:nowrap}
.task-toolbar input,.performance-toolbar input{padding:8px 12px!important}
.performance-toolbar input[type=search]{min-width:180px}
body:not(.auth-page) .daily-tasks-panel{padding:0!important;margin-bottom:40px;overflow:hidden}
.daily-tasks-panel>.task-toolbar{padding:0 24px}
.daily-tasks-panel>#tasks-status{margin:0 24px 18px!important;font-size:13px!important;color:#85858b}
/* Task rows share one surface instead of nested cards. */
body:not(.auth-page) #tasks-body{padding:0 24px!important}
body:not(.auth-page) #tasks-body>.task-card{border:0!important;border-top:1px solid #ededf0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:22px 0!important;margin:0!important}
body:not(.auth-page) #tasks-body .task-card h3{font-size:16px!important;font-weight:600;letter-spacing:0!important}
#tasks-body .task-card small{font-size:12px!important;color:#85858b!important}
#tasks-body .task-card>.account-alert{background:transparent!important;border:0!important;padding:0!important;margin:10px 0!important;color:#717177!important;font-size:14px;line-height:1.7}
#tasks-body .task-card>.task-toolbar{margin:12px 0 0!important;padding:0;gap:14px}
body:not(.auth-page) #tasks-body [data-task-action]{background:transparent!important;border:0!important;color:#1e40af!important;padding:0!important;min-height:34px;border-radius:4px!important;font-size:14px!important}
.task-state,.apr-state,.deal-state{font-size:12px!important;padding:4px 10px;border-radius:6px;font-weight:500}
.performance-kpis,.team-stats{gap:0!important;border:1px solid #e6e6e9;border-radius:14px;background:white;overflow:hidden;margin:24px 0!important}
body:not(.auth-page) :is(.performance-kpis,.team-stats)>div{border:0!important;border-right:1px solid #ededf0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;padding:22px 24px!important;min-height:110px}
body:not(.auth-page) :is(.performance-kpis,.team-stats)>div:last-child{border-right:0!important}
body:not(.auth-page) :is(.performance-kpis,.team-stats)>div>span{font-size:13px!important;color:#85858b!important}
body:not(.auth-page) :is(.performance-kpis,.team-stats)>div>strong{display:block;margin:10px 0 0!important;color:#26262b!important;font-size:27px!important;line-height:1.3;font-weight:600!important;letter-spacing:-.025em!important}
body:not(.auth-page) .account-alert{border:1px solid #e8e8ec;border-left:2px solid #b3b3bb;background:#f1f1f4;padding:14px 18px;border-radius:8px;color:#717177;font-size:13px;line-height:1.85}
.performance-table-scroll,.my-table-scroll,.workspace-table-scroll,.apr-wrap,.fund-wrap,.pool-scroll,.order-device-scroll{border:1px solid #e5e5e9!important;border-radius:12px!important;background:#fff;scrollbar-width:thin}
body:not(.auth-page) table{border-collapse:separate;border-spacing:0}
body:not(.auth-page) table :is(th,td){padding:18px 20px!important;border-bottom:1px solid #ededf0!important;font-size:14px!important;font-variant-numeric:tabular-nums}
body:not(.auth-page) table thead th{background:#fafafa!important;color:#85858b!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;letter-spacing:.01em}
body:not(.auth-page) table td{color:#414147}
body:not(.auth-page) table td b{font-weight:550;color:#29292e}
body:not(.auth-page) table td small{font-size:12px!important;color:#919198!important;line-height:1.7;margin-top:5px}
body:not(.auth-page) table tbody tr:last-child td{border-bottom:0!important}
body:not(.auth-page) table tbody tr:hover{background:#fafafb!important}
body:not(.auth-page) table .primary-action{background:#f1f4fe!important;border:0!important;color:#1e40af!important;min-height:34px!important;padding:7px 12px!important;white-space:nowrap}
.performance-table{min-width:1450px}
.performance-table th:first-child,.performance-table td:first-child{position:sticky;left:0;z-index:2;background:white;min-width:160px;border-right:1px solid #ededf0}
.performance-table th:last-child,.performance-table td:last-child{position:sticky;right:0;z-index:2;background:white;border-left:1px solid #ededf0}
.performance-table thead th:first-child,.performance-table thead th:last-child{z-index:3}
.performance-rules{margin:26px 0!important;padding:24px!important}
.performance-rules summary{font-size:16px;font-weight:550;color:#414147}
.performance-rule-grid{gap:28px 40px!important;margin-top:24px}
.performance-rule-grid>section{padding-top:20px;border-top:1px solid #ededf0}
.performance-rule-grid p,.performance-rule-grid li{font-size:14px!important;line-height:1.9;color:#77777e}
.performance-rule-grid h2{font-size:15px!important;margin:0 0 12px!important}
.workspace-tabs{background:transparent!important;border:0!important;border-bottom:1px solid #dddde3!important;border-radius:0!important;padding:0!important;gap:24px;overflow-x:auto}
.workspace-tabs [role=tab]{flex:0 0 auto!important;border-radius:0!important;padding:12px 4px!important;border-bottom:2px solid transparent;box-shadow:none!important;font-size:14px!important;font-weight:500}
.workspace-tabs [aria-selected=true]{background:transparent!important;border-bottom-color:#202124;color:#202124!important;box-shadow:none!important}
.workspace-entry-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
.workspace-entry-grid>div{padding:24px!important}
body:not(.auth-page) .workspace-entry-grid>div>div:first-child{background:transparent!important;padding:0 0 18px!important;border-bottom:1px solid #ededf0;border-radius:0!important}
.pending-list{gap:0}
.pending-item{border:0!important;border-bottom:1px solid #ededf0!important;border-radius:0!important;padding:16px 0!important}
.workspace-disclosure>summary{padding:22px 24px!important;font-size:16px;font-weight:550}
body.sidebar-collapsed>.pl-64{padding-left:0!important}
body.sidebar-collapsed header{left:0!important}
@media(min-width:1100px){body[data-page=staff] #tasks-body>.task-card{display:grid;grid-template-columns:240px minmax(0,1fr) auto;gap:8px 24px;align-items:center}body[data-page=staff] .task-card-head{align-items:flex-start;gap:10px;flex-wrap:wrap}body[data-page=staff] #tasks-body>.task-card>.task-toolbar{margin:0!important}body[data-page=staff] #tasks-body>.task-card>:is(.task-text,.task-images,.task-feedback,small){grid-column:2}body[data-page=staff] #tasks-body>.task-card>.task-toolbar{grid-column:3;grid-row:1}body[data-page=staff] #tasks-body>.task-card>.account-alert{margin:0!important}}
@media(max-width:1100px){.workspace-entry-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){body:not(.auth-page) main{padding:88px 20px 40px!important}header{padding:0 20px!important}header .font-headline-sm{font-size:12px!important}.daily-tasks-panel .account-panel-head{padding:20px!important}.daily-tasks-panel>.task-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:0 20px}.daily-tasks-panel>.task-toolbar input{width:100%;min-width:0}.daily-tasks-panel>.task-toolbar select{grid-column:2/-1;width:100%}.daily-tasks-panel>#tasks-status{margin:0 20px 14px!important;font-size:12px!important}body:not(.auth-page) #tasks-body{padding:0 20px!important}.performance-toolbar{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px}.performance-toolbar input{min-width:0!important;width:100%}.performance-toolbar button{grid-column:2}.performance-actions{gap:8px}.performance-actions button{font-size:13px!important;padding:8px 12px!important}.performance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-kpis>div:nth-child(-n+2),.team-stats>div{border-bottom:1px solid #ededf0!important}body:not(.auth-page) :is(.performance-kpis,.team-stats)>div{padding:18px!important;min-height:102px}body:not(.auth-page) :is(.performance-kpis,.team-stats)>div>strong{font-size:23px!important}.performance-table td:first-child,.performance-table th:first-child{min-width:125px}.performance-table td:last-child,.performance-table th:last-child{position:static}.performance-rules{padding:20px!important}.performance-rule-grid{grid-template-columns:1fr!important;gap:20px!important}body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:26px!important}.workspace-tabs{gap:18px}.workspace-disclosure>summary{padding:18px 20px!important}.workspace-entry-grid>div{padding:20px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Department reports share the quiet, neutral card system. */
.department-profit-grid,.net-day-summary:has(.department-profit-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
.department-profit-card{padding:28px;border:1px solid #e5e5ea;border-radius:20px;background:#fafafa;min-width:0}
.department-profit-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.department-profit-heading h3{font-size:20px;margin:0;font-weight:600;color:#1d1d1f}
.department-profit-label{color:#6e6e73;margin:24px 0 8px;font-size:14px}
.department-profit-value{font-size:40px;letter-spacing:-1.4px;color:#1d1d1f;font-weight:600;font-variant-numeric:tabular-nums}
.department-profit-card dl{display:grid;grid-template-columns:1fr 1fr;gap:20px 12px;margin:24px 0;padding-top:24px;border-top:1px solid #e5e5ea}
.department-profit-card dt{font-size:14px;color:#6e6e73;margin-bottom:6px}
.department-profit-card dd{margin:0;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
main>.department-context{justify-content:flex-end;margin:0 0 20px}
.approval-operation{display:block;font-size:14px;color:#515154;line-height:1.6;margin-top:6px}
@media(max-width:760px){.department-profit-grid,.net-day-summary:has(.department-profit-card){grid-template-columns:1fr;gap:16px}.department-profit-card{padding:22px}.department-profit-value{font-size:34px}}
/* One system typeface for Chinese, Latin text, forms and business figures. */
body :is(p,span,b,strong,small,label,button,input,textarea,select,output,summary,th,td,dt,dd,h1,h2,h3,h4,a,li,legend):not(.material-symbols-outlined){font-family:var(--pc-font)!important;font-synthesis:none}
body :is(h1,h2,h3,h4,[class*="font-headline"],.dialog-head,.account-title,.brand-lockup){letter-spacing:0!important}
body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:28px!important;font-weight:600!important;line-height:1.4!important}
body:not(.auth-page) main h2{font-size:20px!important;font-weight:600!important;line-height:1.5!important}
body:not(.auth-page) main h3{font-size:17px;font-weight:600!important;line-height:1.5!important}
body :is(button,input,select,textarea){line-height:1.5;letter-spacing:0!important}
body :is(.font-bold,.font-extrabold){font-weight:600!important}
body #pasteInput,body .paste-textarea{font-family:var(--pc-font)!important;font-size:15px!important;line-height:1.8!important;letter-spacing:0!important}
body :is(.amt,[class*="font-data"],.report-metric strong,.department-profit-value,.pool-stats strong){font-variant-numeric:tabular-nums;letter-spacing:0!important}
body:not(.auth-page) :is(main label,.field-label,.task-toolbar label,.performance-toolbar label){font-size:14px!important;font-weight:500!important;color:#515154!important}
body:not(.auth-page) :is(.auth-help,.account-panel-head p,.workspace-heading p,.account-title p,.risk-event p,.risk-controls label,.approval-operation){font-size:14px!important;line-height:1.75!important;color:#6e6e73!important}
body:not(.auth-page) :is(table thead th,.apr-row.head,.fund-row.head,.paste-row.head){font-size:14px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:0!important}
body:not(.auth-page) :is(table td small,#tasks-body .task-card small,.department-manager small,.department-manager p,.department-view-note,.task-state,.apr-state,.deal-state,.report-state){font-size:13px!important;line-height:1.6!important}
body:not(.auth-page) :is(.text-data-mono-sm,.text-label-caps,.text-body-xs,.text-label-xs,header button:last-child){font-size:13px!important;line-height:1.6!important}
body:not(.auth-page) :is(.risk-event-head,.dialog-head){font-size:17px!important;font-weight:600!important;line-height:1.5!important}
body:not(.auth-page) :is(.workspace-heading h1,.account-title h1,.account-panel-head h2,.workspace-entry-grid h2,.daily-tasks-panel h2,aside h2,header .font-headline-sm){letter-spacing:0!important}
body:not(.auth-page) :is(table td small,#tasks-body .task-card small,.department-manager small){color:#6e6e73!important}
body.auth-page .auth-card h2{font-size:28px!important;font-weight:600!important;line-height:1.4!important}
body.auth-page .auth-help{font-size:14px!important;line-height:1.7!important}
@media(max-width:760px){body:not(.auth-page) :is(.workspace-heading h1,.account-title h1){font-size:25px!important}body:not(.auth-page) main h2{font-size:19px!important}.department-profit-value{font-size:32px}}
/* KPI labels must fit as words; grow cards before squeezing Chinese text. */
body:not(.auth-page) .team-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
body:not(.auth-page) .team-stats>div{min-width:0!important;padding:22px!important}
body:not(.auth-page) .team-stats>div>span:first-child{display:block;font-size:14px!important;line-height:1.6!important;white-space:nowrap;word-break:keep-all;overflow:visible}
body:not(.auth-page) .team-stats>div>strong{font-size:clamp(22px,2vw,28px)!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.currency-context{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 20px;font-size:14px;color:#6e6e73}
.currency-context select{min-width:175px;padding:8px 36px 8px 12px}
.currency-context~.department-context{margin-top:-8px}
.card-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){body:not(.auth-page) .team-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body:not(.auth-page) .team-stats>div{padding:18px 14px!important}body:not(.auth-page) .team-stats>div>span:first-child{font-size:13px!important}.currency-context{flex-wrap:wrap;justify-content:flex-start}.currency-context select{flex:1;min-width:160px}.card-calc-fields{grid-template-columns:1fr}}
@media(max-width:370px){body:not(.auth-page) .team-stats{grid-template-columns:1fr!important}}
.business-view-controls{display:flex;justify-content:flex-end;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.business-view-controls :is(.department-context,.currency-context){margin:0!important}
body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child)>div:nth-child(-n+3){border-bottom:1px solid #ededf0!important}
@media(min-width:1600px){body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child)>div{border-bottom:0!important}}
@media(max-width:760px){.business-view-controls{gap:12px;justify-content:space-between}.business-view-controls .currency-context{flex:1;min-width:220px}.business-view-controls .department-context{margin-left:auto!important}body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:370px){body:not(.auth-page) .team-stats:has(>div:nth-child(6):last-child){grid-template-columns:1fr!important}}
.module-currency-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 22px;padding:14px 0;border-bottom:1px solid #e5e5ea}
.module-currency-tabs>span{font-size:14px;color:#6e6e73;margin-right:10px}
.module-currency-tabs button{padding:8px 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:#6e6e73;font-size:14px;line-height:1.5}
.module-currency-tabs button[aria-pressed=true]{background:#fff;border-color:#dcdce1;color:#1d1d1f;font-weight:600;box-shadow:0 1px 3px #00000008}
.module-currency-tabs button:focus-visible{outline:2px solid #1e40af;outline-offset:2px}
#card-entry-panel>.module-currency-tabs{margin:0 24px;padding:18px 0}
.card-calculator>.module-currency-tabs{margin:0 24px}
.currency-business-section{margin-bottom:28px}
.pool-permission-fields{margin-top:20px;padding:18px;border:1px solid #e5e5ea;border-radius:10px}
.pool-permission-fields legend{padding:0 8px;font-size:16px;font-weight:600}
@media(max-width:760px){.module-currency-tabs{gap:4px}.module-currency-tabs>span{width:100%;margin-bottom:4px}.module-currency-tabs button{flex:1;text-align:center}#card-entry-panel>.module-currency-tabs,.card-calculator>.module-currency-tabs{margin:0 18px}}
.treasury-panel{overflow:hidden;margin-bottom:24px}
.treasury-body{padding:24px}
.treasury-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:22px 0}
.treasury-totals>article{padding:20px;border:1px solid #e5e5ea;border-radius:12px;background:#fafafa;min-width:0}
.treasury-totals span,.treasury-totals p{font-size:14px;color:#6e6e73;line-height:1.6}
.treasury-totals strong{display:block;font-size:26px;font-weight:600;line-height:1.4;margin:10px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.treasury-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px;margin:24px 0}
.treasury-account{padding:24px;border:1px solid #e5e5ea;border-radius:14px;background:#fff;min-width:0}
.treasury-account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.treasury-account h3{margin:0 0 6px!important;font-size:18px!important;overflow-wrap:anywhere}
.treasury-account-head p,.treasury-account-note{font-size:14px;color:#6e6e73;line-height:1.7;overflow-wrap:anywhere}
.treasury-account-value{display:block;font-size:28px;font-weight:600;line-height:1.4;margin:24px 0 14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.treasury-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.treasury-actions :is(button,a){padding:8px 12px;font-size:14px;line-height:1.5;border:1px solid #e5e5ea;border-radius:8px;background:#f5f5f7;color:#1e40af;text-decoration:none}
.treasury-account>.treasury-actions{margin-top:22px;padding-top:18px;border-top:1px solid #ededf0}
.treasury-archive,.treasury-history{margin-top:24px;padding-top:20px;border-top:1px solid #e5e5ea}
.treasury-archive>summary,.treasury-history>summary{font-size:16px;font-weight:500;cursor:pointer}
.treasury-history .my-table-scroll{margin-top:18px}.treasury-history table{min-width:940px}
.treasury-dialog{width:min(580px,95vw)}.treasury-dialog input{width:100%;margin-bottom:14px}.treasury-dialog label{display:block;margin:14px 0 8px}.treasury-dialog [data-error]{color:#b42318;font-size:14px}
@media(max-width:760px){.treasury-body{padding:18px}.treasury-account{padding:20px}.treasury-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.treasury-totals>article{padding:16px}.treasury-totals strong{font-size:21px}.treasury-account-value{font-size:26px}.treasury-panel .account-panel-head{align-items:flex-start!important}}

/* Keep navigation labels consistent, including utility links and the risk section. */
body:not(.auth-page) aside :is(nav a,.owner-risk-nav a),body:not(.auth-page) aside :is(nav a,.owner-risk-nav a) :is(span,b,strong):not(.material-symbols-outlined){font-family:var(--pc-font)!important;font-size:14px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0!important}
body:not(.auth-page) aside :is(nav a,.owner-risk-nav a)[aria-current=page],body:not(.auth-page) aside :is(nav a,.owner-risk-nav a)[aria-current=page] :is(span,b,strong):not(.material-symbols-outlined){font-weight:500!important}
body:not(.auth-page) aside .owner-risk-nav h2{font-size:14px!important;font-weight:500!important;letter-spacing:0!important}
.module-currency-tabs button{display:inline-flex;align-items:center;gap:8px}
.module-currency-tabs .currency-pending-count{display:inline-flex;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e53935!important;color:white!important;font-size:12px!important;line-height:20px!important;font-weight:600!important;font-variant-numeric:tabular-nums}
.module-currency-tabs .currency-pending-count[hidden]{display:none!important}
.order-consistency-panel{padding:24px;margin:0 0 24px;background:#fff;border:1px solid #e5e5ea;border-radius:18px;font-size:14px}
.order-consistency-panel[hidden]{display:none}.order-check-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.order-check-heading h2{margin:0}.order-check-heading span{color:#9b4c00}.order-consistency-panel>p{color:#6e6e73;line-height:1.7;margin:12px 0 16px}.order-check-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #eee}.order-check-row small{display:block;font-size:13px;color:#6e6e73;line-height:1.7}.order-check-row p{margin:8px 0;line-height:1.6}.order-check-row button{flex-shrink:0;color:#06c;padding:8px 12px;border-radius:8px;background:#f5f5f7}.order-check-row>span{font-size:13px;color:#6e6e73}.order-consistency-panel summary{cursor:pointer;padding:12px 0;color:#06c}
.order-check-dialog{max-width:560px;width:calc(100% - 32px);max-height:90vh;border:0;border-radius:20px;padding:28px;box-shadow:0 24px 80px #0003}.order-check-dialog::backdrop{background:#0005}.order-check-dialog h2{font-size:22px;font-weight:600}.order-check-dialog label,.order-check-inputs label{display:block;font-size:14px;margin:14px 0 0}.order-check-dialog :is(input,textarea),.order-check-inputs input{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #d2d2d7;border-radius:10px;background:#fff;font-size:16px}.order-check-dialog output{display:block;margin:16px 0;color:#515154;font-size:14px;line-height:1.7}.order-check-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.order-check-actions button{padding:10px 16px;border-radius:10px;background:#f5f5f7}.order-check-actions [type=submit]{background:#1e40af;color:#fff}.order-check-error{color:#b42318;font-size:14px}.order-check-inputs{grid-column:1/-1}.order-check-inputs small{display:block;color:#6e6e73;margin-top:10px;font-size:13px}
@media(max-width:760px){.order-consistency-panel{padding:18px}.order-check-row,.order-check-heading{align-items:flex-start;flex-direction:column;gap:10px}}

body:not(.auth-page) aside .owner-risk-nav button,body:not(.auth-page) aside .owner-risk-nav button>span:not(.material-symbols-outlined){font-size:14px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0!important}
.treasury-market{padding:20px 22px;margin:0 0 24px;border:1px solid #e5e5ea;border-radius:14px;background:#f5f5f7;font-size:14px;line-height:1.7}.treasury-market-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.treasury-market-head b{font-weight:500}.treasury-market-head span{color:#6e6e73;font-size:13px}.treasury-market>strong{display:block;font-size:25px;font-weight:600;line-height:1.5;margin:10px 0;color:#1d1d1f;font-variant-numeric:tabular-nums}.treasury-market p{margin:6px 0;color:#6e6e73;font-size:14px}.treasury-market summary{cursor:pointer;color:#06c}.treasury-market a{color:#06c}.treasury-account .treasury-estimate,.treasury-totals .treasury-estimate{font-size:15px;color:#515154;line-height:1.6;font-variant-numeric:tabular-nums;margin-top:10px}.treasury-dialog .treasury-market{margin:16px 0;padding:16px}.treasury-dialog .treasury-market>strong{font-size:21px}
.attendance-export{margin-top:24px;padding-top:20px;border-top:1px solid #e5e5ea}.attendance-export[hidden]{display:none}.attendance-export h3{margin:0 0 10px;font-size:17px;font-weight:600}.attendance-admin-dialog .attendance-export form{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:center;margin-top:16px}.attendance-export form label{margin:0}.attendance-export form input{width:100%;min-width:0}.attendance-export form button{grid-column:2;justify-self:start}.attendance-export [role=status]{font-size:14px;line-height:1.7;margin-top:12px}
.management-panel,.trend-panel{margin-bottom:24px}.management-actions{display:flex;gap:10px;flex-wrap:wrap}.management-actions button,.catalog-manage-button,.catalog-list button{padding:8px 12px;background:#f5f5f7;border-radius:9px;font-size:14px;color:#06c}.management-task-list{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}.management-task{padding:22px;border:1px solid #e5e5ea;border-radius:16px;min-width:0}.management-task-head{display:flex;justify-content:space-between;gap:16px;align-items:baseline}.management-task h3{margin:0}.management-task p{font-size:14px;line-height:1.75;margin:10px 0;white-space:pre-wrap}.management-task progress{width:100%;height:10px;accent-color:#1e40af;appearance:auto}.management-task summary{cursor:pointer;color:#06c;margin:16px 0}.management-task ul{list-style:disc;padding-left:20px;font-size:14px;line-height:1.8}.management-check{display:flex!important;align-items:center;gap:10px}.management-check input{width:auto!important}.management-dialog fieldset{padding:12px;border:1px solid #e5e5ea;border-radius:10px;margin-top:14px}.management-dialog textarea{min-height:100px}.management-history{padding:14px 0;border-bottom:1px solid #eee;font-size:14px;line-height:1.8}.management-history p{white-space:pre-wrap}.ai-analysis-text{white-space:pre-wrap;font-size:15px;line-height:1.9}.catalog-manage-button{align-self:flex-end;float:right;margin-bottom:12px}.catalog-list>div{display:flex;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.catalog-list span{flex:1;overflow-wrap:anywhere}.trend-controls{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:20px 0}.trend-controls label{display:grid;gap:6px;font-size:14px}.trend-controls :is(input,select){padding:10px;border:1px solid #d2d2d7;border-radius:9px;background:white;font-size:14px}.trend-controls button{padding:10px 16px}.trend-chart{width:100%;min-width:650px;height:auto}.trend-chart text{font-family:var(--pc-font);font-size:12px;fill:#6e6e73}.trend-panel [data-chart]{overflow:auto;margin:24px 0}.trend-legend{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:20px;font-size:14px}.trend-legend i{display:inline-block;width:20px;height:3px;margin-right:8px;vertical-align:middle}.trend-diagnosis{margin-top:24px;line-height:1.8;font-size:14px}.trend-diagnosis summary{cursor:pointer;font-size:16px;font-weight:500}.trend-diagnosis p{margin:12px 0}.management-panel .account-panel-head,.trend-panel .account-panel-head{gap:16px;flex-wrap:wrap}
.management-task progress{appearance:none;-webkit-appearance:none;display:block;border:0;border-radius:999px;overflow:hidden;background:#e5e5ea;height:8px}.management-task progress::-webkit-progress-bar{background:#e5e5ea;border-radius:999px}.management-task progress::-webkit-progress-value{background:#1e40af;border-radius:999px}.management-task progress::-moz-progress-bar{background:#1e40af;border-radius:999px}.management-task-list{padding:0 24px 24px}.trend-panel>.trend-controls,.trend-panel>[data-status],.trend-panel>[data-chart],.trend-panel>.trend-legend,.trend-panel>.my-table-scroll,.trend-panel>.trend-diagnosis{margin-left:24px;margin-right:24px}.trend-panel>.trend-diagnosis{margin-bottom:24px}
.share-overview{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:32px;align-items:start;padding:8px 0}.share-donut-wrap{position:sticky;top:90px;text-align:center}.share-donut{display:block;width:100%;max-width:380px;margin:0 auto;overflow:visible}.share-slice{transition:opacity .2s}.share-ring-label{font-family:var(--pc-font);font-size:12px;font-weight:600;fill:white;pointer-events:none}.share-center-label{font-family:var(--pc-font);font-size:13px;fill:#6e6e73}.share-center-value{font-family:var(--pc-font);font-size:28px;font-weight:600;fill:#1d1d1f;font-variant-numeric:tabular-nums}.share-footnote{font-size:13px!important;color:#6e6e73;line-height:1.7;margin:12px 0}.share-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.share-list-head h3{margin:0}.share-list-head button{color:#06c;font-size:14px}.share-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;text-align:left;padding:17px 12px;border-bottom:1px solid #e5e5ea;border-radius:10px;background:transparent}.share-row:hover,.share-row.is-focused{background:#f5f5f7}.share-kind{display:flex;align-items:center;gap:9px;min-width:0;font-size:15px}.share-kind b{font-weight:500;overflow-wrap:anywhere}.share-kind i{width:9px;height:9px;flex:0 0 9px;border-radius:50%}.share-value{text-align:right;font-size:13px;color:#6e6e73;font-variant-numeric:tabular-nums}.share-value strong{display:block;font-size:22px;font-weight:600;color:#1d1d1f}.share-change{font-size:14px;color:#6e6e73}.share-change.is-down{color:#b42318}.share-change.is-up{color:#21855b}.share-previous{grid-column:1/-1;font-size:13px;color:#6e6e73}.share-change-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.share-change-summary article{border:1px solid #e5e5ea;border-radius:14px;padding:20px}.share-change-summary h3{margin:0 0 12px}.share-change-summary p{display:flex;justify-content:space-between;gap:14px;font-size:14px;line-height:1.7;margin:9px 0}.share-change-summary b{font-weight:500;white-space:nowrap}.share-change-summary article:first-child b{color:#b42318}.share-change-summary article:last-child b{color:#21855b}.share-empty-ring{display:flex;flex-direction:column;justify-content:center;gap:10px;width:270px;height:270px;border:36px solid #eeeef1;border-radius:50%;margin:20px auto;color:#6e6e73}.share-empty-ring b{font-size:16px;font-weight:500}.share-empty-ring span{font-size:13px}@media(max-width:1100px){.share-overview{grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:16px}}@media(max-width:760px){.share-overview{grid-template-columns:1fr;gap:18px}.share-donut-wrap{position:static}.share-donut{max-width:340px}.share-change-summary{grid-template-columns:1fr}.share-row{padding:16px 6px}}

/* Keep catalog creation visible outside the scrolling list. */
.catalog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.catalog-actions button{white-space:nowrap}.catalog-add-button{background:#1e40af!important;color:#fff!important;border:1px solid #1e40af!important;border-radius:10px;padding:10px 18px;font-size:14px;font-weight:500;line-height:1.4}.catalog-add-button:hover{background:#2a52c4!important}.catalog-add-button:focus-visible{outline:3px solid #a5b4f5;outline-offset:2px}.management-dialog .dialog-head{gap:12px}.management-dialog .dialog-head>span{flex:1;min-width:0}.management-dialog .dialog-head .catalog-add-button{flex:none}.management-dialog .dialog-head [data-close]{flex:none}

/* ===== 表格与滚动布局统一优化 ===== */
/* 1) 常显横向滚动条：macOS 默认隐藏滚动条，是「右侧还有列却看不见」的根因 */
:is(.overflow-x-auto,.workspace-table-scroll,.performance-table-scroll,.order-device-scroll,.pool-scroll,.fund-wrap,.apr-wrap,.my-table-scroll,.preview-wrap){scrollbar-width:thin;scrollbar-color:#c2cbdb transparent;overscroll-behavior-x:contain}
:is(.overflow-x-auto,.workspace-table-scroll,.performance-table-scroll,.order-device-scroll,.pool-scroll,.fund-wrap,.apr-wrap,.my-table-scroll,.preview-wrap)::-webkit-scrollbar{height:9px;width:9px}
:is(.overflow-x-auto,.workspace-table-scroll,.performance-table-scroll,.order-device-scroll,.pool-scroll,.fund-wrap,.apr-wrap,.my-table-scroll,.preview-wrap)::-webkit-scrollbar-thumb{background:#c2cbdb;border-radius:99px;border:2px solid transparent;background-clip:content-box}
:is(.overflow-x-auto,.workspace-table-scroll,.performance-table-scroll,.order-device-scroll,.pool-scroll,.fund-wrap,.apr-wrap,.my-table-scroll,.preview-wrap)::-webkit-scrollbar-thumb:hover{background:#a7b3c9;background-clip:content-box}
:is(.overflow-x-auto,.workspace-table-scroll,.performance-table-scroll,.order-device-scroll,.pool-scroll,.fund-wrap,.apr-wrap,.my-table-scroll,.preview-wrap)::-webkit-scrollbar-track{background:transparent}

/* 2) 卡单流水台账
   - 「时间」并入「单号」单元格第二行（.workspace-cell-meta），原时间列保留在 DOM 里但不再占位
   - 操作列不再吸附压盖左邻列：宁可横向滚动，也不让「状态」被白底吃掉 */
#customerLedgerTable.workspace-deal-table{min-width:0}
#customerLedgerTable.workspace-deal-table td,#customerLedgerTable.workspace-deal-table th{padding:10px 10px}
#customerLedgerTable.workspace-deal-table td:nth-child(2),#customerLedgerTable.workspace-deal-table th:nth-child(2){display:none!important}
#customerLedgerTable.workspace-deal-table td:nth-child(1),#customerLedgerTable.workspace-deal-table th:nth-child(1){max-width:158px}
#customerLedgerTable.workspace-deal-table td:nth-child(4),#customerLedgerTable.workspace-deal-table th:nth-child(4){max-width:92px}
#customerLedgerTable.workspace-deal-table td:nth-child(15),#customerLedgerTable.workspace-deal-table th:nth-child(15){max-width:124px}
#customerLedgerTable.workspace-deal-table td:nth-child(16),#customerLedgerTable.workspace-deal-table th:nth-child(16){max-width:126px}
#customerLedgerTable.workspace-deal-table td:nth-child(18),#customerLedgerTable.workspace-deal-table th:nth-child(18){max-width:86px}
@media(min-width:1025px){
 #customerLedgerTable.workspace-deal-table td,
 #customerLedgerTable.workspace-deal-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
#customerLedgerTable.workspace-deal-table td:last-child,
#customerLedgerTable.workspace-deal-table th:last-child{position:static;box-shadow:none;max-width:none;min-width:150px!important;background:transparent;white-space:nowrap;overflow:visible}
#customerLedgerTable.workspace-deal-table td:last-child{background:transparent}
#customerLedgerTable.workspace-deal-table td:nth-child(18){overflow:visible;text-overflow:clip}
#customerLedgerTable.workspace-deal-table td:nth-child(16){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
#customerLedgerTable.workspace-deal-table button{padding:4px 5px}
#customerLedgerTable.workspace-deal-table .link-btn+.link-btn{margin-left:4px}

/* 3) 员工绩效表：密度收紧（11 列），操作列同样不吸附压盖 */
.performance-table{min-width:0}
.performance-table th,.performance-table td{padding:10px 8px;font-size:13px}
.performance-table td:nth-child(2),.performance-table th:nth-child(2){max-width:126px}
.performance-table td:nth-child(4),.performance-table th:nth-child(4){max-width:110px}
.performance-table td:nth-child(10),.performance-table th:nth-child(10){max-width:112px}
.performance-table th:nth-child(3),.performance-table th:nth-child(6),.performance-table th:nth-child(7),.performance-table th:nth-child(8),.performance-table th:nth-child(9),.performance-table td:nth-child(3),.performance-table td:nth-child(6),.performance-table td:nth-child(7),.performance-table td:nth-child(8),.performance-table td:nth-child(9){max-width:82px}
.performance-table td:nth-child(1),.performance-table th:nth-child(1){max-width:108px}
.performance-table td:nth-child(1){white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.performance-table th{font-size:12px}
.performance-table small{max-width:124px;font-size:11.5px;line-height:1.55}
.performance-table td:nth-child(1),.performance-table th:nth-child(1){max-width:140px}
.performance-table td:nth-child(2),.performance-table th:nth-child(2){max-width:150px}
.performance-table td:nth-child(4),.performance-table th:nth-child(4){max-width:130px}
.performance-table td:nth-child(10),.performance-table th:nth-child(10){max-width:130px}
.performance-table th:last-child,.performance-table td:last-child{position:static;box-shadow:none;min-width:112px;border-left:0}

/* 6) 员工绩效表最终密度（11 列压到 1440 单屏，操作列不用横向滚动） */
.performance-table th,.performance-table td{padding:10px 8px;font-size:13px}
.performance-table th{font-size:12px}
.performance-table small{max-width:124px;font-size:11.5px;line-height:1.5}
.performance-table td:nth-child(1),.performance-table th:nth-child(1){max-width:104px}
.performance-table td:nth-child(1){white-space:normal;overflow-wrap:anywhere}
.performance-table td:nth-child(2),.performance-table th:nth-child(2){max-width:118px}
.performance-table td:nth-child(4),.performance-table th:nth-child(4){max-width:108px}
.performance-table td:nth-child(10),.performance-table th:nth-child(10){max-width:110px}
.performance-table td:nth-child(3),.performance-table th:nth-child(3),.performance-table td:nth-child(6),.performance-table th:nth-child(6),.performance-table td:nth-child(7),.performance-table th:nth-child(7),.performance-table td:nth-child(8),.performance-table th:nth-child(8),.performance-table td:nth-child(9),.performance-table th:nth-child(9){max-width:80px}

/* 7) 平板宽度下的台账卡片：压紧间距，避免一屏只放得下两张卡 */
@media(max-width:1024px){
 #customerLedgerTable.workspace-deal-table tbody{gap:10px;padding:10px}
 #customerLedgerTable.workspace-deal-table td{padding:8px 10px}
 #customerLedgerTable.workspace-deal-table td:before{margin-bottom:2px;font-size:11px}
 #customerLedgerTable.workspace-deal-table td:first-child{padding:9px 10px}
 #customerLedgerTable.workspace-deal-table td:last-child{border-top:0;padding-top:0}
 #customerLedgerTable.workspace-deal-table td:last-child button{min-height:34px;font-size:13px}
}

/* 8) 出卡对象渠道目录：录单页的维护入口与弹窗列表排版（与卡种管理共用一套样式） */
.buyer-catalog-actions{gap:8px}
.buyer-catalog-actions .buyer-manage-button{padding:10px 18px;font-size:14px;border-radius:10px;background:#f5f5f7;color:#06c;border:1px solid #e5e5ea;white-space:nowrap}
.buyer-catalog-actions .buyer-manage-button:hover{background:#ececf0}
.management-dialog .catalog-list{display:grid;gap:0;margin-top:4px}
.management-dialog .catalog-list>div{display:flex;align-items:center;gap:8px;padding:9px 2px;border-bottom:1px solid #f0f0f2;font-size:14px}
.management-dialog .catalog-list>div:last-child{border-bottom:0}
.management-dialog .catalog-list>div>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.management-dialog .catalog-list .buyer-usage{display:inline;margin-left:8px;color:#86868b;font-size:12px;font-variant-numeric:tabular-nums}

/* Receivables: separate debtor overview, immutable bill composition, and cash receipts. */
.ar-panel{margin-top:20px}.ar-filters{display:flex;gap:18px;flex-wrap:wrap;align-items:end;padding:20px 0}.ar-filters label{display:grid;gap:8px;min-width:180px}.ar-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 28px}.ar-summary article{border:1px solid #e5e5ea;border-radius:14px;padding:20px;background:#fafafa}.ar-summary span{display:block;color:#6e6e73;font-size:14px}.ar-summary strong{display:block;font-size:26px;font-weight:600;margin-top:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ar-detail-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:34px 0 16px}.ar-detail-heading h3{font-size:24px;margin:0 0 8px}.ar-detail-heading p,.ar-reconcile{font-size:14px;color:#6e6e73;line-height:1.8}.ar-panel h4{font-size:17px;margin:28px 0 12px}.ar-panel td{vertical-align:top;font-variant-numeric:tabular-nums}.ar-panel td small{display:block;font-size:13px;color:#6e6e73;line-height:1.7;margin-top:5px}.ar-panel .my-table-scroll{overflow:auto}.ar-panel table{min-width:780px}.ar-panel td button{white-space:nowrap;color:#06c;font-size:14px;padding:6px}.ar-history{padding:16px 0;border-bottom:1px solid #e5e5ea;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.ar-history b,.ar-history span{display:block}.ar-history span{color:#6e6e73}.ar-empty{padding:32px 0;text-align:center;color:#6e6e73}.ar-check-list label{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-bottom:1px solid #e5e5ea}.ar-check-list input[type=checkbox]{width:18px;height:18px;margin-top:3px;flex:none}.ar-check-list small{display:block;color:#6e6e73;line-height:1.7}.ar-panel details{margin-top:28px}.ar-panel summary{font-size:17px;font-weight:500;padding:12px 0;cursor:pointer}.ar-date-filter{display:inline-grid;gap:8px;margin:10px 16px 16px 0}.ar-panel [data-status]{font-size:14px;line-height:1.8;color:#6e6e73}.ar-panel [data-detail] button:focus-visible{outline:2px solid #1e40af;outline-offset:2px}
#customerLedgerTable.workspace-deal-table td:nth-child(13),#customerLedgerTable.workspace-deal-table th:nth-child(13){display:table-cell!important;max-width:150px;white-space:normal;overflow-wrap:anywhere}
#customerLedgerTable.workspace-deal-table td:last-child{min-width:150px;white-space:normal}
@media(max-width:900px){.ar-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ar-detail-heading{align-items:flex-start;flex-direction:column}.ar-summary article{padding:16px}.ar-summary strong{font-size:23px}}@media(max-width:480px){.ar-filters label{width:100%}.ar-summary{gap:10px}}
.ar-fund-assets{border:1px solid #d2d2d7;border-radius:16px;padding:24px;margin:24px 0;background:#fafafa}.ar-fund-assets h3{font-size:18px;font-weight:600;margin:0 0 10px}.ar-fund-assets>strong{font-size:30px;font-weight:600;display:block;margin:18px 0;font-variant-numeric:tabular-nums}.ar-fund-assets p{font-size:14px;line-height:1.8;color:#6e6e73}.ar-fund-assets a{color:#06c}.ar-confirm{display:flex;gap:12px;align-items:center}.ar-confirm input[type=checkbox]{width:18px;height:18px;flex:none}

.payment-fee-form{border:1px solid #d2d2d7;border-radius:12px;padding:18px;margin:20px 0;display:grid;gap:12px}.payment-fee-form legend{font-size:16px;font-weight:600;padding:0 6px}.payment-fee-form p{font-size:14px;color:#6e6e73;line-height:1.7;margin:0}.payment-fee-form label{display:grid;gap:7px}.payment-fees-panel{margin:20px 0}.fee-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;padding:22px}.fee-controls label{display:grid;gap:8px;min-width:170px}.payment-fees-panel [data-status],.payment-fees-panel>.auth-help{margin:12px 22px;font-size:14px;line-height:1.8;color:#6e6e73}.fee-totals{display:flex;gap:14px;flex-wrap:wrap;margin:20px 22px}.fee-totals article{padding:18px;border:1px solid #e5e5ea;border-radius:14px;min-width:180px;flex:1;background:#fafafa}.fee-totals span{font-size:14px;color:#6e6e73;display:block}.fee-totals strong{font-size:23px;font-weight:600;margin-top:12px;display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.payment-fees-panel table{min-width:850px}.payment-fees-panel td{vertical-align:top;font-variant-numeric:tabular-nums}.payment-fees-panel td small{display:block;color:#6e6e73;font-size:13px;margin-top:6px;line-height:1.6;max-width:210px;overflow-wrap:anywhere}.payment-fees-panel td button{color:#06c;font-size:14px;margin-top:8px}.payment-fee-form [hidden]{display:none!important}

/* 9) 付款手续费面板：查询／刷新按钮原本是裸文字，与其它财务面板按钮统一 */
.fee-controls button{padding:8px 14px;background:#f5f5f7;border:0;border-radius:9px;font-size:14px;color:#06c;cursor:pointer;white-space:nowrap}
.fee-controls button:hover{background:#ececf0}

/* 10) 卡单被驳回：状态要与「待结算」区分，并把驳回原因直接显示在行内（员工端原本完全看不到） */
.deal-state.is-rejected{background:#fdecec;color:#b42318}
#customerLedgerTable.workspace-deal-table td .is-rejected-note{display:block;max-width:150px;margin-top:2px;color:#b42318;font-size:11px;white-space:normal;line-height:1.4}
/* 可编辑窗口提示：状态列窄，固定拆成「时间 / 剩余分钟」两行，避免折行压住右边「操作」列的按钮 */
#customerLedgerTable.workspace-deal-table td .is-window-note{display:block;margin-top:2px;font-size:11px;line-height:1.45;white-space:normal}
#customerLedgerTable.workspace-deal-table td .is-window-note span{display:block;white-space:nowrap}
/* 审批队列的状态列更窄，不拆行会被省略号截成「剩 60 …」 */
.apr-row .apr-window-note{display:block;line-height:1.45;white-space:normal}
/* 窗口内也能付，但那是财务的人工决定：按钮换个颜色，别和普通「通过」混在一起 */
.apr-row .link-btn.is-early{color:#8f601c;font-weight:600}
/* 提前付款确认弹窗顶部的警告块 */
.settle-warn{margin:0 0 14px;padding:12px 14px;border:1px solid #e8c98a;border-left:3px solid #bf8528;border-radius:8px;background:#fff8ea;color:#6b4a12;font-size:14px;line-height:1.75}
.settle-warn b{color:#8a5a00}

/* 11) 出卡应收账龄：按出账日分档，逾期单独标红，账单行显示到期日 */
.ar-aging{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.ar-aging-chip{display:flex;align-items:baseline;gap:8px;padding:10px 14px;border:1px solid #e5e5ea;border-radius:10px;background:#fafafa;font-size:13px;color:#1d1d1f;font-variant-numeric:tabular-nums;white-space:nowrap}
.ar-aging-chip b{font-weight:500;color:#6e6e73;font-size:12px}
.ar-aging-chip small{margin-left:6px;color:#86868b;font-size:12px}
.ar-aging-chip.is-warn{border-color:#f0d9b5;background:#fdf6ec}
.ar-aging-chip.is-warn b{color:#9b4c00}
.ar-aging-chip.is-bad{border-color:#f3c6c6;background:#fdecec}
.ar-aging-chip.is-bad b,.ar-aging-chip.is-bad{color:#b42318}
.ar-due{color:#6e6e73}
.ar-due.is-overdue{color:#b42318;font-weight:600}
.account-table td.is-overdue{color:#b42318;font-weight:600}
@media(max-width:760px){.ar-aging{gap:8px}.ar-aging-chip{padding:8px 12px;font-size:12px}}

/* 12) 审批队列：资金池余额预检（可用 / 需付），余额不够的行直接禁用「通过」 */
.apr-row .amt .pool-check{display:block;margin-top:4px;font-size:11.5px;color:#6e6e73;font-variant-numeric:tabular-nums}
.apr-row .amt .pool-check.is-short{color:#b42318;font-weight:600}
.apr-row .apr-ops button[disabled]{opacity:.45;cursor:not-allowed}

/* 13) 看板 KPI 分成「经营（¥）」「客户资金（₦）」两组，避免人民币和奈拉在同一排横向比较 */
.team-stats-group{margin:24px 0}
.team-stats-group>h2{margin:0 0 10px;font-size:13px;font-weight:600;color:#6e6e73;letter-spacing:.02em}
.team-stats-group>h2 small{margin-left:8px;font-weight:400;color:#9a9aa0}
.team-stats-group .team-stats{margin:0!important}

/* 14) 我的工作台「当日卡单」：列少但原来被 UUID 撑宽，1440 下右侧「录入来源」被切掉 */
/* 单号改成 KD-日期-流水后不再长，1440 下 10 列要挤进 1070px：收紧内距，让时间/来源列折成两行 */
#my-work-cards .account-table{min-width:0;table-layout:auto}
#my-work-cards .account-table th,#my-work-cards .account-table td{padding:7px 7px;font-size:12.5px;white-space:nowrap}
#my-work-cards .account-table th{font-size:12px}
#my-work-cards .account-table small{display:block;font-size:11.5px;line-height:1.45;color:#6e6e73;white-space:normal}
#my-work-cards .account-table td:first-child{min-width:118px;max-width:none;white-space:nowrap}
#my-work-cards .account-table th:nth-child(3),#my-work-cards .account-table td:nth-child(3),
#my-work-cards .account-table th:nth-child(8),#my-work-cards .account-table td:nth-child(8){white-space:normal;max-width:96px}
#my-work-cards .account-table th:nth-child(5),#my-work-cards .account-table td:nth-child(5),
#my-work-cards .account-table th:nth-child(7),#my-work-cards .account-table td:nth-child(7){white-space:normal;max-width:92px;line-height:1.35}
#my-work-cards .account-table th:nth-child(6),#my-work-cards .account-table td:nth-child(6){white-space:normal;max-width:80px}

/* 15) 「客户管理」页的客户档案：按手机号聚合成交与资金往来 */
.customer-profile-panel{margin-bottom:24px}
.customer-profile-panel .account-panel-head{gap:16px}
.customer-profile-panel input[type=search]{min-width:240px}
.customer-profile-panel .account-table td small{display:block;color:#6e6e73;font-size:11.5px;line-height:1.5}
.customer-profile-panel .customer-owe{color:#b42318;font-weight:600}
.customer-profile-panel .customer-owe.is-zero{color:#006c4a;font-weight:500}
@media(max-width:760px){.customer-profile-panel input[type=search]{min-width:0;width:100%}}

/* 16) 部门未配置提示与批量归入 */
.department-bootstrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px;padding:14px 18px;border:1px solid #f0d9b5;background:#fdf6ec;border-radius:12px;font-size:14px;line-height:1.7;color:#6b4a13}
.department-bootstrap b{font-variant-numeric:tabular-nums}
.department-bootstrap button{margin-left:auto;padding:8px 14px;border:1px solid #d9b577;border-radius:8px;background:#fff;color:#8a5a00;font-size:13px}
.department-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 4px;padding:12px 14px;border:1px dashed #d2d2d7;border-radius:10px;font-size:13px;color:#6e6e73}
.department-bulk label{display:flex;align-items:center;gap:8px}
.department-bulk select{padding:6px 10px;border:1px solid #d2d2d7;border-radius:8px;font-size:13px}
.department-bulk button{padding:7px 12px;border:1px solid #d2d2d7;border-radius:8px;background:#f5f5f7;font-size:13px;color:#1e40af}
@media(max-width:760px){.department-bootstrap button{margin-left:0}}

/* 17) 客户等级与成交史不一致时提示复核（历史导入常见） */
.fund-level-hint{display:block;margin-top:2px;font-size:11px;line-height:1.4;color:#9b4c00;white-space:nowrap}

/* 18) 财务审批队列在 1440 下：内容/时间/资金池提示都被裁掉，改成「内容两行 + 提示单独一行」 */
.apr-row{grid-template-columns:.62fr .92fr .72fr 1.6fr .8fr .78fr .95fr 1.05fr 1.35fr!important}
.apr-row>span:nth-child(4){white-space:normal!important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35}
.apr-row .apr-pool-line{grid-column:1/-1;white-space:normal!important;overflow:visible!important;margin-top:2px;padding:6px 10px;border-radius:8px;background:#fdecec;color:#b42318;font-size:12px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums}
/* 操作列原本 sticky 在右侧（窄屏横向滚动时仍可点），但在 1440 下会压到「状态」列上，
   桌面宽度改回普通列，窄屏保留 sticky。 */
@media(min-width:1200px){.apr-row .apr-ops{position:static!important}}
.apr-row .apr-ops{align-self:center}
.apr-row .apr-state{white-space:nowrap;font-size:11.5px!important;padding:2px 8px!important;line-height:1.5!important}
.apr-row .approval-operation{font-size:11.5px!important;line-height:1.45!important;margin-top:4px!important;color:#6e6e73!important}
.apr-row .apr-sub{font-size:11px!important;line-height:1.4!important}
.apr-row details.approval-operation summary{white-space:normal;font-size:11px;line-height:1.4;color:#1e40af;cursor:pointer}
.apr-row details.approval-operation p{white-space:normal;font-size:11px;line-height:1.45;color:#6e6e73}

/* 18) 侧栏分组标题：九项平铺改成分组，只加标签不改原有顺序 */
aside nav .nav-group-label{margin:14px 0 4px;padding:0 12px;font-size:11px;line-height:1.4;letter-spacing:.08em;color:#9a9aa2;font-weight:600;text-transform:uppercase;user-select:none}
aside nav .nav-group-label:first-child{margin-top:2px}
body.sidebar-collapsed aside nav .nav-group-label{display:none}
/* 订单页设备区口径说明：明确与顶部 KPI 同口径，不是第二次累计 */
.order-device-note{margin:6px 0 12px}

/* 19) 外汇资金池：金额统一 2 位、KPI 主值不折行、数字列右对齐 */
body:not(.auth-page) .ngn-pool-panel .team-stats>div>strong{white-space:nowrap;font-size:clamp(20px,1.75vw,25px)!important}
body:not(.auth-page) .ngn-pool-panel .team-stats>div>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.auth-page) .ngn-pool-panel .team-stats>div>small{display:block;margin-top:1px;font-size:12px!important;color:#9a9aa2!important;white-space:nowrap}
.ngn-pool-panel .pool-scroll{scrollbar-width:thin}
.ngn-pool-panel .pool-scroll:has(#ngn-pool-days) th:not(:first-child),.ngn-pool-panel #ngn-pool-days td:not(:first-child){text-align:right}
.ngn-pool-panel .pool-scroll:has(#ngn-pool-entries) th:nth-child(n+5):nth-child(-n+12),.ngn-pool-panel #ngn-pool-entries td:nth-child(n+5):nth-child(-n+12){text-align:right}
.ngn-pool-panel #ngn-pool-days td,.ngn-pool-panel #ngn-pool-entries td{font-variant-numeric:tabular-nums}
.ngn-pool-panel #ngn-pool-entries td:last-child{max-width:320px;white-space:normal}
@media(max-width:760px){body:not(.auth-page) .ngn-pool-panel .team-stats>div>strong{font-size:19px!important}}

/* 20) 核算台账：逐笔卡单接入服务端后按财务密度排版，12 列一屏能看到十几行 */
#orders-ledger table td,#orders-ledger table th{padding:9px 8px!important;line-height:1.45!important;font-size:13px!important}
#orders-ledger table tbody tr{height:auto!important}
#orders-ledger table td small{line-height:1.35!important;margin-top:1px!important;font-size:11px!important}
#orders-ledger table td:first-child{font-variant-numeric:tabular-nums;color:#3a3a40}
#orders-ledger table td:nth-child(n+4):nth-child(-n+10){font-variant-numeric:tabular-nums}
#orders-ledger table{min-width:1000px}

/* 21) 台账列宽：出给谁不再竖排，操作列不折行；手机端仍用卡片布局（≤1024 的一套规则不动） */
@media(min-width:1025px){
 #customerLedgerTable.workspace-deal-table td:nth-child(13),#customerLedgerTable.workspace-deal-table th:nth-child(13){max-width:none!important;min-width:92px;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important}
 #customerLedgerTable.workspace-deal-table td:last-child{min-width:150px!important;white-space:normal!important}
 #customerLedgerTable.workspace-deal-table td,#customerLedgerTable.workspace-deal-table th{padding:9px 8px!important}
 #customerLedgerTable.workspace-deal-table .link-btn{padding:1px 2px!important;font-size:12.5px!important}
 #customerLedgerTable.workspace-deal-table .link-btn+.link-btn{margin-left:2px!important}
}

/* 22) 1024 宽度：财务 8 个标签改为换行，不再把后两个标签藏在横向滚动里 */
@media(max-width:1180px){
 .workspace-tabs{display:flex!important;flex-wrap:wrap!important;gap:2px 18px!important;overflow:visible!important}
 .workspace-tabs [role=tab]{padding:10px 2px!important;font-size:13.5px!important;gap:6px}
 .workspace-tabs [role=tab] .material-symbols-outlined{font-size:18px}
}

/* 23) 离岗情况：7 列表头允许换行，1440 一屏放得下；锚点跳转不被吸顶头部遮住 */
#work-break-report{scroll-margin-top:88px}
.work-break-report .work-break-section .pool-scroll{overflow-x:auto}
body:not(.auth-page) .work-break-report table :is(th,td){padding:9px 8px!important;font-size:13px!important}
body:not(.auth-page) .work-break-report table th{white-space:normal!important;line-height:1.4}
.work-break-report table{width:100%!important;min-width:0!important;table-layout:fixed}
.work-break-report table td{white-space:normal!important;overflow-wrap:anywhere}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(1){width:20%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(2){width:9%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(3){width:17%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(4){width:17%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(5){width:11%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(6){width:17%}
.work-break-report table:has(thead th:nth-child(7)) th:nth-child(7){width:9%}
.work-break-report table:has(thead th:nth-child(5):last-child) th:nth-child(1){width:26%}
.work-break-report table:has(thead th:nth-child(5):last-child) th:nth-child(2){width:13%}
.work-break-report table:has(thead th:nth-child(5):last-child) th:nth-child(3){width:21%}
.work-break-report table:has(thead th:nth-child(5):last-child) th:nth-child(4){width:16%}
.work-break-report table:has(thead th:nth-child(5):last-child) th:nth-child(5){width:24%}
.work-break-report table td:first-child b{display:block}

/* 24) 部门切换并入标题行后不再单独占一行 */
.workspace-heading-actions .business-view-controls,.account-toolbar .business-view-controls,.owner-heading-actions .business-view-controls{margin:0!important}
.business-view-controls .department-context{margin:0;gap:8px}
.business-view-controls .department-context>span{font-size:13px;color:#717277}

/* 25) 收尾：离岗弹窗关闭按钮、台账末列与两行表头 */
/* 关闭按钮做成圆形，自动聚焦时的焦点框跟着圆角走，不再是突兀的方框 */
.work-break-choice .dialog-head [data-close]{width:32px;height:32px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:transparent;color:#5b5f6b;font-size:15px;line-height:1;cursor:pointer}
.work-break-choice .dialog-head [data-close]:hover{background:#eef1f8;color:#1f2430}
.work-break-choice .dialog-head [data-close]:focus-visible,.work-break-choice .dialog-head [data-close]:focus{outline:2px solid #2f5bd7;outline-offset:2px;border-radius:999px}
/* 台账：表头允许第二行小字，核算状态与时间分两行，末列不再被裁掉时分 */
#orders-ledger table th{white-space:normal!important;word-break:keep-all!important}
#orders-ledger table th small{display:block;font-size:11px;font-weight:400;line-height:1.3;opacity:.72;margin-top:1px}
#orders-ledger table td:last-child{white-space:nowrap!important}
#orders-ledger table td:last-child small{white-space:nowrap!important}
/* 首页交易与利润走势：近 7 天真实结算净利，按天一根条；今日高亮 */
.team-trend{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.team-trend-row{display:grid;grid-template-columns:66px minmax(60px,1fr) auto;align-items:center;gap:10px;padding:6px 8px;border-radius:8px}
.team-trend-row.is-today{background:#f3f6ff}
.team-trend-date{font-size:12px;color:#5b5f6b;display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.team-trend-date small{font-size:10px;padding:1px 5px;border-radius:999px;background:#e6ecff;color:#2f5bd7}
.team-trend-bar{height:8px;border-radius:999px;background:#eef0f4;overflow:hidden}
.team-trend-bar i{display:block;height:100%;border-radius:999px;background:#2f7d5f}
.team-trend-bar i.is-down{background:#c2410c}
.team-trend-row b{font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}
.team-trend-row>small{grid-column:1/4;font-size:11px;color:#8a8f9c;text-align:right;margin-top:-2px}
@media(max-width:760px){.team-trend-row{grid-template-columns:58px minmax(40px,1fr) auto;gap:8px}}
/* 字段级提示：输入不合法或必填未填时，在字段下方就地说明，替代浏览器原生「请填写此字段」气泡 */
.field-hint{margin:6px 0 0;font-size:12px;line-height:1.45;color:#b45309}
.field-error{margin:6px 0 0;font-size:12px;line-height:1.45;color:#c2410c;font-weight:600}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#e0a06a!important;box-shadow:0 0 0 2px rgba(224,160,106,.18)}

/* Shared content insets: keep text clear of card, field and table borders. */
:root{--pc-content-inset:24px;--pc-cell-y:14px;--pc-cell-x:16px}
body:not(.auth-page) .account-panel>:is(p,h3,h4,ul,ol,dl){
 margin:16px 0!important;padding-inline:var(--pc-content-inset)!important;
 line-height:1.75;overflow-wrap:anywhere;
}
body:not(.auth-page) .account-panel>:is(ul,ol){padding-inline-start:calc(var(--pc-content-inset) + 20px)!important}
body:not(.auth-page) .account-panel>.account-panel-head{gap:16px;line-height:1.6}
body:not(.auth-page) .account-panel-head h2{line-height:1.5!important}
body:not(.auth-page) .account-panel-head p{margin-top:8px!important;margin-bottom:0!important}
body:not(.auth-page) :is(.quality-filters,.disputes-filters){padding:20px var(--pc-content-inset)!important;gap:16px!important}
body:not(.auth-page) :is(.quality-filters,.disputes-filters) label{display:grid;gap:8px;min-width:0}
body:not(.auth-page) :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),select,textarea){
 box-sizing:border-box;line-height:1.6!important;padding-block:10px!important;
}
body:not(.auth-page) :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),textarea):not([class*="pl-"]):not([class*="pr-"]):not(.password-wrap input){padding-inline:12px!important}
body:not(.auth-page) :is(main,dialog) select{padding-inline-start:12px!important;padding-inline-end:36px!important}
body:not(.auth-page) :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),select){height:auto!important;min-height:46px!important}
body:not(.auth-page) :is(main,dialog) textarea{min-height:96px}
body:not(.auth-page) :is(.pipeline-form-section,.management-dialog fieldset,.pool-permission-fields) legend{padding-inline:10px;line-height:1.6}
body:not(.auth-page) :is(.account-dialog,.app-dialog) .dialog-body{line-height:1.7}
body:not(.auth-page) :is(.account-dialog,.app-dialog) .dialog-body>p{margin-block:12px}

/* Override the compact ledger exceptions as well as the default table cells. */
body:not(.auth-page) main table :is(th,td),
body:not(.auth-page) #orders-ledger table :is(th,td),
body:not(.auth-page) #customerLedgerTable.workspace-deal-table :is(th,td),
body:not(.auth-page) .work-break-report table :is(th,td){
 padding:var(--pc-cell-y) var(--pc-cell-x)!important;line-height:1.65!important;
 vertical-align:middle;box-sizing:border-box;
}
body:not(.auth-page) main table th{line-height:1.6!important}
body:not(.auth-page) main table td small{line-height:1.6!important}
body:not(.auth-page) :is(.performance-table-scroll,.my-table-scroll,.workspace-table-scroll,.pool-scroll,.order-device-scroll){max-width:100%;overflow-x:auto}
body:not(.auth-page) .workspace-tabs [role=tab]{padding:14px 10px!important;line-height:1.6}
@media(max-width:760px){
 :root{--pc-content-inset:16px;--pc-cell-y:12px;--pc-cell-x:14px}
 body:not(.auth-page) .account-panel>.account-panel-head{padding:20px var(--pc-content-inset)!important}
 body:not(.auth-page) .work-break-report table{min-width:720px!important;table-layout:auto}
 body:not(.auth-page) .workspace-tabs{column-gap:12px!important;row-gap:4px!important}
}

/* Content belongs inside the card, below its full-width heading divider. */
body:not(.auth-page) .account-panel>.panel-content{padding:var(--pc-content-inset);min-width:0}
body:not(.auth-page) .daily-task-content>.task-toolbar{margin:0 0 18px!important;padding:0!important;gap:12px 16px}
body:not(.auth-page) .daily-task-content>#tasks-status{margin:0 0 18px!important;padding:0;line-height:1.75}
body:not(.auth-page) .daily-task-content>#tasks-body{padding:0!important}
body:not(.auth-page) .ar-content>.ar-filters{padding:0!important;margin:0 0 20px;gap:16px}
body:not(.auth-page) .ar-content>.ar-filters label{min-width:0;flex:1 1 200px}
body:not(.auth-page) .ar-content>.ar-filters :is(input,select){width:100%;max-width:100%}
body:not(.auth-page) .ar-content>[data-status]{margin:16px 0;line-height:1.75;overflow-wrap:anywhere}
body:not(.auth-page) .account-panel>:is(.finance-controls,.pool-actions,.pool-ledger-head,.order-device-filters,.team-stats,.pool-explanation){margin-inline:var(--pc-content-inset)!important;max-width:calc(100% - 2 * var(--pc-content-inset));min-width:0}
body:not(.auth-page) .account-panel>:is(.finance-controls,.pool-actions,.order-device-filters){margin-block:20px;gap:12px 16px;flex-wrap:wrap}
body:not(.auth-page) .account-panel>:is(.pool-scroll,.order-device-scroll){margin:16px var(--pc-content-inset) 24px;max-width:calc(100% - 2 * var(--pc-content-inset))}
body:not(.auth-page) main .workspace-section-icon,
body:not(.auth-page) main :is(span,div):is(.bg-primary,.bg-primary-container):has(>.material-symbols-outlined:only-child){display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:6px!important;border:1px solid #d3ddf8;border-radius:9px!important;background:#eef2ff!important;color:#4557c8!important;box-shadow:none}
body:not(.auth-page) main .workspace-section-icon .material-symbols-outlined,
body:not(.auth-page) main :is(span,div):is(.bg-primary,.bg-primary-container):has(>.material-symbols-outlined:only-child)>.material-symbols-outlined{font-size:22px;color:inherit!important}
body:not(.auth-page) main :is(.my-table-scroll,.performance-table-scroll,.workspace-table-scroll,.pool-scroll,.order-device-scroll,.overflow-x-auto,[style*="overflow-x"]){scrollbar-width:thin;scrollbar-color:#bdc6cf #f5f6f8;max-width:100%}
body:not(.auth-page) main :is(.my-table-scroll,.performance-table-scroll,.workspace-table-scroll,.pool-scroll,.order-device-scroll,.overflow-x-auto,[style*="overflow-x"])::-webkit-scrollbar{display:block!important;width:10px;height:10px}
body:not(.auth-page) main :is(.my-table-scroll,.performance-table-scroll,.workspace-table-scroll,.pool-scroll,.order-device-scroll,.overflow-x-auto,[style*="overflow-x"])::-webkit-scrollbar-thumb{background:#bdc6cf;border:2px solid #f5f6f8;border-radius:8px}

/* Ledger: the scroll region owns the wide table; totals remain in the card. */
#orders-ledger{min-width:0;max-width:100%}
#orders-ledger .ledger-scroll-note{margin:14px 0 10px;color:#717277;font-size:13px;line-height:1.7}
#orders-ledger .ledger-table-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid #e6e6e8;border-radius:10px;scrollbar-width:thin;scrollbar-color:#bdc6cf #f5f6f8}
#orders-ledger .ledger-table-scroll:focus-visible{outline:2px solid #93a3e8;outline-offset:3px}
body:not(.auth-page) #orders-ledger .ledger-table-scroll table{min-width:1280px}
#orders-ledger .ledger-table-scroll::-webkit-scrollbar{display:block!important;height:10px;width:10px}
#orders-ledger .ledger-table-scroll::-webkit-scrollbar-thumb{background:#bdc6cf;border:2px solid #f5f6f8;border-radius:8px}
#orders-ledger .ledger-table-scroll::-webkit-scrollbar-track{background:#f5f6f8}
#orders-ledger .ledger-summary{margin-top:22px;padding-top:20px;border-top:1px solid #e8e8ec;background:transparent}
#orders-ledger .ledger-summary-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
#orders-ledger .ledger-summary-heading h3{margin:0;font-size:16px;font-weight:600;line-height:1.6}
#orders-ledger [data-ledger-count]{font-size:13px;color:#717277;line-height:1.75;overflow-wrap:anywhere}
#orders-ledger .ledger-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
#orders-ledger .ledger-total{min-width:0;padding:18px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc}
#orders-ledger .ledger-total>span{display:block;font-size:14px;line-height:1.6;color:#6e6e73}
#orders-ledger .ledger-total>strong{display:block;margin-top:10px;font-size:22px;font-weight:600;line-height:1.5;color:#29292e;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#orders-ledger .ledger-total>small{display:block;margin-top:5px;font-size:13px;line-height:1.6;color:#607a91}
#orders-ledger .ledger-total.is-profit{background:#f2f5ff;border-color:#dbe2f7}
#orders-ledger .ledger-total.is-profit>strong{color:#2f4bb5}
#orders-ledger.is-empty .ledger-scroll-note,#orders-ledger.is-empty thead{display:none}
body:not(.auth-page) #orders-ledger.is-empty .ledger-table-scroll table{min-width:0!important;table-layout:fixed;width:100%}
body:not(.auth-page) #orders-ledger.is-empty tbody td{padding:32px 20px!important;white-space:normal!important;text-align:center;line-height:1.8!important}

/* The three risk-center dialogs share the same shell, filters and card rhythm. */
body:not(.auth-page) .account-dialog.risk-center-dialog{width:min(1120px,calc(100vw - 40px));max-width:1120px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #e3e6eb;border-radius:16px;overflow:hidden;color:#29292e;background:white}
body:not(.auth-page) .risk-center-dialog[open]{display:flex;flex-direction:column}
.risk-center-dialog .dialog-head{flex:none;padding:20px 24px;gap:16px;border-bottom:1px solid #e8e8ec}
.risk-center-dialog .dialog-head>span{min-width:0;overflow-wrap:anywhere}
.risk-center-dialog .dialog-head [data-close]{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #e5e7eb;border-radius:9px;background:#f6f7f9;color:#6e6e73;font-size:16px;cursor:pointer}
.risk-center-dialog .dialog-head [data-close]:hover{background:#eff2fd;color:#2f4bb5}
.risk-center-dialog .dialog-body{flex:1;min-height:0;max-height:none;padding:24px!important;overflow:auto;line-height:1.8}
.risk-center-dialog .dialog-body>p:first-child{margin:0 0 20px;padding:16px 18px;background:#f6f8fa;border:1px solid #e7ebef;border-radius:10px;color:#6e6e73;font-size:14px!important;line-height:1.8}
.risk-center-dialog :is(.audit-filter,.risk-controls){display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 20px;padding:18px;border:1px solid #e5e8ed;border-radius:12px;background:#fafbfc}
.risk-center-dialog .audit-filter label{flex:1 1 180px;display:grid;gap:8px;min-width:0;margin:0;font-size:14px}
.owner-audit-dialog .audit-filter label:first-child{flex-basis:280px}
.risk-center-dialog .audit-filter input{width:100%;min-width:0}
.risk-center-dialog :is(.audit-filter,.risk-controls)>button{flex:0 0 auto;min-height:46px;padding:10px 16px;border:1px solid #dde3f6;border-radius:9px;background:#eef2fe;color:#2f4bb5;font-size:14px;font-weight:500;line-height:1.6;white-space:normal}
.risk-center-dialog .risk-controls label{display:flex;align-items:center;gap:10px;align-self:center;margin:0;min-height:44px}
.risk-center-dialog .risk-controls input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}
.risk-center-dialog .risk-center-status{margin:0 0 20px;padding:12px 16px;border-left:3px solid #c7d0f2;border-radius:0 8px 8px 0;background:#f5f9fc;font-size:14px;color:#627489;line-height:1.75;overflow-wrap:anywhere}
.risk-center-dialog :is(.risk-event,.audit-entry,.ai-report-section){margin:16px 0;padding:20px;border:1px solid #e3e7ec;border-radius:12px;background:white;min-width:0;overflow-wrap:anywhere}
.risk-center-dialog :is(.risk-event,.audit-entry,.ai-report-section)>:first-child{margin-top:0}
.risk-center-dialog :is(.risk-event,.audit-entry,.ai-report-section)>:last-child{margin-bottom:0}
.risk-center-dialog .risk-event-head{align-items:flex-start;gap:12px;font-size:16px!important;line-height:1.7!important}
.risk-center-dialog .risk-event p{margin:14px 0;line-height:1.8!important}
.risk-center-dialog .risk-event small{line-height:1.8;color:#85858b}
.risk-center-dialog .audit-entry>div{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:10px 20px}
.risk-center-dialog .audit-entry time{font-size:13px;color:#85858b}
.risk-center-dialog .audit-entry>p{margin:12px 0;line-height:1.8;color:#6e6e73}
.risk-center-dialog :is(.audit-entry details,.risk-coverage){margin-top:16px;padding-top:14px;border-top:1px solid #eceef1}
.risk-center-dialog summary{cursor:pointer;line-height:1.8;color:#47718f}
.risk-center-dialog .audit-entry pre{margin-top:14px;padding:16px;background:#f6f8fa;border:1px solid #e8ebef;border-radius:8px;font-size:13px;line-height:1.8;max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.risk-center-dialog .ai-report-section h2{font-size:18px;font-weight:600;line-height:1.6;margin-bottom:12px}
.risk-center-dialog .ai-report-section p,.risk-center-dialog .ai-report-section li{font-size:14px;line-height:1.9}
.risk-center-dialog .ai-report-section article{padding:16px;background:#f6f8fa;border-radius:9px}
@media(max-width:1100px){#orders-ledger .ledger-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body:not(.auth-page) .account-dialog.risk-center-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 .risk-center-dialog .dialog-head{padding:18px 16px}
 .risk-center-dialog .dialog-body{padding:16px!important}
 .risk-center-dialog :is(.audit-filter,.risk-controls){padding:16px;gap:12px}
 .risk-center-dialog :is(.audit-filter,.risk-controls)>button{flex:1 1 150px}
 .risk-center-dialog :is(.risk-event,.audit-entry,.ai-report-section){padding:16px}
 .risk-center-dialog .risk-controls label{flex-basis:100%}
 body:not(.auth-page) .daily-task-content>.task-toolbar{display:flex;align-items:center}
 body:not(.auth-page) .daily-task-content>.task-toolbar :is(input,select){min-width:0;max-width:100%;flex:1 1 160px}
 #orders-ledger .ledger-total>strong{font-size:20px}
}
@media(max-width:480px){#orders-ledger .ledger-totals{grid-template-columns:1fr}.risk-center-dialog .audit-filter label{flex-basis:100%}}

/* ============================================================
   2026-11-27 排版修正 + 视觉统一层
   ① P0：审批队列的「通过／驳回」不再被挤出可视区；台账表末列有滚动提示
   ② 统一：圆角、按钮、卡片边框、说明文字、表格密度各归一个尺度
   ③ 颜色先收口到下面这组变量；主色定稿只需换 --pc-action 一族
   ============================================================ */
body:not(.auth-page){
  --pc-action:#1e40af;--pc-action-hover:#2a52c4;--pc-action-ink:#fff;
  --pc-accent-soft:#eef2ff;--pc-accent-line:#d3ddf8;--pc-accent-ink:#2f4bb5;
  --pc-muted:#6b7280;--pc-line:#e5e7eb;
  --pc-radius-card:12px;--pc-radius-btn:8px;
}

/* ①-1 审批队列：九列改成可收缩的 fr，操作列永远留在可视区（1280 也一样） */
body:not(.auth-page) .apr-row{grid-template-columns:minmax(0,.58fr) minmax(0,.9fr) minmax(0,.62fr) minmax(0,1.72fr) minmax(0,.78fr) minmax(0,.76fr) minmax(0,.8fr) minmax(0,.86fr) minmax(0,1.12fr)!important;min-width:0!important;gap:8px!important}
body:not(.auth-page) .apr-row>*{min-width:0}
body:not(.auth-page) .apr-row .apr-sub{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.auth-page) .apr-row .apr-ops{display:flex;flex-wrap:nowrap;gap:10px;justify-content:flex-end;align-items:center}
body:not(.auth-page) .apr-row .apr-ops .link-btn{white-space:nowrap}

/* ①-2 台账：汇率并进成本/总额单元格后是 10 列，1440 下刚好放满，不再需要常驻滚动阴影 */
body:not(.auth-page) #orders-ledger .ledger-table-scroll table{min-width:1000px}
body:not(.auth-page) #orders-ledger .ledger-table-scroll :is(th,td){padding:10px 8px}

/* ②-1 圆角：卡片一档、按钮一档、文字按钮回到"没有形状" */
body:not(.auth-page) :is(.account-panel,.self-profile,.role-card,.team-stats>div,.workspace-finance-stats>div,.ledger-total,.workspace-entry-grid>div,#finance-queue){border-radius:var(--pc-radius-card)!important}
body:not(.auth-page) main :is(button,.primary-action,.finance-wallet-link):not(.link-btn):not([data-close]){border-radius:var(--pc-radius-btn)!important;min-height:38px;font-size:14px!important;font-weight:500}

/* ②-2 按钮两族收口：主按钮=实心动作色；文字按钮=无底无边同色 */
body:not(.auth-page) :is(.primary-action,.finance-wallet-link){background:var(--pc-action)!important;color:var(--pc-action-ink)!important;border:0!important}
body:not(.auth-page) main .link-btn{background:none!important;border:0!important;box-shadow:none!important;padding:4px 2px!important;min-height:0!important;font-size:14px!important;font-weight:500;color:var(--pc-action)!important;border-radius:6px!important}
body:not(.auth-page) main .link-btn:hover{text-decoration:underline}
body:not(.auth-page) main .link-btn.del{color:#b42318!important}
body:not(.auth-page) main .workspace-section-icon{background:var(--pc-accent-soft)!important;border-color:var(--pc-accent-line)!important;color:var(--pc-accent-ink)!important}

/* ②-3 卡片：一条边框、一个圆角、不再叠阴影 */
body:not(.auth-page) :is(.account-panel,.self-profile,.role-card,.team-stats>div,.workspace-finance-stats>div,.ledger-total,.workspace-entry-grid>div,#finance-queue){border:1px solid var(--pc-line)!important;box-shadow:none!important}
body:not(.auth-page) .account-panel-head{border-bottom:1px solid var(--pc-line)!important}

/* ②-4 说明文字：13px + 一档灰（原来 12/13/14px 与七种灰混用） */
body:not(.auth-page) main :is(.apr-sub,.account-table small,.workspace-cell-meta,.account-summary,.ledger-total>small,.account-panel-head p,.workspace-heading p,.auth-help,.pool-explanation,.fund-row small){font-size:13px!important;line-height:1.7;color:var(--pc-muted)!important}

/* ②-5 表格密度：表头与单元格四边一致 */
body:not(.auth-page) :is(.account-table,.workspace-deal-table,.pool-scroll table,.order-device-scroll table) :is(th,td){padding-top:12px;padding-bottom:12px}
body:not(.auth-page) :is(.account-table,.workspace-deal-table,.pool-scroll table,.order-device-scroll table) th{font-size:13px!important;font-weight:500!important;color:#5a6b80!important}

/* ②-6 单号是唯一标识，不能被省略号吃掉：给它多一点宽度、字号压到 12px */
body:not(.auth-page) .apr-row{grid-template-columns:minmax(0,.58fr) minmax(0,1.02fr) minmax(0,.62fr) minmax(0,1.66fr) minmax(0,.78fr) minmax(0,.76fr) minmax(0,.8fr) minmax(0,.86fr) minmax(0,1.12fr)!important}
body:not(.auth-page) .apr-row .font-data-mono-sm,body:not(.auth-page) .apr-row .text-data-mono-sm{font-size:12px!important;letter-spacing:-.2px}

/* ②-7 横幅里的动作改成统一的次级按钮，不再用琥珀色冒充警示 */
body:not(.auth-page) .department-bootstrap button{border:1px solid var(--pc-line)!important;background:#fff!important;color:var(--pc-action)!important;border-radius:var(--pc-radius-btn)!important;font-weight:500}

/* ③ 顶部提示的层次：账号页原来会同时出现「部门未分配」和「风险线索」两条等宽实心横幅，
   两条都抢注意力，用户反而不知道先看哪个。部门提示是配置引导，降级为单行次级条：
   浅底、细边、动作贴右，视觉重量低于风险横幅。 */
body:not(.auth-page) .account-alert.department-bootstrap{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;padding:9px 14px;margin:0 0 10px;border:1px solid #e9e7e1;border-left:1px solid #e9e7e1;border-radius:10px;background:#faf9f6;color:var(--pc-muted);font-size:13px;line-height:1.6}
body:not(.auth-page) .account-alert.department-bootstrap b{color:#3d4657;font-weight:600}
body:not(.auth-page) .account-alert.department-bootstrap button{margin-left:auto;min-height:0!important;padding:2px 4px!important;border:0!important;background:none!important;color:var(--pc-action)!important;font-size:13px!important;font-weight:500!important;white-space:nowrap}
body:not(.auth-page) .account-alert.department-bootstrap button:hover{text-decoration:underline}
@media(max-width:760px){body:not(.auth-page) .account-alert.department-bootstrap button{margin-left:0}}

/* ③-1 顶部两条横幅之间的间距收一半，避免"两条空档 24px"把首屏内容推下去 */
body:not(.auth-page) main>.owner-risk-banner:first-child{margin-top:0}

/* ③-2 账号页三个动作原来全是实心主按钮，看不出主次：只留「新增账号」为主，
   「部门与薪酬」「角色管理」降为白底细边的次级入口（它们是配置入口，不是这一步的主动作）。 */
body:not(.auth-page) .account-toolbar .primary-action:not(#new-account){background:#fff!important;color:var(--pc-action)!important;border:1px solid var(--pc-line)!important;box-shadow:none!important}
body:not(.auth-page) .account-toolbar .primary-action:not(#new-account):hover{background:#f7f8fc!important;border-color:#cfd6e4!important}
/* ③-3 窄屏：宽表格的滚动容器必须自己收在容器宽度里。
   .fund-wrap 有 overflow-x:auto，但它作为 flex/grid 子项会被内容撑到 980px，
   整页跟着横向滚动（768 下实测多出 156px）。加 min-width:0 才能真正内部滚动。 */
@media(max-width:1100px){
  body:not(.auth-page) :is(.fund-wrap,.preview-wrap,.pool-scroll,.order-device-scroll,.workspace-table-scroll,.ledger-table-scroll,.my-table-scroll){min-width:0!important;max-width:100%!important}
  body:not(.auth-page) main :is(section,article,div):has(>.fund-wrap,>.ledger-table-scroll){min-width:0}
  /* 标题右侧的动作簇：部门范围选择器 + 两三个按钮排一行，768 下会顶出视口（实测 156px）。
     窄屏改换行，选择器独占一行。 */
  body:not(.auth-page) :is(.workspace-heading-actions,.owner-heading-actions,.account-toolbar){flex-wrap:wrap!important;max-width:100%!important;min-width:0!important;row-gap:8px}
  body:not(.auth-page) :is(.workspace-heading-actions,.owner-heading-actions,.account-toolbar)>*{min-width:0}
  /* 标题行本身是 flex nowrap：动作簇会被撑到内容宽度并顶出视口，这里让它换行到下一行。 */
  body:not(.auth-page) .workspace-heading{flex-wrap:wrap!important;row-gap:10px}
  body:not(.auth-page) .workspace-heading>*{min-width:0!important}
  body:not(.auth-page) .workspace-heading-actions{flex:1 1 100%!important}
  body:not(.auth-page) .workspace-heading-actions .business-view-controls{flex-wrap:wrap}
  body:not(.auth-page) .department-context{margin-left:0!important;max-width:100%}
  /* 风险横幅的按钮在窄屏被挤成"查看预 / 警"两行，锁一行 */
  body:not(.auth-page) .owner-risk-banner :is(button,a){white-space:nowrap;flex:none}
}

/* ── 分页条 ─────────────────────────────────────────────────────────
   核算台账（每页 100 条）与员工汇总（每页 20 人）共用。
   1.5 万行台账一次画完会让滚动高度到 110 万像素，分页后只渲染当前页。 */
body:not(.auth-page) :is(.ledger-pager,.staff-pager){display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px;border-top:1px solid var(--pc-line);font-size:12px;color:var(--pc-muted)}
/* 用 id 选择器压过上面「通用按钮」那条 :is(button) 规则（它把字号锁成 14px） */
body:not(.auth-page) :is(#ledger-pager,#staff-pager,#deal-pager) button{min-width:32px!important;min-height:28px!important;height:28px;padding:0 9px;border:1px solid var(--pc-line)!important;background:#fff!important;color:#2c2f3d!important;font-size:12px!important;font-weight:500!important;line-height:1;cursor:pointer}
body:not(.auth-page) :is(#ledger-pager,#staff-pager,#deal-pager) button:hover:not(:disabled){background:#eef2ff!important;border-color:#b8c4ff!important}
body:not(.auth-page) :is(#ledger-pager,#staff-pager,#deal-pager) button:disabled{opacity:.45;cursor:not-allowed}
body:not(.auth-page) :is(#ledger-pager,#staff-pager,#deal-pager) button.is-current{background:var(--pc-action)!important;border-color:var(--pc-action)!important;color:#fff!important;font-weight:600!important}
body:not(.auth-page) :is(.ledger-pager-info,.staff-pager-info){margin-left:auto;color:var(--pc-muted)}
body:not(.auth-page) :is(.ledger-pager-gap,.staff-pager-gap){color:#9aa0b4;padding:0 2px}
@media(max-width:720px){body:not(.auth-page) :is(.ledger-pager-info,.staff-pager-info){margin-left:0;flex:1 1 100%}}
/* 客户等级从「新开」改成「待成交客户」后，流水弹窗里的等级标签不要被折行 */
body:not(.auth-page) .fund-level-tag{white-space:nowrap}

/* 审计导出与保留策略（2026-11-29）：导出按钮与保留设置都在「全员操作审计」弹窗内 */
body:not(.auth-page) .risk-center-dialog .audit-export-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
body:not(.auth-page) .risk-center-dialog .audit-export-hint{color:var(--pc-muted);font-size:13px}
body:not(.auth-page) .risk-center-dialog .audit-retention{margin-top:24px;padding:18px 20px;border:1px solid #e3e7ec;border-radius:12px;background:#fbfcfe}
body:not(.auth-page) .risk-center-dialog .audit-retention summary{cursor:pointer;font-weight:600;color:#2f3b52}
body:not(.auth-page) .risk-center-dialog .audit-retention p{margin:14px 0;color:var(--pc-muted);font-size:14px;line-height:1.75}
body:not(.auth-page) .risk-center-dialog .audit-retention label{display:flex;align-items:center;gap:10px;color:#3c465c;font-size:14px}
body:not(.auth-page) .risk-center-dialog .audit-retention input{width:110px;padding:8px 10px;border:1px solid #dfe3ea;border-radius:8px;font-size:14px}
body:not(.auth-page) .risk-center-dialog .audit-retention-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0}
body:not(.auth-page) .risk-center-dialog .audit-retention-actions button{padding:9px 16px;border:1px solid #dfe3ea;border-radius:8px;background:white;color:#2f3b52;font-size:14px;cursor:pointer}
body:not(.auth-page) .risk-center-dialog .audit-retention-actions button:hover:not(:disabled){border-color:var(--pc-action);color:var(--pc-action)}
body:not(.auth-page) .risk-center-dialog .audit-retention-actions button:disabled{opacity:.55;cursor:not-allowed}
body:not(.auth-page) .risk-center-dialog .audit-retention [data-ret-status]{margin-bottom:0;font-size:13px}
